Skip to content

Instantly share code, notes, and snippets.

@tbelaire
Created June 21, 2012 23:27
Show Gist options
  • Save tbelaire/2969233 to your computer and use it in GitHub Desktop.
Save tbelaire/2969233 to your computer and use it in GitHub Desktop.
brew install ipe failure log
$ brew install -v ipe
==> Downloading http://sourceforge.net/projects/ipe7/files/ipe/7.1.0/ipe-7.1.2-src.tar.gz
Already downloaded: /Library/Caches/Homebrew/ipe-7.1.2.tar.gz
/usr/bin/tar xf /Library/Caches/Homebrew/ipe-7.1.2.tar.gz
==> Patching
/usr/bin/patch -f -p1 -i 000-homebrew.diff
patching file src/config.mak
==> make IPEPREFIX=/usr/local/Cellar/ipe/7.1.2 install
make IPEPREFIX=/usr/local/Cellar/ipe/7.1.2 install
make --directory=ipelib all
make --directory=ipelets/lua all
make --directory=ipeui all
mkdir -p ../../build/obj/ipelib; echo "" > ../../build/obj/ipelib/depend.mak; for f in ipebase.cpp ipeplatform.cpp ipegeo.cpp ipexml.cpp ipeattributes.cpp ipebitmap.cpp ipedct.cpp ipeshape.cpp ipegroup.cpp ipeimage.cpp ipetext.cpp ipepath.cpp ipereference.cpp ipeobject.cpp ipefactory.cpp ipestdstyles.cpp ipeiml.cpp ipepage.cpp ipepainter.cpp ipepdfparser.cpp ipepdfwriter.cpp ipepswriter.cpp ipestyle.cpp ipesnap.cpp ipeutils.cpp ipelatex.cpp ipedoc.cpp ; do g++ -MM -MT ../../build/obj/ipelib/${f%%.cpp}.o -DIPEUI_QT -I../include -DIPEFONTMAP=\"/usr/local/Cellar/ipe/7.1.2/share/ipe/7.1.2/fontmap.xml\" $f >> ../../build/obj/ipelib/depend.mak; done
make[1]: Nothing to be done for `all'.
mkdir -p ../../build/obj/ipeui; echo "" > ../../build/obj/ipeui/depend.mak; for f in ipeui_common.cpp ipeui_qt.cpp; do g++ -MM -MT ../../build/obj/ipeui/${f%%.cpp}.o -DIPEUI_QT -DQT_SHARED -I/usr/local/Cellar/qt/4.8.2/include -I/usr/local/Cellar/qt/4.8.2/include/QtGui -I/usr/local/Cellar/qt/4.8.2/include/QtCore -I/usr/local/include $f >> ../../build/obj/ipeui/depend.mak; done
Compiling ipeui_common.cpp...
g++ -Os -w -pipe -march=native -Qunused-arguments -Wall -g -O2 -fpic -DIPEUI_QT -DQT_SHARED -I/usr/local/Cellar/qt/4.8.2/include -I/usr/local/Cellar/qt/4.8.2/include/QtGui -I/usr/local/Cellar/qt/4.8.2/include/QtCore -I/usr/local/include -c -o ../../build/obj/ipeui/ipeui_common.o ipeui_common.cpp
Compiling ipeui_qt.cpp...
Running moc on ipeui_qt.h...
moc -o moc_ipeui_qt.cpp ipeui_qt.h
ipeui_common.cpp:1: error: bad value (native) for -march= switch
ipeui_common.cpp:1: error: bad value (native) for -mtune= switch
g++ -Os -w -pipe -march=native -Qunused-arguments -Wall -g -O2 -fpic -DIPEUI_QT -DQT_SHARED -I/usr/local/Cellar/qt/4.8.2/include -I/usr/local/Cellar/qt/4.8.2/include/QtGui -I/usr/local/Cellar/qt/4.8.2/include/QtCore -I/usr/local/include -c -o ../../build/obj/ipeui/ipeui_qt.o ipeui_qt.cpp
make[1]: *** [../../build/obj/ipeui/ipeui_common.o] Error 1
make[1]: *** Waiting for unfinished jobs....
ipeui_qt.cpp:1: error: bad value (native) for -march= switch
ipeui_qt.cpp:1: error: bad value (native) for -mtune= switch
make[1]: *** [../../build/obj/ipeui/ipeui_qt.o] Error 1
rm moc_ipeui_qt.cpp
make: *** [ipeui] Error 2
make: *** Waiting for unfinished jobs....
Compiling ipebase.cpp...
Compiling ipeplatform.cpp...
g++ -Os -w -pipe -march=native -Qunused-arguments -Wall -g -O2 -fpic -DIPEUI_QT -I../include -DIPEFONTMAP=\"/usr/local/Cellar/ipe/7.1.2/share/ipe/7.1.2/fontmap.xml\" -c -o ../../build/obj/ipelib/ipeplatform.o ipeplatform.cpp
Compiling ipegeo.cpp...
g++ -Os -w -pipe -march=native -Qunused-arguments -Wall -g -O2 -fpic -DIPEUI_QT -I../include -DIPEFONTMAP=\"/usr/local/Cellar/ipe/7.1.2/share/ipe/7.1.2/fontmap.xml\" -c -o ../../build/obj/ipelib/ipebase.o ipebase.cpp
g++ -Os -w -pipe -march=native -Qunused-arguments -Wall -g -O2 -fpic -DIPEUI_QT -I../include -DIPEFONTMAP=\"/usr/local/Cellar/ipe/7.1.2/share/ipe/7.1.2/fontmap.xml\" -c -o ../../build/obj/ipelib/ipegeo.o ipegeo.cpp
Compiling ipexml.cpp...
g++ -Os -w -pipe -march=native -Qunused-arguments -Wall -g -O2 -fpic -DIPEUI_QT -I../include -DIPEFONTMAP=\"/usr/local/Cellar/ipe/7.1.2/share/ipe/7.1.2/fontmap.xml\" -c -o ../../build/obj/ipelib/ipexml.o ipexml.cpp
ipegeo.cpp:1: error: bad value (native) for -march= switch
ipeplatform.cpp:1: error: bad value (native) for -march= switch
ipegeo.cpp:1: error: bad value (native) for -mtune= switchipeplatform.cpp:1: error: bad value (native) for -mtune= switch
ipebase.cpp:1: error: bad value (native) for -march= switch
ipebase.cpp:1: error: bad value (native) for -mtune= switch
make[1]: *** [../../build/obj/ipelib/ipegeo.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [../../build/obj/ipelib/ipeplatform.o] Error 1
make[1]: *** [../../build/obj/ipelib/ipebase.o] Error 1
ipexml.cpp:1: error: bad value (native) for -march= switch
ipexml.cpp:1: error: bad value (native) for -mtune= switch
make[1]: *** [../../build/obj/ipelib/ipexml.o] Error 1
make: *** [ipelib] Error 2
==> Exit Status: 2
https://github.com/mxcl/master/blob/master/Library/Formula/ipe.rb#L22
==> Build Environment
CPU: quad-core 64-bit sandybridge
MacOS: 10.7.4-x86_64
Xcode: 4.3
CC: /usr/bin/clang
CXX: /usr/bin/clang++ => /usr/bin/clang
LD: /usr/bin/clang
CFLAGS: -Os -w -pipe -march=native -Qunused-arguments
CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments
MAKEFLAGS: -j4
Error: Failed executing: make IPEPREFIX=/usr/local/Cellar/ipe/7.1.2 install (ipe.rb:22)
If `brew doctor' does not help diagnose the issue, please report the bug:
https://github.com/mxcl/homebrew/wiki/reporting-bugs
$ brew doctor
Error: You may have installed MacGPG2 via the package installer.
Several other checks in this script will turn up problems, such as stray
dylibs in /usr/local and permissions issues with share and man in /usr/local/.
$ brew --config
HOMEBREW_VERSION: 0.9
HEAD: d0d65f03a7aac075c8d7c1201f2e23b216ec24fd
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit sandybridge
OS X: 10.7.4
Kernel Architecture: x86_64
Xcode: 4.3
GCC-4.0: N/A
GCC-4.2: N/A
LLVM: build 2336
Clang: 3.1 build 318
MacPorts or Fink? false
X11: /usr/X11
System Ruby: 1.8.7-357
Which Perl: /usr/bin/perl
Which Python: /usr/bin/python
Which Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment