After Xcode 4.2, Apple stopped distributing gcc using Xcode. Instead, they distribute llvm-gcc (and clang) which are not gcc. You can see this with gcc -v, just like you: it shows LLVM build
.
To use gcc, you will have to compile it yourself. There is a homegrown formula for this, but you will need to use homebrew / dupes with brew tap homebrew/dupes
.
Please note that today the gcc formula does not work if compiled with clang. You must install it with brew install --use-llvm gcc
.
Also note that Homebrew is clearly looking for gcc-4.2. You will need to create a symlink for Homebrew to find gcc.
source share