-
Notifications
You must be signed in to change notification settings - Fork 283
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
Fix for building GCC with --sysroot on ppc64le #2315
Conversation
Still marked as draft, as I still need to verify that this indeed works on my POWER9 system. |
Tested it on a POWER9 system. and it solved the issue.
This shows that the regex replaced the right thing:
|
Test report by @boegel Overview of tested easyconfigs (in order)
Build succeeded for 3 out of 3 (3 easyconfigs in total) |
Test report by @boegel Overview of tested easyconfigs (in order)
Build succeeded for 3 out of 3 (3 easyconfigs in total) |
Test report by @boegel Overview of tested easyconfigs (in order)
Build succeeded for 1 out of 1 (1 easyconfigs in total) edit: this was tested in a |
Test report by @boegel Overview of tested easyconfigs (in order)
Build succeeded for 3 out of 3 (3 easyconfigs in total) |
Test report by @boegel Overview of tested easyconfigs (in order)
Build succeeded for 1 out of 1 (1 easyconfigs in total) edit: this was tested in a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
When using
--sysroot
(and--rpath
) onppc64le
(and possibly more PowerPC systems), the dynamic linker does not get injected into executables correctly: it will pick up the one from the host, instead of the one from thesysroot
location.I ran into the same issue when building Gentoo Prefix on a
ppc64le
system, see:https://bugs.gentoo.org/755551
The proposed fix there solved that issue, see here for an extensive description of the cause and solution:
https://755551.bugs.gentoo.org/attachment.cgi?id=684058
So I'm now including a similar fix here.