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

Bug 851198

Summary: media-libs/libjpeg-turbo-2.1.3: ld.gold: internal error in relocate_section
Product: Gentoo Linux Reporter: nE0sIghT <ykonotopov>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info =media-libs/libjpeg-turbo-2.1.3

Description nE0sIghT 2022-06-11 10:32:51 UTC
Created attachment 784040 [details]
build.log

media-libs/libjpeg-turbo-2.1.3: ld.gold: internal error in relocate_section fails to build with 

/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld.gold: internal error in relocate_section, at /tmp/portage/sys-devel/binutils-2.37_p1-r2/work/binutils-2.37/gold/i386.cc:3683
collect2: error: ld returned 1 exit status
Comment 1 nE0sIghT 2022-06-11 10:34:31 UTC
Created attachment 784043 [details]
emerge --info =media-libs/libjpeg-turbo-2.1.3
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-11 10:40:37 UTC
Please report it upstream to binutils and link it here.

But honestly, I'd beg you to stop using gold. I don't think any bugs are being fixed upstream. Try lld.
Comment 3 nE0sIghT 2022-06-11 10:46:51 UTC
Thanks! I will switch to another linker.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-11 10:51:03 UTC
(In reply to nE0sIghT from comment #3)
> Thanks! I will switch to another linker.

Let me know how you get on! Not trying to be dismissive at all, just I don't want people to waste their time on gold given the number of bugs like this. :)
Comment 5 nE0sIghT 2022-06-11 11:04:00 UTC
You are totally right!
I switched to gold long time ago and the reason was some OOMs with bfd together with slow link speed. This is not my first issue with gold though.
Now I have enought cpu and ram to use bfd without any side issues.

BTW libjpeg-turbo compilles just fine now.