Re: Lipo & PackageMaker Error ?
Re: Lipo & PackageMaker Error ?
- Subject: Re: Lipo & PackageMaker Error ?
- From: Dirk Stegemann <email@hidden>
- Date: Wed, 11 Jan 2006 13:52:43 +0200
Hello,
I'm running into the same problem now, but I couldn't find a solution
either.
Has anybody news on this subject?
My situation:
Dual-G4 867, Mac OS X 10.4.2 (8C46), Xcode 2.2:
Creates ppc binary using gcc 3.3, backward compatible to Mac OS X
10.2.8.
Developer Transition System, Mac OS X 10.4.3 (8F1111), Xcode 2.2:
Creates i386 binary using gcc 4.0.1
I used 'lipo' to create a universal binary, but PackageMaker (invoked
via command line) complains about "malformed object (unknown flavor
for flavor number 0 in LC_UNIXTHREAD command 16 can't byte swap it))".
Additional info:
1) when I run PackageMaker on the DTS to create the installer, there
is no complain, although the binary seems to be broken as well.
2) when I also first run lipo, then PackageMaker on the DTS, same
symptoms: no complain, but the binary is broken.
3) when I just build the package, filled with binaries which are
*not* universal but just i386, everything's fine, so lipo seems to
break the binary on creating the universal binary, no matter which
lipo version (i386 or ppc) I run, although only the ppc version leads
to the "malformed object" message later in PackageMaker.
Any advice is appreciated...
Regards,
Dirk Stegemann
Am 13.11.2005 um 23:37 schrieb Andrew Satori:
Well, it was worth a shot. I downloaded 2.2, installed on both
machines. Cleaned, Rebuilt on both machines, Copied to the PPC,
and attempted to build the Package. PackgeMaker throws the same
errors. Any more thoughts ?
On Nov 12, 2005, at 12:09 PM, Chris Espinosa wrote:
On Nov 12, 2005, at 8:28 AM, Greg Hurrell wrote:
El 12/11/2005, a las 4:07, Andrew Satori escribió:
Ok, I'm trying to package up a universal binary that was
assembled via lipo (not xcode based)., When I get to the
PackageMaker process, I get the following error:
: for architecture i386 object: file_name malformed object
(unknown flavor for flavor number 0 in LC_UNIXTHREAD command 17
can't byte swap it)
I get a single google result, and that links to a DES client
file for NeXTStep.
Any thoughts or suggestions on where to go next?
Andy
Don't know, but I'm getting a similar thing on a project of mine
when I try stripping the prebinding information from my Universal
Binary executable:
for architecture i386 object: file_name malformed object (unknown
flavor for flavor number 0 in LC_UNIXTHREAD command 19 can't byte
swap it)
for architecture i386 object: file_name malformed object (unknown
flavor for flavor number 0 in LC_UNIXTHREAD command 11 can't byte
swap it)
Old builds (prior to Xcode 2.2/Mac OS X 10.4.3) work. New builds
(after upgrade to Xcode 2.2/Mac OS X 10.4.3) produce the errors.
I believe that you need to re-compile (or at least re-link) all
your dylibs and executables with the gcc, ld, and cctools provided
with Xcode 2.2 before using lipo and PackageMaker that came with
2.2. During the development of Xcode 2.2 we changed the
definition of threadstate for Intel, and code that was built
against the old definition needs to be rebuilt with the new tools.
Chris
_______________________________________________
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