Skip to content

Instantly share code, notes, and snippets.

@sdornan
Created August 24, 2011 22:37
Show Gist options
  • Save sdornan/1169473 to your computer and use it in GitHub Desktop.
Save sdornan/1169473 to your computer and use it in GitHub Desktop.
==> Downloading http://kernel.org/pub/software/scm/git/git-1.7.6.tar.bz2
File already downloaded in /Users/sdornan/Library/Caches/Homebrew
/usr/bin/tar xf /Users/sdornan/Library/Caches/Homebrew/git-1.7.6.tar.bz2
==> make prefix=/usr/local/Cellar/git/1.7.6 install
make prefix=/usr/local/Cellar/git/1.7.6 install
GIT_VERSION = 1.7.6
* new build flags or prefix
./generate-cmdlist.sh > common-cmds.h+ && mv common-cmds.h+ common-cmds.h
gcc -o hex.o -c -O3 -march=native -w -pipe -I. -DUSE_ST_TIMESPEC -DSHA1_HEADER='<openssl/sha.h>' -DNO_MEMMEM hex.c
gcc -o ident.o -c -O3 -march=native -w -pipe -I. -DUSE_ST_TIMESPEC -DSHA1_HEADER='<openssl/sha.h>' -DNO_MEMMEM ident.c
gcc -o levenshtein.o -c -O3 -march=native -w -pipe -I. -DUSE_ST_TIMESPEC -DSHA1_HEADER='<openssl/sha.h>' -DNO_MEMMEM levenshtein.c
gcc -o list-objects.o -c -O3 -march=native -w -pipe -I. -DUSE_ST_TIMESPEC -DSHA1_HEADER='<openssl/sha.h>' -DNO_MEMMEM list-objects.c
gcc -o ll-merge.o -c -O3 -march=native -w -pipe -I. -DUSE_ST_TIMESPEC -DSHA1_HEADER='<openssl/sha.h>' -DNO_MEMMEM ll-merge.c
gcc -o lockfile.o -c -O3 -march=native -w -pipe -I. -DUSE_ST_TIMESPEC -DSHA1_HEADER='<openssl/sha.h>' -DNO_MEMMEM lockfile.c
gcc -o log-tree.o -c -O3 -march=native -w -pipe -I. -DUSE_ST_TIMESPEC -DSHA1_HEADER='<openssl/sha.h>' -DNO_MEMMEM log-tree.c
hex.c:1: error: bad value (native) for -march= switch
hex.c:1: error: bad value (native) for -mtune= switch
levenshtein.c:1: error: bad value (native) for -march= switch
levenshtein.c:1: error: bad value (native) for -mtune= switch
ident.c:1: error: bad value (native) for -march= switch
ident.c:1: error: bad value (native) for -mtune= switch
ll-merge.c:1: error: bad value (native) for -march= switch
ll-merge.c:1: error: bad value (native) for -mtune= switch
list-objects.c:1: error: bad value (native) for -march= switch
list-objects.c:1: error: bad value (native) for -mtune= switch
lockfile.c:1: error: bad value (native) for -march= switch
lockfile.c:1: error: bad value (native) for -mtune= switch
make: *** [levenshtein.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [hex.o] Error 1
make: *** [ident.o] Error 1
make: *** [list-objects.o] Error 1
make: *** [ll-merge.o] Error 1
make: *** [lockfile.o] Error 1
log-tree.c:1: error: bad value (native) for -march= switch
log-tree.c:1: error: bad value (native) for -mtune= switch
make: *** [log-tree.o] Error 1
==> Exit Status: 2
http://github.com/mxcl/homebrew/blob/master/Library/Formula/git.rb#L40
==> Environment
HOMEBREW_VERSION: 0.8
HEAD: fff60b5e5ec99882e0ea976de20fb3e72fab2cfe
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew
Hardware: 8-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.1
GCC-4.0: N/A
GCC-4.2: build 5666
LLVM: build 2335
MacPorts or Fink? false
X11 installed? true
==> Build Flags
CC: /usr/bin/cc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CXX: /usr/bin/c++ => /usr/llvm-gcc-4.2/bin/llvm-g++-4.2
LD: /usr/bin/cc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CFLAGS: -O3 -march=native -w -pipe
CXXFLAGS: -O3 -march=native -w -pipe
MAKEFLAGS: -j8
Error: Failed executing: make prefix=/usr/local/Cellar/git/1.7.6 install
Please report this bug: https://github.com/mxcl/homebrew/wiki/Checklist-before-filing-a-new-issue
These existing issues may help you:
https://github.com/mxcl/homebrew/issues/#issue/5692
https://github.com/mxcl/homebrew/issues/#issue/5739
https://github.com/mxcl/homebrew/issues/#issue/6087
https://github.com/mxcl/homebrew/issues/#issue/6096
https://github.com/mxcl/homebrew/issues/#issue/6103
https://github.com/mxcl/homebrew/issues/#issue/6257
https://github.com/mxcl/homebrew/issues/#issue/6362
https://github.com/mxcl/homebrew/issues/#issue/6723
https://github.com/mxcl/homebrew/issues/#issue/6820
https://github.com/mxcl/homebrew/issues/#issue/6906
https://github.com/mxcl/homebrew/issues/#issue/6971
https://github.com/mxcl/homebrew/issues/#issue/7059
https://github.com/mxcl/homebrew/issues/#issue/7101
https://github.com/mxcl/homebrew/issues/#issue/7124
https://github.com/mxcl/homebrew/issues/#issue/7154
Also try:
`brew doctor` to check your setup for common problems.
`brew missing` to check installed packages for missing deps.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment