• 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: lipo ((os/kern) invalid argument) error after building universal binary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lipo ((os/kern) invalid argument) error after building universal binary


  • Subject: Re: lipo ((os/kern) invalid argument) error after building universal binary
  • From: "Ken G. Brown" <email@hidden>
  • Date: Tue, 3 Feb 2009 15:12:46 -0700

Further:
It appears that lipo cannot handle app bundles, so if I run it on the executable itself, it says it is ok, has both i386 and ppc. So I guess I'm missing something that tells Finder it is a universal binary, but what?

Thx,
Ken G. Brown

At 2:53 PM -0700 2/3/09, Ken G. Brown apparently wrote:
>Mac OS X 10.5.6, fpc Pascal 2.2.2, Xcode 3.1.2
>
>Have a Pascal program calling some C code from a static library I build in a separate project so I can use the debugger.
>
>I've set Xcode to use gcc 4.0 targeting 10.4 for Intel, and gcc 3.3 targeting 10.3.9 for PowerPC in both projects, deployment targets 10.4 Intel, and 10.3.9 PowerPC.
>And I've set both projects to Architecture Standard (32 bit universal).
>
>I looked at my app using lipo -info from Terminal and get the following error:
>lipo: Can't map input file: .../myapp/build/Release/myapp.app ((os/kern) invalid argument)
>
>As well, in Finder Get Info for my app, the 'open using Rosetta checkbox is greyed out and I cannot select it. Activity Monitor of course shows an Intel program but I need to deploy to PowerPC running 10.3.9 for now.
>
>If I look at my 'C' library project product with lipo, I get: Architectures in the fat file: ...../libkbCarbonLib.a are: i386 ppc
>
>What else do I need to do in order to generate a universal binary?
>In the build results I see both versions of the fpc pascal compiler are being run apparently ok.
>
>Perhaps I'm missing a setting somewhere but I cannot find it. Where does lipo come from, is it installed with Xcode?
>
>Any tips appreciated.
>
>Thx,
>Ken G. Brown
 _______________________________________________
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

  • Prev by Date: lipo ((os/kern) invalid argument) error after building universal binary
  • Next by Date: Re: Thread ID in debugger window versus console
  • Previous by thread: lipo ((os/kern) invalid argument) error after building universal binary
  • Next by thread: Re: lipo ((os/kern) invalid argument) error after building universal binary
  • Index(es):
    • Date
    • Thread