mxcl/homebrew — Issue #8344: MacVim Build Error: Unsupported compiler 'GCC 4.2' selected for architecture 'x86_64'
Author: matiskay
Created: 2011-10-28 16:06:06+00:00
State: open

I have this problem when I run `brew install macvim`

```bash
Compiler: /Developer/usr/bin/gcc-4.2
Reason: /Developer/usr/bin/gcc-4.2 -v -E -dM -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.7.sdk -x c -c /dev/null 2>&1
Unsupported compiler 'GCC 4.2' selected for architecture 'x86_64'

** BUILD FAILED **

The following build commands failed:
Check dependencies
(1 failure)
make[1]: *** [macvim] Error 65
make: *** [first] Error 2
==> Exit Status: 2
http://github.com/mxcl/homebrew/blob/master/Library/Formula/macvim.rb#L64
==> Environment
/Library/Perl/5.12/auto/share/dist/Cope/gcc
HOMEBREW_VERSION: 0.8
HEAD: (none)
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew
Hardware: quad-core 64-bit sandybridge
OS X: 10.7.2
Kernel Architecture: x86_64
Ruby: 1.8.7-249
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Xcode: 4.2
GCC-4.0: N/A
GCC-4.2: build 401 (5664 or newer recommended)
LLVM: build 2336
MacPorts or Fink? false
X11 installed? true
==> Build Flags
LD: /usr/bin/llvm-gcc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
MAKEFLAGS: -j4
```

I found some info about this problem http://code.google.com/p/macvim/issues/detail?id=375