Whenever I attempt to build anything Rust-based on my musl/llvm profile system, all packages fail with the error `unable to find library -lgcc_s`. I have uploaded an example of this with the `app-emulation/virtiofsd-1.10.0` package at https://0x0.st/XrlP.log Reproducible: Always Steps to Reproduce: 1. Attempt to build anything Rust-based on musl/llvm profile 2. Receive mentioned error Actual Results: Received error `unable to find library -lgcc_s`. Expected Results: Packages successfully build and install.
`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.