Build on MSys/Mingw32 failed

Josh Scholar joshscholar at nightstudies.net
Sat Sep 29 17:54:29 CEST 2007


I tried to build with the following configuration:

./configure --build=i368-pc-mingw32 --enable-fat
-prefix=c:/assembler/gmpinstall --disable-static --enable-shared

make

The linker failed:

c:/MinGW/mingw32/bin/ld.exe -r -o .libs/libgmp.la-2.o mpn/.libs/gcdext.o
mpn/.
libs/tdiv_qr.o mpn/.libs/dc_divrem_n.o mpn/.libs/sb_divrem_mn.o
mpn/.libs/jacb
ase.o mpn/.libs/get_d.o mpn/.libs/mullow_n.o mpn/.libs/mullow_basecase.o
mpn/.
libs/umul.o mpn/.libs/udiv.o mpn/.libs/addsub_n.o printf/.libs/asprintf.o
prin
tf/.libs/asprntffuns.o printf/.libs/doprnt.o printf/.libs/doprntf.o
printf/.li
bs/doprnti.o printf/.libs/fprintf.o printf/.libs/obprintf.o
printf/.libs/obvpr
intf.o printf/.libs/obprntffuns.o printf/.libs/printf.o
printf/.libs/printffun
s.o printf/.libs/snprintf.o printf/.libs/snprntffuns.o
printf/.libs/sprintf.o
printf/.libs/sprintffuns.o printf/.libs/vasprintf.o printf/.libs/vfprintf.o
pr
intf/.libs/vprintf.o printf/.libs/vsnprintf.o printf/.libs/vsprintf.o
printf/.
libs/repl-vsnprintf.o scanf/.libs/doscan.o scanf/.libs/fscanf.o
scanf/.libs/fs
canffuns.o scanf/.libs/scanf.o scanf/.libs/sscanf.o scanf/.libs/sscanffuns.o
s
canf/.libs/vfscanf.o scanf/.libs/vscanf.o scanf/.libs/vsscanf.o
.libs/libgmp.l
a-1.o
      0 [main] sh 5740 open_stackdumpfile: Dumping stack trace to
sh.exe.stack
dump
./libtool: line 1:  5740 Segmentation fault      (core dumped)
c:/MinGW/mingw3
2/bin/ld.exe -r -o .libs/libgmp.la-2.o mpn/.libs/gcdext.o
mpn/.libs/tdiv_qr.o
mpn/.libs/dc_divrem_n.o mpn/.libs/sb_divrem_mn.o mpn/.libs/jacbase.o
mpn/.libs
/get_d.o mpn/.libs/mullow_n.o mpn/.libs/mullow_basecase.o mpn/.libs/umul.o
mpn
/.libs/udiv.o mpn/.libs/addsub_n.o printf/.libs/asprintf.o
printf/.libs/asprnt
ffuns.o printf/.libs/doprnt.o printf/.libs/doprntf.o printf/.libs/doprnti.o
pr
intf/.libs/fprintf.o printf/.libs/obprintf.o printf/.libs/obvprintf.o
printf/.
libs/obprntffuns.o printf/.libs/printf.o printf/.libs/printffuns.o
printf/.lib
s/snprintf.o printf/.libs/snprntffuns.o printf/.libs/sprintf.o
printf/.libs/sp
rintffuns.o printf/.libs/vasprintf.o printf/.libs/vfprintf.o
printf/.libs/vpri
ntf.o printf/.libs/vsnprintf.o printf/.libs/vsprintf.o
printf/.libs/repl-vsnpr
intf.o scanf/.libs/doscan.o scanf/.libs/fscanf.o scanf/.libs/fscanffuns.o
scan
f/.libs/scanf.o scanf/.libs/sscanf.o scanf/.libs/sscanffuns.o
scanf/.libs/vfsc
anf.o scanf/.libs/vscanf.o scanf/.libs/vsscanf.o .libs/libgmp.la-1.o
make[2]: *** [libgmp.la] Error 139
make[2]: Leaving directory `/c/assembler/gmp-4.2.2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/assembler/gmp-4.2.2'
make: *** [all] Error 2



I had previously done an apparently successful build at different options,
although the check had failed (there seemed to be a path broken at a
space).  I moved the directory so that there was no space in the path,
redone the configure, did "make clean" and the the make that failed.

ld's version is:
$ ld --version
GNU ld version 2.17.50 20060824
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.

$ gcc --version
gcc.exe (GCC) 3.4.5 (mingw special)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

My machine has 1 gig of memory and is running Windows XP professional.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gmplib.org/list-archives/gmp-bugs/attachments/20070929/cb62ec76/attachment.html 


More information about the gmp-bugs mailing list