mxcl/homebrew — Issue #9359: ffmpeg fails to build on 10.6.8 with Xcode 4.2
Author: altenmueller
Created: 2012-01-01 07:48:03+00:00
State: open

My apologies if this is a duplicate, but I can't seem to get ffmpeg to build on Mac OS X 10.6.8 with Xcode 4.2 (MacBook 1,1). Here's my brew doctor output:

$ brew doctor
We couldn't detect gcc 4.2.x. Some formulae require this compiler.
NOTE: Versions of XCode newer than 4.2 don't include gcc 4.2.x.

$

And here's the build log when using `--use-clang`: https://gist.github.com/1546620 . Naturally, it also fails with `--use-llvm`. Looking around, I can see this issue has been reported to LLVM and apparently fixed: http://llvm.org/bugs/show_bug.cgi?id=6309

I've also heard that using gcc to compile ffmpeg 0.9 works, but since Xcode 4.2 doesn't ship with gcc, that kind of makes it more difficult.