-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
brew install gcc 6.1.0 fails becaus of jit-playback.c #1872
Comments
Sorry, but you have not followed the requested steps in our Troubleshooting Guide. Please follow (all of) these steps and post the information here so we can help you with your problem. Thanks! |
gcc 6.1.10 fails to compile on 10.11 The homebrew package patches So the patch no longer applies cleanly to this version of gcc. A build log gist isn't going to be half as clear as the above. |
Thank you for the explanation! Is that because you're building Can you research whether that patch can be dropped by now or whether it is still needed, but needs to be adapted? If it's any help, the patch was introduced in Homebrew/legacy-homebrew#42924. If you do, can you please create a pull request with the necessary changes to the |
I did indeed build gcc with This patch looks like it was actually accepted upstream in the gcc-5 branch, so it would be part of gcc 6.x. Looking at the EDIT: I will have to poke at this more later. Unfortunately, I don't have the time today. @duansai - try going a |
After removing the patch in jit-playback.c and keeping the modifications in ./gcc/jit/Make-lang.in, the installation of gcc 6.10 is successful. Thanks! |
Any progress on fixing this in GCC's formula for all users? I may be having a similar issue myself. |
Thanks everyone for the input! Is any of you actually using the JIT functionality and can provide test code or suggestions to check that the JIT functionality will work as intended after adjusting the patch? I realize that adjusting the patch as suggested will fix the build error, but it would be nice to have a way to verify things beyond making sure the GCC build completes without error. I would be even more grateful if anyone could run those checks themselves against GCC 5.3, fix the formula for 6.1, check with that version again, and then submit a pull request with the fix. Thanks! @zbeekman Do you happen to have experience with GCC's JIT functionality and can advise on the issue that has been raised here? |
@UniqMartin sorry, no experience with GCC's JIT... I'll do some very quick research now, but I make no promises... |
Perhaps @davidmalcolm can comment, since he's the GCC JIT maintainer... or we could try to email the GCC JIT list: [email protected] |
@zbeekman Thanks! This was really just a blind guess you might be familiar with this. Let's see if any of the mentioned or already involved people have any comments or can research this further. If not, I'll try to do my own research and/or contact the mailing list. (Might take some time, as I'm not affected myself.) |
Yes, I'm the upstream gccjit maintainer. I'm guessing the issue is to do with the patch you're applying downstream here: I believe I upstreamed that patch in this commit: So the patch in your gcc.rb file should no longer be necessary. Hope this is helpful FWIW, I don't have an OS X box to hand, so I'm interested in hearing reports from people trying libgccjit on OS X. |
Oops; I meant to say that the changes to The changes to |
@davidmalcolm Thanks a lot for your input and for the confirmation on what can be dropped and what needs to be retained! ❤️ I'll fix our |
Pushed a fix to the formula in 891f9fd. Everyone affected: Please |
FYI this appears to be fixed on GCC trunk ( Expect a PR to skip applying it to |
Bug reports:
In jit-playback.c line 2474, the "ADD_ARG ("-Wl,-undefined,dynamic_lookup");" is added after the line:
"end add_arg".
Thus, I get the failure message of:
../../gcc/jit/jit-playback.c: In member function 'void gcc::jit::playback::context::invoke_external_driver(const char_, vec<char_>*)':
../../gcc/jit/jit-playback.c:2474:43: error: 'ADD_ARG' was not declared in this scope
ADD_ARG ("-Wl,-undefined,dynamic_lookup");
attached please find the log file for building gcc (gcc.txt).
gcc.txt
The text was updated successfully, but these errors were encountered: