rust-cross / rust-musl-cross

Docker images for compiling static Rust binaries using musl-cross
MIT License
617 stars 68 forks source link

`messense/rust-musl-cross:x86_64-musl` is not `x86_64-unknown-linux-musl` target. #71

Closed mokeyish closed 1 year ago

mokeyish commented 1 year ago

Thanks for your work on this. A very usefull docker image to build musl target.

But recently, I find that messense/rust-musl-cross:x86_64-musl is not x86_64-unknown-linux-musl target. It shows x86_64-unknown-linux-gun in my wsl2 kali roling linux.

messense commented 1 year ago

It shows x86_64-unknown-linux-gun in my wsl2 kali roling linux.

What do you mean by this? What show that? Can you give a list of steps to reproduce?

mokeyish commented 1 year ago

@messense

It can reproduce by following steps:

  1. create command alias
    alias rust-musl-builder='mkdir -p .cargo/registry && mkdir -p .cargo/git  && podman run -it -v "$(pwd)/.cargo/registry":/root/.cargo/registry -v "$(pwd)/.cargo/git":/root/.cargo/git -v "$(pwd)":/home/rust/src messense/rust-musl-cross:x86_64-musl'
  2. run command rust-musl-builder
  3. list toolchains
图片
messense commented 1 year ago

I think you misunderstood the difference between toolchain and target.

mokeyish commented 1 year ago

Thanks!