Skip to content

Instantly share code, notes, and snippets.

@FrankDMartinez
Created November 11, 2011 17:46
Show Gist options
  • Save FrankDMartinez/1358666 to your computer and use it in GitHub Desktop.
Save FrankDMartinez/1358666 to your computer and use it in GitHub Desktop.
Homebrew problem installing Portaudio on OS X 10.5 with GCC 4.2
==> Downloading http://www.portaudio.com/archives/pa_stable_v19_20071207.tar.gz
File already downloaded in /Users/Frank/Library/Caches/Homebrew
/usr/bin/tar xf /Users/Frank/Library/Caches/Homebrew/portaudio-19.20071207.tar.gz
==> ./configure --prefix=/usr/local/Cellar/portaudio/19.20071207 --disable-debug --disable-dependency-tracking
./configure --prefix=/usr/local/Cellar/portaudio/19.20071207 --disable-debug --disable-dependency-tracking
checking for gcc... /usr/bin/gcc-4.2
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 /usr/bin/gcc-4.2 accepts -g... yes
checking for /usr/bin/gcc-4.2 option to accept ANSI C... none needed
checking build system type... i686-apple-darwin9.8.0
checking host system type... i686-apple-darwin9.8.0
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
checking for ld used by /usr/bin/gcc-4.2... /usr/bin/gcc-4.2
checking if the linker (/usr/bin/gcc-4.2) is GNU ld... no
checking for /usr/bin/gcc-4.2 option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -p
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... /usr/bin/gcc-4.2 -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/bin/g++-4.2 accepts -g... yes
checking how to run the C++ preprocessor... /usr/bin/g++-4.2 -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm -p output from /usr/bin/gcc-4.2 object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for correct ltmain.sh version... yes
checking if /usr/bin/gcc-4.2 supports -fno-rtti -fno-exceptions... yes
checking for /usr/bin/gcc-4.2 option to produce PIC... -fno-common
checking if /usr/bin/gcc-4.2 PIC flag -fno-common works... yes
checking if /usr/bin/gcc-4.2 static flag -static works... no
checking if /usr/bin/gcc-4.2 supports -c -o file.o... yes
checking whether the /usr/bin/gcc-4.2 linker (/usr/bin/gcc-4.2) supports shared libraries... yes
checking dynamic linker characteristics... darwin9.8.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by /usr/bin/g++-4.2... /usr/bin/gcc-4.2
checking if the linker (/usr/bin/gcc-4.2) is GNU ld... no
checking whether the /usr/bin/g++-4.2 linker (/usr/bin/gcc-4.2) supports shared libraries... yes
checking for /usr/bin/g++-4.2 option to produce PIC... -fno-common
checking if /usr/bin/g++-4.2 PIC flag -fno-common works... yes
checking if /usr/bin/g++-4.2 static flag -static works... no
checking if /usr/bin/g++-4.2 supports -c -o file.o... yes
checking whether the /usr/bin/g++-4.2 linker (/usr/bin/gcc-4.2) supports shared libraries... yes
checking dynamic linker characteristics... darwin9.8.0 dyld
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for ar... /usr/bin/ar
checking whether byte ordering is bigendian... no
checking for snd_pcm_open in -lasound... no
checking for HPI_SubSysCreate in -lhpi... no
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for JACK... checking sys/soundcard.h usability... no
checking sys/soundcard.h presence... no
checking for sys/soundcard.h... no
checking linux/soundcard.h usability... no
checking linux/soundcard.h presence... no
checking for linux/soundcard.h... no
checking machine/soundcard.h usability... no
checking machine/soundcard.h presence... no
checking for machine/soundcard.h... no
checking for short... yes
checking size of short... 2
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for clock_gettime in -lrt... no
checking for clock_gettime... no
checking for nanosleep... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating portaudio-2.0.pc
==> make install
make install
mkdir lib
/bin/sh ./libtool --mode=compile /usr/bin/gcc-4.2 -c -I./include -I./src/common -I./src/os/unix -Werror -O3 -march=nocona -mfpmath=sse -w -pipe -DPA_LITTLE_ENDIAN -arch x86_64 -arch ppc64 -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.3 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DHAVE_NANOSLEEP=1 -DPA_USE_COREAUDIO=1 src/common/pa_allocation.c -o src/common/pa_allocation.lo
mkdir -p \
src/common \
src/hostapi/alsa \
src/hostapi/asihpi \
src/hostapi/asio \
src/hostapi/coreaudio \
src/hostapi/dsound \
src/hostapi/jack \
src/hostapi/oss \
src/hostapi/wasapi \
src/hostapi/wdmks \
src/hostapi/wmme \
src/os/mac_osx \
src/os/unix \
src/os/win
touch lib-stamp
/bin/sh ./libtool --mode=compile /usr/bin/gcc-4.2 -c -I./include -I./src/common -I./src/os/unix -Werror -O3 -march=nocona -mfpmath=sse -w -pipe -DPA_LITTLE_ENDIAN -arch x86_64 -arch ppc64 -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.3 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DHAVE_NANOSLEEP=1 -DPA_USE_COREAUDIO=1 src/common/pa_converters.c -o src/common/pa_converters.lo
mkdir src/common/.libs
mkdir src/common/.libs
mkdir: src/common/.libs: File exists
/usr/bin/gcc-4.2 -c -I./include -I./src/common -I./src/os/unix -Werror -O3 -march=nocona -mfpmath=sse -w -pipe -DPA_LITTLE_ENDIAN -arch x86_64 -arch ppc64 -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.3 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DHAVE_NANOSLEEP=1 -DPA_USE_COREAUDIO=1 src/common/pa_converters.c -fno-common -DPIC -o src/common/.libs/pa_converters.o
/usr/bin/gcc-4.2 -c -I./include -I./src/common -I./src/os/unix -Werror -O3 -march=nocona -mfpmath=sse -w -pipe -DPA_LITTLE_ENDIAN -arch x86_64 -arch ppc64 -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.3 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DHAVE_NANOSLEEP=1 -DPA_USE_COREAUDIO=1 src/common/pa_allocation.c -fno-common -DPIC -o src/common/.libs/pa_allocation.o
cc1: error: unrecognized command line option "-march=nocona"
cc1: error: unrecognized command line option "-mfpmath=sse"
cc1: error: unrecognized command line option "-march=nocona"
cc1: error: unrecognized command line option "-mfpmath=sse"
lipo: can't open input file: /var/folders/Qe/QeIh0fytEYaAKflcqHsxaU+++TI/-Tmp-//ccgmVP6B.out (No such file or directory)
make: *** [src/common/pa_allocation.lo] Error 1
make: *** Waiting for unfinished jobs....
cc1: error: unrecognized command line option "-march=nocona"
cc1: error: unrecognized command line option "-mfpmath=sse"
cc1: error: unrecognized command line option "-march=nocona"
cc1: error: unrecognized command line option "-mfpmath=sse"
lipo: can't open input file: /var/folders/Qe/QeIh0fytEYaAKflcqHsxaU+++TI/-Tmp-//ccvoOC0m.out (No such file or directory)
make: *** [src/common/pa_converters.lo] Error 1
==> Exit Status: 2
http://github.com/mxcl/homebrew/blob/master/Library/Formula/portaudio.rb#L29
==> Environment
HOMEBREW_VERSION: 0.8
HEAD: b1772942f714895627137ee4ed98085761b9bb3d
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.5.8
Kernel Architecture: i386
Ruby: 1.8.6-369
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Xcode: 3.1.4
GCC-4.0: build 5493
GCC-4.2: build 5577
LLVM: N/A
MacPorts or Fink? false
X11 installed? true
==> Build Flags
CC: /usr/bin/gcc-4.2
CXX: /usr/bin/g++-4.2
LD: /usr/bin/gcc-4.2
CFLAGS: -O3 -march=nocona -mfpmath=sse -w -pipe
CXXFLAGS: -O3 -march=nocona -mfpmath=sse -w -pipe
MAKEFLAGS: -j2
PKG_CONFIG_PATH: /usr/local/Cellar/glib/2.28.8/lib/pkgconfig/
Error: Failed executing: make install
These existing issues may help you:
https://github.com/mxcl/homebrew/issues/6855
https://github.com/mxcl/homebrew/issues/8464
Otherwise, please report the bug:
https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment