cross-rs / cross

“Zero setup” cross compilation and “cross testing” of Rust crates
Apache License 2.0
6.8k stars 379 forks source link

Some tust target not installed in docker #1571

Closed yhw2003 closed 1 month ago

yhw2003 commented 1 month ago

Checklist

Describe your issue

I got errorerror[E0463]: can't find crate for core in longarch cpus targets . You can see my ci logs. Actions

What target(s) are you cross-compiling for?

loongarch64-unknown-linux-gnu, loongarch64-unknown-linux-musl

Which operating system is the host (e.g computer cross is on) running?

What architecture is the host?

What container engine is cross using?

cross version

0.2.5

Example

No response

Additional information / notes

No response

Emilgardis commented 1 month ago

Make sure you're using cross from the main branch Look at line 4 in that CI step

[cross] warning: `cross` does not provide a Docker image for target loongarch64-unknown-linux-gnu, specify a custom image in `Cross.toml`.
[cross] note: Falling back to `cargo` on the host.

Install cross with cross install cross --git https://github.com/cross-rs/cross/

You can also change Cross.toml to include this new target