Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 940524 - media-gfx/freecad-1.0.0: fails to compile with mold
Summary: media-gfx/freecad-1.0.0: fails to compile with mold
Status: RESOLVED FIXED
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: PullRequest
Depends on:
Blocks: systemwide-mold
  Show dependency tree
 
Reported: 2024-09-30 08:59 UTC by Arusekk
Modified: 2025-05-08 06:29 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
Comment 2 Larry the Git Cow gentoo-dev 2025-05-08 06:29:22 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cfa137c480567626dd5c6ac8856772af26f1f6bb

commit cfa137c480567626dd5c6ac8856772af26f1f6bb
Author:     Paul Zander <negril.nx+gentoo@gmail.com>
AuthorDate: 2025-05-01 19:30:42 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-05-08 06:26:46 +0000

    media-gfx/freecad: 1.0.0-r3 #953399 #940524 #952988
    
    Closes: https://bugs.gentoo.org/953399
    Closes: https://bugs.gentoo.org/940524
    Closes: https://bugs.gentoo.org/952988
    Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
    Part-of: https://github.com/gentoo/gentoo/pull/41967
    Signed-off-by: Sam James <sam@gentoo.org>

 media-gfx/freecad/Manifest                |  1 +
 media-gfx/freecad/freecad-1.0.0-r3.ebuild | 30 ++++++++++++++++++++++--------
 2 files changed, 23 insertions(+), 8 deletions(-)