• 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: thin linking: "file is not of required architecture"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: thin linking: "file is not of required architecture"


  • Subject: Re: thin linking: "file is not of required architecture"
  • From: Alastair Houghton <email@hidden>
  • Date: Thu, 10 Apr 2008 11:12:02 +0100

On 10 Apr 2008, at 11:03, Philip Hölzenspies wrote:

Adding a -arch option should thus not make a difference:

$ ld -arch i386 -r -o linked.o libMyListMod.so libMyListTree.so
ld: warning in libMyListMod.so, file is not of required architecture
ld: warning in libMyListTree.so, file is not of required architecture

Ah, so these shared object files must be of the wrong architecture:

$ lipo -detailed_info libMyListMod.so libMyListTree.so
input file libMyListMod.so is not a fat file
input file libMyListTree.so is not a fat file
Non-fat file: libMyListMod.so is architecture: i386
Non-fat file: libMyListTree.so is architecture: i386

Can anybody explain to me what I am missing?

Is linked.o a PowerPC object file, perchance?

Kind regards,

Alastair.

--
http://alastairs-place.net


_______________________________________________ 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: thin linking: "file is not of required architecture"
      • From: Philip Hölzenspies <email@hidden>
References: 
 >thin linking: "file is not of required architecture" (From: Philip Hölzenspies <email@hidden>)

  • Prev by Date: thin linking: "file is not of required architecture"
  • Next by Date: Re: thin linking: "file is not of required architecture"
  • Previous by thread: thin linking: "file is not of required architecture"
  • Next by thread: Re: thin linking: "file is not of required architecture"
  • Index(es):
    • Date
    • Thread