-
Notifications
You must be signed in to change notification settings - Fork 188
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
Build failure 1.0.0-rc6 with macOS Mojave #1417
Comments
Thank you for the report! Maybe #include <stdio.h>
int main() {
puts("Hi");
return 0;
} with Maybe |
I did invoke
It seems packaging issue of llvm@4 with mojave. |
Thanks, that confirms it's an issue between A workaround might be to use a more recent LLVM from Homebrew ( |
Maybe the |
I see. But
|
@hsbt Could you try with |
Absolutely yes. I try to compile rc6 with another compiler tomorrow. |
I got the same results with
|
I see, so neither LLVM 5 or 6 from Homebrew works yet on Mojave then. The reason we cannot use the system LLVM is so far macOS only provides the |
I couldn't find |
Right, so this is like previous macOS versions, macOS only ships
OK. |
Have anyone tried running "/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg" before on Mojave? This solved brew installed clang problem on my machine. source: https://stackoverflow.com/questions/50780183/cannot-install-brew-on-mojave-with-xcode10 |
For me, installing llvm-7.0 with MacPorts and doing
first, everything worked
|
I tried installing llvm/clang 4.0 but it won't install on Mojave. I suggest you bump the minimum version to 7.0 or at least add multiple search paths by default. |
With Homebrew or MacPorts? We don't test MacPorts so we don't know whether it works or not. Homebrew should work.
What's the problem with the minimum version being lower? You can use 7.0 (we don't test it). If we bumped it other people wouldn't be able to use 4 and how would it improve the situation for you?
You can use any installed LLVM by setting What's the underlying issue here? That you'd prefer to use MacPorts rather than Homebrew? |
MacPorts reports that it's not compatible so the package won't install.
You already add llvm-4.0 to the path explicitly, no? The underlying issue here is that with only llvm-7.0 installed, the build fails without extra steps, this isn't really an issue of MacPorts/Homebrew. |
Yes we add LLVM 4's Homebrew installation path to the system path, because we test with LLVM 4. We don't test with LLVM 7 installed via Homebrew, so we haven't added that to the path. We can't reasonably test all LLVM versions - our test suite size will grow out of control. Maybe we should relax and run with any LLVM we can find? It may cause more frustration if untested things fail. |
If you are going to add explicit support for llvm-4.0, might I suggest you use some kind of configure/auto-detection. e.g. check |
Ok we'll reconsider this and think about making it an option, rather than relying on |
Just FYI, here is the output of trying to install llvm/clang 4.0 using MacPorts:
|
The solution provided by @bumfo worked for me while installing rubocop which depends on jaro_winkler (failing for missing stdlib.h) |
Probably beating a dead horse and sorry if I am spamming but @bumfo's solution worked for me too. |
Installing the system headers is the current documented workaround on macOS Mojave. |
I didn't see that line obviously... sorry about that @eregon Truffleruby is working fine though RSpec is insanely slow but that was expected. Just want to be able to provide my gem on more than MRI and jruby and so far it is working fantastically well. |
As for Xcode 11 the system headers package will not be provided anymore. The correct fix on MacOS is to set the
@eregon do you know if we can change the CC wrapper only on MacOS? I tried to look on this file https://github.com/oracle/truffleruby/blob/700016057b446036cf99786fa723dd87acbbb2cd/lib/mri/mkmf.rb but I'm not familiar enough with how truffleruby is built to open a PR doing that. I'm totally open to change the documentation though, but it would be better if it just work on MacOS. |
@rafaelfranca Thanks, we came to the same conclusion in #1733 and in discussions with the Sulong team, but did not apply changes yet. The actual code for C/C++ compilation is in https://github.com/oracle/truffleruby/blob/master/lib/truffle/rbconfig-for-mkmf.rb |
We fixed this by using |
Hi, I couldn't install truffleruby-1.0.0-rc6 via ruby-build. See following log.
I try to reproduce with source package file. I can get same error without ruby-build. This is result of
src/main/c/openssl/mkmf.log
It seems caused by llvm or clang detection issues.
The text was updated successfully, but these errors were encountered: