Fix for building GCC with --sysroot on ppc64le#2315
Fix for building GCC with --sysroot on ppc64le#2315boegel merged 3 commits intoeasybuilders:developfrom
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 |
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 thesysrootlocation.I ran into the same issue when building Gentoo Prefix on a
ppc64lesystem, 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.