unknown required load command 0x80000022 once again
unknown required load command 0x80000022 once again
- Subject: unknown required load command 0x80000022 once again
- From: mogambo <email@hidden>
- Date: Fri, 30 Apr 2010 12:21:04 -0700
Hello,
I have already searched the archives for this problem and gone through the thread on this topic. My problem is not solved by the solution offered in that thread, so I am bringing it up again.
I have a mount utility for a file system driver that I build separately for 10.6//64-bit and 10.4+/ppc+i386. It seems to me that there should be no reason to not being able to create a UB with a single build. However, I am running into the dyld error above when I build the utility on 10.6 and try to run it on 10.5.8 i386. I am specifying -isysroot and -mmacosx_min_version for all architectures. Here are my compiler, linker and lipo commands:
$ make
/usr/bin/gcc-4.0 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -DAPPLE -I. -I.. -I/<workspace>/include -I/Developer/SDKs/MacOSX10.4u.sdk -dynamic -framework DiskArbitration mount.c getmntopts.c -o build-ppc/mount_fsd
ld: warning: object file compiled with -mlong-branch which is no longer needed. To remove this warning, recompile without -mlong-branch: /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/crt1.o
/usr/bin/gcc-4.0 -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -DAPPLE -I. -I.. -I/<workspace>/include -I/Developer/SDKs/MacOSX10.4u.sdk -dynamic -framework DiskArbitration mount.c getmntopts.c -o build-i386/mount_fsd
/usr/bin/gcc-4.0 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -DAPPLE -I. -I.. -I/<workspace>/include -I/Developer/SDKs/MacOSX10.6.sdk -dynamic -framework DiskArbitration mount.c getmntopts.c -o build-x86_64/mount_fsd
lipo -create build-ppc/mount_fsd build-i386/mount_fsd build-x86_64/mount_fsd -output mount_fsd
$ file build-*/mount_fsd
build-i386/mount_fsd: Mach-O executable i386
build-ppc/mount_fsd: Mach-O executable ppc
build-x86_64/mount_fsd: Mach-O 64-bit executable x86_64
$ file mount_fsd
mount_fsd: Mach-O universal binary with 3 architectures
mount_fsd (for architecture ppc): Mach-O executable ppc
mount_fsd (for architecture i386): Mach-O executable i386
mount_fsd (for architecture x86_64): Mach-O 64-bit executable x86_64
Somehow I am not creating the UB correctly. If I use build-i386/mount_fsd, I do not see the dyld error. /Library/Logs/CrashReporter/mount_fsd*.crash shows "Code Type" as "X86-64 (Native)". I do not know if that is relevant/significant. Can anyone give any insight into what might be happening?
Thanks in advance.
-m.
_______________________________________________
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