• 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 from Terminal under Intel Leopard 10.5.8 does not seem to work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GCC from Terminal under Intel Leopard 10.5.8 does not seem to work


  • Subject: Re: GCC from Terminal under Intel Leopard 10.5.8 does not seem to work
  • From: Kevin Van Vechten <email@hidden>
  • Date: Tue, 1 Jun 2010 12:52:39 -0700

It appears that your version of Xcode is too old for the base system. Installing a newer version of Xcode for Leopard should resolve the issue.

Kevin

On Jun 1, 2010, at 11:38 AM, Matevž Markovič wrote:

Greetings to everyone!
Recently, I wanted to compile one of my C applications, using the built-in gcc from the command line.
I got the following error:
>>gcc da.c
"
dyld: lazy symbol binding failed: Symbol not found: _NXOpenFile
  Referenced from: /usr/libexec/gcc/darwin/ppc/cpp-precomp
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _NXOpenFile
  Referenced from: /usr/libexec/gcc/darwin/ppc/cpp-precomp
  Expected in: /usr/lib/libSystem.B.dylib

gcc: Internal error: Trace/BPT trap (program /usr/libexec/gcc/darwin/ppc/cpp-precomp)
Please submit a full bug report.
See <URL:http://developer.apple.com/bugreporter> for instructions.
"

What can be wrong?
I have OS X 10.5.8 (Intel), I use XCode ver. 3.0 and C code in XCode compiles just fine. When I run gcc -v, it reports the following:
"
Reading specs from /usr/libexec/gcc/darwin/ppc/3.1/specs
Thread model: posix
Apple Computer, Inc. GCC version 1151, based on gcc version 3.1 20020420 (prerelease)
"
It seems like it wants to use version 3.1, not 4.0. I typed in gcc_select, but only valid options are 2/3, which by what I think maps to gcc2/gcc3. Where is gcc4 gone?

How can I correct this? I really want to use the terminal version, not just xcode IDE.
I will try to upgrade to Xcode 3.13, but what if that does not solve the problem.
Thank you for your help.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • GCC from Terminal under Intel Leopard 10.5.8 does not seem to work
      • From: Matevž Markovič <email@hidden>
References: 
 >GCC from Terminal under Intel Leopard 10.5.8 does not seem to work (From: Matevž Markovič <email@hidden>)

  • Prev by Date: GCC from Terminal under Intel Leopard 10.5.8 does not seem to work
  • Next by Date: GCC from Terminal under Intel Leopard 10.5.8 does not seem to work
  • Previous by thread: GCC from Terminal under Intel Leopard 10.5.8 does not seem to work
  • Next by thread: GCC from Terminal under Intel Leopard 10.5.8 does not seem to work
  • Index(es):
    • Date
    • Thread