GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
I'm trying to install ffmpeg on a friends' computer, and I'm getting the dreaded C compiler cannot create executables error while building yasm. No brew doctoroutput, it's a clean brew install (I did a sudo rm -R /usr/local before trying again).
C compiler cannot create executables
sudo rm -R /usr/local
Gist : https://gist.github.com/4169381
Additional info : Mac OS X 10.8.2
$ xcodebuild -version
Build version 4G2008a
$ which cc
$ cc -v
Using built-in specs.
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~67/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~67/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Can you post your brew --config, please?
$ brew --config
CPU: 8-core 64-bit ivybridge
OS X: 10.8.2-x86_64
LLVM-GCC: build 2336
Clang: 4.1 build 421
System Ruby: 1.8.7-358
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Does cc work if you create a simple C program and compile it manually?
brew doctor and brew list --unbrewed would help too.
brew list --unbrewed
Still fails after brew update. Sorry for the lag, my friend isn't always near me.
$ brew doctor
Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
$ brew list --unbrewed
Does anything compile at all? With Homebrew, or Xcode, or just running the compiler over a C file on the command line?
Closing this since there isn't enough access to the computer to diagnose this in a timely fashion.