Parallel builds fail (make -j >=2) when using --extra-cflags "--save-temps"
Bug #1813010 reported by
Shahab Vahedi
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Invalid
|
Undecided
|
Unassigned |
Bug Description
specs:
QEMU commit: 9f33051abce238a
# of Cores: 8
Host kernel: Linux 4.19.16-1-lts
Host type: x86_64 GNU/Linux
Host distro: Archlinux
Guest: we never get that far
steps:
# fresh copy of the latest commit
> git clone https:/
# separate build dir
> mkdir build
> cd build
# sample configuration for riscv (this happens for other targets as well)
> ../qemu/configure --target-
# this will fail (see attached log file)
> make -j 2
To post a comment you must log in.
It seems the --save-temps is what breaks things for me, the following works:
../qemu. git/configure --target- list=riscv64- softmmu --enable-debug --extra-cflags="-O0 -g3" && make -j9
rm -rf and start again with:
../qemu. git/configure --target- list=riscv64- softmmu --enable-debug --extra-cflags="-O0 -g3 --save-temps"
falls over with lines like:
block/trace.h: In function ‘_nocheck_ _trace_ nbd_co_ request_ fail’: h:3141: 73: error: ‘_TRACE_ NBD_CO_ REQUEST_ FAIL_DSTATE’ undeclared (first use in this function); did you mean ‘TRACE_ NBD_CO_ REQUEST_ FAIL_BACKEND_ DSTATE’ ? event_get_ state(TRACE_ NBD_CO_ REQUEST_ FAIL) && qemu_loglevel_ mask(LOG_ TRACE)) {
^~~~ ~~~~~~~ ~~~~~~~ ~~
TRACE_ NBD_CO_ REQUEST_ FAIL_BACKEND_ DSTATE
block/trace.
if (trace_
which implies something getting in the way of making the trace files.