Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make fails on 10.9.4 due to no gcc (clang only) #25

Open
fherbert opened this issue Nov 20, 2014 · 0 comments
Open

Make fails on 10.9.4 due to no gcc (clang only) #25

fherbert opened this issue Nov 20, 2014 · 0 comments

Comments

@fherbert
Copy link

Running CC=gcc-4.2 make install-cross fails on my Mavericks build with errors about redefinitions of functions is not supported in C99 mode.
This is due to clang defaulting to C99 mode when building, and Mavericks doesn't come with gcc any more - it's all clang now:
gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.3.0
Thread model: posix

So to fix this, I ran make with the following parameters:
CC='gcc-4.2 -std=gnu89' make install-cross

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant