cross-rs / cross

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

docker: Error response from daemon: error evaluating symlinks from mount source "/run/desktop/mnt/host/m/cargo": not a directory. #1581

Open frederikhors opened 3 days ago

frederikhors commented 3 days ago

Hi dear people,

today I'm using a new Windows PC and for the first time the cargo root dir is not in "C:\.cargo" but in "M:\cargo".

When I launch the same commands of the other PC (with cargo in C:) cross errors with:

cross build --target-dir ./target --release --workspace --target aarch64-unknown-linux-gnu
error: DEPRECATED: future versions of rustup will require --force-non-host to install a non-host toolchain.
warning: toolchain 'stable-x86_64-unknown-linux-gnu' may not be able to run on this system.
warning: If you meant to build software to target that platform, perhaps try `rustup target add x86_64-unknown-linux-gnu` instead?
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: latest update on 2024-10-17, rust version 1.82.0 (f6e511eec 2024-10-15)
info: downloading component 'cargo'
  8.5 MiB /   8.5 MiB (100 %)   8.0 MiB/s in  1s ETA:  0s
info: downloading component 'rust-std'
 26.0 MiB /  26.0 MiB (100 %)   8.5 MiB/s in  3s ETA:  0s
info: downloading component 'rustc'
 70.8 MiB /  70.8 MiB (100 %)   8.7 MiB/s in  8s ETA:  0s
info: installing component 'cargo'
info: installing component 'rust-std'
 26.0 MiB /  26.0 MiB (100 %)  12.9 MiB/s in  2s ETA:  0s
info: installing component 'rustc'
 70.8 MiB /  70.8 MiB (100 %)  14.0 MiB/s in  5s ETA:  0s

  stable-x86_64-unknown-linux-gnu installed - (rustc does not exist)

info: checking for self-update
info: downloading component 'rust-std' for 'aarch64-unknown-linux-gnu'
info: installing component 'rust-std' for 'aarch64-unknown-linux-gnu'
 30.8 MiB /  30.8 MiB (100 %)  13.3 MiB/s in  2s ETA:  0s
Unable to find image 'ghcr.io/cross-rs/aarch64-unknown-linux-gnu:0.2.5' locally
0.2.5: Pulling from cross-rs/aarch64-unknown-linux-gnu
58690f9b18fc: Pull complete
b51569e7c507: Pull complete
da8ef40b9eca: Pull complete
fb15d46c38dc: Pull complete
9d5962c83f5f: Pull complete
9cccf86b8f43: Pull complete
4c6d73517e75: Pull complete
4afe128e6862: Pull complete
2765f54cfdee: Pull complete
40c841a9d0e8: Pull complete
70c492706cd4: Pull complete
b376264cc3c9: Pull complete
f94a42110e99: Pull complete
29835156cc05: Pull complete
d48b139772fe: Pull complete
55ba4d0a0c25: Pull complete
5f4fa2c62d4d: Pull complete
6bc43a1e4611: Pull complete
Digest: sha256:7f8308a8734d9fcd2ebbe9a3e4bdea74af293f0799d80c3cc341e340cda49a4c
Status: Downloaded newer image for ghcr.io/cross-rs/aarch64-unknown-linux-gnu:0.2.5
docker: Error response from daemon: error evaluating symlinks from mount source "/run/desktop/mnt/host/m/cargo": not a directory.

But the directory exists!

Can you suggest a way to fix, please?

Emilgardis commented 3 days ago

I don't know how to solve this, it's very much a docker desktop for windows issue though. Tried finding something about it online but was not able.

First thing you could try is to use cross from the main branch cargo install cross --git https://github.com/cross-rs/cross, but I doubt that would fix it.

frederikhors commented 3 days ago

It does'nt work either.