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

Bug 602834

Summary: gentoo-sources-4.9.0 not compiling with ld.gold
Product: Gentoo Linux Reporter: Oliver Hildebrandt <ollilein>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Oliver Hildebrandt 2016-12-16 15:05:11 UTC
The Problem exists since git-sources-4.9-rc1 but made it in the final Kernel, the problem is known by the Kernel Bug Tracker and there is a fix for this. It is not included with gentoo-sources-4.9.0.

The following compile error prevents the kernel from being build with ld.gold (tested binutils-2.26.1 and binutils-2.27):

EXPORTS drivers/firmware/efi/libstub/lib-ksyms.o 
LD drivers/firmware/efi/libstub/built-in.o 
LD drivers/firmware/efi/built-in.o 
LD drivers/firmware/built-in.o 
EXPORTS arch/x86/lib/lib-ksyms.o 
ld: internal error in target, at /var/tmp/portage/sys-devel/binutils-2.26.1/work/binutils-2.26.1/gold/parameters.h:105 
make[1]: *** [scripts/Makefile.build:432: arch/x86/lib/lib-ksyms.o] Fehler 1 
make: *** [Makefile:978: arch/x86/lib] Fehler 2 
make: *** Es wird auf noch nicht beendete Prozesse gewartet.... 
EXPORTS lib/lib-ksyms.o 
ld: internal error in target, at /var/tmp/portage/sys-devel/binutils-2.26.1/work/binutils-2.26.1/gold/parameters.h:105

Here are the Links to the kernel bug tracker and a direct link to the patch:
Bugtracker: https://bugzilla.kernel.org/show_bug.cgi?id=177741
Patch: https://bugzilla.kernel.org/attachment.cgi?id=246881

My kernel .config:
http://pastebin.com/xt9J79iq

Compiling with ld.bfds works without any Problem.

Reproducible: Always

Steps to Reproduce:
1.switch to ld.gold with binutils-config --linker ld.gold
2.make oldconfig
3.make -jN
Actual Results:  
I only use make oldconfig, and the gold linker.

Expected Results:  
The Compile Job breaks with the above error message

Compile fine without any error.
Comment 1 Tomáš Mózes 2016-12-17 01:33:15 UTC

*** This bug has been marked as a duplicate of bug 602532 ***