Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Unable to compile anything #16306

Closed
tiennou opened this issue Nov 29, 2012 · 7 comments
Closed

Unable to compile anything #16306

tiennou opened this issue Nov 29, 2012 · 7 comments

Comments

@tiennou
Copy link

tiennou commented Nov 29, 2012

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).

Gist : https://gist.github.com/4169381

Additional info : Mac OS X 10.8.2

$ xcodebuild -version
Xcode 4.5.2
Build version 4G2008a
$ which cc
/usr/bin/cc
$ cc -v
Using built-in specs.
Target: i686-apple-darwin11
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)
@mistydemeo
Copy link
Member

Can you post your brew --config, please?

@tiennou
Copy link
Author

tiennou commented Nov 29, 2012

$ brew --config
HOMEBREW_VERSION: 0.9.3
HEAD: cf0a86c7cbf05ef7f4afa2d5c728f7668b369f8f
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit ivybridge
OS X: 10.8.2-x86_64
Xcode: 4.5.2
CLT: 1.0.0.9000000000.1.1248867338
LLVM-GCC: build 2336
Clang: 4.1 build 421
X11: N/A
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

@adamv
Copy link
Contributor

adamv commented Jan 7, 2013

Does cc work if you create a simple C program and compile it manually?

@adamv
Copy link
Contributor

adamv commented Jan 20, 2013

brew doctor and brew list --unbrewed would help too.

@tiennou
Copy link
Author

tiennou commented Jan 23, 2013

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:

    mysql

$ brew list --unbrewed
bin/authorizationhost
bin/mate
bin/securityagentclient
cuda/lib/libcuda.dylib
include/security_agent_client/agentclient.h
include/security_agent_client/sa_request.h
include/security_agent_client/sa_types.h
include/security_agent_client/utils.h
include/security_agent_server/sa_reply.h
include/security_agent_server/utils.h
lib/libsecurity_agent_client.a
lib/libsecurity_agent_server.a
share/man/whatis

@adamv
Copy link
Contributor

adamv commented Jan 26, 2013

Does anything compile at all? With Homebrew, or Xcode, or just running the compiler over a C file on the command line?

@adamv
Copy link
Contributor

adamv commented Feb 10, 2013

Closing this since there isn't enough access to the computer to diagnose this in a timely fashion.

@adamv adamv closed this as completed Feb 10, 2013
@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants