pivotal/pivotal_workstation — Issue #26: MacVIM install fails when using a fresh Lion with the OSX-GCC installer
Author: cowboyd
Created: 2011-11-21 17:44:26+00:00
State: open

Hi guys,

Starting from scratch, I installed

1) osx-gcc-installer-v2 https://github.com/kennethreitz/osx-gcc-installer
2) chef
3) put 'recipe[pivotal_workstation::meta_pivotal_lion_image]' in my run_list
4) run chef client

everything installs beautifully up until macvim, which bombs. The osx-gcc-installer installs both llvm gcc and normal gcc. Is it necessary to force it to compile with normal gcc?

[Mon, 21 Nov 2011 11:04:17 -0600] FATAL: Chef::Exceptions::ShellCommandFailed: execute[brew install macvim --HEAD] (pivotal_workstation::vim line 5) had an error: Expected process to exit with [0], but received '1'
---- Begin output of brew install macvim --HEAD ----
STDOUT: ==> Cloning https://github.com/b4winckler/macvim.git
Cloning into /Users/thefrontside/Library/Caches/Homebrew/macvim--git...
==> Checking out branch master
==> ./configure --with-macsdk=10.7 --with-features=huge --with-tlib=ncurses --en
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for library containing strerror... none required
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for strip... strip
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
configure: checking for buggy tools...
- sh is	'GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin11)
Copyright (C) 2007 Free Software Foundation, Inc.' - probably OK.
checking for BeOS... no
checking for QNX... no
checking for Darwin (Mac OS X)... yes
checking --disable-darwin argument... no
checking if Darwin files are there... yes
checking --with-developer-dir argument... not present
checking for xcode-select... /usr/bin/xcode-select
checking for developer dir using xcode-select... /Developer
checking --with-macsdk argument... 10.7
checking if SDK is supported... yes
checking --with-macarchs argument... x86_64
checking if architectures are supported... yes
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking Carbon/Carbon.h usability... no
checking Carbon/Carbon.h presence... no
checking for Carbon/Carbon.h... no
checking Cocoa/Cocoa.h usability... no
checking Cocoa/Cocoa.h presence... no
checking for Cocoa/Cocoa.h... no
checking --with-local-dir argument... Defaulting to /usr/local
checking --with-vim-name argument... Defaulting to vim
checking --with-ex-name argument... Defaulting to ex
checking --with-view-name argument... Defaulting to view
checking --with-global-runtime argument... no
checking --with-modified-by argument... no
checking if character set is EBCDIC... no
checking --disable-selinux argument... no
checking for is_selinux_enabled in -lselinux... no
checking --with-features argument... huge
checking --with-compiledby argument... no
checking --disable-xsmp argument... no
checking --disable-xsmp-interact argument... no
checking --enable-luainterp argument... no
checking --enable-mzschemeinterp argument... no
checking --enable-perlinterp argument... yes
checking for perl... /usr/bin/perl
checking Perl version... OK
checking if compile and link flags for Perl are sane... yes
checking --enable-pythoninterp argument... yes
checking for python... /usr/bin/python
checking Python version... 2.7
checking Python is 1.4 or better... yep
checking Python's install prefix... /System/Library/Frameworks/Python.framework/Versions/2.7
checking Python's execution prefix... /System/Library/Frameworks/Python.framework/Versions/2.7
checking Python's configuration directory... /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config
checking if -pthread should be used... no
checking if compile and link flags for Python are sane... yes
checking --enable-python3interp argument... no
checking --enable-tclinterp argument... yes
checking --with-tclsh argument... no
checking for tclsh8.5... /usr/bin/tclsh8.5
checking Tcl version... 8.5 - OK
checking for location of Tcl include... /System/Library/Frameworks/Tcl.framework/Headers/tcl.h
checking for location of tclConfig.sh script... /System/Library/Frameworks/Tcl.framework/tclConfig.sh
checking --enable-rubyinterp argument... yes
checking --with-ruby-command argument... defaulting to ruby
checking for ruby... /usr/bin/ruby
checking Ruby version... OK
checking Ruby header files... /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin11.0
checking --enable-cscope argument... no
checking --enable-workshop argument... no
checking --disable-netbeans argument... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... no
checking whether compiling netbeans integration is possible... no
checking --enable-sniff argument... no
checking --enable-multibyte argument... yes
checking --enable-hangulinput argument... no
checking --enable-xim argument... defaulting to auto
checking --enable-fontset argument... no
checking for xmkmf... no
checking for X... libraries /usr/X11/lib, headers
checking whether -R must be followed by a space... no
checking for gethostbyname... no
checking for gethostbyname in -lnsl... (cached) no
checking for gethostbyname in -lbsd... no
checking for connect... no
checking for connect in -lsocket... no
checking for remove... no
checking for remove in -lposix... no
checking for shmat... no
checking for shmat in -lipc... no
checking for IceConnectionNumber in -lICE... yes
Corrected X includes to /usr/X11/include
checking if X11 header files can be found... no
checking --enable-gui argument... yes/auto - automatic GUI support
checking whether or not to look for MacVim... yes
checking X11/SM/SMlib.h usability... no
checking X11/SM/SMlib.h presence... yes
configure: WARNING: X11/SM/SMlib.h: present but cannot be compiled
configure: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?
configure: WARNING: X11/SM/SMlib.h: see the Autoconf documentation
configure: WARNING: X11/SM/SMlib.h: section "Present But Cannot Be Compiled"
configure: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result
configure: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence
checking for X11/SM/SMlib.h... yes
checking whether toupper is broken... no
checking whether __DATE__ and __TIME__ work... no
checking whether __attribute__((unused)) is allowed... no
checking elf.h usability... no
checking elf.h presence... no
checking for elf.h... no
checking for dirent.h that defines DIR... no
checking for sys/ndir.h that defines DIR... no
checking for sys/dir.h that defines DIR... no
checking for ndir.h that defines DIR... no
checking for library containing opendir... none required
checking stdarg.h usability... no
checking stdarg.h presence... yes
configure: WARNING: stdarg.h: present but cannot be compiled
configure: WARNING: stdarg.h: check for missing prerequisite headers?
configure: WARNING: stdarg.h: see the Autoconf documentation
configure: WARNING: stdarg.h: section "Present But Cannot Be Compiled"
configure: WARNING: stdarg.h: proceeding with the preprocessor's result
configure: WARNING: stdarg.h: in the future, the compiler will take precedence
checking for stdarg.h... yes
checking for stdint.h... (cached) no
checking for stdlib.h... (cached) no
checking for string.h... (cached) no
checking sys/select.h usability... no
checking sys/select.h presence... yes
configure: WARNING: sys/select.h: present but cannot be compiled
configure: WARNING: sys/select.h: check for missing prerequisite headers?
configure: WARNING: sys/select.h: see the Autoconf documentation
configure: WARNING: sys/select.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/select.h: proceeding with the preprocessor's result
configure: WARNING: sys/select.h: in the future, the compiler will take precedence
checking for sys/select.h... yes
checking sys/utsname.h usability... no
checking sys/utsname.h presence... yes
configure: WARNING: sys/utsname.h: present but cannot be compiled
configure: WARNING: sys/utsname.h: check for missing prerequisite headers?
configure: WARNING: sys/utsname.h: see the Autoconf documentation
configure: WARNING: sys/utsname.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/utsname.h: proceeding with the preprocessor's result
configure: WARNING: sys/utsname.h: in the future, the compiler will take precedence
checking for sys/utsname.h... yes
checking termcap.h usability... no
checking termcap.h presence... yes
configure: WARNING: termcap.h: present but cannot be compiled
configure: WARNING: termcap.h: check for missing prerequisite headers?
configure: WARNING: termcap.h: see the Autoconf documentation
configure: WARNING: termcap.h: section "Present But Cannot Be Compiled"
configure: WARNING: termcap.h: proceeding with the preprocessor's result
configure: WARNING: termcap.h: in the future, the compiler will take precedence
checking for termcap.h... yes
checking fcntl.h usability... no
checking fcntl.h presence... yes
configure: WARNING: fcntl.h: present but cannot be compiled
configure: WARNING: fcntl.h: check for missing prerequisite headers?
configure: WARNING: fcntl.h: see the Autoconf documentation
configure: WARNING: fcntl.h: section "Present But Cannot Be Compiled"
configure: WARNING: fcntl.h: proceeding with the preprocessor's result
configure: WARNING: fcntl.h: in the future, the compiler will take precedence
checking for fcntl.h... yes
checking sgtty.h usability... no
checking sgtty.h presence... yes
configure: WARNING: sgtty.h: present but cannot be compiled
configure: WARNING: sgtty.h: check for missing prerequisite headers?
configure: WARNING: sgtty.h: see the Autoconf documentation
configure: WARNING: sgtty.h: section "Present But Cannot Be Compiled"
configure: WARNING: sgtty.h: proceeding with the preprocessor's result
configure: WARNING: sgtty.h: in the future, the compiler will take precedence
checking for sgtty.h... yes
checking sys/ioctl.h usability... no
checking sys/ioctl.h presence... yes
configure: WARNING: sys/ioctl.h: present but cannot be compiled
configure: WARNING: sys/ioctl.h: check for missing prerequisite headers?
configure: WARNING: sys/ioctl.h: see the Autoconf documentation
configure: WARNING: sys/ioctl.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/ioctl.h: proceeding with the preprocessor's result
configure: WARNING: sys/ioctl.h: in the future, the compiler will take precedence
checking for sys/ioctl.h... yes
checking sys/time.h usability... no
checking sys/time.h presence... yes
configure: WARNING: sys/time.h: present but cannot be compiled
configure: WARNING: sys/time.h: check for missing prerequisite headers?
configure: WARNING: sys/time.h: see the Autoconf documentation
configure: WARNING: sys/time.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/time.h: proceeding with the preprocessor's result
configure: WARNING: sys/time.h: in the future, the compiler will take precedence
checking for sys/time.h... yes
checking for sys/types.h... (cached) no
checking termio.h usability... no
checking termio.h presence... no
checking for termio.h... no
checking iconv.h usability... no
checking iconv.h presence... yes
configure: WARNING: iconv.h: present but cannot be compiled
configure: WARNING: iconv.h: check for missing prerequisite headers?
configure: WARNING: iconv.h: see the Autoconf documentation
configure: WARNING: iconv.h: section "Present But Cannot Be Compiled"
configure: WARNING: iconv.h: proceeding with the preprocessor's result
configure: WARNING: iconv.h: in the future, the compiler will take precedence
checking for iconv.h... yes
checking for inttypes.h... (cached) no
checking langinfo.h usability... no
checking langinfo.h presence... yes
configure: WARNING: langinfo.h: present but cannot be compiled
configure: WARNING: langinfo.h: check for missing prerequisite headers?
configure: WARNING: langinfo.h: see the Autoconf documentation
configure: WARNING: langinfo.h: section "Present But Cannot Be Compiled"
configure: WARNING: langinfo.h: proceeding with the preprocessor's result
configure: WARNING: langinfo.h: in the future, the compiler will take precedence
checking for langinfo.h... yes
checking math.h usability... no
checking math.h presence... yes
configure: WARNING: math.h: present but cannot be compiled
configure: WARNING: math.h: check for missing prerequisite headers?
configure: WARNING: math.h: see the Autoconf documentation
configure: WARNING: math.h: section "Present But Cannot Be Compiled"
configure: WARNING: math.h: proceeding with the preprocessor's result
configure: WARNING: math.h: in the future, the compiler will take precedence
checking for math.h... yes
checking for unistd.h... (cached) no
checking stropts.h usability... no
checking stropts.h presence... no
checking for stropts.h... no
checking errno.h usability... no
checking errno.h presence... yes
configure: WARNING: errno.h: present but cannot be compiled
configure: WARNING: errno.h: check for missing prerequisite headers?
configure: WARNING: errno.h: see the Autoconf documentation
configure: WARNING: errno.h: section "Present But Cannot Be Compiled"
configure: WARNING: errno.h: proceeding with the preprocessor's result
configure: WARNING: errno.h: in the future, the compiler will take precedence
checking for errno.h... yes
checking sys/resource.h usability... no
checking sys/resource.h presence... yes
configure: WARNING: sys/resource.h: present but cannot be compiled
configure: WARNING: sys/resource.h: check for missing prerequisite headers?
configure: WARNING: sys/resource.h: see the Autoconf documentation
configure: WARNING: sys/resource.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/resource.h: proceeding with the preprocessor's result
configure: WARNING: sys/resource.h: in the future, the compiler will take precedence
checking for sys/resource.h... yes
checking sys/systeminfo.h usability... no
checking sys/systeminfo.h presence... no
checking for sys/systeminfo.h... no
checking locale.h usability... no
checking locale.h presence... yes
configure: WARNING: locale.h: present but cannot be compiled
configure: WARNING: locale.h: check for missing prerequisite headers?
configure: WARNING: locale.h: see the Autoconf documentation
configure: WARNING: locale.h: section "Present But Cannot Be Compiled"
configure: WARNING: locale.h: proceeding with the preprocessor's result
configure: WARNING: locale.h: in the future, the compiler will take precedence
checking for locale.h... yes
checking sys/stream.h usability... no
checking sys/stream.h presence... no
checking for sys/stream.h... no
checking termios.h usability... no
checking termios.h presence... yes
configure: WARNING: termios.h: present but cannot be compiled
configure: WARNING: termios.h: check for missing prerequisite headers?
configure: WARNING: termios.h: see the Autoconf documentation
configure: WARNING: termios.h: section "Present But Cannot Be Compiled"
configure: WARNING: termios.h: proceeding with the preprocessor's result
configure: WARNING: termios.h: in the future, the compiler will take precedence
checking for termios.h... yes
checking libc.h usability... no
checking libc.h presence... yes
configure: WARNING: libc.h: present but cannot be compiled
configure: WARNING: libc.h: check for missing prerequisite headers?
configure: WARNING: libc.h: see the Autoconf documentation
configure: WARNING: libc.h: section "Present But Cannot Be Compiled"
configure: WARNING: libc.h: proceeding with the preprocessor's result
configure: WARNING: libc.h: in the future, the compiler will take precedence
checking for libc.h... yes
checking sys/statfs.h usability... no
checking sys/statfs.h presence... no
checking for sys/statfs.h... no
checking poll.h usability... no
checking poll.h presence... yes
configure: WARNING: poll.h: present but cannot be compiled
configure: WARNING: poll.h: check for missing prerequisite headers?
configure: WARNING: poll.h: see the Autoconf documentation
configure: WARNING: poll.h: section "Present But Cannot Be Compiled"
configure: WARNING: poll.h: proceeding with the preprocessor's result
configure: WARNING: poll.h: in the future, the compiler will take precedence
checking for poll.h... yes
checking sys/poll.h usability... no
checking sys/poll.h presence... yes
configure: WARNING: sys/poll.h: present but cannot be compiled
configure: WARNING: sys/poll.h: check for missing prerequisite headers?
configure: WARNING: sys/poll.h: see the Autoco==> Exit Status: 1
http://github.com/mxcl/homebrew/blob/master/Library/Formula/macvim.rb#L49
==> Environment
HOMEBREW_VERSION: 0.8
HEAD: 3d1a6ef3e896d456b2885bb6456d0114c02aab6f
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew
Hardware: dual-core 64-bit penryn
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.0
GCC-4.0: N/A
GCC-4.2: build 5666
LLVM: build 2335
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: -j2

Error: Failed executing: ./configure --with-macsdk=10.7 --with-features=huge --with-tlib=ncurses --enable-multibyte --with-macarchs=x86_64 --enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-tclinterp
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
We saved the configure log, please gist it if you report the issue:
~/Library/Logs/Homebrew/config.log
STDERR:
---- End output of brew install macvim --HEAD ----
Ran brew install macvim --HEAD returned 1