public
Created

brew git xcode lion the hell.

  • Download Gist
omfg
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487
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.

Looks like you're having fun mate :)

You're not alone brotha. Any fixes or did you file an issue?

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.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.