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

Bug 947768

Summary: app-misc/beep-1.4.12-r1: fails to build with mold
Product: Gentoo Linux Reporter: Arusekk <arek_koz>
Component: Current packagesAssignee: Gentoo Shell Tools project <shell-tools>
Status: UNCONFIRMED ---    
Severity: minor CC: arek_koz
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/40348
https://bugs.gentoo.org/show_bug.cgi?id=937354
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 830404    

Description Arusekk 2025-01-09 10:46:02 UTC
Same as in #937354, if mold linker is used, it fails due to an unsupported command line option --cref.

I also posted a comment to the relevant upstream mold issue about the problem at https://github.com/rui314/mold/issues/573#issuecomment-2579809594

Reproducible: Always

Steps to Reproduce:
1. Set up mold like in the Gentoo Wiki https://wiki.gentoo.org/wiki/Mold
2. Try to emerge app-misc/beep
Actual Results:  
mold: fatal: unknown command line option: --cref
collect2: error: ld returned 1 exit status

Expected Results:  
Package installs.

It can be worked around by either removing --cref flag from GNUmakefile, or by disabling mold for the package.

Posting here mainly in order to add this to the mold metaissue, but a workaround would also be fine for me.
Comment 1 Arusekk 2025-02-19 07:21:08 UTC
Upstream PR removing --cref: https://github.com/spkr-beep/beep/pull/44