gmp-5.0.5 compile problem on Solaris 8 Sparc

Dennis Clarke dclarke at blastwave.org
Mon Jul 2 02:27:48 CEST 2012



----- Original Message -----
From: Marc Glisse <marc.glisse at inria.fr>
Date: Sunday, July 1, 2012 5:12 pm
Subject: Re: gmp-5.0.5 compile problem on Solaris 8 Sparc
To: Dennis Clarke <dclarke at blastwave.org>
Cc: gmp-bugs at gmplib.org


> 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.
> 

yeah. I'm with you on that. I only choose Sol 8 as a baseline because 
generally if it works there, it works everywhere in the Solaris world.

dc


More information about the gmp-bugs mailing list