gmp-5.0.5 compile problem on Solaris 8 Sparc

Marc Glisse marc.glisse at
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/ ../.
> ./ ../../
> 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/ /opt
> /bw/src/GCC/essentials/gmp-5.0.5-sparcv8/.libs/ /opt/bw/lib/sparcv8/lib
> -lm ../../.libs/ -Wl,-R -Wl,/opt/bw/lib/sparcv8
> ld: warning: file ../../.libs/ linked to /opt/bw/src/GCC/essentials/gm
> p-5.0.5-sparcv8/.libs/ attempted multiple inclusion of file
> ld: warning: file /opt/bw/lib/sparcv8/gcc/sparc-sun-solaris2.8/4.6.3/../../../li
> linked to /opt/bw/lib/sparcv8/ 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