Skip to content

Instantly share code, notes, and snippets.

@chriswl
Created November 20, 2012 12:46
Show Gist options
  • Save chriswl/4117716 to your computer and use it in GitHub Desktop.
Save chriswl/4117716 to your computer and use it in GitHub Desktop.
Mountain Lion gcc build
$ brew --config
HOMEBREW_VERSION: 0.9.3
HEAD: be10a49527703fd5f3099165e03908b6eeaf9def
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit sandybridge
OS X: 10.8.2-x86_64
Xcode: 4.5.2
CLT: 4.5.0.0.1.1249367152
GCC-4.2: build 5666
LLVM-GCC: build 2336
Clang: 4.1 build 421
X11: 2.7.4 => /opt/X11
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
$ brew doctor
Your system is raring to brew.
$ brew install gcc --use-gcc
==> Downloading http://ftpmirror.gnu.org/gcc/gcc-4.7.2/gcc-4.7.2.tar.bz2
Already downloaded: /Library/Caches/Homebrew/gcc-4.7.2.tar.bz2
==> ../configure --enable-languages=c --prefix=/usr/local/Cellar/gcc/4.7.2/gcc --datarootdir=/usr/local/Cellar/gcc/4.7.2/share --bindir=/usr/local/Cellar/gcc/4.7.2/bin --program-suffix=-4.7 --with-gmp=/us
==> make bootstrap
/bin/sh ../../gcc/../move-if-change tmp-optionlist optionlist
echo timestamp > s-options
make[2]: *** [all-stage2-gcc] Error 2
make[1]: *** [stage2-bubble] Error 2
make: *** [bootstrap] Error 2
$ brew install gcc --use-llvm
==> Downloading http://ftpmirror.gnu.org/gcc/gcc-4.7.2/gcc-4.7.2.tar.bz2
Already downloaded: /Library/Caches/Homebrew/gcc-4.7.2.tar.bz2
==> ../configure --enable-languages=c --prefix=/usr/local/Cellar/gcc/4.7.2/gcc --datarootdir=/usr/local/Cellar/gcc/4.7.2/share --bindir=/usr/local/Cellar/gcc/4.7.2/bin --program-suffix=-4.7 --with-gmp=/us
==> make bootstrap
/bin/sh ../../gcc/../move-if-change tmp-optionlist optionlist
echo timestamp > s-options
make[2]: *** [all-stage2-gcc] Error 2
make[1]: *** [stage2-bubble] Error 2
make: *** [bootstrap] Error 2
READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment