Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 940524 - media-gfx/freecad-1.0_rc1-r1: fails to compile with mold
Summary: media-gfx/freecad-1.0_rc1-r1: fails to compile with mold
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: Paul Zander
URL: https://github.com/gentoo/gentoo/blob...
Whiteboard:
Keywords:
Depends on:
Blocks: systemwide-mold
  Show dependency tree
 
Reported: 2024-09-30 08:59 UTC by Arusekk
Modified: 2024-09-30 13:39 UTC (History)
3 users (show)

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


Attachments

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