-
Notifications
You must be signed in to change notification settings - Fork 423
Description
Checklist
- I've looked through the issues and pull requests for similar reports
Describe your issue
I wanted to compile a project for Windows on my Raspberry Pi.
I ran cross build --target x86_64-pc-windows-gnu --release
in my project directory. It started pulling a docker image and tried to run it when it was done pulling. Cross crashed with an exec format error. I realized I hadn't installed amd64 binfmt support on my system so I installed it (using docker run --rm --privileged tonistiigi/binfmt --install amd64
). I also manually tested if I can run the image. After confirming that I can run it, I ran the cross command again. The command exited right away, without any output. I tried again a few more times with no luck. I also tried other cross commands. Reinstalling cross or even Rust didn't help.
Here is the terminal output:
❯ cross build --target x86_64-pc-windows-gnu --release
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
703.8 KiB / 703.8 KiB (100 %) 59.8 KiB/s in 13s ETA: 0s
info: latest update on 2023-11-16, rust version 1.74.0 (79e9716c9 2023-11-13)
info: downloading component 'cargo'
8.2 MiB / 8.2 MiB (100 %) 40.6 KiB/s in 3m 48s ETA: 0s
info: downloading component 'rust-std'
26.3 MiB / 26.3 MiB (100 %) 919.2 KiB/s in 3m 5s ETA: 0s
info: downloading component 'rustc'
58.7 MiB / 58.7 MiB (100 %) 725.2 KiB/s in 1m 5s ETA: 0s
info: installing component 'cargo'
8.2 MiB / 8.2 MiB (100 %) 6.7 MiB/s in 1s ETA: 0s
info: installing component 'rust-std'
26.3 MiB / 26.3 MiB (100 %) 6.1 MiB/s in 4s ETA: 0s
info: installing component 'rustc'
58.7 MiB / 58.7 MiB (100 %) 6.8 MiB/s in 8s ETA: 0s
4 IO-ops / 4 IO-ops (100 %) 3 IOPS in 1s ETA: 0s
stable-x86_64-unknown-linux-gnu installed - (error reading rustc version)
info: checking for self-update
info: downloading component 'rust-std' for 'x86_64-pc-windows-gnu'
info: installing component 'rust-std' for 'x86_64-pc-windows-gnu'
22.0 MiB / 22.0 MiB (100 %) 6.2 MiB/s in 3s ETA: 0s
❯ cross build --target x86_64-pc-windows-gnu --release
info: downloading component 'rust-src'
info: installing component 'rust-src'
❯
How can I further debug this issue?
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 (44011c8 2023-10-23)
Example
No response
Additional information / notes
No response