adamv/homebrew-alt — Issue #188: duplicates/gcc.rb fails to build on vanilla Lion with Xcode 4.3
Author: claudiodsf
Created: 2012-02-23 08:31:07+00:00
State: open

I've just received my new iMac (wow!) and try to install gcc 4.6.2 through homebrew-alt.

I'm using the latest version of Xcode (4.3). I have no problems as from "brew doctor".

The install command is:

brew install ./duplicates/gcc.rb

The build fails with the following errors:

configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[1]: *** [stage1-bubble] Error 2
make: *** [bootstrap] Error 2
==> Exit Status: 2
http://github.com/mxcl/homebrew/blob/master/Library/Formula/.rb#L
==> Environment
HOMEBREW_VERSION: 0.8.1
HEAD: 51d054c9a9616f0c5bba5955561b7486fc5cf139
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
Hardware: quad-core 64-bit sandybridge
OS X: 10.7.3
Kernel Architecture: x86_64
Xcode: 4.3
GCC-4.0: N/A
GCC-4.2: N/A
LLVM: build 2336
Clang: 3.1 build 318
MacPorts or Fink? false
X11 installed? true
System Ruby: 1.8.7-249
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Which Perl: /usr/bin/perl
Which Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.2/bin/python
Which Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
==> Build Flags
CC: /usr/bin/clang
CXX: /usr/bin/clang++ => /usr/bin/clang
CFLAGS: -Os -w -pipe -march=native -Qunused-arguments -m64
CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments -m64 -U_GLIBCXX_DEBUG -U_GLIBCXX_DEBUG_PEDANTIC
LDFLAGS: -arch x86_64
MAKEFLAGS: -j4
PKG_CONFIG_PATH: /usr/local/lib/pkgconfig/

Note that Xcode 4.3 does not come anymore with gcc, and only provides llvm