Gentoo Archives: gentoo-dev

From: Daniel Campbell <zlg@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Developers, please work on underlinking issues!
Date: Thu, 18 Aug 2016 05:39:54
Message-Id: 943d47b7-f01a-480a-3bb6-c9ccf14f6cf9@gentoo.org
In Reply to: [gentoo-dev] Developers, please work on underlinking issues! by "Michał Górny"
1 On 08/17/2016 01:37 PM, Michał Górny wrote:
2 > Hello, fellow developers.
3 >
4 > TL;DR: switch to the darn gold linker, and start fixing your darn
5 > packages!
6 >
7 > After many years, the underlinking tracker [1] is still full of bugs.
8 > This is a huge QA problem, and most of the developers don't test for
9 > it.
10 >
11 > Long story short, the thing usually looks like this: a developer
12 > switches to the gold linker, starts hitting build failures
13 > and reporting bugs. Most of the time, nobody gives a damn about those
14 > bugs and the developer eventually gives up, wants to be able to upgrade
15 > his system again and switches back to bfd.
16 >
17 > So I'm asking shortly: please start caring. Switch to gold:
18 >
19 > $ sudo binutils-config --linker ld.gold
20 >
21 > Test your packages. Report bugs upstream. Get them fixed.
22 >
23 > If someone already tested it and reported the bug, proxy it upstream.
24 > Don't expect everyone else to do the dirty work on your packages.
25 >
26 > This is not some problem with a fancy non-standard configuration.
27 > ld.gold is just the messenger, and the message is: you are not linking
28 > to the libraries you are using. This is serious, and your package only
29 > works by accident. Of course, you don't have to pass my exact words
30 > upstream.
31 >
32 > That said, I'd really like for Gentoo to be able to finally switch to
33 > ld.gold by default. However, that can't happen if every common system is
34 > going to have 1-3 packages failing to build.
35 >
36 > Thanks in advance.
37 >
38 > [1]:https://bugs.gentoo.org/show_bug.cgi?id=underlinking
39 >
40
41 Is it as simple as switching the linker and re-merging packages that one
42 maintains? Is gold supposed to be a big deal? Does it do the job of
43 linking better? I read the blog post and all but nobody's explaining
44 what gold does better than standard ld.
45
46 That said, if it's that simple and then just requires some DEPEND
47 updating, doesn't sound all that bad to me.
48 --
49 Daniel Campbell - Gentoo Developer
50 OpenPGP Key: 0x1EA055D6 @ hkp://keys.gnupg.net
51 fpr: AE03 9064 AE00 053C 270C 1DE4 6F7A 9091 1EA0 55D6

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies