-
Notifications
You must be signed in to change notification settings - Fork 408
cross build --target aarch64-pc-windows-msvc
fails with error 53
#1509
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
Comments
The first problem you describe is an issue with compat between docker-desktop and buildx. There's an option in docker-desktop for macos that has caused issues previously for other people (although it has worked for me), "Use containerd for pulling and storing images" Should be solved by building with For the second issue, I require some more information. Can you post the output together with adding |
This was already disabled by default, did you meant to enable it?
Here is the output of that command, I don't know why it is inquiring rustup about
Thanks for the fast reply! |
the toolchain note: I only suggested But back to the issue. |
It just prints these outputs and exits successfully. 😕
Do I need to build the image again? 😢 Thanks! |
is your docker working? try |
While passing My docker is working as it can run the
|
I'm also running into the exact same issue, same output and everything. Did you ever figure this out @mominul? |
Unfortunately no, I have deleted the docker image and now using a VM to run Windows 😞 |
Is this issue perhaps the reason why Even after installing the latest from-source version with $ cross build --target=aarch64-pc-windows-msvc
[cross] warning: `cross` does not provide a Docker image for target aarch64-pc-windows-msvc, specify a custom image in `Cross.toml`.
[cross] error: Errors encountered before cross compilation, aborting.
[cross] note: Disable this with `CROSS_NO_WARNINGS=0` EDIT: I don't see it listed in the published packages either: https://github.com/orgs/cross-rs/packages?tab=packages&q=aarch64 Is that why the OP is manually building the image? EDIT2: This target doesn't seem to be noted in https://github.com/cross-rs/cross?tab=readme-ov-file#supported-targets, and only carries this off-hand note:
It seems that building manually is expected? Perhaps the warning should link to this, and the note should be more explicitly specified (perhaps by having some common targets spelled out in full)? EDIT3: This also seems to be mentioned at cross-rs/cross-toolchains#32. EDIT4: I misunderstood. As it turns out this is a Linux Docker image that is set up to cross-compile to MSVC, rather than running the tests natively (and emulating the architecture) on Windows: #1672 (comment) |
Checklist
Describe your issue
I have built the
ghcr.io/cross-rs/aarch64-pc-windows-msvc-cross
image withcross-toolchains
. Here is the output of the image build:Here is the screenshot from docker desktop:

and output from
docker image
:and the
Cross.toml
:For the first time I used
cross build --target aarch64-pc-windows-msvc
it errored out with125
and this output:Afterwards I restarted the docker desktop, and now everytime I run
cross build --target aarch64-pc-windows-msvc
it gives no output but errors out with53
error number and a target directory with just aCACHEDIR.TAG
file.What target(s) are you cross-compiling for?
other (specify in description)
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 (19be834 2024-05-17)
Example
No response
Additional information / notes
No response
The text was updated successfully, but these errors were encountered: