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

Bug 830404 (systemwide-mold)

Summary: [TRACKER] Packages that fail to build with mold linker
Product: Quality Assurance Reporter: Matthew Smith <matthew>
Component: TrackersAssignee: Gentoo Quality Assurance Team <qa>
Status: CONFIRMED ---    
Severity: normal CC: ab4bd, alex.buell, chewi, dschridde+gentoobugs, emilien.mottet, flow, gentoo, jiri, kevinlyles, kripton, matthew, mattst88, rui314, sam
Priority: Normal Keywords: Goal, Tracker
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 925347, 933197, 936253, 937354, 937739, 937751, 937917, 937920, 937990, 938009, 938443, 938659, 938949, 830405, 830444, 830463, 830706, 830748, 831282, 831476, 831478, 832377, 860900, 861488, 867097, 867124, 870172, 871579, 877539, 888705, 892641, 893622, 893768, 911591, 914069, 914849, 914979, 916259, 917089, 917443, 925024, 925348, 931782, 936858    
Bug Blocks:    

Description Matthew Smith gentoo-dev 2022-01-01 14:44:32 UTC
This bug is to track packages that do not build with the sys-devel/mold linker.
Comment 1 Marco Scardovi (scardracs) 2022-01-04 06:28:33 UTC
I've talked with the author of mold and he pointed me out to this sheet. He already tries to build packages from gentoo repo and these are those who fails: https://docs.google.com/spreadsheets/u/1/d/1LnyrUw79oY5DxBNfXGmlxr2-0n4V0AA06BzbO2cdhZg/htmlview#gid=0
Comment 2 Alex Buell 2024-02-22 17:27:42 UTC
app-emulation/virtualbox-7.0.14-r2 apparently has issues linking. The symptom is:

[code]
alex@cobalt ~/.VirtualBox $ VirtualBoxVM --startvm "MS-DOS 6.22"
VirtualBoxVM: supR3HardenedMainGetTrustedMain: dlopen("/usr/lib64/virtualbox/VirtualBoxVM.so",) failed: /usr/lib64/virtualbox/UICommon.so: undefined symbol: _ZN8QPrinterC1ENS_11PrinterModeE
alex@cobalt ~/.VirtualBox $ c++filt
_ZN8QPrinterC1ENS_11PrinterModeE
QPrinter::QPrinter(QPrinter::PrinterMode)
[/code]

This issue went away when I disabled use of mold for this application. Just thought you'd want to know. 

Many thanks,
Alex
Comment 3 Alex Buell 2024-02-23 20:02:28 UTC
x11-apps/igt-gpu-tools also segment faults in intel_gpu_frequency if linked with mold. Works just fine without mold.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-02-23 20:03:23 UTC
Please file individual bugs and have them block this one.
Comment 5 Alex Buell 2024-02-23 21:14:08 UTC
(In reply to Sam James from comment #4)
> Please file individual bugs and have them block this one.

Done, thanks.
Comment 7 Alex Buell 2024-04-29 10:44:25 UTC
Found some more issues with mold (2.30.0) with cross compiled GCC. I'll file some bug reports shortly.
Comment 8 Alex Buell 2024-04-29 15:47:33 UTC
(In reply to Alex Buell from comment #7)
> Found some more issues with mold (2.30.0) with cross compiled GCC. I'll file
> some bug reports shortly.

Gave up - can't bootstrap an ADA cross compiler anyway. Just add no-mold for the respective packages.
Comment 9 Rui Ueyama 2024-04-30 03:50:03 UTC
If you have an instruction to reproduce the issue with a fresh Gentoo docker image, I'll take a look at it.