Skip to content

cross build --target aarch64-pc-windows-msvc fails with error 53  #1509

Open
@mominul

Description

@mominul

Checklist

Describe your issue

I have built the ghcr.io/cross-rs/aarch64-pc-windows-msvc-cross image with cross-toolchains. Here is the output of the image build:

     Running `target/debug/xtask build-docker-image aarch64-pc-windows-msvc-cross --tag local`
[cross] note: Build aarch64-pc-windows-msvc-cross for x86_64-unknown-linux-gnu
[+] Building 5733.1s (22/22) FINISHED          docker:desktop-linux
 => [internal] load build definition from Dockerfile.aarch64-  0.0s
 => => transferring dockerfile: 1.11kB                         0.0s
 => [internal] load metadata for docker.io/library/ubuntu:20.  8.7s
 => [internal] load .dockerignore                              0.0s
 => => transferring context: 260B                              0.0s
 => ERROR importing cache manifest from ghcr.io/cross-rs/aarc  1.3s
 => [ 1/16] FROM docker.io/library/ubuntu:20.04@sha256:0b897  25.2s
 => => resolve docker.io/library/ubuntu:20.04@sha256:0b897358  0.0s
 => => sha256:5f5250218d28ad6612bf653eced4071 2.30kB / 2.30kB  0.0s
 => => sha256:9ea8908f47652b59b8055316d9c0 27.51MB / 27.51MB  24.4s
 => => sha256:0b897358ff6624825fb50d20ffb605a 1.13kB / 1.13kB  0.0s
 => => sha256:d86db849e59626d94f768c679aba441163c 424B / 424B  0.0s
 => => extracting sha256:9ea8908f47652b59b8055316d9c0e16b365e  0.6s
 => [internal] load build context                              0.0s
 => => transferring context: 10.87kB                           0.0s
 => [ 2/16] COPY common.sh lib.sh /                            0.1s
 => [ 3/16] RUN /common.sh                                   520.4s
 => [ 4/16] COPY cmake.sh /                                    0.0s
 => [ 5/16] RUN /cmake.sh                                    369.8s
 => [ 6/16] COPY xargo.sh /                                    0.0s 
 => [ 7/16] RUN /xargo.sh                                    371.7s 
 => [ 8/16] COPY cross-toolchains/docker/msvc-wine.sh /        0.0s 
 => [ 9/16] RUN /msvc-wine.sh                               3483.0s
 => [10/16] COPY wine.sh /                                     0.0s
 => [11/16] RUN /wine.sh                                     652.9s
 => [12/16] COPY cross-toolchains/docker/perl.sh /             0.0s
 => [13/16] RUN /perl.sh                                     278.4s
 => [14/16] COPY cross-toolchains/docker/msvc-wine-symlink.sh  0.0s
 => [15/16] RUN /msvc-wine-symlink.sh arm64                    0.3s
 => [16/16] COPY cross-toolchains/docker/msvc-windows-entry.s  0.0s
 => exporting to image                                        21.0s
 => => exporting layers                                       21.0s
 => => writing image sha256:ef7aa3b437a146390f4df69a91ca6d888  0.0s
 => => naming to ghcr.io/cross-rs/aarch64-pc-windows-msvc-cro  0.0s
------
 > importing cache manifest from ghcr.io/cross-rs/aarch64-pc-windows-msvc-cross:main:
------

Here is the screenshot from docker desktop:
image

and output from docker image:

REPOSITORY                                       TAG       IMAGE ID       CREATED        SIZE
ghcr.io/cross-rs/aarch64-pc-windows-msvc-cross   local     ef7aa3b437a1   11 hours ago   9.43GB

and the Cross.toml:

[target.aarch64-pc-windows-msvc]
image = "ghcr.io/cross-rs/aarch64-pc-windows-msvc-cross:local"

For the first time I used cross build --target aarch64-pc-windows-msvc it errored out with 125 and this output:

info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: latest update on 2024-05-02, rust version 1.78.0 (9b00956e5 2024-04-29)
info: downloading component 'cargo'
  8.0 MiB /   8.0 MiB (100 %)   1.7 MiB/s in  4s ETA:  0s
info: downloading component 'rust-std'
 24.3 MiB /  24.3 MiB (100 %)   1.9 MiB/s in 13s ETA:  0s
info: downloading component 'rustc'
 63.7 MiB /  63.7 MiB (100 %)   2.2 MiB/s in 34s ETA:  0s
info: installing component 'cargo'
info: installing component 'rust-std'
 24.3 MiB /  24.3 MiB (100 %)  18.7 MiB/s in  1s ETA:  0s
info: installing component 'rustc'
 63.7 MiB /  63.7 MiB (100 %)  20.3 MiB/s in  3s ETA:  0s

  stable-x86_64-unknown-linux-gnu installed - (error reading rustc version)

info: checking for self-update
info: downloading component 'rust-std' for 'aarch64-pc-windows-msvc'
info: installing component 'rust-std' for 'aarch64-pc-windows-msvc'
Unable to find image 'aarch64-pc-windows-msvc-cross:local' locally
docker: Error response from daemon: pull access denied for aarch64-pc-windows-msvc-cross, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.

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 with 53 error number and a target directory with just a CACHEDIR.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?

  • 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 (19be834 2024-05-17)

Example

No response

Additional information / notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-dockerArea: docker container engineA-macos-hostArea: macos hosts

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions