* alpine docker configuration fails rust tests
@ 2025-10-03 18:00 Richard Henderson
2025-10-03 18:05 ` Richard Henderson
0 siblings, 1 reply; 2+ messages in thread
From: Richard Henderson @ 2025-10-03 18:00 UTC (permalink / raw)
To: Paolo Bonzini, Alex Bennée; +Cc: qemu-devel
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.
Thanks in advance,
r~
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: alpine docker configuration fails rust tests
2025-10-03 18:00 alpine docker configuration fails rust tests Richard Henderson
@ 2025-10-03 18:05 ` Richard Henderson
0 siblings, 0 replies; 2+ messages in thread
From: Richard Henderson @ 2025-10-03 18:05 UTC (permalink / raw)
To: Paolo Bonzini, Alex Bennée; +Cc: qemu-devel
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~
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-10-03 18:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-03 18:00 alpine docker configuration fails rust tests Richard Henderson
2025-10-03 18:05 ` Richard Henderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).