cross-rs / cross

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

Build linux binary from Windows #1378

Open Nekiplay opened 8 months ago

Nekiplay commented 8 months ago

Checklist

Describe your issue

docker: failed to register layer: error creating overlay mount to /var/lib/docker/overlay2/0f41d525b0d0970bc10813ce1c5f12a2313b47c4fc169fc7074ab7a668d76863/merged: too many levels of symbolic links.
See 'docker run --help'.

What target(s) are you cross-compiling for?

x86_64-unknown-linux-gnu

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 (96a8da5 2023-11-19)

Example

No response

Additional information / notes

No response

Emilgardis commented 8 months ago

this is more a docker issue than cross

maybe one of these helps?

https://github.com/docker/for-win/issues/5763#issuecomment-972977413 https://unix.stackexchange.com/a/679309 https://stackoverflow.com/a/70852166

that last link suggest removing the image and repulling. So try

docker image rm ghcr.io/cross-rs/x86_64-unknown-linux-gnu:main

if you add -v to the cross command you can see the docker command we do. Can you post the output and the error you get together when using -v