GMP build issues
Duke Hound
dukethek9 at gmail.com
Sat Jun 21 03:23:17 CEST 2008
Hello,
I am trying to build the gmp-4.2.2 library; however, I am receiving
errors during the 'make check' step. I am using a windows XP SP2
machine with MinGW (gcc version 3.4.5 (mingw-vista special)) that came
as part of the IDE CodeBlocks.
Because I am on windows I am using MSYS to execute the configure and
make commands.
I am using mingw32-make as my make utility. Below is the output from
first ./configure and mingw32-make commands from within msys
Thanks for your help,
$ ./configure
checking build system type... athlon-pc-mingw32
checking host system type... athlon-pc-mingw32
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking ABI=32
checking compiler gcc -m32 -O2 -fomit-frame-pointer ... yes
checking compiler gcc -m32 -O2 -fomit-frame-pointer has
sizeof(long)==4... yes
checking compiler gcc -m32 -O2 -fomit-frame-pointer -mtune=athlon... yes
checking compiler gcc -m32 -O2 -fomit-frame-pointer -mtune=athlon
-march=athlon
... yes
checking compiler gcc -m32 -O2 -fomit-frame-pointer -mtune=athlon
-march=athlon
-mno-cygwin... yes
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking build system compiler gcc... yes
checking for build system preprocessor... gcc -E
checking for build system executable suffix... .exe
checking whether build system compiler is ANSI... yes
checking for build system compiler math library... -lm
checking for egrep... grep -E
checking if the assembler knows about MMX instructions... yes
using ABI="32"
CC="gcc"
CFLAGS="-m32 -O2 -fomit-frame-pointer -mtune=athlon -march=athlon
-mno-cyg
win"
CPPFLAGS=""
MPN_PATH=" x86/k7/mmx x86/k7 x86 generic"
checking for function prototypes... yes
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking for ar... ar
checking for BSD-compatible nm... /mingw/bin/nm
checking for a sed that does not truncate output... /bin/sed
checking for ld used by gcc... /mingw/bin/ld
checking if the linker (/mingw/bin/ld) is GNU ld... yes
checking for /mingw/bin/ld option to reload object files... -r
checking whether ln -s works... yes
checking how to recognize dependent libraries... file_magic file format
pei*-i38
6(.*architecture: i386)?
checking for dlltool... dlltool
checking for as... as
checking for objdump... objdump
checking dlfcn.h usability... no
checking dlfcn.h presence... no
checking for dlfcn.h... no
checking the maximum length of command line arguments... 8192
checking command to parse /mingw/bin/nm output from gcc object... ok
checking for objdir... .libs
checking for ar... (cached) ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT
checking if gcc PIC flag -DDLL_EXPORT works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/mingw/bin/ld) supports shared
libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
configure: creating libtool
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking invent.h usability... no
checking invent.h presence... no
checking for invent.h... no
checking langinfo.h usability... no
checking langinfo.h presence... no
checking for langinfo.h... no
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking nl_types.h usability... no
checking nl_types.h presence... no
checking for nl_types.h... no
checking sys/attributes.h usability... no
checking sys/attributes.h presence... no
checking for sys/attributes.h... no
checking sys/iograph.h usability... no
checking sys/iograph.h presence... no
checking for sys/iograph.h... no
checking sys/mman.h usability... no
checking sys/mman.h presence... no
checking for sys/mman.h... no
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/processor.h usability... no
checking sys/processor.h presence... no
checking for sys/processor.h... no
checking sys/pstat.h usability... no
checking sys/pstat.h presence... no
checking for sys/pstat.h... no
checking sys/sysinfo.h usability... no
checking sys/sysinfo.h presence... no
checking for sys/sysinfo.h... no
checking sys/syssgi.h usability... no
checking sys/syssgi.h presence... no
checking for sys/syssgi.h... no
checking sys/systemcfg.h usability... no
checking sys/systemcfg.h presence... no
checking for sys/systemcfg.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/times.h usability... no
checking sys/times.h presence... no
checking for sys/times.h... no
checking for sys/resource.h... no
checking for sys/sysctl.h... no
checking for machine/hal_sysinfo.h... no
checking whether fgetc is declared... yes
checking whether fscanf is declared... yes
checking whether optarg is declared... yes
checking whether ungetc is declared... yes
checking whether vfprintf is declared... yes
checking whether sys_errlist is declared... no
checking whether sys_nerr is declared... no
checking return type of signal handlers... void
checking for intmax_t... yes
checking for long double... yes
checking for long long... yes
checking for ptrdiff_t... yes
checking for quad_t... no
checking for uint_least32_t... yes
checking for preprocessor stringizing operator... yes
checking for working volatile... yes
checking whether <stdarg.h> exists and works... yes
checking whether gcc __attribute__ ((const)) works... yes
checking whether gcc __attribute__ ((malloc)) works... yes
checking whether gcc __attribute__ ((mode (XX))) works... yes
checking whether gcc __attribute__ ((noreturn)) works... yes
checking for inline... inline
checking for cos in -lm... yes
checking for working alloca.h... no
checking for alloca (via gmp-impl.h)... yes
checking how to allocate temporary memory... alloca
checking whether byte ordering is bigendian... no
checking format of `double' floating point... IEEE little endian
checking for alarm... no
checking for attr_get... no
checking for clock... yes
checking for clock_gettime... no
checking for cputime... no
checking for getpagesize... yes
checking for getrusage... no
checking for gettimeofday... yes
checking for getsysinfo... no
checking for localeconv... yes
checking for memset... yes
checking for mmap... no
checking for mprotect... yes
checking for nl_langinfo... no
checking for obstack_vprintf... no
checking for popen... yes
checking for processor_info... no
checking for pstat_getprocessor... no
checking for raise... yes
checking for read_real_time... no
checking for sigaction... no
checking for sigaltstack... no
checking for sigstack... no
checking for syssgi... no
checking for strchr... yes
checking for strerror... yes
checking for strnlen... no
checking for strtol... yes
checking for strtoul... yes
checking for sysconf... no
checking for sysctl... no
checking for sysctlbyname... no
checking for times... no
checking for vsnprintf... yes
checking whether vsnprintf works... yes
checking whether sscanf needs writable input... no
checking for struct pst_processor.psp_iticksperclktick... no
checking for suitable m4... m4
checking if m4wrap produces spurious output... no
checking how to switch to text section... .text
checking how to switch to data section... .data
checking for assembler label suffix... :
checking for assembler global directive... .globl
checking for assembler global directive attribute...
checking if globals are prefixed by underscore... yes
checking how to switch to read-only data section... .section .rdata,"dr"
checking for assembler .type directive...
checking for assembler .size directive...
checking for assembler local label prefix... L
checking for assembler byte directive... .byte
checking how to define a 32-bit word... .long
checking if .align assembly directive is logarithmic... no
checking if the .align directive accepts an 0x90 fill in .text... yes
checking for assembler COFF type directives... yes
checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore... not
applicable
checking if the assembler takes cl with shldl... yes
checking for unsigned short... yes
checking size of unsigned short... 2
checking for unsigned... yes
checking size of unsigned... 4
checking for unsigned long... yes
checking size of unsigned long... 4
checking for mp_limb_t... yes
checking size of mp_limb_t... 4
checking for stack_t... no
checking for tputs in -lncurses... no
checking for tputs in -lcurses... no
checking for readline in -lreadline... no
checking readline detected... no
checking for bison... no
checking for byacc... no
checking for flex... no
checking for lex... no
checking for yywrap in -lfl... no
checking for yywrap in -ll... no
checking for ranlib... (cached) ranlib
creating config.m4
configure: creating ./config.status
config.status: creating demos/pexpr-config.h
config.status: creating demos/calc/calc-config.h
config.status: creating Makefile
config.status: creating mpbsd/Makefile
config.status: creating mpf/Makefile
config.status: creating mpn/Makefile
config.status: creating mpq/Makefile
config.status: creating mpz/Makefile
config.status: creating printf/Makefile
config.status: creating scanf/Makefile
config.status: creating cxx/Makefile
config.status: creating tests/Makefile
config.status: creating tests/devel/Makefile
config.status: creating tests/mpbsd/Makefile
config.status: creating tests/mpf/Makefile
config.status: creating tests/mpn/Makefile
config.status: creating tests/mpq/Makefile
config.status: creating tests/mpz/Makefile
config.status: creating tests/rand/Makefile
config.status: creating tests/misc/Makefile
config.status: creating tests/cxx/Makefile
config.status: creating doc/Makefile
config.status: creating tune/Makefile
config.status: creating demos/Makefile
config.status: creating demos/calc/Makefile
config.status: creating demos/expr/Makefile
config.status: creating gmp.h
config.status: creating mp.h
config.status: creating config.h
config.status: linking ./mpn/generic/add.c to mpn/add.c
config.status: linking ./mpn/generic/add_1.c to mpn/add_1.c
config.status: linking ./mpn/x86/k7/aors_n.asm to mpn/add_n.asm
config.status: linking ./mpn/generic/sub.c to mpn/sub.c
config.status: linking ./mpn/generic/sub_1.c to mpn/sub_1.c
config.status: linking ./mpn/x86/k7/aors_n.asm to mpn/sub_n.asm
config.status: linking ./mpn/x86/k7/mul_1.asm to mpn/mul_1.asm
config.status: linking ./mpn/x86/k7/aorsmul_1.asm to mpn/addmul_1.asm
config.status: linking ./mpn/x86/k7/aorsmul_1.asm to mpn/submul_1.asm
config.status: linking ./mpn/x86/k7/mmx/lshift.asm to mpn/lshift.asm
config.status: linking ./mpn/x86/k7/mmx/rshift.asm to mpn/rshift.asm
config.status: linking ./mpn/x86/k7/dive_1.asm to mpn/dive_1.asm
config.status: linking ./mpn/x86/k7/diveby3.asm to mpn/diveby3.asm
config.status: linking ./mpn/generic/divis.c to mpn/divis.c
config.status: linking ./mpn/generic/divrem.c to mpn/divrem.c
config.status: linking ./mpn/x86/k7/mmx/divrem_1.asm to mpn/divrem_1.asm
config.status: linking ./mpn/generic/divrem_2.c to mpn/divrem_2.c
config.status: linking ./mpn/generic/fib2_ui.c to mpn/fib2_ui.c
config.status: linking ./mpn/x86/k7/mmx/mod_1.asm to mpn/mod_1.asm
config.status: linking ./mpn/x86/k7/mod_34lsub1.asm to mpn/mod_34lsub1.asm
config.status: linking ./mpn/x86/k7/mode1o.asm to mpn/mode1o.asm
config.status: linking ./mpn/generic/dump.c to mpn/dump.c
config.status: linking ./mpn/generic/mul.c to mpn/mul.c
config.status: linking ./mpn/generic/mul_fft.c to mpn/mul_fft.c
config.status: linking ./mpn/generic/mul_n.c to mpn/mul_n.c
config.status: linking ./mpn/x86/k7/mul_basecase.asm to mpn/mul_basecase.asm
config.status: linking ./mpn/x86/k7/sqr_basecase.asm to mpn/sqr_basecase.asm
config.status: linking ./mpn/generic/random.c to mpn/random.c
config.status: linking ./mpn/generic/random2.c to mpn/random2.c
config.status: linking ./mpn/generic/pow_1.c to mpn/pow_1.c
config.status: linking ./mpn/generic/rootrem.c to mpn/rootrem.c
config.status: linking ./mpn/generic/sqrtrem.c to mpn/sqrtrem.c
config.status: linking ./mpn/generic/get_str.c to mpn/get_str.c
config.status: linking ./mpn/generic/set_str.c to mpn/set_str.c
config.status: linking ./mpn/generic/scan0.c to mpn/scan0.c
config.status: linking ./mpn/generic/scan1.c to mpn/scan1.c
config.status: linking ./mpn/x86/k7/mmx/popham.asm to mpn/popcount.asm
config.status: linking ./mpn/x86/k7/mmx/popham.asm to mpn/hamdist.asm
config.status: linking ./mpn/generic/cmp.c to mpn/cmp.c
config.status: linking ./mpn/generic/perfsqr.c to mpn/perfsqr.c
config.status: linking ./mpn/generic/bdivmod.c to mpn/bdivmod.c
config.status: linking ./mpn/x86/k7/gcd_1.asm to mpn/gcd_1.asm
config.status: linking ./mpn/generic/gcd.c to mpn/gcd.c
config.status: linking ./mpn/generic/gcdext.c to mpn/gcdext.c
config.status: linking ./mpn/generic/tdiv_qr.c to mpn/tdiv_qr.c
config.status: linking ./mpn/generic/dc_divrem_n.c to mpn/dc_divrem_n.c
config.status: linking ./mpn/generic/sb_divrem_mn.c to mpn/sb_divrem_mn.c
config.status: linking ./mpn/generic/jacbase.c to mpn/jacbase.c
config.status: linking ./mpn/generic/get_d.c to mpn/get_d.c
config.status: linking ./mpn/generic/mullow_n.c to mpn/mullow_n.c
config.status: linking ./mpn/generic/mullow_basecase.c to
mpn/mullow_basecase.c
config.status: linking ./mpn/x86/umul.asm to mpn/umul.asm
config.status: linking ./mpn/x86/udiv.asm to mpn/udiv.asm
config.status: linking ./mpn/x86/k7/mmx/copyi.asm to mpn/copyi.asm
config.status: linking ./mpn/x86/k7/mmx/copyd.asm to mpn/copyd.asm
config.status: linking ./mpn/x86/k7/mmx/com_n.asm to mpn/com_n.asm
config.status: linking ./mpn/generic/addsub_n.c to mpn/addsub_n.c
config.status: linking ./mpn/x86/k7/gmp-mparam.h to gmp-mparam.h
///////////////////////////////////////////////////////////////////
//////////////////D O N E C O N F I G////////////////////////////
///////////////////////////////////////////////////////////////////
$ mingw32-make check
gcc `test -f 'gen-fac_ui.c' || echo './'`gen-fac_ui.c -o gen-fac_ui.exe
./gen-fac_ui 32 0 >mpz/fac_ui.h || (rm -f mpz/fac_ui.h; exit 1)
gcc `test -f 'gen-fib.c' || echo './'`gen-fib.c -o gen-fib.exe
./gen-fib header 32 0 >fib_table.h || (rm -f fib_table.h; exit 1)
./gen-fib table 32 0 >mpn/fib_table.c || (rm -f mpn/fib_table.c; exit 1)
gcc `test -f 'gen-bases.c' || echo './'`gen-bases.c -o gen-bases.exe -lm
./gen-bases header 32 0 >mp_bases.h || (rm -f mp_bases.h; exit 1)
./gen-bases table 32 0 >mpn/mp_bases.c || (rm -f mpn/mp_bases.c; exit 1)
gcc `test -f 'gen-psqr.c' || echo './'`gen-psqr.c -o gen-psqr.exe -lm
./gen-psqr 32 0 >mpn/perfsqr.h || (rm -f mpn/perfsqr.h; exit 1)
c:/progra~1/CodeBlocks/MinGW/bin/mingw32-make check-recursive
mingw32-make[1]: Entering directory `C:/msys/1.0/home/dan/gmp-4.2.2'
Making check in tests
mingw32-make[2]: Entering directory `C:/msys/1.0/home/dan/gmp-4.2.2/tests'
makefile:844: warning: overriding commands for target `.s.o'
makefile:829: warning: ignoring old commands for target `.s.o'
makefile:848: warning: overriding commands for target `.s.obj'
makefile:831: warning: ignoring old commands for target `.s.obj'
makefile:852: warning: overriding commands for target `.s.lo'
makefile:833: warning: ignoring old commands for target `.s.lo'
Making check in .
mingw32-make[3]: Entering directory `C:/msys/1.0/home/dan/gmp-4.2.2/tests'
makefile:844: warning: overriding commands for target `.s.o'
makefile:829: warning: ignoring old commands for target `.s.o'
makefile:848: warning: overriding commands for target `.s.obj'
makefile:831: warning: ignoring old commands for target `.s.obj'
makefile:852: warning: overriding commands for target `.s.lo'
makefile:833: warning: ignoring old commands for target `.s.lo'
c:/progra~1/CodeBlocks/MinGW/bin/mingw32-make libtests.la t-bswap.exe
t-constan
ts.exe t-count_zeros.exe t-gmpmax.exe t-hightomask.exe t-modlinv.exe
t-popc.exe
t-parity.exe t-sub.exe
mingw32-make[4]: Entering directory `C:/msys/1.0/home/dan/gmp-4.2.2/tests'
makefile:844: warning: overriding commands for target `.s.o'
makefile:829: warning: ignoring old commands for target `.s.o'
makefile:848: warning: overriding commands for target `.s.obj'
makefile:831: warning: ignoring old commands for target `.s.obj'
makefile:852: warning: overriding commands for target `.s.lo'
makefile:833: warning: ignoring old commands for target `.s.lo'
C:/msys/1.0/bin/sh.exe ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I.
-I.
-I.
. -I.. -m32 -O2 -fomit-frame-pointer -mtune=athlon -march=athlon
-mno-cygwin
-c -o memory.lo memory.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -m32 -O2 -fomit-frame-pointer
-mtune=athl
on -march=athlon -mno-cygwin -c memory.c -o memory.o
C:/msys/1.0/bin/sh.exe ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I.
-I.
-I.
. -I.. -m32 -O2 -fomit-frame-pointer -mtune=athlon -march=athlon
-mno-cygwin
-c -o misc.lo misc.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -m32 -O2 -fomit-frame-pointer
-mtune=athl
on -march=athlon -mno-cygwin -c misc.c -o misc.o
C:/msys/1.0/bin/sh.exe ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I.
-I.
-I.
. -I.. -m32 -O2 -fomit-frame-pointer -mtune=athlon -march=athlon
-mno-cygwin
-c -o refmpf.lo refmpf.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -m32 -O2 -fomit-frame-pointer
-mtune=athl
on -march=athlon -mno-cygwin -c refmpf.c -o refmpf.o
C:/msys/1.0/bin/sh.exe ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I.
-I.
-I.
. -I.. -m32 -O2 -fomit-frame-pointer -mtune=athlon -march=athlon
-mno-cygwin
-c -o refmpn.lo refmpn.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -m32 -O2 -fomit-frame-pointer
-mtune=athl
on -march=athlon -mno-cygwin -c refmpn.c -o refmpn.o
C:/msys/1.0/bin/sh.exe ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I.
-I.
-I.
. -I.. -m32 -O2 -fomit-frame-pointer -mtune=athlon -march=athlon
-mno-cygwin
-c -o refmpq.lo refmpq.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -m32 -O2 -fomit-frame-pointer
-mtune=athl
on -march=athlon -mno-cygwin -c refmpq.c -o refmpq.o
C:/msys/1.0/bin/sh.exe ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I.
-I.
-I.
. -I.. -m32 -O2 -fomit-frame-pointer -mtune=athlon -march=athlon
-mno-cygwin
-c -o refmpz.lo refmpz.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -m32 -O2 -fomit-frame-pointer
-mtune=athl
on -march=athlon -mno-cygwin -c refmpz.c -o refmpz.o
C:/msys/1.0/bin/sh.exe ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I.
-I.
-I.
. -I.. -m32 -O2 -fomit-frame-pointer -mtune=athlon -march=athlon
-mno-cygwin
-c -o spinner.lo spinner.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -m32 -O2 -fomit-frame-pointer
-mtune=athl
on -march=athlon -mno-cygwin -c spinner.c -o spinner.o
C:/msys/1.0/bin/sh.exe ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I.
-I.
-I.
. -I.. -m32 -O2 -fomit-frame-pointer -mtune=athlon -march=athlon
-mno-cygwin
-c -o trace.lo trace.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -m32 -O2 -fomit-frame-pointer
-mtune=athl
on -march=athlon -mno-cygwin -c trace.c -o trace.o
C:/msys/1.0/bin/sh.exe ../libtool --mode=compile --tag=CC ../mpn/m4-ccas
--m4="m
4" gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I.. -m32 -O2
-fomit-frame-pointer
-mt
une=athlon -march=athlon -mno-cygwin `test -f 'x86call.asm' || echo
'./'`x86call
.asm
../mpn/m4-ccas "--m4=m4 gcc" -c -DHAVE_CONFIG_H -I. -I. -I.. -I.. -m32
-O2
-fom
it-frame-pointer -mtune=athlon -march=athlon -mno-cygwin x86call.asm -o
x86call.
o
m4 gcc -DHAVE_CONFIG_H x86call.asm >tmp-x86call.s
m4: gcc: No such file or directory
-c -DHAVE_CONFIG_H -I. -I. -I.. -I.. -m32 -O2 -fomit-frame-pointer
-mtune=athlo
n -march=athlon -mno-cygwin tmp-x86call.s -o x86call.o
../mpn/m4-ccas: -c: command not found
mingw32-make[4]: *** [x86call.lo] Error 1
mingw32-make[4]: Leaving directory `C:/msys/1.0/home/dan/gmp-4.2.2/tests'
mingw32-make[3]: *** [check-am] Error 2
mingw32-make[3]: Leaving directory `C:/msys/1.0/home/dan/gmp-4.2.2/tests'
mingw32-make[2]: *** [check-recursive] Error 1
mingw32-make[2]: Leaving directory `C:/msys/1.0/home/dan/gmp-4.2.2/tests'
mingw32-make[1]: *** [check-recursive] Error 1
mingw32-make[1]: Leaving directory `C:/msys/1.0/home/dan/gmp-4.2.2'
mingw32-make: *** [check] Error 2
More information about the gmp-discuss
mailing list