On 10/3/25 11:00, Richard Henderson wrote:
Hiya,

Our Alpine docker image isn't quite right, and fails testing for rust:

Detecting compiler via: `rustc --target x86_64-unknown-linux-musl --version` -> 0
stdout:
rustc 1.83.0 (90b35a623 2024-11-26) (Alpine Linux 1.83.0-r0)
-----------
-----------
Called: `rustc --target x86_64-unknown-linux-musl -C linker=cc -C link-arg=-m64 -o /tmp/ qemu-test/build/meson-private/rusttest.exe /tmp/qemu-test/build/meson-private/sanity.rs` -> 1
stderr:
error[E0463]: can't find crate for `std`
  |
  = note: the `x86_64-unknown-linux-musl` target may not be installed
  = help: consider downloading the target with `rustup target add x86_64-unknown-linux- musl`

error: aborting due to 1 previous error

But what's even more annoying is that --disable-rust doesn't suppress this 
check.

Bah.  I was too quick to point the finger.
It's a different part of the tooling that's in error:

$ make J=8 V=1 docker-test-full@alpine EXTRA_CONFIGURE_OPTS=--disable-rust
...
podman run --rm --userns keep-id --security-opt seccomp=unconfined --net=none -e TARGET_LIST= -e EXTRA_CONFIGURE_OPTS="--disable-rust" -e TEST_COMMAND="" -e V=1 -e J=8 -e DEBUG= -e SHOW_ENV= -v $HOME/.cache/qemu:$HOME/.cache/qemu -e CCACHE_DIR=DOCKER_QEMU_CACHE_DIR/docker-ccache -v $(readlink -e /home/rth/qemu/bld-pub/docker-src.2025-10-03-10.56.14.1004950):/var/tmp/qemu:z,ro qemu/alpine /var/tmp/qemu/run test-full
...
Configure options:
--enable-werror --prefix=/tmp/qemu-test/install --disable-rust --enable-rust

Clearly EXTRA_CONFIGURE_OPTS should be added at the end.


r~

Reply via email to