Skip to content

Custom GCC and cross compilers

Elliot Saba edited this page Aug 26, 2013 · 14 revisions

Homebrew depends on having an up-to-date version of Xcode, because it comes with specific versions of autotools, clang, as well as llvm-gcc (gcc is just a symlink to llvm-gcc, which is just a "gcc"-like frontend for llvm.).

Installing a custom version of GCC or autotools into the $PATH has the potential to break lots of compiles. So we stick to the Apple-provided compilers.

For cross-compilers based on GCC, these brews will typically be "keg-only", and not linked into the path by default.

Rather than merging in brews for either of these cases at this time, we're listing them on this page. If you come up with a formula for a new version of GCC or cross-compiler suite, please link it in here.

  • Homebrew-dupes provides a binary gcc-4.2 formula for use with Xcode 4.2+. It can be installed with: brew tap homebrew/dupes && brew install apple-gcc42
  • GCC 4.5.1
  • Homebrew-versions provides an up to date GCC duplicate. brew tap homebrew/versions && brew install gcc48
  • MSP430 development
  • OS161 development Your university probably uses a different version, replacing the URLs with your university's URLs will probably work.
  • ARM-EABI provides an arm-none-eabi toolchain formula.
Clone this wiki locally