Cannot compile anything in Xcode 3.2: can't exec compiler
apple Verified ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
No matter what I try to compile in Xcode 3.2, I get this error:
error: can't exec '/Developer/Library/Xcode/Plug-ins/Clang LLVM 1.0.xcplugin/Contents/Resources/gcc-4.2' (No such file or directory)
Now, I have xcplugins for all of the files, up to the Resources folder. The Resources folder of each compiler xcplugin has no executables in it. After hardlinking /Developer/usr/bin/gcc-4.2 into that folder, I get a new error.
Command /Developer/Library/Xcode/Plug-ins/Clang LLVM 1.0.xcplugin/Contents/Resources/gcc-4.2 failed with exit code 255
Help.
15 replies
Sign in or join Beachball Help to reply.
- 0
K T ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
After hardlinking /Developer/usr/bin/gcc-4.2 into that folder, I get a new error.
Try:
/Developer/usr/bin/llvm-gcc-4.2
instead.
255 exit status out of range ...essentially meaningless for your case, other than of course indicating a 'returned from main()) with -1 (0xFFFF)' ...ran it into the ditch, sir.
- 0
- 0
K T ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Check your file/folder permissions both ends of the now-corrected link. Clean caches and clear targets. Wipe your feet and don't leave without feeding the fish.
If that doesn't pan out, consider that your plug-ins
may have been obsoleted w/SL. - 0
SignOfZeta ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Completely uninstalled Xcode, reinstalled Xcode 3.2, repaired permissions, and cleaned everything. Nothing.
- 0
K T ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
SignOfZeta wrote:
Completely uninstalled Xcode, reinstalled Xcode 3.2, repaired permissions, and cleaned everything. Nothing.Manually check the file/folder permissions both ends of the now-corrected link. Repairing permissions won't deal with anything you've adhoc'd as that process has no way to judge what is needed....make sure they are set so that your app can pass thru appropriately.
And again, your plug-ins may have been obsoleted w/SL. As one example, are they 32-bit? Does your SL environment support 64-bit plug-ins? Lots of plug-ins are needing to be reworked...
- 0
SignOfZeta ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Recreated as symlinks (clang -> clang, gcc-4.2 -> llvm-gcc-4.2). Now I get exit code 1. Tried removing them and got the original error.
These plugins were installed with Xcode 3.2, the only version to support Snow Leopard.
- 0
Q Lazarus ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Any particular reason why you're using Clang to build?
- 0
SignOfZeta ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I'd like to try it. However, it does this for every compiler (LLVM gcc 4.2, gcc 4.2, gcc 4.0.1).
- 0
Q Lazarus ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Even on a brand new project which hasn't had any of its build settings altered? Did you run the actual Xcode installer on the Snow Leopard disc or did you just run the iPhone SDK installer?
- 0
SignOfZeta ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I tried making a new project (command-line tool), and used Apple's homemade "Hello World!" app. Clicked Build, same error:
error: can't exec '/Developer/Library/Xcode/Plug-ins/GCC 4.2.xcplugin/Contents/Resources/gcc-4.2' (No such file or directory)I had Xcode 3.1 and the iPhone SDK installed when I upgraded to Snow Leopard, but in the course of troubleshooting, I ran the uninstaller, erased the whole /Developer folder, and reinstalled just Xcode 3.2 from the ADC Downloads section (all options but the documentation and the 10.4 SDK).
- 0
K T ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
If all of this was installed in a standard installation process at the start, why are
you creating hard links to anything? Is that your attempt to fix a (perceived) issue? Why do that? What else have you ad-hoc'd?It now sounds as if you've spaghetti'ed the entire install/uninstall/install, sorry.
The new xcode is on the SL DVD...use that, but only after you've read the Xocde readme on how to properly uninstall.
- 0
SignOfZeta ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Nothing else. I've since undone the changes. I only ad hoc'd things because nothing was working in the first place.
- 0
Q Lazarus ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Did you opt for the lengthy download over what's already on the DVD because you thought it would be more current, or because you don't have a DVD?
- 0
K T ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
but in the course of troubleshooting
ts'ing what? It sounds like you were having an issue before you got to SL & Xcode 3.2...
Again, the new xcode is on the SL DVD...use that instead, but only after you've read the Xcode readme on how to properly uninstall (use the uninstaller script) what you have now.
I've since undone the changes
That's what worries me 🙂 ....did you follow a process or just start deleting things? That would be ad-hocing. Grabbing the online xcode instead of installing from the DVD first would be ad-hocing too. This kind of concept is why you're having trouble, me thinks, sorry.
Start by seeking out and checking for readme's, etc.
- 0
SignOfZeta ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I downloaded because my Mac's internal DVD drive isn't working, and I had to borrow an external one from a co-worker. Would you like proof-of-purchase?