The cross-win32-system GitLab CI job fails to build with the following error:
i686-w64-mingw32-gcc -m32 -Ilibqemu-loongarch64-softmmu.fa.p -I. -I.. -Itarget/loongarch -I../target/loongarch -I../dtc/libfdt -Iqapi -Itrace -Iui -Iui/shader -I/usr/i686-w64-mingw32/sys-root/mingw/include/pixman-1 -I/usr/i686-w64-mingw32/sys-root/mingw/include/glib-2.0 -I/usr/i686-w64-mingw32/sys-root/mingw/lib/glib-2.0/include -fdiagnostics-color=auto -Wall -Winvalid-pch -Werror -std=gnu11 -O2 -g -iquote . -iquote /builds/qemu-project/qemu -iquote /builds/qemu-project/qemu/include -iquote /builds/qemu-project/qemu/tcg/i386 -mms-bitfields -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-pie -no-pie -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -Wold-style-declaration -Wold-style-definition -Wtype-limits -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wempty-body -Wnested-externs -Wendif-labels -Wexpansion-to-defined -Wimplicit-fallthrough=2 -Wno-missing-include-dirs -Wno-shift-negative-value -Wno-psabi -fstack-protector-strong -DNEED_CPU_H '-DCONFIG_TARGET="loongarch64-softmmu-config-target.h"' '-DCONFIG_DEVICES="loongarch64-softmmu-config-devices.h"' -MD -MQ libqemu-loongarch64-softmmu.fa.p/hw_loongarch_acpi-build.c.obj -MF libqemu-loongarch64-softmmu.fa.p/hw_loongarch_acpi-build.c.obj.d -o libqemu-loongarch64-softmmu.fa.p/hw_loongarch_acpi-build.c.obj -c ../hw/loongarch/acpi-build.c ../hw/loongarch/acpi-build.c: In function 'acpi_build': ../hw/loongarch/acpi-build.c:402:9: error: implicit declaration of function 'tpm_get_version' [-Werror=implicit-function-declaration] 402 | if (tpm_get_version(tpm_find()) == TPM_VERSION_2_0) { | ^~~~~~~~~~~~~~~ ../hw/loongarch/acpi-build.c:402:9: error: nested extern declaration of 'tpm_get_version' [-Werror=nested-externs] ../hw/loongarch/acpi-build.c:402:25: error: implicit declaration of function 'tpm_find' [-Werror=implicit-function-declaration] 402 | if (tpm_get_version(tpm_find()) == TPM_VERSION_2_0) { | ^~~~~~~~ ../hw/loongarch/acpi-build.c:402:25: error: nested extern declaration of 'tpm_find' [-Werror=nested-externs] ../hw/loongarch/acpi-build.c:402:40: error: 'TPM_VERSION_2_0' undeclared (first use in this function); did you mean 'TP_VERSION'? 402 | if (tpm_get_version(tpm_find()) == TPM_VERSION_2_0) { | ^~~~~~~~~~~~~~~ | TP_VERSION ../hw/loongarch/acpi-build.c:402:40: note: each undeclared identifier is reported only once for each function it appears in https://gitlab.com/qemu-project/qemu/-/jobs/3270049630 Stefan