Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937354 - dev-lang/micropython: fails to build with mold
Summary: dev-lang/micropython: fails to build with mold
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL: https://github.com/rui314/mold/issues...
Whiteboard:
Keywords:
Depends on:
Blocks: systemwide-mold
  Show dependency tree
 
Reported: 2024-08-05 08:53 UTC by Arusekk
Modified: 2024-08-05 08:55 UTC (History)
1 user (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-08-05 08:53:08 UTC
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-2268459048

Reproducible: Always

Steps to Reproduce:
1. Set up mold like in the Gentoo Wiki https://wiki.gentoo.org/wiki/Mold
2. Try to emerge dev-lang/micropython
Actual Results:  
LINK build/mpy-cross
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 flags from mpy-cross/Makefile and ports/unix/Makefile, 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 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-08-05 08:55:46 UTC
Thank you for filing it for completeness :)