Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 608232

Summary: sys-kernel/gentoo-sources fails to build with ld.gold since 4.8
Product: Gentoo Linux Reporter: jorgicio <jpizarrocallejas>
Component: Current packagesAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED OBSOLETE    
Severity: normal CC: ab4bd, tsmksubc
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://marc.info/?l=linux-kernel&m=147674747223074&w=2
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: The kbuild fix

Description jorgicio 2017-02-04 16:45:11 UTC
Hi!

Since 4.8 kernel release, it fails to build when I use ld.gold as a linker.
The issue happens in upstream. However, I found a patch to get rid with this.

https://bugzilla.kernel.org/show_bug.cgi?id=177741

I'll attach it then.
Thanks.

Reproducible: Always
Comment 1 jorgicio 2017-02-04 16:45:34 UTC
Created attachment 462442 [details, diff]
The kbuild fix
Comment 2 Alice Ferrazzi Gentoo Infrastructure gentoo-dev 2017-02-15 16:52:30 UTC
related mail
http://marc.info/?l=linux-kernel&m=147674747223074&w=2
Comment 3 Alice Ferrazzi Gentoo Infrastructure gentoo-dev 2017-02-15 16:56:31 UTC
solved upstream in https://github.com/torvalds/linux/commit/7f2084fa55e6cb61f61b4224d4a8bafaeee55f9f
Comment 4 Alice Ferrazzi Gentoo Infrastructure gentoo-dev 2017-02-15 17:01:50 UTC
i got the mail wrong.
This looks like the bisected bad commit https://github.com/torvalds/linux/commit/7f2084fa55e6cb61f61b4224d4a8bafaeee55f9f

reversing this make ld.gold work again
Comment 5 Mike Pagano gentoo-dev 2018-06-13 22:44:24 UTC
I just built 4.17.1 with the gold linker.  Closing as fixed. Let us know if you are still having issues with later kernels.