cross-rs / cross

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

x86_64-pc-windows-gnu target fails to build #1593

Open walksanatora opened 1 day ago

walksanatora commented 1 day ago

Checklist

Describe your issue

I am trying to run cross build --target x86_64-pc-windows-gnu which fails with

info: downloading component 'rust-std' for 'x86_64-pc-windows-gnu'
info: installing component 'rust-std' for 'x86_64-pc-windows-gnu'
 23.7 MiB /  23.7 MiB (100 %)  17.1 MiB/s in  1s ETA:  0s
info: rolling back changes
error: failed to install component: 'rust-std-x86_64-pc-windows-gnu', detected conflict: 'lib/rustlib/x86_64-pc-windows-gnu/lib/rsbegin.o'
Error: 
   0: couldn't install `std` for x86_64-pc-windows-gnu
   1: `rustup target add x86_64-pc-windows-gnu --toolchain stable-x86_64-unknown-linux-gnu` failed with exit status: 1

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

x86_64-pc-windows-gnu

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

cross 0.2.5

Example

cross build --target x86_64-pc-windows-gnu

Additional information / notes

no clue. I also get the same error on my host machine when trying to install that

### Tasks
Emilgardis commented 1 day ago

What does rustup target add x86_64-pc-windows-gnu --toolchain stable-x86_64-unknown-linux-gnu say? You probably need to uninstall your stable-x86_64-unknown-linux-gnu toolchain and reinstall it

To clarify, this is not a cross issue, its rustup