enable building of ld.gold in binutils 2.25#1885
enable building of ld.gold in binutils 2.25#1885boegel merged 18 commits intoeasybuilders:developfrom
Conversation
Add support for ld.gold and option to build libiberty
|
Automatic reply from Jenkins: Can I test this? |
|
ld.gold is significantly faster for C++ linking (I've read) |
|
Jenkins: ok to test |
There was a problem hiding this comment.
wait, what? this is the only/proper way? there's no way to make make install do this for you? hard to believe...
There was a problem hiding this comment.
libiberty is built by default but not included in the installation (says in configure # Note that libiberty is not a target library). Libiberty source is hosted in GCC and that's the correct place to enable the library but on the mailing lists people said that they might have a non-PIC GCC build
There was a problem hiding this comment.
This has popped up again in easybuilders/easybuild-easyblocks#969 (comment)
Not sure things have progressed within binutils since then, but from this thread including libiberty from binutils is non-standard so we should maybe think hard about it.
|
Can you also apply this to the other binutils 2.25 easyconfigs? That way, we'll have |
|
Refer to this link for build results (access rights to CI server needed): This pull request is now ready for review/testing. Please try and find someone who can tackle this; contact @boegel if you're not sure what to do. |
|
Once we agree on the changes here I'll add them to the other easyconfigs. |
|
Will I dump the libiberty commented section? Maybe it's just a site-specific customisation. |
|
Refer to this link for build results (access rights to CI server needed): This pull request is now ready for review/testing. Please try and find someone who can tackle this; contact @boegel if you're not sure what to do. |
|
@ocaisa: yes, I feel the libiberty stuff should be dropped, it looks like a can of worms to me (having a two libiberty.a's around, one provided by |
|
@wpoely86: can you look into a test report on Debian for this one? |
|
Well, it's not provided by GCC unless you explicitly ask for it...and then it becomes connected to a toolchain, that was kind of the problem. |
|
Test report by @boegel |
|
Test report by @boegel |
|
Hmm, looks troublesome on SL6: |
|
Test report by @boegel |
|
Not sure what to do about Also, it seems like Anyway, we'll need to figure out why the build is suddenly broken on SL6 now, see test reports that were submitted. |
|
Test report by @wpoely86 |
|
Make the same change in all binutils-2.25 easyconfigs? |
|
build problem on SL6 looks related to |
|
oh great, more build dependencies. Yeah, add them as build deps. |
|
tackled in ocaisa#5 |
|
SL6 (no Bison in the OS): RHEL6: |
|
Test report by @boegel |
|
The latest failed test shows that we need to include binutils as a build dep in several of the added easyconfigs, to make things work on RHEL6 + Haswell, like we do in the existing |
|
tackled in ocaisa#10 |
add binutils build dep in M4, flex, Bison easyconfigs
|
Refer to this link for build results (access rights to CI server needed): This pull request is now ready for review/testing. Please try and find someone who can tackle this; contact @boegel if you're not sure what to do. |
|
Test report by @boegel |
|
Test report by @boegel |
|
@ocaisa: GCC build fails on RHEL6 with: Either we screwed up the default |
|
Or we need |
|
Can't we simply not enable gold for the bootstrap binutils? The only advantage is a slightly faster linking time. I would only do it for the binutils used for actually building codes. |
|
@wpoely86: sure, but we still needs |
use --enable-plugins along with --enable-gold
|
Refer to this link for build results (access rights to CI server needed): This pull request is now ready for review/testing. Please try and find someone who can tackle this; contact @boegel if you're not sure what to do. |
|
Test report by @boegel |
Typo that left in line
|
Typo - that will succeed now |
|
Refer to this link for build results (access rights to CI server needed): This pull request is now ready for review/testing. Please try and find someone who can tackle this; contact @boegel if you're not sure what to do. |
|
Test report by @boegel |
|
Test report by @boegel |
|
Test report by @wpoely86 |
|
Test report by @boegel |
|
The builds that fail in the last test report are the ones using the default Since this is a RHEL6 Haswell systems, the default binutils is broken; it doesn't recognise AVX2 instructions which leads to errors like: In short: it's normal that these builds fail. Thus: good to go in. Thanks @ocaisa for diving into this! |
enable building of ld.gold in binutils 2.25
Add support for ld.gold, PIC build and instructions on how to include libiberty in installation