compiling GMP under Mac OS

Bálint Miklós balint at
Sun Mar 11 04:11:14 CET 2007


I have a Powerbook with Mac OS 10.4.8, and I compiled GMP and the  
make check gave errors to me. Can anybody give me some hints how I  
could compile correctly GMP?
I have gcc version 4.0.1, more exactly i686-apple-darwin8-gcc-4.0.1

Thank you in advance,

Here is the end of the make check output:


(cd .libs && rm -f && ln -s ../
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..    -m32 -O2 -fomit-frame- 
pointer -mtune=pentium3 -march=pentium3 -c t-bswap.c
/bin/sh ../libtool --mode=link gcc  -m32 -O2 -fomit-frame-pointer - 
mtune=pentium3 -march=pentium3   -o t-bswap  t-bswap.o ../
gcc -m32 -O2 -fomit-frame-pointer -mtune=pentium3 -march=pentium3 -o  
t-bswap t-bswap.o  ./.libs/libtests.a /Users/balintmiklos/kit/ 
gmp-4.2.1/.libs/libgmp.a ../.libs/libgmp.a
/usr/bin/ld: Undefined symbols:
collect2: ld returned 1 exit status
make[4]: *** [t-bswap] Error 1
make[3]: *** [check-am] Error 2
make[2]: *** [check-recursive] Error 1
make[1]: *** [check-recursive] Error 1
make: *** [check] Error 2

More information about the gmp-discuss mailing list