-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--target
and -C linker
aren't passed to some crates when cross-compiling
#362
Comments
It looks like the |
|
drakon64
changed the title
"couldn't find crate
Sep 28, 2024
autocfg
with expected target triple x86_64-unknown-linux-gnu" when building for x86_64-unknown-linux-musl--target
and -C linker
aren't passed to some crates
drakon64
changed the title
Sep 28, 2024
--target
and -C linker
aren't passed to some crates--target
and -C linker
aren't passed to some crates when cross-compiling
Almost exactly the same error as #132 (comment) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to compile a Rust project to
x86_64-unknown-linux-musl
from ax86_64-unknown-linux-gnu
host (NixOS 24.05).pkgs
is defined as follows:I call the Rust derivation:
Where
./nix/rust.nix
is:and
./rust-toolchain.toml
is:While some crates build fine, eventually the build will fail because an
x86_64-unknown-linux-gnu
autocfg
cannot be found despite the build targetingx86_64-unknown-linux-musl
. The Rust compiler even acknowledges that ax86_64-unknown-linux-musl
build exists. I can also replicate this issue when targetingaarch64-unknown-linux-musl
andaarch64-unknown-linux-gnu
.The text was updated successfully, but these errors were encountered: