Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 602834 - gentoo-sources-4.9.0 not compiling with ld.gold
Summary: gentoo-sources-4.9.0 not compiling with ld.gold
Status: RESOLVED DUPLICATE of bug 602532
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-16 15:05 UTC by Oliver Hildebrandt
Modified: 2016-12-17 01:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***