Wind River Support Network

HomeDefectsLIN1022-949
Fixed

LIN1022-949 : libvirt: do_compile: ../libvirt-8.1.0/src/remote/remote_daemon.h:30:10: fatal error: qemu_protocol.h: No such file or directory

Created: Jul 15, 2022    Updated: Sep 6, 2022
Resolved Date: Sep 6, 2022
Found In Version: 10.22.33.1
Severity: Standard
Applicable for: Wind River Linux LTS 22
Component/s: Userspace

Description

When building libvirt, we might meet the following parallel compilation issue. But this can rarely be reproduced. We only saw it twice so far. A patch has been proposed to upstream but didn't get merged.
https://listman.redhat.com/archives/libvir-list/2022-August/233602.html

NOTE: recipe qemu-6.2.0-r0: task do_package_qa: Started
ERROR: libvirt-8.1.0-r0 do_compile: ExecutionError('/buildarea1/wrlinux-10.22/build/OVP/customized_systemd/220714-211848/lxbuilds/Harcuvar_platform_up/intel-x86-64-preempt-rt-ovp-kvm/wrlinux/build/tmp-glibc/work/corei7-64-wrs-linux/libvirt/8.1.0-r0/temp/run.do_compile.2895463', 1, None, None)
Transferring /buildarea1/wrlinux-10.22/build/OVP/customized_systemd/220714-211848/lxbuilds/Harcuvar_platform_up/intel-x86-64-preempt-rt-ovp-kvm/wrlinux/build/tmp-glibc/work/corei7-64-wrs-linux/libvirt/8.1.0-r0/temp/log.do_compile.2895463 to /buildarea1/wrlinux-10.22/log/OVP/intel-x86-64/customized_systemd/Harcuvar_preempt-rt_ovp-kvm_OE_systemd/220714-211848/boot_nested_vms/intel-x86-64_platform/Harcuvar.None.preemptrt.qemux86.true.ovpkvm.lpgbuildcdcWASSP_LINUX_1022testcaseswrlinuxutilsfrags/errorlogs
ERROR: Logfile of failure stored in: /buildarea1/wrlinux-10.22/build/OVP/customized_systemd/220714-211848/lxbuilds/Harcuvar_platform_up/intel-x86-64-preempt-rt-ovp-kvm/wrlinux/build/tmp-glibc/work/corei7-64-wrs-linux/libvirt/8.1.0-r0/temp/log.do_compile.2895463
Log data follows:
| DEBUG: Executing shell function do_compile
| 1/1334] Generating src/esx/virtesxgensources with a custom command
 ( [2/1334) Generating src/rpc/virkeepaliveprotocol.h with a custom command
| 3/1334] Generating src/rpc/virnetprotocol.h with a custom command
 ( [4/1334) Generating src/admin/admin_server_dispatch_stubs.h with a custom command (wrapped by meson to capture output)
| 5/1334] Generating src/access/viraccessapicheck.h with a custom command (wrapped by meson to capture output)
 ( [6/1334) Generating src/util/virt_keycode_xtkbd with a custom command (wrapped by meson to capture output)
| 7/1334] Generating src/util/keyname_linux with a custom command (wrapped by meson to capture output)
 ( [8/1334) Generating src/util/virt_keycode_win32 with a custom command (wrapped by meson to capture output)
| 9/1334] Generating src/util/virt_keycode_osx with a custom command (wrapped by meson to capture output)
 ( [10/1334) Generating src/util/virt_keycode_linux with a custom command (wrapped by meson to capture output)
| 11/1334] Generating src/util/keyname_osx with a custom command (wrapped by meson to capture output)
 ( [12/1334) Generating src/util/virt_keycode_qnum with a custom command (wrapped by meson to capture output)
...
src/virtnetworkd.p/remote_remote_daemon_dispatch.c.o -c ../libvirt-8.1.0/src/remote/remote_daemon_dispatch.c
| In file included from ../libvirt-8.1.0/src/remote/remote_daemon_dispatch.c:26:
| ../libvirt-8.1.0/src/remote/remote_daemon.h:30:10: fatal error: qemu_protocol.h: No such file or directory
|    30 | #include "qemu_protocol.h"
|       |          ^~~~~~~~~~~~~~~~~
| compilation terminated.
...
'-DSOCK_PREFIX="libvirt"' '-DDAEMON_NAME="libvirtd"' -DWITH_IP -DLIBVIRTD -MD -MQ src/libvirtd.p/remote_remote_daemon.c.o -MF src/libvirtd.p/remote_remote_daemon.c.o.d -o src/libvirtd.p/remote_remote_daemon.c.o -c ../libvirt-8.1.0/src/remote/remote_daemon.c
| In file included from ../libvirt-8.1.0/src/remote/remote_daemon.c:39:
| ../libvirt-8.1.0/src/remote/remote_daemon.h:30:10: fatal error: qemu_protocol.h: No such file or directory
|    30 | #include "qemu_protocol.h"
|       |          ^~~~~~~~~~~~~~~~~
| compilation terminated.
| 465/1334] Compiling C object src/logging/libvirt_log_driver.a.p/meson-generated_.._log_protocol.c.o
 ( [466/1334) Compiling C object src/access/libvirt_access.a.p/meson-generated_.._viraccessapicheck.c.o
| 467/1334] Compiling C object tests/libtest_utils_qemu.a.p/testutilsqemu.c.o
 ( [468/1334) Compiling C object tests/libqemucapsprobemock.so.p/qemucapsprobemock.c.o
| [469/1334] Compiling C object src/virtproxyd.p/remote_remote_daemon.c.o
| FAILED: src/virtproxyd.p/remote_remote_daemon.c.o
...

Steps to Reproduce

http://pek-lpggp5.wrs.com:8080/job/LTS22_BUILD/label=good_host/544/consoleFull


/lpg-build/cdc/fast_prod/WRL10_22/WRL10_22_GIT/wrlinux-10/setup.sh --machines intel-x86-64 --distro wrlinux-ovp --dl-layers --accept-eula=yes
source environment-setup-x86_64-wrlinuxsdk-linux
source oe-init-build-env build
echo 'PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-rt"' >> conf/local.conf
echo 'GPG_PATH = "/tmp/tmp.wqQzb3iw17"' >> conf/local.conf
echo '
TEST_SPIN = "GIT_20220714"
TEST_SPRINT = "WRL-10.22.x.1(LTS22)"
TEST_PLAN_WEEK = "2022WW28"' >> conf/local.conf

cat << EOF >> customized_test_plan.ini
[Test_Case]
boot_nested_vms
ceph_test
cpu_irq_isolation
docker-test
domain_management_testing
glusterfs_test
libvirtd_service
libvirt_test
lmbench_benchmark
lmbench_guest_benchmark
lxc-container-guest
openvswitch_func
openvswitch_mirror
openvswitch_qos
openvswitch_vlan
openvswitch_vm2vm
ping_record_route_on_bridge
powertop_benchmark
qemu_user_network_testing
vhost_net

[Test_HW]
boot_nested_vms = "qemux86 qemux86-64 intel-x86-64"
ceph_test = "qemux86 qemux86-64 intel-x86-64"
cpu_irq_isolation = "qemux86 qemux86-64 intel-x86-64"
domain_management_testing = "qemux86 qemux86-64 intel-x86-64"
lmbench_guest_benchmark = "qemux86 qemux86-64 intel-x86-64"
lxc-container-guest = "qemux86 qemux86-64 intel-x86-64"
openvswitch = "qemux86 qemux86-64 intel-x86-64"
openvswitch_func = ""
ping_record_route_on_bridge = "qemux86 qemux86-64 intel-x86-64"
powertop_benchmark = "qemux86 qemux86-64 intel-x86-64"
qemu_user_network_testing = "qemux86 qemux86-64 intel-x86-64"
vhost_net = "qemux86 qemux86-64 intel-x86-64"
EOF

bitbake-layers add-layer /lpg-build/cdc/WASSP_LINUX_1022/testcases/wrlinux/wr-testing/ovp-testing
echo 'require templates/feature/ovp/template.conf' >> conf/local.conf
echo 'IMAGE_FSTYPES += " tar.bz2"' >> conf/local.conf
echo 'BB_NO_NETWORK:pn-lmbench = "0"' >> conf/local.conf
echo 'ACTIVE_PLAN = "customized_test_plan.ini"' >> conf/local.conf
echo 'IMAGE_FSTYPES:remove = " live hddimg iso"' >> conf/local.conf
echo 'KERNEL_FEATURES:append = " features/usb/serial-all.scc"' >> conf/local.conf
echo '
#Bellow is basic env, used by wr-test_0.1.0.bb
TEST_RELEASE_NAME = "WRLinux 10.22"
TEST_ROOTFS_TYPE = "ovp-kvm"
TEST_MULTILIB = ""
TEST_TESTER_NAME = ""
TEST_REQUIREMANTS = "LINUXEXEC-20559"
TEST_TARGET_NAME = "Harcuvar"
TEST_TAGS = ""' >> conf/local.conf
echo 'TEST_KEYWORD = ""qemux86-64""' >> conf/local.conf
bitbake wrlinux-image-ovp-kvm
Live chat
Online