-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
I do:
$ git clone https://github.com/cross-rs/cross
$ cd cross
$ git submodule update --init --remote
Then when I do:
$ cargo xtask configure-crosstool x86_64-pc-windows-msvc
warning: `cross` (lib) generated 17 warnings
Compiling xtask v0.0.0-dev.0 (/home/mamadou/cross/xtask)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.09s
Running `target/debug/xtask configure-crosstool x86_64-pc-windows-msvc`
Error:
0: unable to find config for target "x86_64-pc-windows-msvc"
Location:
xtask/src/crosstool.rs:64
Or
$ cargo build-docker-image x86_64-pc-windows-msvc-cross --tag local
[cross] note: Build x86_64-pc-windows-msvc-cross for x86_64-unknown-linux-gnu
unknown flag: --platform
Usage: docker [OPTIONS] COMMAND [ARG...]
Run 'docker --help' for more information
Error:
0: some error(s) encountered
Location:
xtask/src/build_docker_image.rs:347
Error:
0: `docker buildx build --platform linux/amd64 --build-arg 'CROSS_TARGET_TRIPLE=X86_64_PC_WINDOWS_MSVC_CROSS' --load --pull --cache-from 'type=registry,ref=ghcr.io/cross-rs/x86_64-pc-windows-msvc-cross:main' --tag ghcr.io/cross-rs/x86_64-pc-windows-msvc-cross:local --label 'org.cross-rs.for-cross-target=x86_64-pc-windows-msvc-cross' --label 'org.cross-rs.runs-with=x86_64-unknown-linux-gnu' --file /home/mamadou/cross/docker/cross-toolchains/docker/Dockerfile.x86_64-pc-windows-msvc-cross --progress auto .` failed with exit status: 125
Location:
xtask/src/build_docker_image.rs:310
Warning: call to docker failed
Suggestion: is `buildx` available for the container engine?
Note: disable the `buildkit` dependency optionally with `CROSS_CONTAINER_ENGINE_NO_BUILDKIT=1`
Even doing as suggested by the warning:
$ env CROSS_CONTAINER_ENGINE_NO_BUILDKIT=1 cargo build-docker-image x86_64-pc-windows-msvc-cross --tag local
[cross] note: Build x86_64-pc-windows-msvc-cross for x86_64-unknown-linux-gnu
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/
unknown flag: --progress
Usage: docker build [OPTIONS] PATH | URL | -
Run 'docker build --help' for more information
Error:
0: some error(s) encountered
Location:
xtask/src/build_docker_image.rs:347
Error:
0: `docker build --platform linux/amd64 --build-arg 'CROSS_TARGET_TRIPLE=X86_64_PC_WINDOWS_MSVC_CROSS' --pull --cache-from 'type=registry,ref=ghcr.io/cross-rs/x86_64-pc-windows-msvc-cross:main' --tag ghcr.io/cross-rs/x86_64-pc-windows-msvc-cross:local --label 'org.cross-rs.for-cross-target=x86_64-pc-windows-msvc-cross' --label 'org.cross-rs.runs-with=x86_64-unknown-linux-gnu' --file /home/mamadou/cross/docker/cross-toolchains/docker/Dockerfile.x86_64-pc-windows-msvc-cross --progress auto .` failed with exit status: 125
Location:
xtask/src/build_docker_image.rs:310
Warning: call to docker failed
Running just the following it fine:
$ cargo xtask configure-crosstool
warning: `cross` (lib) generated 17 warnings
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.04s
Running `target/debug/xtask configure-crosstool`
Metadata
Metadata
Assignees
Labels
No labels