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
Created attachment 784043 [details] emerge --info =media-libs/libjpeg-turbo-2.1.3
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.
Thanks! I will switch to another linker.
(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. :)
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.