• 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: 'cc' is not an accessible executable?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'cc' is not an accessible executable?


  • Subject: Re: 'cc' is not an accessible executable?
  • From: David Miller <email@hidden>
  • Date: Mon, 29 Dec 2003 12:14:39 -0500

At 12:05 PM +0100 12/29/2003, Trenton Schulz wrote:

> On Dec 28, 2003, at 7:20 PM, David Miller wrote:
>>
>> Yep, that all works.  "cc --version" produces what you'd expect, and
>> anything compiled via the command line works fine.  As you surmise,
>> just
>> XCode seems to be confused.  In fact, if I take the commands from the
>> build
>> log in XCode and execute them from the command line, they work. :)
>> After
>> which I can go back to XCode and it'll go until the next one fails,
>> and so
>> forth, but that's a pain in the butt. :)
>>
>> I have tried switching the default compiler back and forth (gcc_select
>> 3.1,
>> then gcc_select 3.3), with no luck.  Thanks for the idea though.
>>
> I've encountered this too. The real problem (I believe) is that CC is
> set to cc where it needs to be /usr/bin/cc. I imagine that Xcode has no
> real PATH so it doesn't know where it is. That's why you always see
> /usr/bin/gcc-3.3 whenever it tries to compile something.
>
> Hope this helps,

Yes, it did, thanks! :)  I added a "CC" property to each of the build
styles with a value of "/usr/bin/cc" and that fixed it.

Why that worked without that in Xcode 1.0.1 I dunno (or it may be an
application launching thing with 10.3.2, that upgrade happened in the same
time frame - maybe the OS doesn't let GUI apps inherit the PATH anymore).

I had tried adding a PATH property in the build styles, but that didn't
seem to help any.
--
Dave Miller - System Administrator / Programmer
InTrec Software, Inc.    http://www.intrec.com/
email@hidden
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: 'cc' is not an accessible executable?
      • From: Trenton Schulz <email@hidden>
    • Re: 'cc' is not an accessible executable?
      • From: Scott Tooker <email@hidden>
References: 
 >'cc' is not an accessible executable? (From: David Miller <email@hidden>)
 >Re: 'cc' is not an accessible executable? (From: Markus Hitter <email@hidden>)
 >Re: 'cc' is not an accessible executable? (From: David Miller <email@hidden>)
 >Re: 'cc' is not an accessible executable? (From: Trenton Schulz <email@hidden>)

  • Prev by Date: Re: Does submitting a crash report replace opening a bug?
  • Next by Date: Re: Zerolink error
  • Previous by thread: Re: 'cc' is not an accessible executable?
  • Next by thread: Re: 'cc' is not an accessible executable?
  • Index(es):
    • Date
    • Thread