GDB_HAS_MTE detection is incomplete
Configure with no arguments, on a non-aarch64 host, with only gdb (not gdb-multiarch) installed, results in
qemu-aarch64: QEMU: Terminated via GDBstub
make[1]: *** [/home/rth/qemu/publish/tests/tcg/aarch64/Makefile.target:138: run-gdbstub-mte] Error 1
make: *** [/home/rth/qemu/publish/tests/Makefile.include:56: run-tcg-tests-aarch64-linux-user] Error 2
This is because configure only looks for the gdb version, which in this case is 15.0.50 for an x86_64 host, as distributed for Ubuntu 24.04.
Edited by Richard Henderson