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

BLLIP on Mavericks #20

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open

Conversation

jimwhite
Copy link

These are changes that aim to enable cross-platform compatibility with Mac OS X while preserving the existing behavior on Linux. It works for me on Mavericks and Mountain Lion (10.9.2 and 10.8.5) on two different Macs (both Core i7 which is pretty much the same as i5). Feedback greatly appreciated both for working OK as well as problems.

I got help from these pages:

http://trac.macports.org/wiki/UsingTheRightCompiler
http://ladstatt.blogspot.com/2013/04/upgrading-gcc-to-gcc48-on-macosx.html

@vuthuyfo
Copy link

@jimwhite, I can't install gcc47 on 10.9.2 due to this issue:
Error: llvm-3.0 is not supported on Mavericks or later.
Error: org.macports.fetch for port llvm-3.0 returned: unsupported platform
I used sudo port install gcc47 +universal
Do you have any suggestions? Thanks alot!

@jimwhite
Copy link
Author

Did you try it without the +universal? sudo port install gcc47 works for me on Mavericks.

One thing I need to change back though is the commit where I replaced -march=x86-64 with -march=native because although it compiles I got a trap on my MacBook Air running Mountain Lion.

@jimwhite
Copy link
Author

Currently tested for Linux only on Centos 6 using the OWLQN (non-LBFGS) version (see my other PR) but should be okay as-is for systems with liblbfgs.

For using this on Mac, the instructions are at the top of Makefile.mac, repeated here for convenience:

# For Mavericks (and Mountain Lion) I set up gcc using macports:
sudo port install gcc47
sudo port select --set gcc mp-gcc47
sudo port install boost liblbfgs

# Set the MAKEFILES environment variable so that Makefile.mac is loaded when make is called.
export MAKEFILES=`pwd`/Makefile.mac

Then make as usual.

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

Successfully merging this pull request may close these issues.

2 participants