gmp 4.2 fails tests on G5

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


Daniel,
     I got a clarification of this issue on the darwin-dev mailing list...

---------------------------------------------------------------------------
-fno-common is not the issue.

The issue is that GMP 4.2 compiles with:
using ABI="mode64"
       CC="gcc"
       CFLAGS="-m64 -mcpu=970 -fast"
       CPPFLAGS=""
       CXX="g++"
       CXXFLAGS="-m64 -mcpu=970 -fast"
       MPN_PATH=" powerpc64/mode64 powerpc64/vmx powerpc64 generic"

If one reads the documentation, one finds that -fast implies -mdynamic- 
no-pic, which generates object files that are not suitable for use in  
a dylib. The gcc man page has:

            To build shared libraries with -fast, specify -fPIC on  
command
            line.


Shantonu
--------------------------------------------------------------------------
So Darwin builds of gmp should be appending -fPIC after the -fast on
the compile line.
                  Jack


More information about the gmp-bugs mailing list