share-generics leads to unresolved external symbols/undefined references #120229
Labels
A-linkage
Area: linking into static, shared libraries and binaries
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Hello, I've been trying to get
cargo test
working in the project basm-rs and found a weird behavior that looks like a bug. Specifically, running the following command results in link failure on both Windows x64, Linux x64, and Linux i686:The full error message on CI is as follows:
Full message on CI (Windows x64)
Full message on CI (Linux x64)
Full message on CI (Linux i686)
However, all of the above CI failures can be fixed by adding
"-Z", "share-generics=no"
to the RUSTFLAGS in.cargo/config.toml
.The CI is configured to use the most recent version of nightly Rust. But running cargo-bisect-rustc locally does not find any working version of nightly.
So, I'm filing a bug report here as it seems like the
share-generics
feature potentially has a bug.Thanks!
The text was updated successfully, but these errors were encountered: