Building on OSX fails

Franco Milicchio senseiwa at me.com
Tue May 15 11:05:22 CEST 2012


Dear all,

I'm encountering some problems in building GMP on OSX 10.7. Configuring works just fine:

% ./configure --disable-shared --enable-static --enable-cxx

checking build system type... core2-apple-darwin11.4.0
checking host system type... core2-apple-darwin11.4.0
...
config.status: linking mpn/x86_64/core2/gmp-mparam.h to gmp-mparam.h
config.status: executing libtool commands



Anyway, after compiling every source and some linking, I get an ominous error:



/bin/sh ./libtool --tag=CXX   --mode=link g++  -O2 -pedantic -m64 -mtune=core2 -march=core2   -version-info 6:4:2  -o libgmpxx.la -rpath /Applications/Development/gmp/lib dummy.lo cxx/isfuns.lo cxx/ismpf.lo cxx/ismpq.lo cxx/ismpz.lo cxx/ismpznw.lo cxx/osdoprnti.lo cxx/osfuns.lo cxx/osmpf.lo cxx/osmpq.lo cxx/osmpz.lo libgmp.la 
libtool: link: ar cq .libs/libgmpxx.a  dummy.o cxx/isfuns.o cxx/ismpf.o cxx/ismpq.o cxx/ismpz.o cxx/ismpznw.o cxx/osdoprnti.o cxx/osfuns.o cxx/osmpf.o cxx/osmpq.o cxx/osmpz.o
/usr/bin/ranlib: file: .libs/libgmpxx.a(dummy.o) has no symbols
libtool: link: ranlib .libs/libgmpxx.a
ranlib: file: .libs/libgmpxx.a(dummy.o) has no symbols
sed: DO/gmp-5.0.4/libgmp.la: No such file or directory
libtool: link: `DO/gmp-5.0.4/libgmp.la' is not a valid libtool archive
make[2]: *** [libgmpxx.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


However, the file does exist and is readable:

% ls -la libgm*
-rw-r--r--  1 sensei  staff  882 May 15 11:01 libgmp.la
-rw-r--r--  1 sensei  staff  937 May 15 11:01 libgmpxx.la



Any hint? 

Thanks & Cheers!










More information about the gmp-bugs mailing list