qemu/tests/tcg/multiarch/system
Ilya Leoshkevich 0ccbac336b tests/tcg: Do not use inttypes.h in multiarch/system/memory.c
make check-tcg fails on Fedora with the following error message:

    alpha-linux-gnu-gcc [...] qemu/tests/tcg/multiarch/system/memory.c -o memory [...]
    qemu/tests/tcg/multiarch/system/memory.c:17:10: fatal error: inttypes.h: No such file or directory
       17 | #include <inttypes.h>
          |          ^~~~~~~~~~~~
    compilation terminated.

The reason is that Fedora has cross-compilers, but no cross-glibc
headers. Fix by hardcoding the format specifiers and dropping the
include.

An alternative fix would be to introduce a configure check for
inttypes.h. But this would make it impossible to use Fedora
cross-compilers for softmmu tests, which used to work so far.

Fixes: ecbcc9ead2 ("tests/tcg: add a system test to check memory instrumentation")
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-ID: <20241010085906.226249-1-iii@linux.ibm.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2024-12-24 07:32:50 -08:00
..
hello.c tests/tcg/multiarch: add hello world system test 2019-05-28 10:28:51 +01:00
interrupt.c gdbstub: fixes cases where wrong threads were reported to GDB on SIGINT 2023-08-30 14:57:50 +01:00
Makefile.softmmu-target tests/tcg: add a system test to check memory instrumentation 2024-09-19 15:58:01 +01:00
memory.c tests/tcg: Do not use inttypes.h in multiarch/system/memory.c 2024-12-24 07:32:50 -08:00
validate-memory-counts.py tests/tcg: add a system test to check memory instrumentation 2024-09-19 15:58:01 +01:00