• 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: TechNote for building Universal Binary...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TechNote for building Universal Binary...


  • Subject: Re: TechNote for building Universal Binary...
  • From: "rohit dhamija" <email@hidden>
  • Date: Wed, 12 Apr 2006 09:48:40 +0530

Hi,
 
Below is my detailed problem:
 
I am building my static library as universal binary with following settings (as already mentioned in previous post,need to use this on Mac OS 10.3.9, Mac OS 10.4+ powerpc +Intel Mac)
 
GCC_VERSION_i386 4.0
GCC_VERSION_ppc 3.3
MACOSX_DEPLOYMENT_TARGET_i386 10.4
MACOSX_DEPLOYMENT_TARGET_ppc 10.3
SDKROOT_i386 /Developer/SDKs/MacOSX10.4u.sdk
SDKROOT_ppc /Developer/SDKs/MacOSX10.3.9.sdk
 
When I link an application with this static library on Mac OS 10.3.9, I am getting following set of errors (22 times)
/////////////////////////////////////////////

ld: ./libMyLibrary.a(Interface.o) r_type field of relocation entry 132 in section (__TEXT,__text) invalid

ld: ./libMyLibrary.a(Interface.o) stray relocation PPC_RELOC_PAIR entry (133) in section (__TEXT,__text)
/////////////////////////////////////////////
 
I hope I am using the correct settings ?  Why is such issue coming on Mac OS 10.3.9 ? The same library links very well with the Mac OS 10.4.5 PowerPc and Intel Mac.
 
Please comment/suggest.
RDH
 
On 4/11/06, David Dunham <email@hidden> wrote:

On 11 Apr 2006, at 08:06, rohit dhamija wrote:

> >>Why would you need gcc 2.95 for 10.3.9 if I may ask?
> Answer: I suppose the default gcc that ships with Mac OS 10.3.9 is
> 2.95 (on my system the gcc version is 2.95). plz correct me if i am
> wrong.
>
> We need to ship the product to our customer. They may have 2.95 to
> 3.3 gcc version on their system.

Are you shipping a development tool? If you're just trying to ship a
universal binary, you can use gcc 4.0 to target 10.3.9 (and gcc 3.3
to target 10.2.8).

------------
David Dunham   email@hidden   http://www.pensee.com/dunham/
"No matter how far you have gone on a wrong road, turn back." -
Turkish proverb



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (

This email sent to email@hidden





--
Rohit Dhamija(M) 9818446545
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: TechNote for building Universal Binary...
      • From: "Finlay Dobbie" <email@hidden>
References: 
 >TechNote for building Universal Binary... (From: "rohit dhamija" <email@hidden>)
 >Re: TechNote for building Universal Binary... (From: Alexander von Below <email@hidden>)
 >Re: TechNote for building Universal Binary... (From: "rohit dhamija" <email@hidden>)
 >Re: TechNote for building Universal Binary... (From: David Dunham <email@hidden>)

  • Prev by Date: Re: Problems stepping into a static linked library.
  • Next by Date: Keeping my project on an external drive
  • Previous by thread: Re: TechNote for building Universal Binary...
  • Next by thread: Re: TechNote for building Universal Binary...
  • Index(es):
    • Date
    • Thread