Re: error: can't exec '/Developer/Library/Xcode/Plug-ins/GCC 4.2.xcplugin/Contents/Resources/gcc' (No such file or directory)
Re: error: can't exec '/Developer/Library/Xcode/Plug-ins/GCC 4.2.xcplugin/Contents/Resources/gcc' (No such file or directory)
- Subject: Re: error: can't exec '/Developer/Library/Xcode/Plug-ins/GCC 4.2.xcplugin/Contents/Resources/gcc' (No such file or directory)
- From: Geoff Beier <email@hidden>
- Date: Wed, 22 Sep 2010 09:58:32 -0400
On Wed, Sep 22, 2010 at 09:18, Geoff Beier <email@hidden> wrote:
>
> error: can't exec '/Developer/Library/Xcode/Plug-ins/GCC
> 4.2.xcplugin/Contents/Resources/gcc' (No such file or directory)
>
> Does anyone have any idea what setting in my environment might cause
> this behavior? My google-fu must be weak on this one, because nothing
And once again the magic of asking the question is sufficient to find
a fix. In my .profile I was setting CC=gcc and CXX=g++. I did this
some time back because it appeased some broken build script for an
open source project I wanted to use. Removing those lines from
.profile fixed Xcode.
The problem is easily reproduced. Create a cocoa application project
open a terminal with the .xcodeproj in your working directory. The
following commands fail:
wgbeier-mac:Untitled geoff$ export CC=gcc
wgbeier-mac:Untitled geoff$ xcodebuild -project Untitled.xcodeproj
-configuration Debug
Without making any other changes, the following succeeds:
wgbeier-mac:Untitled geoff$ export CC=
wgbeier-mac:Untitled geoff$ xcodebuild -project Untitled.xcodeproj
-configuration Debug
I hope having this in the archive helps someone else :-)
Thanks,
Geoff
_______________________________________________
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