Skip to contentSkip to conversation

pahole: fix native package build error

PATCH New Xiangyu Chen 1 participant 1 message May 5, 2023

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 pahole: fix native package build error

From: Xiangyu Chen <[email protected]>

pahole-native package needs some uapi headers such like linux/btf.h, otherwise it would report error as below:

btf_loader.c:342:54: error: invalid use of undefined type ‘struct btf_enum64’

---
changes:
v1->v2
Since this issue happens on native package only, so using DEPENDS:append:class-native instead of DEPENDS

---
 meta-oe/recipes-devtools/pahole/pahole_1.24.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-devtools/pahole/pahole_1.24.bb +1 -0
index 2bb73c3eb..f44b0cef0 100644
@@ -4,6 +4,7 @@ LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
 
 DEPENDS = "elfutils zlib libbpf"
+DEPENDS:append:class-native = " linux-libc-headers"
 
 # Depends on MACHINE_ARCH libbpf
 PACKAGE_ARCH = "${MACHINE_ARCH}"
Signature · 1 line
2.34.1