• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: gcc installation error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc installation error


  • Subject: Re: gcc installation error
  • From: Chris Espinosa <email@hidden>
  • Date: Tue, 18 Nov 2008 13:50:20 -0800

On Nov 18, 2008, at 12:38 PM, Charles Hardnett wrote:

Hi,

I hope someone can help with this. My Xcode had been working flawlessly until last week. I was building some C++/C code and got an error about the gcc installation. There was nothing fancy in this code, it was a basic demo for my class. I then tracked it down quickly in class, and made a few symbolic links to the directory that Xcode seemed to be looking for the gcc and g++ compilers:  /Developer/Library/Xcode/Plug-ins/GCC\ 4.0.xcplugin/Contents/Resources/

(I know that the real solution is not the symlinks, but it worked and got me through the demo)

After that, it worked. This week, I was testing some demo ideas for objective C, and the same error popped up, but this time for the Iphone Platform:

2008-11-18 15:22:03.576 xcodebuild[59463:2a8b] Warning:  Couldn't discover the 'gcc' compiler's built-in search paths and preprocessor definitions for language dialect 'objective-c'.  This may lead to indexing issues.
Compiler: /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Plug-ins/GCC 4.0.xcplugin/Contents/Resources/gcc
Reason:   gcc: installation problem, cannot exec '/usr/bin/arm-apple-darwin9-gcc-4.0.1': No such file or directory

Again I am getting a similar problem, but now its for the iphone platform and objective C (which still needs the gcc compiler). There is more output at the end that shows the command that failed:

The following build commands failed:
Counter:
        ProcessPCH /var/folders/p4/p4h0r3LS2RWfy++8ZLFRBU+++TU/-Caches-/com.apple.Xcode.504/SharedPrecompiledHeaders/Counter_Prefix-basbhsypskvjzmalqvdkwynxnksi/Counter_Prefix.pch.gch Counter_Prefix.pch normal armv6 objective-c com.apple.compilers.gcc.4_0
(1 failure)


Now, my problem is that I am getting the same type of error. I have not changed any preferences related to the installation since the time is worked and now (except the symlinks for the other directory). Does anyone know what the fix is for this?

Another thing that works was to open an brand new project. All of the projects that are having problems were built between 8/10/2008 and 11/07/2008. Did something in the installations change with a recent update? Do you I need to upgrade the project files? If so, is there an easy way to do this?

This is all very strange.  Could you please reply with two things: a copy of the compiler invocation line from a failed build, that starts "CompileC" or "ProcessPCH" or such, and then the similar line from a new project that succeeds?

Ordinarily I'd say you have a broken Xcode installation, possibly installing standalone Xcode over the iPhone SDK (which indirectly deletes portions of the iPhone SDK), but if old projects break and new projects work, it could be something different.

Chris
 _______________________________________________
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

References: 
 >gcc installation error (From: Charles Hardnett <email@hidden>)

  • Prev by Date: Re: ORGANIZATIONNAME -- __MyCompany__ -- Not in User Defaults?!?
  • Next by Date: Build broken after I moved my project
  • Previous by thread: gcc installation error
  • Next by thread: Build broken after I moved my project
  • Index(es):
    • Date
    • Thread