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

Julia failed to build on 10.6.8 #48

Closed
anemator opened this issue Sep 29, 2013 · 5 comments
Closed

Julia failed to build on 10.6.8 #48

anemator opened this issue Sep 29, 2013 · 5 comments

Comments

@anemator
Copy link

The error looks to be a result of a dependency on c++11, which isn't bundled with 10.6.8. Any thoughts? Thanks!

Log: https://gist.github.com/anemator/6748967

@staticfloat
Copy link
Owner

Your Xcode is quite old, version 3.2.6. Is there any possibility you could update (Homebrew seems to think that 4.2 is the latest supported on 10.6) or at least install a newer version of the command line tools? 3.2.6 uses clang version 1.7, which as you surmised doesn't do well with c++11.

Most Homebrew software is going to expect a compiler newer than what you have; I highly recommend updating.

@anemator
Copy link
Author

It's still officially supported along with 3.1.4 (for now at least). It looks like the issue is related to libunwind more so than your formula since I tried building outside of homebrew and saw the same

error: unrecognized command line option "-std=c++11"

Sorry about that. Thanks for your help (and yes I will be upgrading in the very near future).

@staticfloat
Copy link
Owner

Ah, I may be able to fix this then. This is because libosxunwind doesn't grab the same CFLAGS as the rest of the Julia build.

@anemator
Copy link
Author

I think libuwind.cxx will need to be modified first. There is at least one c++11 feature used: static_assert.

@anemator
Copy link
Author

anemator commented Oct 1, 2013

libosxunwind doesn't even work on 10.6 apparently: https://groups.google.com/d/topic/julia-dev/scssTZruw9o/discussion

There is a workaround, but I don't think it's worth the effort for such a niche request: create a patch to revert back to pre-libosxunwind and apply it to Julia iff the computer doesn't have a c++11 compiler.

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

2 participants