Skip to content
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

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

Closed
4 of 11 tasks
walksanatora opened this issue Dec 2, 2024 · 2 comments
Closed
4 of 11 tasks

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

walksanatora opened this issue Dec 2, 2024 · 2 comments

Comments

@walksanatora
Copy link

walksanatora commented Dec 2, 2024

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?

  • macOS
  • Windows
  • Linux / BSD
  • other OS (specify in description)

What architecture is the host?

  • x86_64 / AMD64
  • arm32
  • arm64 (including Mac M1)

What container engine is cross using?

  • docker
  • podman
  • other container engine (specify in description)

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

Preview Give feedback
No tasks being tracked yet.
@Emilgardis
Copy link
Member

Emilgardis commented Dec 2, 2024

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

@walksanatora
Copy link
Author

yeah I had to manually remove files. because rustup had semi-installed the windows-gnu target. but not installed enough for it to be removable via the rustup command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants