Replies: 1 comment 4 replies
-
can you show me the full output including the call to cross. You can add |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to cross compile
rust-gpu
'srustc_codegen_spirv
crate. It depends on a specific Rust nightly version and the components:rust-src
,rustc-dev
andllvm-tools
.The build errors I get are all similar to:
error[E0463]: can't find crate for rustc_apfloat
. I also get the helpful tip:I'm not certain but it seems like the error is because
rust-src
(or mayberustc-dev
?) isn't available to the build. I've tried various ways to make the components available:# Not necessarily all at the same time! I'm just listing various things I've tried. rustup toolchain install nightly-2023-09-30 rustup toolchain install nightly-2023-09-30-aarch64-unknown-linux-gnu rustup target add aarch64-unknown-linux-gnu rustup component add rust-src rustc-dev llvm-tools rustup component add --target aarch64-unknown-linux-gnu rust-src rustc-dev llvm-tools
I should also mention that the repo contains this
rust-toolchain.toml
:I would have thought
rustup
would auto-install that?Notes
cross
version:cargo install cross --git https://github.com/cross-rs/cross
CROSS_NO_WARNINGS=0 cross build --locked --release --target aarch64-unknown-linux-gnu
aarch64
and I can't get anycross
Docker images to work.Beta Was this translation helpful? Give feedback.
All reactions