Undefined symbol : __sync_fetch_and_add_4 in file t-assign.o

Dennis Clarke dclarke at blastwave.org
Tue Jun 21 14:30:25 CEST 2011


funny result in tests :

libtool: link: /opt/bw/bin/g++ -m32 -O2 -pedantic -fomit-frame-pointer
-mtune=i386 -march=i386 -o .libs/t-assign t-assign.o 
-L/opt/bw/src/GCC/essentials/gmp-5.0.2/.libs ../../tests/.libs/libtests.a
../../.libs/libgmpxx.so
/opt/bw/src/GCC/essentials/gmp-5.0.2/.libs/libgmp.so
/opt/bw/lib/i386/libstdc++.so -lm ../../.libs/libgmp.so -Wl,-R
-Wl,/opt/bw/lib/i386
ld: warning: file ../../.libs/libgmp.so: linked to
/opt/bw/src/GCC/essentials/gmp-5.0.2/.libs/libgmp.so: attempted multiple
inclusion of file
ld: warning: file
/opt/bw/lib/i386/gcc/i386-pc-solaris2.8/4.5.3/../../../libstdc++.so:
linked to /opt/bw/lib/i386/libstdc++.so: attempted multiple inclusion of
file
Undefined                       first referenced
 symbol                             in file
__sync_fetch_and_add_4              t-assign.o
ld: fatal: Symbol referencing errors. No output written to .libs/t-assign
collect2: ld returned 1 exit status
gmake[4]: *** [t-assign] Error 1
gmake[4]: Leaving directory `/opt/bw/src/GCC/essentials/gmp-5.0.2/tests/cxx'
gmake[3]: *** [check-am] Error 2
gmake[3]: Leaving directory `/opt/bw/src/GCC/essentials/gmp-5.0.2/tests/cxx'
gmake[2]: *** [check-recursive] Error 1
gmake[2]: Leaving directory `/opt/bw/src/GCC/essentials/gmp-5.0.2/tests'
gmake[1]: *** [check-recursive] Error 1
gmake[1]: Leaving directory `/opt/bw/src/GCC/essentials/gmp-5.0.2'

I'm not too sure where this popped up from. The latest gmp compiles and
tests fine on Sparc .. but not on i386 old Solaris.

Dennis




More information about the gmp-bugs mailing list