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

Bug 940524

Summary: media-gfx/freecad-1.0_rc1-r1: fails to compile with mold
Product: Gentoo Linux Reporter: Arusekk <arek_koz>
Component: Current packagesAssignee: Paul Zander <negril.nx+gentoo>
Status: CONFIRMED ---    
Severity: minor CC: andrewammerlaan, arek_koz, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/gentoo/gentoo/blob/b4d852132d78f40aab1b01b571d53fd13dc51b39/media-gfx/freecad/freecad-1.0_rc1-r1.ebuild#L206
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 830404    

Description Arusekk 2024-09-30 08:59:31 UTC
If mold linker is used, it fails due to an unsupported command-line option --copy-dt-needed-entries. The flag is being added by the Gentoo ebuild, the comment says "Fix building tests".

Reproducible: Always

Steps to Reproduce:
1. Set up mold like in the Gentoo Wiki https://wiki.gentoo.org/wiki/Mold
2. Try to emerge media-gfx/freecad-1.0_rc1-r1
Actual Results:  
mold: fatal: unknown command line option: --copy-dt-needed-entries
collect2: error: ld returned 1 exit status

Expected Results:  
Package installs.

Someone from mold community says this --copy-dt-needed-entries is useless: https://github.com/rui314/mold/issues/530
Comment 1 Nowa Ammerlaan gentoo-dev 2024-09-30 13:39:40 UTC
> Someone from mold community says this --copy-dt-needed-entries is useless: 

Clearly it is not useless since it does fix an issue here