Error building pve-qemu-kvm from source

Musee Ullah lae at
Tue Aug 31 04:30:51 CEST 2021

(note for mod: resending without buildlog attachment since it's been 
over a day now)


I'm attempting to build pve-qemu-kvm with pulseaudio support, but I'm 
running into the following error and I'm not sure if there's a step 
missing or if there's an issue with the build process (as far as I can 
tell, it seems unlikely because I also can't compile a checked out 
6.0.0-3 that's already out in the pve repos).

[220/2951] Compiling C object vma.p/vma.c.o
FAILED: vma.p/vma.c.o
cc -Ivma.p -I. -I.. -I/usr/include/glib-2.0 
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -fdiagnostics-color=auto 
-pipe -Wall -Winvalid-pch -std=gnu99 -O2 -g -isystem 
/home/lae/build/pve-qemu/pve-qemu-kvm-6.0.0/linux-headers -isystem 
linux-headers -iquote . -iquote 
/home/lae/build/pve-qemu/pve-qemu-kvm-6.0.0 -iquote 
/home/lae/build/pve-qemu/pve-qemu-kvm-6.0.0/include -iquote 
/home/lae/build/pve-qemu/pve-qemu-kvm-6.0.0/disas/libvixl -iquote 
/home/lae/build/pve-qemu/pve-qemu-kvm-6.0.0/tcg/i386 -iquote 
/home/lae/build/pve-qemu/pve-qemu-kvm-6.0.0/accel/tcg -pthread 
-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 -fPIE -MD -MQ vma.p/vma.c.o -MF vma.p/vma.c.o.d 
-o vma.p/vma.c.o -c ../vma.c
In file included from ../vma.h:18,
from ../vma.c:17:
fatal error: qapi/qapi-types-error.h: No such file or directory
275 | #include "qapi/qapi-types-error.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

(full build log [0])

The steps I'm taking to build the package are as follows (as 
unprivileged user):

git clone git://
cd pve-qemu
sed -i '/audio-drv-list/ s/alsa/alsa,pa/' debian/rules
sudo mk-build-deps -ir
make dinstall

Are these all the steps necessary to build this package? (on another 
note I also attempted another build using --recursive in the git 
checkout, but the problem is still reproduced)

I've attempted to compiled qemu 6.0.0 from upstream and it seems to 
generate and use `qapi-types.error.h` without issue, so I don't think 
this is a dependency issue. I believe scripts/ is supposed to 
generate these files?

Thanks in advance for your help.

P.S. I also note that there's a thread from 2019 [0] with someone asking 
for pulseaudio driver support but it seems like nothing ever came of it. 
I understand that ideally PVE would want to support it via the qm 
utility but would it be possible to just compile the driver upstream 
before that (so users can pass custom -audiodev arguments for qemu 



-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 236 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the pve-user mailing list