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
> Someone from mold community says this --copy-dt-needed-entries is useless: Clearly it is not useless since it does fix an issue here
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(-)