Compiling GMP on OS X 10.6 (snow leopard)

Hans Aberg haberg at math.su.se
Sat Oct 10 11:22:05 CEST 2009


On 8 Oct 2009, at 07:39, Katie Scott wrote:

> GMP does not seem to successfully compile on Mac OS X 10.6.  It
> compiles but make check fails.
...
> libtool: link: cannot find the library `libraries/gmp-4.3.1/libgmp.la'
> or unhandled argument `libraries/gmp-4.3.1/libgmp.la'
> 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
>
>
> I see libgmp.la in the directory.

Note that 10.6 is a true 64-bit OS - 10.5 is 32-bit; for a 32-bit  
compile, one should use 'gcc -arch i386'. Though I do not know if that  
has anything to do with the problem.

   Hans




More information about the gmp-bugs mailing list