Summary: | dev-lang/rust: Building Anything Rust-based Fails to Compile Due to Missing -lgcc_s on musl/llvm profile | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jake Winters <admin> |
Component: | Current packages | Assignee: | Randy Barlow <randy> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | admin, llvm, mgorny, navi, rust, w12101111 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Jake Winters
2024-03-22 06:44:26 UTC
`emerge --info`: https://0x0.st/XrlT.txt You should add ~amd64 to ACCEPT_KEYWORDS or add `dev-lang/rust -system-llvm` to `/etc/portage/profile/package.use.mask` because `USE=system-llvm` of dev-lang/rust is masked in profiles/base/package.use.stable.mask dev-lang/rust should enable USE="system-llvm llvm-libunwind" on musl/llvm profile. (In reply to 12101111 from comment #2) > You should add ~amd64 to ACCEPT_KEYWORDS or add `dev-lang/rust -system-llvm` > to `/etc/portage/profile/package.use.mask` because `USE=system-llvm` of > dev-lang/rust is masked in profiles/base/package.use.stable.mask > > dev-lang/rust should enable USE="system-llvm llvm-libunwind" on musl/llvm > profile. I have system-wide `~amd64` already. USE=llvm-libunwind is masked for me via `(-llvm-libunwind)` regardless of my custom USE flags. No idea what to do with this bug, so giving it to llvm. I have no clue whether Rust hardcodes -lgcc_s (should it absurdly RDEPEND on sys-devel/gcc then?) or if there's some way to make it use compiler-rt. I should clarify that Rust itself does build and install, but any packages written in Rust or using cargo libraries do not. I cannot even install cargo again at this point as it fails with the same error. |