XCode 3.1 Broke UB Linking

Member
Posts: 508
Joined: 2002.05
Post: #1
After downloading the iPhone SDK and XCode 3.1 (which looks really cool, too bad verizon owns my soul), I've had trouble getting XCode to make a universal binary. After playing around for over and hour and searching the internet, I've made absolutely no progress. Also, everything was working perfect before the upgrade

Right now all 11 files compile correctly twice (10.4u for intel and 10.3.9 for PPC), the intel version links correctly, and then the ppc linker craps out and gives this error

Code:
Ld "/Users/jake/Desktop/GL Golf/glGolf/build/glGolf.build/Deployment/GL Golf Demo.build/Objects-normal/ppc/GL Golf" normal ppc
    cd "/Users/jake/Desktop/GL Golf/glGolf"
    /usr/bin/g++-3.3 -arch ppc -isysroot /Developer/SDKs/MacOSX10.3.9.sdk "-L/Users/jake/Desktop/GL Golf/glGolf/build/Deployment" "-F/Users/jake/Desktop/GL Golf/glGolf/build/Deployment" -filelist "/Users/jake/Desktop/GL Golf/glGolf/build/glGolf.build/Deployment/GL Golf Demo.build/Objects-normal/ppc/GL Golf.LinkFileList" -mmacosx-version-min=10.3 -framework Cocoa -framework OpenGL -framework Carbon -o "/Users/jake/Desktop/GL Golf/glGolf/build/glGolf.build/Deployment/GL Golf Demo.build/Objects-normal/ppc/GL Golf"
ld: in /Developer/SDKs/MacOSX10.3.9.sdk, can't map file, errno=22

and says

Code:
ld: in /Developer/SDKs/MacOSX10.3.9.sdk, can't map file, errno=22
Command /usr/bin/g++-3.3 failed with exit code 1

I'm all out of ideas... anyone have anything to try? Thanks!
Quote this message in a reply
Luminary
Posts: 5,125
Joined: 2002.04
Post: #2
Xcode 3 doesn't install the 10.3.9 SDK by default, did you remember to customize your installation?

You shouldn't talk about Xcode 3.1 beta since it's under NDA.
Quote this message in a reply
Member
Posts: 715
Joined: 2003.04
Post: #3
The first rule of iPhone SDK club is you don't talk about iPhone SDK club.
Quote this message in a reply
Member
Posts: 508
Joined: 2002.05
Post: #4
OneSadCookie Wrote:Xcode 3 doesn't install the 10.3.9 SDK by default, did you remember to customize your installation?

You shouldn't talk about Xcode 3.1 beta since it's under NDA.

Yes I did install 10.3.9 along with GCC 3.3 and all the other goodies, I even tried installing them again after I had the problems.


Nevermind then I guess if it's under NDA, sorry I didn't see that and I just assumed it was like every other XCode download since it was pretty much free to anyone who wants it. I don't really see apple helping me out on this issue but I guess I can try
Quote this message in a reply
Member
Posts: 508
Joined: 2002.05
Post: #5
Actually... does anyone have any ideas of what to try if I were to get this error in XCode 3 instead of 3.1? I'm about ready to start a new project file from scratch Sad
Quote this message in a reply
Luminary
Posts: 5,125
Joined: 2002.04
Post: #6
Hmm, it's using GCC-3.3 yet it looks like it's trying to talk to it as if it's a recent build of Apple's GCC 4.

If you're only targeting 10.3.9, you can just use GCC 4 to do the build, which should solve the problem. If you're targeting 10.3.8 or earlier, why?
Quote this message in a reply
Member
Posts: 508
Joined: 2002.05
Post: #7
Thanks, switching to 4.0 solved the problem!

I originally had 3.3 setup to target 10.2.8 when the UBs were introduced, but then XCode 3 stopped supporting 10.2.8 so I went up to 10.3.9 without changing GCC from 3.3 to 4.0.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Linking to dylib in xCode Jones 6 4,703 Jun 26, 2006 02:08 PM
Last Post: OneSadCookie
  Linking with xcode LWStrike 2 2,179 Mar 31, 2006 11:39 AM
Last Post: LWStrike
  Quicktime 7 broke my application Chris Ball 22 7,113 Feb 23, 2006 08:33 AM
Last Post: thingythekid