Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6778465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:16:10+00:00 2026-05-26T16:16:10+00:00

It would appear that installing Xcode 4.2 on my Mac OS X 10.6 machine

  • 0

It would appear that installing Xcode 4.2 on my Mac OS X 10.6 machine has effectively removed gcc. In place of the binaries, there are now symlinks like so:

/usr/bin drarok$ ls -la | grep gcc
lrwxr-xr-x     1 root   wheel        32 13 Oct 14:27 cc -> ../llvm-gcc-4.2/bin/llvm-gcc-4.2
lrwxr-xr-x     1 root   wheel        12 13 Oct 14:24 gcc -> llvm-gcc-4.2
lrwxr-xr-x     1 root   wheel        12 12 Sep 16:15 gcc-4.2 -> /usr/bin/gcc
...

So “gcc-4.2”, despite looking like gcc of old, results in an llvm binary being executing.

Is there still a way to run gcc on my Mac?

Note: I am not looking to configure my Xcode to use gcc – this has been covered in other SO questions. I have some command-line tools that must be built with real gcc. My Cocoa projects all work with llvm.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T16:16:10+00:00Added an answer on May 26, 2026 at 4:16 pm

    I understand your pain. I still have gcc installed somehow:

    [/usr/bin]:;ls -la | egrep gcc
    lrwxr-xr-x     1 root   wheel          32 Oct 15 00:33 cc -> ../llvm-gcc-4.2/bin/llvm-gcc-4.2
    lrwxr-xr-x     1 root   wheel          12 Oct 15 00:30 gcc -> llvm-gcc-4.2
    -rwxr-xr-x     1 root   wheel       97392 Oct 24  2010 gcc-4.0
    -rwxr-xr-x     1 root   wheel      166128 Feb 11  2011 gcc-4.2
    lrwxr-xr-x     1 root   wheel          28 Oct 15 00:30 gcov-4.2 -> ../llvm-gcc-4.2/bin/gcov-4.2
    -rwxr-xr-x     1 root   wheel      369696 Oct 24  2010 i686-apple-darwin10-gcc-4.0.1
    -rwxr-xr-x     1 root   wheel      816560 Feb 11  2011 i686-apple-darwin10-gcc-4.2.1
    lrwxr-xr-x     1 root   admin          52 Oct 15 00:30 i686-apple-darwin10-llvm-g++-4.2 -> ../llvm-gcc-4.2/bin/i686-apple-darwin10-llvm-g++-4.2
    lrwxr-xr-x     1 root   admin          52 Oct 15 00:30 i686-apple-darwin10-llvm-gcc-4.2 -> ../llvm-gcc-4.2/bin/i686-apple-darwin10-llvm-gcc-4.2
    lrwxr-xr-x     1 root   admin          32 Oct 15 00:30 llvm-cpp-4.2 -> ../llvm-gcc-4.2/bin/llvm-cpp-4.2
    lrwxr-xr-x     1 root   admin          32 Oct 15 00:30 llvm-g++ -> ../llvm-gcc-4.2/bin/llvm-g++-4.2
    lrwxr-xr-x     1 root   admin          32 Oct 15 00:30 llvm-g++-4.2 -> ../llvm-gcc-4.2/bin/llvm-g++-4.2
    lrwxr-xr-x     1 root   admin          32 Oct 15 00:30 llvm-gcc -> ../llvm-gcc-4.2/bin/llvm-gcc-4.2
    lrwxr-xr-x     1 root   admin          32 Oct 15 00:30 llvm-gcc-4.2 -> ../llvm-gcc-4.2/bin/llvm-gcc-4.2
    -rwxr-xr-x     1 root   wheel      373792 Oct 24  2010 powerpc-apple-darwin10-gcc-4.0.1
    -rwxr-xr-x     1 root   wheel      820496 Feb 11  2011 powerpc-apple-darwin10-gcc-4.2.1
    [/usr/bin]:;./gcc-4.2 -v
    Using built-in specs.
    Target: i686-apple-darwin10
    Configured with: /var/tmp/gcc/gcc-5666.3~123/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1
    Thread model: posix
    gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
    

    But this may be because I also have XCode 3 tools installed?

    In any event, check out this very fancy Open Source project:

    https://github.com/kennethreitz/osx-gcc-installer

    Which I found in this related question: GCC without Xcode on OS X

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It would appear that there is a size limit on the return value of
It would appear that I am suffering from a new bug in IE7, as
I am a newbie working towards developing an IE extension that would appear as
I would like that the Index action doesn't appear in the url. For example,
When I create a user control in WPF it would appear that all the
If I follow decoupling all the way, it would appear that DataAccess layer should
Running my (rather complex) JavaScript/jQuery application in Google's Chrome browser, it would appear that
I am installing Hunchentoot on a new machine. This time I thought I would
It would appear that ajaxStart in my MVC 3 project is working but not
Been hunting for an hour or so. It would appear that db.Float does not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.