mxcl/homebrew — Issue #8151: "brew install --use-gcc geos" fails
Author: calvinchengx
Created: 2011-10-17 09:24:19+00:00
State: open

calvin$ brew install --use-gcc geos
Warning: Building with LLVM, but this formula is reported to not work with LLVM:

Some symbols are missing during link step.

We are continuing anyway so if the build succeeds, please open a ticket with
the following information: 2336-10.7. So
that we can update the formula accordingly. Thanks!

If it doesn't work you can: brew install --use-gcc

==> Downloading http://download.osgeo.org/geos/geos-3.3.0.tar.bz2
File already downloaded in /Users/calvin/Library/Caches/Homebrew
==> ./configure --prefix=/usr/local/Cellar/geos/3.3.0 --disable-debug
configure: WARNING: unrecognized options: --disable-debug
checking build system type... i386-apple-darwin11.2.0
checking host system type... i386-apple-darwin11.2.0
checking target system type... i386-apple-darwin11.2.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... /usr/bin/gcc-4.2
checking whether the C compiler works... no
configure: error: in `/private/tmp/homebrew-geos-3.3.0-DzoC/geos-3.3.0':
configure: error: C compiler cannot create executables
See `config.log' for more details.
==> Exit Status: 77
http://github.com/mxcl/homebrew/blob/master/Library/Formula/geos.rb#L19
==> Environment
/usr/bin/gcc
HOMEBREW_VERSION: 0.8
HEAD: 33b5ea5a392300db6488b966da61aa4730658253
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.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
"--use-gcc" was specified
CC: /usr/bin/gcc-4.2
CXX: /usr/bin/g++-4.2
LD: /usr/bin/cc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CFLAGS: -march=core2 -msse4.1 -w -pipe -O3
CXXFLAGS: -march=core2 -msse4.1 -w -pipe -O3
MAKEFLAGS: -j2

Error: Failed executing: ./configure --prefix=/usr/local/Cellar/geos/3.3.0 --disable-debug --disable-dependency-tracking
These existing issues may help you:
https://github.com/mxcl/homebrew/issues/7615
Otherwise, 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