1 |
Hello, fellow developers. |
2 |
|
3 |
TL;DR: switch to the darn gold linker, and start fixing your darn |
4 |
packages! |
5 |
|
6 |
After many years, the underlinking tracker [1] is still full of bugs. |
7 |
This is a huge QA problem, and most of the developers don't test for |
8 |
it. |
9 |
|
10 |
Long story short, the thing usually looks like this: a developer |
11 |
switches to the gold linker, starts hitting build failures |
12 |
and reporting bugs. Most of the time, nobody gives a damn about those |
13 |
bugs and the developer eventually gives up, wants to be able to upgrade |
14 |
his system again and switches back to bfd. |
15 |
|
16 |
So I'm asking shortly: please start caring. Switch to gold: |
17 |
|
18 |
$ sudo binutils-config --linker ld.gold |
19 |
|
20 |
Test your packages. Report bugs upstream. Get them fixed. |
21 |
|
22 |
If someone already tested it and reported the bug, proxy it upstream. |
23 |
Don't expect everyone else to do the dirty work on your packages. |
24 |
|
25 |
This is not some problem with a fancy non-standard configuration. |
26 |
ld.gold is just the messenger, and the message is: you are not linking |
27 |
to the libraries you are using. This is serious, and your package only |
28 |
works by accident. Of course, you don't have to pass my exact words |
29 |
upstream. |
30 |
|
31 |
That said, I'd really like for Gentoo to be able to finally switch to |
32 |
ld.gold by default. However, that can't happen if every common system is |
33 |
going to have 1-3 packages failing to build. |
34 |
|
35 |
Thanks in advance. |
36 |
|
37 |
[1]:https://bugs.gentoo.org/show_bug.cgi?id=underlinking |
38 |
|
39 |
-- |
40 |
Best regards, |
41 |
Michał Górny |
42 |
<http://dev.gentoo.org/~mgorny/> |