• 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: Peter O'Gorman <email@hidden>
  • Date: Wed, 23 Apr 2008 14:48:30 -0500

Greg Guerin wrote:

Hi Greg,

I think you are mixing up two emails here.

> Philip K.F. Hölzenspies wrote:

I wrote (not Philip, he just replied to my email):
>
>> > I have downloaded one of the Xcode-3.1 beta versions so may have a
>> newer
>> > ld version to you.
>
Greg Guerin wrote:
> The release notes tell you:
>   1. That Xcode 3.1 beta is under NDA, not for public discussion.

Mentioning that I installed it is not a violation of the NDA, is it?

Here, I attempted to reproduce Philip's problem, based on what I had
read about it, not actually Philip's fault.
I wrote:
>>  Here is an attempt to reproduce:
>> >
>> > mb% echo 'int x=1;' > x.c
>> > mb% echo 'int y=1;' > y.c
[snip]

I wrote:
>> > Now the 'ld warning: -arch not specified' for the ld -r is simply
>> > because there were no actual input files (the shared libraries are not
>> > included in the output) so ld could not guess the arch.
>

Greg Guerin wrote:
> This is the wrong diagnosis.  The original 'ld -r' has two existing
> input files, both clearly visible with 'ls'.  An output file is
> produced, z.o, which appears to work when actually used to produce an
> executable.  Ld's warning message is simply irrelevant.
>

If you look at the z.o that is created when the "input files" are two
shared libraries, you will see that it is empty (just the mach-o header
etc, no symbols) because shared libraries are not a type that can be
included in an MH_OBJECT file. I will report this as a bug .. 5884356.

Peter
--
Peter O'Gorman
http://pogma.com
 _______________________________________________
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

References: 
 >Re: thin linking: "file is not of required architecture" (From: Greg Guerin <email@hidden>)

  • Prev by Date: Re: Xcode 3 losing scm password
  • Next by Date: Re: File has been changed by another application
  • Previous by thread: Re: thin linking: "file is not of required architecture"
  • Next by thread: Re: thin linking: "file is not of required architecture"
  • Index(es):
    • Date
    • Thread