Skip to contentSkip to conversation

mesa-tools-native: fix do_compile failure

PATCH In review Changqing Li 3 participants 5 messages Mar 11 – Mar 18

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mesa-tools-native: fix do_compile failure

Fix do_compile failure:
../sources/mesa-26.0.1/src/panfrost/lib/kmod/pan_kmod.c:7:10: fatal error: xf86drm.h: No such file or directory

---
 meta/recipes-graphics/mesa/mesa-tools-native.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-graphics/mesa/mesa-tools-native.bb +1 -1
index 50d2f5cbb0..743e3391e9 100644
@@ -11,7 +11,7 @@ PACKAGECONFIG += "gallium-llvm"
 # to PACKAGECONFIG like in mesa.inc
 PACKAGECONFIG += "${@bb.utils.filter('DISTRO_FEATURES', 'x11 wayland', d)}"
 
-DEPENDS += "libclc-native spirv-tools-native spirv-llvm-translator-native"
+DEPENDS += "libclc-native spirv-tools-native spirv-llvm-translator-native libdrm-native"
 
 EXTRA_OEMESON += " \
     -Dmesa-clc=enabled -Dinstall-mesa-clc=true -Dmesa-clc-bundle-headers=enabled \
Signature · 1 line
2.34.1
#1 lore raw

meta/recipes-graphics/mesa/mesa-tools-native.bb PACKAGECONFIG += "gallium-llvm" · line 14

Quoted 6 lines · Changqing Li via lists.openembedded.org

Fix do_compile failure:
../sources/mesa-26.0.1/src/panfrost/lib/kmod/pan_kmod.c:7:10: fatal error: xf86drm.h: No such file or directory

meta/recipes-graphics/mesa/mesa-tools-native.bb +1 -1
-DEPENDS += "libclc-native spirv-tools-native spirv-llvm-translator-native"
+DEPENDS += "libclc-native spirv-tools-native spirv-llvm-translator-native libdrm-native"

This is not seen on the autobuilder, so what is the configuration that triggers it?

Alex

#2 lore raw
Quoted 11 lines · Alexander Kanavin

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

meta/recipes-graphics/mesa/mesa-tools-native.bb PACKAGECONFIG += "gallium-llvm" · line 14

Quoted 4 lines · Changqing Li via lists.openembedded.org

Fix do_compile failure:
../sources/mesa-26.0.1/src/panfrost/lib/kmod/pan_kmod.c:7:10: fatal error: xf86drm.h: No such file or directory

meta/recipes-graphics/mesa/mesa-tools-native.bb +1 -1
-DEPENDS += "libclc-native spirv-tools-native spirv-llvm-translator-native"
+DEPENDS += "libclc-native spirv-tools-native spirv-llvm-translator-native libdrm-native"

This is not seen on the autobuilder, so what is the configuration that triggers it?

It is triggered when DISTRO_FEATURES contains opengl, but not contains "x11 wayland".  Now,  poky enable opengl x11 wayland by default.

//Changqing

Quoted 1 line

Alex

#3 lore raw

PATCH 1/1 mesa-tools-native: fix do_compile failure

This patch is breaking builds for eglfs backend ( one without X11 or wayland ) Ideally, this should be added by checking DISTRO_FEATURES_NATIVE for opengl maybe, but the said patch is fine as well.

Please cherry-pick this patch for master

Thanks
-Khem