Possible GMP bug
Davies, Daniel
Daniel.Davies at xerox.com
Fri Jun 18 02:51:06 CEST 2010
I've just built gcc-4.5.0 and used that to compile gmp-4.3.2 on
solaris_x86, release 2.10. In this setup, buildgmp is peer in the
directory tree to gmp-4.3.2. Here are the results.
> setenv CONFIG_SHELL /usr/bin/ksh
> cd $TOOL/gcc/4.5.0/buildgmp
> setenv PATH $TOOL/gnu/gmake/3.81/i386-pc-solaris2.10/bin:$PATH
> $TOOL/gcc/4.5.0/gmp-4.3.2/configure
--prefix=$TOOL/gcc/4.5.0/i386-pc-solaris2.10 --enable-cxx
i686-pc-solaris2.10
<if the last "i686-cp-solaris2.10" is left out, make check
dies trying to link to __sync_fetch_and_add_4>
* make
o <this apparently completes successfully
* Make check
o Lots of stuff happens, ending in
* i686-pc-solaris2.10-g++ -DHAVE_CONFIG_H -I.
-I/tool/gcc/4.5.0/gmp-4.3.2/tests/cxx -I../..
-I/tool/gcc/4.5.0/gmp-4.3.2 -I/tool/gcc/4.5.0/gmp-4.3.2/tests -m32
-O2 -pedantic -fomit-frame-pointer -mtune=pentiumpro -march=pentiumpro
-c -o t-unary.o /tool/gcc/4.5.0/gmp-4.3.2/tests/cxx/t-unary.cc
* /usr/bin/ksh ../../libtool --mode=link i686-pc-solaris2.10-g++
-m32 -O2 -pedantic -fomit-frame-pointer -mtune=pentiumpro
-march=pentiumpro -o t-unary t-unary.o -L../../.libs
../../tests/libtests.la ../../libgmpxx.la ../../libgmp.la
* i686-pc-solaris2.10-g++ -m32 -O2 -pedantic -fomit-frame-pointer
-mtune=pentiumpro -march=pentiumpro -o .libs/t-unary t-unary.o
-L/tool/gcc/4.5.0/buildgmp/.libs ../../tests/.libs/libtests.a
../../.libs/libgmpxx.so /tool/gcc/4.5.0/buildgmp/.libs/libgmp.so
../../.libs/libgmp.so -Wl,--rpath
-Wl,/tool/gcc/4.5.0/i386-pc-solaris2.10/lib
* creating t-unary
* make[4]: Leaving directory `/tool/gcc/4.5.0/buildgmp/tests/cxx'
* make check-TESTS
* make[4]: Entering directory `/tool/gcc/4.5.0/buildgmp/tests/cxx'
* /usr/bin/ksh[9]: 4285 Segmentation Fault
* FAIL: t-assign
* PASS: t-binary
* PASS: t-cast
* /usr/bin/ksh[9]: 4325 Segmentation Fault
* FAIL: t-constr
* PASS: t-headers
* PASS: t-istream
* PASS: t-locale
* PASS: t-misc
* PASS: t-ops
* PASS: t-ostream
* PASS: t-prec
* /usr/bin/ksh[9]: 4430 Segmentation Fault
* FAIL: t-rand
* PASS: t-ternary
* PASS: t-unary
* ====================================
* 3 of 14 tests failed
* Please report to gmp-bugs at gmplib.org
* ====================================
* make[4]: *** [check-TESTS] Error 1
* make[4]: Leaving directory `/tool/gcc/4.5.0/buildgmp/tests/cxx'
* make[3]: *** [check-am] Error 2
* make[3]: Leaving directory `/tool/gcc/4.5.0/buildgmp/tests/cxx'
* make[2]: *** [check-recursive] Error 1
* make[2]: Leaving directory `/tool/gcc/4.5.0/buildgmp/tests'
* make[1]: *** [check-recursive] Error 1
* make[1]: Leaving directory `/tool/gcc/4.5.0/buildgmp'
* make: *** [check] Error 2
Is there anything else you'd like to know, or do you want to write it
off as a compiler bug?
I haven't exercised the g++ compiler - I'll try to download whatever's
needed to run gcc's "make check". I have extensively exercised the gcc
compiler and that seems ok.
Dan
More information about the gmp-bugs
mailing list