gmp-5.0.5 compile problem on Solaris 8 Sparc

Marc Glisse marc.glisse at inria.fr
Sun Jul 1 23:12:05 CEST 2012


On Sun, 1 Jul 2012, Dennis Clarke wrote:

> /bin/bash ../../libtool --tag=CXX   --mode=link /opt/bw/bin/g++  -m32 -O2 -pedan
> tic -mcpu=v7   -o t-assign t-assign.o -L../../.libs ../../tests/libtests.la ../.
> ./libgmpxx.la ../../libgmp.la
> libtool: link: /opt/bw/bin/g++ -m32 -O2 -pedantic -mcpu=v7 -o .libs/t-assign t-a
> ssign.o  -L../../.libs ../../tests/.libs/libtests.a ../../.libs/libgmpxx.so /opt
> /bw/src/GCC/essentials/gmp-5.0.5-sparcv8/.libs/libgmp.so /opt/bw/lib/sparcv8/lib
> stdc++.so -lm ../../.libs/libgmp.so -Wl,-R -Wl,/opt/bw/lib/sparcv8
> ld: warning: file ../../.libs/libgmp.so: linked to /opt/bw/src/GCC/essentials/gm
> p-5.0.5-sparcv8/.libs/libgmp.so: attempted multiple inclusion of file
> ld: warning: file /opt/bw/lib/sparcv8/gcc/sparc-sun-solaris2.8/4.6.3/../../../li
> bstdc++.so: linked to /opt/bw/lib/sparcv8/libstdc++.so: attempted multiple inclu
> sion of file
> Undefined                       first referenced
> symbol                             in file
> __sync_fetch_and_add_4              t-assign.o

gcc bug. The same you get when compiling for 386 IIRC. Since you seem to 
be targeting antiques like solaris 8 and sparcv7, it is unlikely you'll 
get it fixed.

-- 
Marc Glisse


More information about the gmp-bugs mailing list