Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 851198 - media-libs/libjpeg-turbo-2.1.3: ld.gold: internal error in relocate_section
Summary: media-libs/libjpeg-turbo-2.1.3: ld.gold: internal error in relocate_section
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-11 10:32 UTC by nE0sIghT
Modified: 2022-06-11 11:04 UTC (History)
0 users

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


Attachments
build.log (build.log,123.56 KB, text/plain)
2022-06-11 10:32 UTC, nE0sIghT
Details
emerge --info =media-libs/libjpeg-turbo-2.1.3 (emerge-info.txt,10.08 KB, text/plain)
2022-06-11 10:34 UTC, nE0sIghT
Details

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