All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-virtualization][PATCH] libvirt: fix compile failure while DEBUG_BUILD = 1
@ 2025-05-14  7:59 Hongxu Jia
  2025-05-16 12:20 ` Fabio Estevam
  0 siblings, 1 reply; 4+ messages in thread
From: Hongxu Jia @ 2025-05-14  7:59 UTC (permalink / raw)
  To: meta-virtualization

Build libvirt failed while DEBUG_BUILD = 1
[snip]
../git/src/cpu/cpu_x86.c: In function 'cpuidSetLeaf4':
../git/src/cpu/cpu_x86.c:2563:1: error: inlining failed in call to 'cpuidCall': function not considered for inlining [-Werror=inline]
 2563 | cpuidCall(virCPUx86CPUID *cpuid)
      | ^~~~~~~~~
[snip]

Explicitly add -Wno-error=inline to CFLAGS if DEBUG_BUILD = 1 to workaround

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 recipes-extended/libvirt/libvirt_git.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/recipes-extended/libvirt/libvirt_git.bb b/recipes-extended/libvirt/libvirt_git.bb
index 4c6b3bdd..37a60562 100644
--- a/recipes-extended/libvirt/libvirt_git.bb
+++ b/recipes-extended/libvirt/libvirt_git.bb
@@ -50,6 +50,7 @@ USERADD_PACKAGES = "${PN}"
 GROUPADD_PARAM:${PN} = "-r qemu; -r kvm"
 USERADD_PARAM:${PN} = "-r -g qemu -G kvm qemu"
 
+CFLAGS += "${@oe.utils.vartrue('DEBUG_BUILD', '-Wno-error=inline', '', d)}"
 
 EXTRA_OEMESON += "--cross-file ${WORKDIR}/meson-${PN}.cross"
 do_write_config:append() {
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-05-22 13:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-14  7:59 [meta-virtualization][PATCH] libvirt: fix compile failure while DEBUG_BUILD = 1 Hongxu Jia
2025-05-16 12:20 ` Fabio Estevam
2025-05-20  2:57   ` [meta-virtualization][PATCH] libvirt: fix compile failure while DEBUG_BUILD ?utf-8?q?_=3D?= 1 Bruce Ashfield
2025-05-22 13:25     ` Fabio Estevam

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.