Hello there,
I've just installed XCode 3.1 on top of my XCode 3.0 installation.
That was my first mistake.....
I'm now unable to compile any universal application comaptible with 10.3.x systems (which means compiling the pcc part using gcc3.3, and using the MacOSX10.3.9 SDK dans the i386 part using gcc4.0 with MacOSX10.4u SDK).
The linker fails with this error :
Ld /Volumes/Hobbes/Users/tijej/Projects/KrossWordz/v1.8.1/build/CrossWordz.build/Release/KrossWordz.build/Objects-normal/ppc/KrossWordz normal ppc
cd /Volumes/Hobbes/Users/tijej/Projects/KrossWordz/v1.8.1
/usr/bin/gcc-3.3 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -L/Volumes/Hobbes/Users/tijej/Projects/KrossWordz/v1.8.1/build/Release -F/Volumes/Hobbes/Users/tijej/Projects/KrossWordz/v1.8.1/build/Release -filelist /Volumes/Hobbes/Users/tijej/Projects/KrossWordz/v1.8.1/build/CrossWordz.build/Release/KrossWordz.build/Objects-normal/ppc/KrossWordz.LinkFileList -mmacosx-version-min=10.3 -Wl,-dead_strip -framework Carbon -framework Cocoa -o /Volumes/Hobbes/Users/tijej/Projects/KrossWordz/v1.8.1/build/CrossWordz.build/Release/KrossWordz.build/Objects-normal/ppc/KrossWordz
ld: in /Developer/SDKs/MacOSX10.4u.sdk, can't map file, errno=22
Command /usr/bin/gcc-3.3 failed with exit code 1
I believe XCode 3.1 does not respect the SDKROOT_ppc setting from my project.
Here's the same project compiled with XCode 2.5 (which does manage to compile the same project right) :
Ld /Volumes/Hobbes/Users/tijej/Projects/KrossWordz/v1.8.1/build/CrossWordz.build/Release/KrossWordz.build/Objects-normal/ppc/KrossWordz normal ppc
cd /Volumes/Hobbes/Users/tijej/Projects/KrossWordz/v1.8.1
setenv MACOSX_DEPLOYMENT_TARGET 10.3
setenv NEXT_ROOT /XCode2.5/SDKs/MacOSX10.3.9.sdk
/usr/bin/gcc-3.3 -o /Volumes/Hobbes/Users/tijej/Projects/KrossWordz/v1.8.1/build/CrossWordz.build/Release/KrossWordz.build/Objects-normal/ppc/KrossWordz -L/Volumes/Hobbes/Users/tijej/Projects/KrossWordz/v1.8.1/build/Release -L/XCode2.5/SDKs/MacOSX10.3.9.sdk/usr/lib/gcc/darwin/3.3 -F/Volumes/Hobbes/Users/tijej/Projects/KrossWordz/v1.8.1/build/Release -filelist /Volumes/Hobbes/Users/tijej/Projects/KrossWordz/v1.8.1/build/CrossWordz.build/Release/KrossWordz.build/Objects-normal/ppc/KrossWordz.LinkFileList -framework Carbon -framework Cocoa -arch ppc -Wl,-Y,1455 -mmacosx-version-min=10.3 -Wl,-dead_strip -Wl,-syslibroot,/XCode2.5/SDKs/MacOSX10.3.9.sdk
Have I done anything wrong ?
Is SDKROOT_ppc replaced by another setting in XCode 3.1 ?
BTW, I tried the new way of adding frameworks, relative the current SDK, but I had no framework listed there.