compiling GMP under Mac OS

Bálint Miklós balint at inf.ethz.ch
Thu Mar 22 17:59:14 CET 2007


Thank you to all of you guys for replies on my question!

In the end I managed to get GMP work the way I wanted, with CGAL 
together. (Easiest that works for me is darwinports afterall) So, if 
anybody tries to get CGAL and GMP to work under Intel Macs and needs 
some help, feel free to direct him to me. I am happy to share with them 
how I managed to get it run.

Thanks again,
Balint

Bálint Miklós wrote:
> Hi,
>
> 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,
> Balint
>
> Here is the end of the make check output:
>
> ....
>
> creating libtests.la
> (cd .libs && rm -f libtests.la && ln -s ../libtests.la libtests.la)
> 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 libtests.la ../ 
> libgmp.la
> 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:
> _calling_conventions_ebp
> _calling_conventions_ebx
> _calling_conventions_edi
> _calling_conventions_eflags
> _calling_conventions_esi
> _calling_conventions_fenv
> _calling_conventions_retaddr
> _calling_conventions_save_ebp
> _calling_conventions_save_ebx
> _calling_conventions_save_edi
> _calling_conventions_save_esi
> 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
> _______________________________________________
> gmp-discuss mailing list
> gmp-discuss at swox.com
> https://gmplib.org/mailman/listinfo/gmp-discuss
>   



More information about the gmp-discuss mailing list