-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Threaded build broken on Darwin 15.4 #15647
Comments
I think you should be able to force using gcc by setting |
@tkelman Is GCC preferred on Darwin? |
No, usually clang is, but it's worth figuring out if this is a clang-specific problem. |
A build with
This library is provided by MacPorts GCC. It seems that Julia overwrites my I tried modifying
I think building Julia with gcc on Darwin is not supported. |
"Currently broken" isn't exactly the same thing as "not supported" - I don't see why this couldn't be made to work, and I feel like it used to work at some point not that long ago. It depends exactly how and where you set |
Mac CI build with threading enabled works. |
@yuyichao Do you have a pointer to Travis? I'd like to look at the configurations files, log files, compiler versions etc. |
https://travis-ci.org/JuliaLang/julia/builds/119249078 (or the tests for the yyc/test/mt branch in general both appveyor and travis) The last test fails because of #15672 but the build of the c files never have any problems. |
I believe the |
My make output indicates that it's using clang 3.7.1. I also tried with clang 3.8.0 -- same effect. Both were installed via MacPorts. Clang 7.3 is Apple's clang, isn't it? I didn't use it. |
If you run
I've found that the best way to convince julia to build with GCC instead of clang on OSX is to pass it
|
|
A build with gcc with the settings you describe above is accepted by Julia's make system. However, it soon fails with:
That's a known incompatibility between Darwin's system header files and newer versions of gcc. The system header files use a non-standard extension of the C standard (they use |
To work around this issue, I downgraded Xcode from 7.3 to 7.2. Everything is working fine again. The 7.2 download is available from Apple's developer web site. The downgrade itself is straightforward. |
I've just run into this also, but I don't want to downgrade or muck around with gcc. Hoping for a fix. :) |
By allocating the buffer at runtime with `mmap`. Fixes #15647
By allocating the buffer at runtime with `mmap`. Fixes #15647
For the past week or so I have been unable to build Julia with threading enabled (
JULIA_THREADS=1
). Building with threading disabled works fine. This is the last output and error I see:This is on Darwin 15.4.0 (OS X "El Capitan" 10.11.4). I'm building with gcc 5.3 and clang 3.7.1 that were installed via MacPorts (Julia seems to choose clang).
The text was updated successfully, but these errors were encountered: