I am on a (relatively) clean install of Mountain Lion.
Unfortunately during the bootstrap, installation of the gcc dependency mpfr fails:
clang: error: unable to execute command: Segmentation fault: 11
clang: error: linker command failed due to signal (use -v to see invocation)
make: *** [libmpfr.la] Error 254
make: *** [all] Error 2
make: *** [all-recursive] Error 1
config.log was copied to /Users/me/Library/Logs/Homebrew
==> Exit Status: 2
==> Build Environment
CPU: quad-core 64-bit arrandale
OS X: 10.8.2-x86_64
Error: Failed executing: make (mpfr.rb:31)
This link will help resolve the above errors:
Reading through the checklist didn’t help much, and googling for clang segmentation faults wasn’t much help either.
From Get Mountain Lion and Homebrew Happy, I read that forcibly saying where your Xcode install is would assist:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
… but this does not fix it. I also noted the option to force gcc use instead of llvm, so I tried:
brew install mpfr –use-gcc
This worked, and allowed mpfr to build and install.
I was then able to complete the gcc install:
brew install gcc-4.6
… and I’m now apparently good to go:
Found Xcode: /Applications/Xcode.app
Found Mac OS X 10.7 SDK: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk
Found git: /usr/local/bin/git
Found gpg: /usr/local/bin/gpg
Found ccache: /usr/local/bin/ccache
Found yasm: /usr/local/bin/yasm
Found autoconf-2.13: /usr/local/bin/autoconf213
Warning: gcc reports version i686-apple-darwin11-llvm-gcc-4.2, will look for gcc-4.6
Found gcc-4.6: /usr/local/bin/gcc-4.6
Congratulations, you are now ready to start building Boot2Gecko!
For more details, see our documentation:
I’ve updated the Mozilla wiki page with this hack accordingly. I now need to figure out if it’s appropriate to add it to the bootstrap script…
Onward and upward!