gmp 4.2 fails tests on G5

Jack Howarth howarth at bromo.msbb.uc.edu
Thu Apr 27 02:22:36 CEST 2006


Daniel,
     My initial guess at the source of the problem turned out to be
correct. I had thought the use of -fno-common to provide PIC code
seemed suspect. If you rebuild gmp 4.2 on a G5 with...

./configure --enable-cxx CC='gcc -fPIC' CXX='g++ -fPIC'

...the resulting build passes make check fine. We ran into a lot of
this in ppc-linux. Any shared libs built on ppc without -fPIC are
subject to weird hard to debug crashes. I seriously doubt that
-fno-common provides the same compiler behavior as -fPIC. Often
on ppc compiles I have seen both used together.
             Jack


More information about the gmp-bugs mailing list