• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: GMP 4.2 broken on G5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GMP 4.2 broken on G5


  • Subject: Re: GMP 4.2 broken on G5
  • From: Shantonu Sen <email@hidden>
  • Date: Wed, 26 Apr 2006 17:53:18 -0700

-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

On Apr 26, 2006, at 5:25 PM, Jack Howarth wrote:

David,
     I think I have solved the problem. I thought the use of only
-fno-common in gmp to compile shared libs looked suspect. Sure enough
if I compile gmp 4.2 with...

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

...the resulting build fully passes make check on the G5. I don't
believe that -fno-common provides PIC code in the same fashion as
-fPIC. Googling those flags show a lot of code using both -fPIC
and -fno-common in the compiles.
Jack
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40opendarwin.org


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: GMP 4.2 broken on G5 (From: email@hidden (Jack Howarth))

  • Prev by Date: Re: GMP 4.2 broken on G5
  • Next by Date: Re: GMP 4.2 broken on G5
  • Previous by thread: Re: GMP 4.2 broken on G5
  • Next by thread: Re: GMP 4.2 broken on G5
  • Index(es):
    • Date
    • Thread