Jump to content
InsanelyMac Forum
  • Announcements

    • Allan

      Solution to create a topic or post.   04/24/2018

      Hello guys. The majority of you are having issues to create a topic or post here. This are a problem with our current theme InsanelyMac.  Now the theme will be the Default IPS. Sorry for any inconvenience.
Sign in to follow this  
Mikethebike

use GCC on Mavericks

Recommended Posts

Advertisement

Thanks Ramalama, but this only works prior to 10.9.

 

installed gcc 4.9 with homebrew and symlinked. Now I get tons of errors alike:

 

error: expected initializer before '__AVAILABILITY_INTERNAL__MAC_10_9'

 

What to do? I also linked sdk 10.8 to 10.9 yesterday. Should I revert that?

 

PS: Apple should be sued to symlink gcc to clang...

Share this post


Link to post
Share on other sites

I made gcc4.8.1(native) with Clover package and may use it in some project

 slice$ gcc48 -v
Using built-in specs.
COLLECT_GCC=gcc48
COLLECT_LTO_WRAPPER=/Users/slice/src/opt/local/libexec/gcc/x86_64-apple-darwin12.5.0/4.8.1/lto-wrapper
Target: x86_64-apple-darwin12.5.0
Configured with: /Users/slice/src/tools/gcc/gcc-4.8.1/configure --prefix=/Users/slice/src/opt/local --enable-languages=c,c++ --libdir=/Users/slice/src/opt/local/lib/gcc48 --includedir=/Users/slice/src/opt/local/include/gcc48 --datarootdir=/Users/slice/src/opt/local/share/gcc48 --with-local-prefix=/Users/slice/src/opt/local --with-system-zlib --disable-nls --with-gxx-include-dir=/Users/slice/src/opt/local/include/gcc48/c++/ --with-gmp=/Users/slice/src/opt/local --with-mpfr=/Users/slice/src/opt/local --with-mpc=/Users/slice/src/opt/local --with-isl=/Users/slice/src/opt/local --with-cloog=/Users/slice/src/opt/local --enable-cloog-backend=isl --disable-multilib --disable-bootstrap
Thread model: posix
gcc version 4.8.1 (GCC) 

gcc48 is a symlink to real location for the gcc.

Successful compiled project ACPICA (iasl) with this compiler.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.



×