/omfg
Created
July 21, 2011 07:49
brew git xcode lion the hell.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
thoid:~ timoxley$ gcc | |
-bash: gcc: command not found | |
thoid:~ timoxley$ brew install git | |
==> Downloading http://kernel.org/pub/software/scm/git/git-1.7.6.tar.bz2 | |
File already downloaded in /Users/timoxley/Library/Caches/Homebrew | |
==> make prefix=/usr/local/Cellar/git/1.7.6 install | |
==> Exit Status: 1 | |
http://github.com/mxcl/homebrew/blob/master/Library/Formula/git.rb#L31 | |
==> Environment | |
HOMEBREW_VERSION: 0.8 | |
HEAD: (none) | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_CELLAR: /usr/local/Cellar | |
HOMEBREW_REPOSITORY: /usr/local | |
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew | |
Hardware: quad-core 64-bit sandybridge | |
OS X: 10.7 | |
Kernel Architecture: x86_64 | |
Ruby: 1.8.7-249 | |
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby | |
Xcode: | |
GCC-4.0: N/A | |
GCC-4.2: N/A | |
LLVM: build 2335 | |
MacPorts or Fink? false | |
X11 installed? true | |
==> Build Flags | |
CC: /usr/bin/cc | |
CXX: /usr/bin/c++ | |
LD: /usr/bin/cc | |
CFLAGS: -O3 -w -pipe | |
CXXFLAGS: -O3 -w -pipe | |
MAKEFLAGS: -j4 | |
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/3101 | |
https://github.com/mxcl/homebrew/issues/#issue/5105 | |
https://github.com/mxcl/homebrew/issues/#issue/5607 | |
https://github.com/mxcl/homebrew/issues/#issue/5692 | |
https://github.com/mxcl/homebrew/issues/#issue/5739 | |
https://github.com/mxcl/homebrew/issues/#issue/5758 | |
https://github.com/mxcl/homebrew/issues/#issue/5889 | |
https://github.com/mxcl/homebrew/issues/#issue/6087 | |
https://github.com/mxcl/homebrew/issues/#issue/6103 | |
https://github.com/mxcl/homebrew/issues/#issue/6253 | |
https://github.com/mxcl/homebrew/issues/#issue/6257 | |
https://github.com/mxcl/homebrew/issues/#issue/6292 | |
https://github.com/mxcl/homebrew/issues/#issue/6323 | |
https://github.com/mxcl/homebrew/issues/#issue/6491 | |
Also try: | |
`brew doctor` to check your setup for common problems. | |
`brew missing` to check installed packages for missing deps. | |
thoid:~ timoxley$ brew doctor | |
We couldn't detect gcc 4.2.x. Some formulae require this compiler. | |
We couldn't detect gcc 4.0.x. Some formulae require this compiler. | |
"Git" was not found in your path. | |
Homebrew uses Git for several internal functions, and some formulae | |
use Git checkouts instead of stable tarballs. | |
You may want to install git: | |
brew install git | |
thoid:~ timoxley$ echo '# Bullshit OSX Lion Fix | |
> export PATH="/Developer/usr/bin:$PATH"' >> ~/.bash_profile | |
thoid:~ timoxley$ source ~/.bash_profile | |
thoid:~ timoxley$ brew doctor | |
/Developer/usr/bin/gcc | |
/Developer/usr/bin/gcc | |
Your gcc 4.2.x version is older than the recommended version. It may be advisable | |
to upgrade to the latest release of Xcode. | |
We couldn't detect gcc 4.0.x. Some formulae require this compiler. | |
"Git" was not found in your path. | |
Homebrew uses Git for several internal functions, and some formulae | |
use Git checkouts instead of stable tarballs. | |
You may want to install git: | |
brew install git | |
thoid:~ timoxley$ brew install git | |
==> Downloading http://kernel.org/pub/software/scm/git/git-1.7.6.tar.bz2 | |
File already downloaded in /Users/timoxley/Library/Caches/Homebrew | |
==> 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 -w -pipe -I. -DUSE_ST_TIMESPEC -DSHA1_HEADER='<openssl/sha.h>' -DNO_MEMMEM hex.c | |
gcc -o ident.o -c -O3 -w -pipe -I. -DUSE_ST_TIMESPEC -DSHA1_HEADER='<openssl/sha.h>' -DNO_MEMMEM ident.c | |
gcc -o levenshtein.o -c -O3 -w -pipe -I. -DUSE_ST_TIMESPEC -DSHA1_HEADER='<openssl/sha.h>' -DNO_MEMMEM levenshtein.c | |
In file included from cache.h:4, | |
from ident.c:8: | |
git-compat-util.h:93:20: error: unistd.h: No such file or directory | |
git-compat-util.h:94:19: error: stdio.h: No such file or directory | |
git-compat-util.h:95:22: error: sys/stat.h: No such file or directory | |
In file included from cache.h:4, | |
from hex.c:1: | |
git-compat-util.h:96:19:git-compat-util.h:93:20: error: error: fcntl.h: No such file or directory | |
unistd.h: No such file or directory | |
git-compat-util.h:94:19: error: stdio.h: No such file or directory | |
git-compat-util.h:95:22: error: sys/stat.h: No such file or directory | |
git-compat-util.h:96:19: error: fcntl.h: No such file or directory | |
In file included from cache.h:4, | |
from levenshtein.c:1: | |
git-compat-util.h:93:20: error: unistd.h: No such file or directory | |
git-compat-util.h:94:19: error: stdio.h: No such file or directory | |
git-compat-util.h:95:22: error: sys/stat.h: No such file or directory | |
git-compat-util.h:96:19: error: fcntl.h: No such file or directory | |
git-compat-util.h:98:20: error: stdlib.h: No such file or directory | |
git-compat-util.h:100:20: error: string.h: No such file or directory | |
git-compat-util.h:101:19: error: errno.h: No such file or directory | |
git-compat-util.h:98:20: error: stdlib.h: No such file or directory | |
In file included from git-compat-util.h:102, | |
from cache.h:4, | |
from hex.c:1: | |
/Developer/usr/bin/../lib/gcc/i686-apple-darwin10/4.2.1/include/limits.h:10:25: error: limits.h: No such file or directory | |
In file included from cache.h:4, | |
from hex.c:1: | |
git-compat-util.h:103:23:git-compat-util.h:98:20:git-compat-util.h:100:20: error: error: stdlib.h: No such file or directory | |
error: sys/param.h: No such file or directory | |
git-compat-util.h:104:23: error: sys/types.h: No such file or directory | |
git-compat-util.h:105:20: error: dirent.h: No such file or directory | |
git-compat-util.h:106:22: error: sys/time.h: No such file or directory | |
git-compat-util.h:107:18: error: git-compat-util.h:100:20: time.h: No such file or directory | |
string.h: No such file or directoryerror: string.h: No such file or directory | |
git-compat-util.h:108:20: git-compat-util.h:101:19: error: error: signal.h: No such file or directory | |
errno.h: No such file or directory | |
git-compat-util.h:101:19: error: errno.h: No such file or directory | |
git-compat-util.h:109:21: error: fnmatch.h: No such file or directory | |
git-compat-util.h:110:20: error: assert.h: No such file or directory | |
In file included from git-compat-util.h:102, | |
from cache.h:4, | |
from ident.c:8: | |
/Developer/usr/bin/../lib/gcc/i686-apple-darwin10/4.2.1/include/limits.h:10:25: git-compat-util.h:111:19: error: In file included from git-compat-util.h:102error: limits.h: No such file or directory | |
, | |
from cache.h:4regex.h: No such file or directory | |
, | |
from levenshtein.c:1: | |
/Developer/usr/bin/../lib/gcc/i686-apple-darwin10/4.2.1/include/limits.h:10:25: error: limits.h: No such file or directory | |
git-compat-util.h:112:19: error: utime.h: No such file or directory | |
git-compat-util.h:113:20: error: syslog.h: No such file or directory | |
git-compat-util.h:115:22: error: sys/poll.h: No such file or directory | |
In file included from cache.h:4, | |
from ident.c:8: | |
git-compat-util.h:103:23: error: git-compat-util.h:120:22:sys/param.h: No such file or directory | |
In file included from cache.h:4error: , | |
from levenshtein.c:1sys/wait.h: No such file or directory: | |
git-compat-util.h:103:23: error: git-compat-util.h:104:23: sys/param.h: No such file or directory | |
error: git-compat-util.h:121:26:sys/types.h: No such file or directory | |
error: sys/resource.h: No such file or directory | |
git-compat-util.h:104:23: git-compat-util.h:105:20:error: sys/types.h: No such file or directoryerror: | |
dirent.h: No such file or directorygit-compat-util.h:122:24: | |
error: sys/socket.h: No such file or directory | |
git-compat-util.h:105:20: error: git-compat-util.h:106:22: dirent.h: No such file or directory | |
error: git-compat-util.h:123:23:sys/time.h: No such file or directory | |
error: sys/ioctl.h: No such file or directory | |
git-compat-util.h:106:22: error: sys/time.h: No such file or directorygit-compat-util.h:107:18: | |
error: git-compat-util.h:124:21:time.h: No such file or directory | |
error: git-compat-util.h:107:18: termios.h: No such file or directory | |
error: git-compat-util.h:108:20: time.h: No such file or directory | |
error: signal.h: No such file or directory | |
git-compat-util.h:126:24: git-compat-util.h:108:20:error: sys/select.h: No such file or directorygit-compat-util.h:109:21: | |
error: fnmatch.h: No such file or directory | |
error: signal.h: No such file or directory | |
git-compat-util.h:110:20:git-compat-util.h:128:24: error: error: git-compat-util.h:109:21:netinet/in.h: No such file or directory | |
error: fnmatch.h: No such file or directory | |
assert.h: No such file or directory | |
git-compat-util.h:129:25: error: git-compat-util.h:110:20: netinet/tcp.h: No such file or directory | |
error: assert.h: No such file or directory | |
git-compat-util.h:111:19: error: regex.h: No such file or directory | |
git-compat-util.h:111:19: git-compat-util.h:130:23: error: error: regex.h: No such file or directory | |
git-compat-util.h:112:19:arpa/inet.h: No such file or directory | |
error: utime.h: No such file or directory | |
git-compat-util.h:112:19: error: utime.h: No such file or directory | |
git-compat-util.h:113:20: error: git-compat-util.h:131:19: syslog.h: No such file or directorygit-compat-util.h:113:20: | |
error: netdb.h: No such file or directory | |
error: git-compat-util.h:115:22: syslog.h: No such file or directory | |
error: git-compat-util.h:132:17:sys/poll.h: No such file or directory | |
error: pwd.h: No such file or directory | |
git-compat-util.h:115:22: error: git-compat-util.h:120:22: sys/poll.h: No such file or directory | |
error: sys/wait.h: No such file or directorygit-compat-util.h:134:22: error: inttypes.h: No such file or directory | |
git-compat-util.h:120:22: error: sys/wait.h: No such file or directory | |
git-compat-util.h:145:17:git-compat-util.h:121:26: error: git-compat-util.h:121:26: grp.h: No such file or directory | |
error: error: sys/resource.h: No such file or directory | |
sys/resource.h: No such file or directory | |
git-compat-util.h:122:24:git-compat-util.h:157:20: git-compat-util.h:122:24:error: libgen.h: No such file or directory | |
error: error: sys/socket.h: No such file or directory | |
sys/socket.h: No such file or directory | |
git-compat-util.h:123:23:git-compat-util.h:164:19: error: iconv.h: No such file or directory | |
git-compat-util.h:123:23: error: error: sys/ioctl.h: No such file or directory | |
sys/ioctl.h: No such file or directory | |
git-compat-util.h:168:25: error: git-compat-util.h:124:21: openssl/ssl.h: No such file or directorygit-compat-util.h:124:21: | |
error: termios.h: No such file or directory | |
error: git-compat-util.h:169:25: error: termios.h: No such file or directoryopenssl/err.h: No such file or directory | |
git-compat-util.h:126:24: error: sys/select.h: No such file or directory | |
git-compat-util.h:128:24: error: netinet/in.h: No such file or directory | |
git-compat-util.h:129:25:git-compat-util.h:126:24: error: sys/select.h: No such file or directory | |
error: netinet/tcp.h: No such file or directory | |
git-compat-util.h:128:24: error: netinet/in.h: No such file or directoryIn file included from git-compat-util.h:235, | |
from cache.h:4, | |
from hex.c:1: | |
compat/bswap.h:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘default_swab32’ | |
git-compat-util.h:130:23: error: arpa/inet.h: No such file or directory | |
compat/bswap.h:25: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘git_bswap32’ | |
git-compat-util.h:129:25: error: git-compat-util.h:131:19: netinet/tcp.h: No such file or directory | |
error: netdb.h: No such file or directory | |
git-compat-util.h:130:23: git-compat-util.h:132:17: error: pwd.h: No such file or directory | |
git-compat-util.h:134:22: error: error: arpa/inet.h: No such file or directoryinttypes.h: No such file or directory | |
git-compat-util.h:145:17: git-compat-util.h:131:19: error: error: grp.h: No such file or directory | |
netdb.h: No such file or directory | |
git-compat-util.h:132:17: git-compat-util.h:157:20: error: error: pwd.h: No such file or directory | |
libgen.h: No such file or directory | |
git-compat-util.h:134:22: git-compat-util.h:164:19:error: inttypes.h: No such file or directory | |
error: iconv.h: No such file or directory | |
git-compat-util.h:145:17: error: grp.h: No such file or directory | |
git-compat-util.h:168:25: error: openssl/ssl.h: No such file or directorygit-compat-util.h:157:20: | |
error: libgen.h: No such file or directory | |
git-compat-util.h:169:25: error: openssl/err.h: No such file or directory | |
git-compat-util.h:164:19: error: iconv.h: No such file or directory | |
git-compat-util.h:168:25: error: openssl/ssl.h: No such file or directory | |
git-compat-util.h:169:25: error: openssl/err.h: No such file or directory | |
In file included from git-compat-util.h:235, | |
from cache.h:4, | |
from ident.c:8: | |
compat/bswap.h:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘default_swab32’ | |
compat/bswap.h:25: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘git_bswap32’ | |
In file included from git-compat-util.h:235, | |
from cache.h:4, | |
from levenshtein.c:1: | |
compat/bswap.h:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘default_swab32’ | |
compat/bswap.h:25: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘git_bswap32’ | |
git-compat-util.h:272:22: error: sys/mman.h: No such file or directory | |
In file included from cache.h:4, | |
from hex.c:1: | |
git-compat-util.h:313: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘read_in_full’ | |
git-compat-util.h:272:22: error: sys/mman.h: No such file or directory | |
git-compat-util.h:272:22: In file included from cache.h:4, | |
from ident.c:8: | |
git-compat-util.h:313: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘read_in_full’error: | |
sys/mman.h: No such file or directory | |
In file included from cache.h:4, | |
from levenshtein.c:1: | |
git-compat-util.h:313: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘read_in_full’ | |
git-compat-util.h:428: error: expected declaration specifiers or ‘...’ before ‘off_t’ | |
git-compat-util.h:429: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘xread’ | |
git-compat-util.h:430: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘xwrite’ | |
git-compat-util.h:432: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token | |
git-compat-util.h:438: error: expected ‘)’ before ‘len’ | |
git-compat-util.h:428: error: expected declaration specifiers or ‘...’ before ‘off_t’ | |
git-compat-util.h:429: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘xread’ | |
git-compat-util.h:430: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘xwrite’ | |
git-compat-util.h:432: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token | |
git-compat-util.h:428: error: expected declaration specifiers or ‘...’ before ‘off_t’ | |
git-compat-util.h:429: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘xread’ | |
git-compat-util.h:430: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘xwrite’ | |
git-compat-util.h:438: error: expected ‘)’ before ‘len’ | |
git-compat-util.h:432: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token | |
git-compat-util.h: In function ‘strtoul_ui’: | |
git-compat-util.h:491: error: ‘errno’ undeclared (first use in this function) | |
git-compat-util.h:438: error: expected ‘)’ before ‘len’ | |
git-compat-util.h:491: error: (Each undeclared identifier is reported only once | |
git-compat-util.h:491: error: for each function it appears in.) | |
git-compat-util.h: In function ‘strtol_i’: | |
git-compat-util.h:504: error: ‘errno’ undeclared (first use in this function) | |
git-compat-util.h: In function ‘strtoul_ui’: | |
git-compat-util.h:491: error: ‘errno’ undeclared (first use in this function) | |
git-compat-util.h: In function ‘strtoul_ui’: | |
git-compat-util.h:491: error: (Each undeclared identifier is reported only once | |
git-compat-util.h:491: error: ‘errno’ undeclared (first use in this function) | |
git-compat-util.h:491: error: for each function it appears in.) | |
git-compat-util.h:491: error: (Each undeclared identifier is reported only once | |
git-compat-util.h:491: error: for each function it appears in.) | |
git-compat-util.h: In function ‘strtol_i’: | |
git-compat-util.h:504: error: ‘errno’ undeclared (first use in this function) | |
git-compat-util.h: In function ‘strtol_i’: | |
git-compat-util.h:504: error: ‘errno’ undeclared (first use in this function) | |
In file included from cache.h:5, | |
from hex.c:1: | |
strbuf.h: At top level: | |
strbuf.h:88: error: expected declaration specifiers or ‘...’ before ‘FILE’ | |
strbuf.h:90: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strbuf_read’ | |
strbuf.h:94: error: expected declaration specifiers or ‘...’ before ‘FILE’ | |
strbuf.h:95: error: expected declaration specifiers or ‘...’ before ‘FILE’ | |
In file included from cache.h:5, | |
from levenshtein.c:1: | |
strbuf.h: At top level: | |
strbuf.h:88: error: expected declaration specifiers or ‘...’ before ‘FILE’ | |
In file included from cache.h:5, | |
from ident.c:8: | |
strbuf.h: At top level: | |
strbuf.h:90: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strbuf_read’ | |
strbuf.h:88: error: expected declaration specifiers or ‘...’ before ‘FILE’ | |
strbuf.h:90: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strbuf_read’ | |
strbuf.h:94: error: expected declaration specifiers or ‘...’ before ‘FILE’ | |
strbuf.h:95: error: expected declaration specifiers or ‘...’ before ‘FILE’ | |
strbuf.h:94: error: expected declaration specifiers or ‘...’ before ‘FILE’ | |
strbuf.h:95: error: expected declaration specifiers or ‘...’ before ‘FILE’ | |
In file included from hex.c:1: | |
cache.h:10:21: error: openssl/sha.h: No such file or directory | |
cache.h:18:18: error: zlib.h: No such file or directory | |
In file included from hex.c:1: | |
cache.h:23: error: expected ‘)’ before ‘strm’ | |
cache.h:24: error: expected ‘)’ before ‘strm’ | |
cache.h:25: error: expected ‘)’ before ‘strm’ | |
In file included from levenshtein.c:1: | |
cache.h:10:21: error: openssl/sha.h: No such file or directory | |
cache.h:18:18: error: zlib.h: No such file or directory | |
In file included from levenshtein.c:1: | |
cache.h:23: error: expected ‘)’ before ‘strm’ | |
cache.h:24: error: expected ‘)’ before ‘strm’ | |
In file included from ident.c:8: | |
cache.h:10:21: error: cache.h:25: error: expected ‘)’ before ‘strm’ | |
openssl/sha.h: No such file or directory | |
cache.h:18:18: error: zlib.h: No such file or directory | |
In file included from ident.c:8: | |
cache.h:23: error: expected ‘)’ before ‘strm’ | |
cache.h:24: error: expected ‘)’ before ‘strm’ | |
cache.h:25: error: expected ‘)’ before ‘strm’ | |
cache.h: In function ‘create_ce_mode’: | |
cache.h:251: error: ‘S_IFLNK’ undeclared (first use in this function) | |
cache.h:252: error: ‘S_IFMT’ undeclared (first use in this function) | |
cache.h:254: error: ‘S_IFREG’ undeclared (first use in this function) | |
cache.h: In function ‘create_ce_mode’: | |
cache.h:251: error: ‘S_IFLNK’ undeclared (first use in this function) | |
cache.h: In function ‘ce_to_dtype’: | |
cache.h:274: error: ‘S_IFMT’ undeclared (first use in this function)cache.h:252: error: ‘S_IFMT’ undeclared (first use in this function) | |
cache.h:254: error: ‘S_IFREG’ undeclared (first use in this function) | |
cache.h: In function ‘create_ce_mode’: | |
cache.h:251: error: ‘S_IFLNK’ undeclared (first use in this function) | |
cache.h: In function ‘canon_mode’:cache.h:252: error: ‘S_IFMT’ undeclared (first use in this function) | |
cache.h:284: error: ‘S_IFREG’ undeclared (first use in this function) | |
cache.h:254: error: ‘S_IFREG’ undeclared (first use in this function) | |
cache.h:286: error: ‘S_IFLNK’ undeclared (first use in this function) | |
cache.h:288: error: ‘S_IFDIR’ undeclared (first use in this function) | |
cache.h: In function ‘ce_to_dtype’: | |
cache.h:274: error: ‘S_IFMT’ undeclared (first use in this function) | |
cache.h: In function ‘canon_mode’: | |
cache.h:284: error: ‘S_IFREG’ undeclared (first use in this function) | |
cache.h: In function ‘ce_to_dtype’: | |
cache.h:274: error: ‘S_IFMT’ undeclared (first use in this function) | |
cache.h:286: error: ‘S_IFLNK’ undeclared (first use in this function) | |
cache.h:288: error: ‘S_IFDIR’ undeclared (first use in this function) | |
cache.h: In function ‘object_type’: | |
cache.h:377: error: ‘S_IFMT’ undeclared (first use in this function) | |
cache.h: In function ‘canon_mode’: | |
cache.h:284: error: ‘S_IFREG’ undeclared (first use in this function) | |
cache.h:286: error: ‘S_IFLNK’ undeclared (first use in this function) | |
cache.h:288: error: ‘S_IFDIR’ undeclared (first use in this function) | |
cache.h: In function ‘object_type’: | |
cache.h:377: error: ‘S_IFMT’ undeclared (first use in this function) | |
cache.h: In function ‘object_type’: | |
cache.h:377: error: ‘S_IFMT’ undeclared (first use in this function) | |
cache.h: At top level: | |
cache.h:539: error: expected specifier-qualifier-list before ‘pid_t’ | |
cache.h: At top level: | |
cache.h:539: error: expected specifier-qualifier-list before ‘pid_t’ | |
cache.h: At top level: | |
cache.h:539: error: expected specifier-qualifier-list before ‘pid_t’ | |
cache.h:782: error: expected declaration specifiers or ‘...’ before ‘time_t’ | |
cache.h:782: error: expected declaration specifiers or ‘...’ before ‘time_t’ | |
cache.h:782: error: expected declaration specifiers or ‘...’ before ‘time_t’ | |
cache.h:926: error: expected specifier-qualifier-list before ‘off_t’ | |
cache.h:935: error: expected specifier-qualifier-list before ‘off_t’ | |
cache.h:953: error: expected specifier-qualifier-list before ‘off_t’ | |
cache.h:926: error: expected specifier-qualifier-list before ‘off_t’ | |
cache.h:935: error: expected specifier-qualifier-list before ‘off_t’ | |
cache.h:953: error: expected specifier-qualifier-list before ‘off_t’ | |
cache.h:1012: error: expected declaration specifiers or ‘...’ before ‘off_t’ | |
cache.h:1018: error: expected declaration specifiers or ‘...’ before ‘uint32_t’ | |
cache.h:1019: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘nth_packed_object_offset’ | |
cache.h:1020: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘find_pack_entry_one’ | |
cache.h:1021: error: expected declaration specifiers or ‘...’ before ‘off_t’ | |
cache.h:1023: error: expected declaration specifiers or ‘...’ before ‘off_t’ | |
cache.h:1024: error: expected declaration specifiers or ‘...’ before ‘off_t’ | |
cache.h:1012: error: expected declaration specifiers or ‘...’ before ‘off_t’ | |
cache.h:1018: error: expected declaration specifiers or ‘...’ before ‘uint32_t’ | |
cache.h:1019: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘nth_packed_object_offset’ | |
cache.h:1020: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘find_pack_entry_one’ | |
cache.h:926: error: expected specifier-qualifier-list before ‘off_t’cache.h:1021: error: expected declaration specifiers or ‘...’ before ‘off_t’ | |
cache.h:935: error: expected specifier-qualifier-list before ‘off_t’ | |
cache.h:1023: error: expected declaration specifiers or ‘...’ before ‘off_t’ | |
cache.h:1024: error: expected declaration specifiers or ‘...’ before ‘off_t’ | |
cache.h:953: error: expected specifier-qualifier-list before ‘off_t’ | |
cache.h:1082: error: expected ‘)’ before ‘*’ token | |
cache.h:1091: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘read_in_full’ | |
cache.h:1092: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘write_in_full’ | |
cache.h:1093: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘write_str_in_full’ | |
cache.h:1082: error: expected ‘)’ before ‘*’ token | |
cache.h:1012: error: expected declaration specifiers or ‘...’ before ‘off_t’ | |
cache.h:1018: error: expected declaration specifiers or ‘...’ before ‘uint32_t’ | |
cache.h:1091: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘read_in_full’ | |
cache.h:1019: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘nth_packed_object_offset’ | |
cache.h:1092: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘write_in_full’ | |
cache.h:1020: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘find_pack_entry_one’ | |
cache.h:1093: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘write_str_in_full’ | |
cache.h:1021: error: expected declaration specifiers or ‘...’ before ‘off_t’ | |
cache.h:1023: error: expected declaration specifiers or ‘...’ before ‘off_t’ | |
cache.h:1171: error: expected declaration specifiers or ‘...’ before ‘FILE’ | |
cache.h:1024: error: expected declaration specifiers or ‘...’ before ‘off_t’ | |
cache.h:1171: error: expected declaration specifiers or ‘...’ before ‘FILE’ | |
cache.h:1082: error: expected ‘)’ before ‘*’ token | |
cache.h:1091: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘read_in_full’ | |
cache.h:1092: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘write_in_full’ | |
cache.h:1093: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘write_str_in_full’ | |
cache.h:1171: error: expected declaration specifiers or ‘...’ before ‘FILE’ | |
ident.c: In function ‘copy_gecos’: | |
ident.c:23: error: dereferencing pointer to incomplete type | |
ident.c:29: error: dereferencing pointer to incomplete type | |
ident.c:40: error: dereferencing pointer to incomplete type | |
ident.c:41: error: dereferencing pointer to incomplete type | |
ident.c: In function ‘copy_email’: | |
ident.c:59: error: dereferencing pointer to incomplete type | |
ident.c:62: error: dereferencing pointer to incomplete type | |
ident.c:71: error: dereferencing pointer to incomplete type | |
ident.c: In function ‘fmt_ident’: | |
ident.c:213: error: ‘stderr’ undeclared (first use in this function) | |
ident.c:221: error: dereferencing pointer to incomplete type | |
make: *** [hex.o] Error 1 | |
make: *** Waiting for unfinished jobs.... | |
make: *** [levenshtein.o] Error 1 | |
make: *** [ident.o] Error 1 | |
==> Exit Status: 2 | |
http://github.com/mxcl/homebrew/blob/master/Library/Formula/git.rb#L31 | |
==> Environment | |
/Developer/usr/bin/gcc | |
HOMEBREW_VERSION: 0.8 | |
HEAD: (none) | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_CELLAR: /usr/local/Cellar | |
HOMEBREW_REPOSITORY: /usr/local | |
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew | |
Hardware: quad-core 64-bit sandybridge | |
OS X: 10.7 | |
Kernel Architecture: x86_64 | |
Ruby: 1.8.7-249 | |
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby | |
Xcode: 3.2.6 | |
GCC-4.0: N/A | |
GCC-4.2: build 401 (5664 or newer recommended) | |
LLVM: build 2335 | |
MacPorts or Fink? false | |
X11 installed? true | |
==> Build Flags | |
CC: /usr/bin/cc | |
CXX: /usr/bin/c++ | |
LD: /usr/bin/cc | |
CFLAGS: -O3 -w -pipe | |
CXXFLAGS: -O3 -w -pipe | |
MAKEFLAGS: -j4 | |
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/3101 | |
https://github.com/mxcl/homebrew/issues/#issue/5105 | |
https://github.com/mxcl/homebrew/issues/#issue/5607 | |
https://github.com/mxcl/homebrew/issues/#issue/5692 | |
https://github.com/mxcl/homebrew/issues/#issue/5739 | |
https://github.com/mxcl/homebrew/issues/#issue/5758 | |
https://github.com/mxcl/homebrew/issues/#issue/5889 | |
https://github.com/mxcl/homebrew/issues/#issue/6087 | |
https://github.com/mxcl/homebrew/issues/#issue/6103 | |
https://github.com/mxcl/homebrew/issues/#issue/6253 | |
https://github.com/mxcl/homebrew/issues/#issue/6257 | |
https://github.com/mxcl/homebrew/issues/#issue/6292 | |
https://github.com/mxcl/homebrew/issues/#issue/6323 | |
https://github.com/mxcl/homebrew/issues/#issue/6491 | |
Also try: | |
`brew doctor` to check your setup for common problems. | |
`brew missing` to check installed packages for missing deps. |
You're not alone brotha. Any fixes or did you file an issue?
same problem here
Download latest Xcode from app store, run the "install Xcode.app" from your applications directory, enjoy functional build tools :D
My problem was an incomplete Xcode install. I went back into Xcode to do the update and it worked great. Make sure you actually have a /usr/bin/gcc existing.
Nice. Thanks for the update.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like you're having fun mate :)