7.0.0-rc1, -rc2 cannot build - config-poison.h is not generated
Host environment
alpine 3.15, building qemu
This dockerfile duplicate exactly the problem Dockerfile
Emulated/Virtualized environment
n/a
Description of problem
make
halts with:
[557/2583] Generating module_block.h with a custom command
[558/2583] Generating block-gen.c with a custom command
[559/2583] Generating x86_64-softmmu-gdbstub-xml.c with a custom command (wrapped by meson to capture output)
[560/2583] Compiling C object libpage-vary-common.a.p/page-vary-common.c.o
[561/2583] Generating trace-target_sparc.c with a custom command
[562/2583] Generating trace-target_s390x_kvm.c with a custom command
ninja: job failed: clang -m64 -mcx16 -Ilibpage-vary-common.a.p -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -flto -fcolor-diagnostics -Wall -Winvalid-pch -std=gnu11 -O2 -g -isystem /home/dummy/qemu-7.0.0-rc2/linux-headers -isystem linux-headers -iquote . -iquote /home/dummy/qemu-7.0.0-rc2 -iquote /home/dummy/qemu-7.0.0-rc2/include -iquote /home/dummy/qemu-7.0.0-rc2/disas/libvixl -iquote /home/dummy/qemu-7.0.0-rc2/tcg/i386 -pthread -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-definition -Wtype-limits -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wempty-body -Wnested-externs -Wendif-labels -Wexpansion-to-defined -Wno-initializer-overrides -Wno-missing-include-dirs -Wno-shift-negative-value -Wno-string-plus-int -Wno-typedef-redefinition -Wno-tautological-type-limit-compare -Wno-psabi -fstack-protector-strong -fsanitize=cfi-icall -fsanitize-cfi-icall-generalize-pointers -fPIE -fno-lto -fno-sanitize=cfi-icall -MD -MQ libpage-vary-common.a.p/page-vary-common.c.o -MF libpage-vary-common.a.p/page-vary-common.c.o.d -o libpage-vary-common.a.p/page-vary-common.c.o -c ../page-vary-common.c
In file included from ../page-vary-common.c:22:
In file included from /home/dummy/qemu-7.0.0-rc2/include/qemu/osdep.h:34:
/home/dummy/qemu-7.0.0-rc2/include/exec/poison.h:7:10: fatal error: 'config-poison.h' file not found
#include "config-poison.h"
^~~~~~~~~~~~~~~~~
1 error generated.
ninja: subcommand failed
make[1]: *** [Makefile:163: run-ninja] Error 1
make[1]: Leaving directory '/home/dummy/qemu-7.0.0-rc2/build'
make: *** [GNUmakefile:11: all] Error 2
It seems that config-poison.h
is not generated in configure
and is not explicitly a dependency for some of necessary object file.
Steps to reproduce
docker pull alpine:3.15
-
docker build -t qemubad .
with the attached dockerfile
Additional information
6.2.0 is good 7.0.0-rc0, 7.0.0-rc1, 7.0.0-rc2 exhibits the issue
Edited by Thiner Logoer