mxcl/homebrew — Issue #9768: GCC cannot be installed at all
Author: konrad-rudolph
Created: 2012-01-25 10:57:25+00:00
State: open

Using a clean OS X Lion with Xcode 4.2 installed, none of the formulae listed in *[Custom GCC and cross compilers][list]* work. They all abort with linker errors and I suspect that the reason is that they require GCC for compilation, but Xcode 4.2.1 doesn’t ship with GCC anymore (only i686-apple-darwin11-llvm-gcc-4.2) so `-use-gcc` has no effect.

This results in a circular situation: in order to install GCC, first install GCC.

Furthermore, is the argument for having GCC brews key-only actually still relevant given that OS X *only* provides a custom GCC anyway?

This is also discussed on [Ask Different](http://apple.stackexchange.com/q/38222/2392). At the moment it seems as though the only solution is installing GCC manually or through another package manager.

[list]: https://github.com/mxcl/homebrew/wiki/Custom-GCC-and-cross-compilers