Skip to content

Instantly share code, notes, and snippets.

@larsschenk
Created October 15, 2011 22:03
Show Gist options
  • Save larsschenk/1290218 to your computer and use it in GitHub Desktop.
Save larsschenk/1290218 to your computer and use it in GitHub Desktop.
MacVim snapshot 62 install with homebrew on lion with Xcode 4.2 failed
Check dependencies
2011-10-15 19:20:19.496 xcodebuild[23732:4403] error: Error Domain=NSPOSIXErrorDomain Code=2 "Non-zero exit code 127 returned from shell command: /Developer/usr/bin/gcc-4.2 -v -E -dM -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.7.sdk -x objective-c -c /dev/null 2>&1" UserInfo=0x401a7d320 {NSLocalizedDescription=Non-zero exit code 127 returned from shell command: /Developer/usr/bin/gcc-4.2 -v -E -dM -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.7.sdk -x objective-c -c /dev/null 2>&1, NSLocalizedFailureReason=No such file or directory}
2011-10-15 19:20:19.497 xcodebuild[23732:4403] Warning: Couldn't discover the 'gcc-4.2' compiler's built-in search paths and preprocessor definitions for language dialect 'objective-c'.
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 objective-c -c /dev/null 2>&1
2011-10-15 19:20:19.543 xcodebuild[23732:4403] error: Error Domain=NSPOSIXErrorDomain Code=22 "Non-zero exit code 127 returned from shell command: /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" UserInfo=0x401c3b4c0 {NSLocalizedDescription=Non-zero exit code 127 returned from shell command: /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, NSLocalizedFailureReason=Invalid argument}
2011-10-15 19:20:19.544 xcodebuild[23732:4403] Warning: Couldn't discover the 'gcc-4.2' compiler's built-in search paths and preprocessor definitions for language dialect 'c'.
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
HOMEBREW_VERSION: 0.8
HEAD: ecc162613d2e103a8785cb05aac95041332a41b4
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.1
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 5666
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
Error: Failed executing: make
If `brew doctor' does not help diagnose the issue, please report the bug:
https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue
$ brew doctor
Your system is raring to brew.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment