Skip to contentSkip to conversation

mesa: small improvements after 25.0 merge

PATCH Superseded Dmitry Baryshkov 3 participants 19 messages Apr 11, 2025 – Apr 15, 2025 Arm/Amlogic Meson SoC support

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover mesa: small improvements after 25.0 merge

Several small improvements after Mesa 25.0 recipe was merged:
- Drop the kmsro as suggested by Martin
- Replace the bindgen patches with meston-based fix (Dylan Baker)
- Update the status of the merged patch
- Rework how x86-specific drivers are selected to allow fine grained control

---
Dmitry Baryshkov (7):
mesa: drop kmsro PACKAGECONFIG
meson: pass -target and -I to bindgen calls
mesa: drop the bindgen patch
mesa: update patch status
mesa: don't buid Intel drivers outside of x86 world
mesa: introduce amd PACKAGECONFIG
mesa: hanlde svga Gallium driver through PACKAGECONFIG too

 meta/classes-recipe/meson.bbclass                  |  1 +
 ...able-SIMD-blake-optimisations-on-x32-host.patch |  2 +-
 ...vide-cross-compilation-arguments-to-LLVM-.patch | 67 ----------------------
 meta/recipes-graphics/mesa/mesa.inc                | 48 ++++++----------
 4 files changed, 19 insertions(+), 99 deletions(-)

---
base-commit: 183e043de423fd3f7833366ca524a6f7d17e6d14
change-id: 20250411-mesa-25-fixes-5a38fe55dd3c

Best regards,

Signature · 1 line
Dmitry Baryshkov <[email protected]>
#1 lore raw

PATCH 1/7 mesa: drop kmsro PACKAGECONFIG

Mesa has dropped support for separate kmsro option to gallium-drivers. Drop it from the recipe and drop the now-unused PACKAGECONFIG too.

---
 meta/recipes-graphics/mesa/mesa.inc | 2 --
 1 file changed, 2 deletions(-)
meta/recipes-graphics/mesa/mesa.inc +0 -2
index aca34983e97ca684d662987d3a1d0b61ba44029a..a88cc8660e26bae43c713b2bfdbf396e804f6c09 100644
@@ -162,7 +162,6 @@ PACKAGECONFIG[opencl] = " \
 PACKAGECONFIG[broadcom] = ""
 PACKAGECONFIG[etnaviv] = ",,python3-pycparser-native"
 PACKAGECONFIG[freedreno] = ""
-PACKAGECONFIG[kmsro] = ""
 PACKAGECONFIG[vc4] = ""
 PACKAGECONFIG[v3d] = ""
 PACKAGECONFIG[zink] = ""
@@ -177,7 +176,6 @@ GALLIUMDRIVERS:append:i686 = ",i915,crocus"
 
 GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'etnaviv', ',etnaviv', '', d)}"
 GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}"
-GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'kmsro', ',kmsro', '', d)}"
 GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'vc4', ',vc4', '', d)}"
 GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'v3d', ',v3d', '', d)}"
 GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'zink', ',zink', '', d)}"
Signature · 1 line
2.39.5
#2 lore raw

Re: [PATCH 1/7] mesa: drop kmsro PACKAGECONFIG

Thanks, I've sent PR for meta-raspberryip:
https://github.com/agherzan/meta-raspberrypi/pull/1456

There is one more separate issue which mesa_clc in mesa-native builds, possibly only in combination with using meta-clang, is it what you've fixed with last 3 meta-clang commits from you?

In some builds I've noticed failure like:
FAILED: src/intel/shaders/intel_gfx80_shaders.spv TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/compiler/clc/mesa_clc ../mesa-25.0.2/src/intel/shaders/libintel_shaders.h ../mesa-25.0.2/src/intel/shaders/generate.cl ../mesa-25.0.2/src/intel/shaders/generate_draws.cl ../mesa-25.0.2/src/intel/shaders/generate_draws_iris.cl ../mesa-25.0.2/src/intel/shaders/query_copy.cl ../mesa-25.0.2/src/intel/shaders/util.cl -o src/intel/shaders/intel_gfx80_shaders.spv -- -DNDEBUG=1 -DGFX_VERx10=80 -ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/shaders/. -ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/compiler/libcl -ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src -ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel -ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/intel -ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/genxml /bin/sh: line 1:
TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/compiler/clc/mesa_clc:
No such file or directory

I haven't reproduced it locally yet, seen it couple times from jenkins builds, I guess it might be related to rm_work and mesa_clc using -L pointing to clang-native's libdir/WORKDIR which might be already cleaned by rm_work:

# grep mesa_clc log.do_compile
[8/2437] gcc -Isrc/compiler/clc/mesa_clc.p -Isrc/compiler/clc
-I../mesa-25.0.2/src/compiler/clc -Iinclude -I../mesa-25.0.2/include
-Isrc -I../mesa-25.0.2/src
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include
-fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall
-Winvalid-pch -std=c11 -mtls-dialect=gnu2
-Werror=implicit-function-declaration -Werror=missing-prototypes
-Werror=return-type -Werror=empty-body
-Werror=incompatible-pointer-types -Werror=int-conversion
-Wimplicit-fallthrough -Wmisleading-indentation
-Wno-missing-field-initializers -Wno-format-truncation
-Wno-nonnull-compare -fno-math-errno -fno-trapping-math -fno-common
-Wno-unknown-pragmas -Wno-unused-function -Werror=format
-Wformat-security -ffunction-sections -fdata-sections -O2 -pipe
-pthread -isystemTOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/include
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
'-DPACKAGE_VERSION="25.0.2"'
'-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/-/issues"'
-DHAVE_OPENGL=1 -DHAVE_OPENGL_ES_1=1 -DHAVE_OPENGL_ES_2=1
-DHAVE_SOFTPIPE -DHAVE_I915 -DHAVE_CROCUS -DHAVE_R300 -DHAVE_NOUVEAU
-DHAVE_LLVMPIPE -DHAVE_IRIS -DHAVE_RADEONSI -DHAVE_SVGA -DHAVE_R600
-DHAVE_VIRGL -DHAVE_SWRAST -DVIDEO_CODEC_VC1DEC=0
-DVIDEO_CODEC_H264DEC=0 -DVIDEO_CODEC_H264ENC=0
-DVIDEO_CODEC_H265DEC=0 -DVIDEO_CODEC_H265ENC=0 -DVIDEO_CODEC_AV1DEC=1
-DVIDEO_CODEC_AV1ENC=1 -DVIDEO_CODEC_VP9DEC=1 -DHAVE_WAYLAND_PLATFORM
-DHAVE_X11_PLATFORM -DHAVE_SURFACELESS_PLATFORM -DHAVE_DRM_PLATFORM
-DHAVE_XCB_PLATFORM -DUSE_LIBGLVND=0 -DGLX_INDIRECT_RENDERING
-DGLX_DIRECT_RENDERING -DGLX_USE_DRM
-DGLAPI_EXPORT_PROTO_ENTRY_POINTS=0 -DALLOW_KCMP -DMESA_DEBUG=0
-DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32
-DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL
-DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS
-DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT
-DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE
-DHAVE___BUILTIN_TYPES_COMPATIBLE_P -DHAVE_FUNC_ATTRIBUTE_CONST
-DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC
-DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED
-DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK
-DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED
-DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_ALIAS
-DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_FUNC_ATTRIBUTE_OPTIMIZE
-DHAVE_FUNC_ATTRIBUTE_VISIBILITY -DHAVE_UINT128 -DHAVE_REALLOCARRAY
-DHAVE_FMEMOPEN -D_GNU_SOURCE -DUSE_SSE41
-DHAVE___BUILTIN_IA32_CLFLUSHOPT -DUSE_GCC_ATOMIC_BUILTINS
-DUSE_X86_64_ASM -DMAJOR_IN_SYSMACROS -DHAS_SCHED_H
-DHAS_SCHED_GETAFFINITY -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H
-DHAVE_DLFCN_H -DHAVE_SYS_SHM_H -DHAVE_CET_H -DHAVE_SYS_INOTIFY_H
-DHAVE_LINUX_UDMABUF_H -DHAVE_STRTOF -DHAVE_MKOSTEMP
-DHAVE_MEMFD_CREATE -DHAVE_RANDOM_R -DHAVE_FLOCK -DHAVE_STRTOK_R
-DHAVE_GETRANDOM -DHAVE_POSIX_FALLOCATE -DHAVE_SECURE_GETENV
-DHAVE_GNU_QSORT_R -DHAVE_STRUCT_TIMESPEC
-DHAVE_PROGRAM_INVOCATION_NAME -DHAVE_ISSIGNALING
-DHAVE_POSIX_MEMALIGN -DHAVE_DIRENT_D_TYPE -DHAVE_STRTOD_L
-DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DSUPPORT_INTEL_INTEGRATED_GPUS
-DHAVE_ZLIB -DHAVE_ZSTD -DHAVE_COMPRESSION -DHAVE_PTHREAD
-DHAVE_PTHREAD_SETAFFINITY -DHAVE_LIBDRM
'-DMESA_LLVM_VERSION_STRING="20.1.2"' -DLLVM_IS_SHARED=1
-DLLVM_AVAILABLE=1 -DDRAW_LLVM_AVAILABLE=1 -DAMD_LLVM_AVAILABLE=1
-DGALLIVM_USE_ORCJIT=0 -DHAVE_SPIRV_TOOLS -DUSE_LIBELF
-DTHREAD_SANITIZER=0 -DWL_HIDE_DEPRECATED
-DHAVE_WL_CREATE_QUEUE_WITH_NAME -DHAVE_OPENMP -DHAVE_X11_DRM
-DHAVE_DRI -DHAVE_DRI2 -DHAVE_DRI3_EXPLICIT_SYNC -DHAVE_DRISW_KMS
-Wno-override-init -MD -MQ src/compiler/clc/mesa_clc.p/mesa_clc.c.o
-MF src/compiler/clc/mesa_clc.p/mesa_clc.c.o.d -o
src/compiler/clc/mesa_clc.p/mesa_clc.c.o -c
../mesa-25.0.2/src/compiler/clc/mesa_clc.c
../mesa-25.0.2/src/compiler/clc/mesa_clc.c: In function ‘main’:
../mesa-25.0.2/src/compiler/clc/mesa_clc.c:152:7: warning: ignoring
return value of ‘fread’ declared with attribute ‘warn_unused_result’
[-Wunused-result]
[920/2437] g++  -o src/compiler/clc/mesa_clc
src/compiler/clc/mesa_clc.p/mesa_clc.c.o
-LTOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib
-LTOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/lib
-Wl,--as-needed -Wl,--no-undefined -Wl,--enable-new-dtags
-Wl,-rpath-link,TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib
-Wl,-rpath-link,TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/lib
-Wl,-rpath,TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib
-Wl,-rpath,TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/lib
-Wl,-O1 -Wl,--allow-shlib-undefined
-Wl,--dynamic-linker=TOPDIR/BUILD/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2
-pthread -Wl,-rpath,TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib
-Wl,--start-group src/compiler/clc/liblibmesaclc.a
src/compiler/nir/libnir.a src/compiler/libcompiler.a
src/util/libmesa_util.a src/util/libmesa_util_sse41.a
src/util/blake3/libblake3.a src/c11/impl/libmesa_util_c11.a
src/compiler/spirv/libvtn.a -Wl,--build-id=sha1 -fPIC -O2 -pipe
-fvisibility-inlines-hidden -Wl,--enable-new-dtags
-Wl,-rpath-link,TOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/usr/lib
-Wl,-rpath-link,TOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/lib
-Wl,-rpath,TOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/usr/lib
-Wl,-rpath,TOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/lib
-Wl,-O1 -Wl,--allow-shlib-undefined
-Wl,--dynamic-linker=TOPDIR/BUILD/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2
-LTOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib
-LTOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/usr/lib
-LTOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/lib
-lLLVM-20 TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libSPIRV-Tools-opt.so
TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libSPIRV-Tools.so
TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libSPIRV-Tools-link.so
TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libz.so
-lm TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libzstd.so
TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/libclang-cpp.so
-isystemTOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/usr/include
-O2 -fvisibility-inlines-hidden -Wl,--enable-new-dtags -Wl,-O1
-Wl,--allow-shlib-undefined
-LTOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib
-LTOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/usr/lib
-LTOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/lib
-lLLVM-20 TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libLLVMSPIRVLib.a
-Wl,--end-group
[921/2437] TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/compiler/clc/mesa_clc
../mesa-25.0.2/src/intel/shaders/libintel_shaders.h
../mesa-25.0.2/src/intel/shaders/generate.cl
../mesa-25.0.2/src/intel/shaders/generate_draws.cl
../mesa-25.0.2/src/intel/shaders/generate_draws_iris.cl
../mesa-25.0.2/src/intel/shaders/query_copy.cl
../mesa-25.0.2/src/intel/shaders/util.cl -o
src/intel/shaders/intel_gfx80_shaders.spv -- -DNDEBUG=1
-DGFX_VERx10=80
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/shaders/.
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/compiler/libcl
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/genxml
TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/compiler/clc/mesa_clc
../mesa-25.0.2/src/intel/shaders/libintel_shaders.h
../mesa-25.0.2/src/intel/shaders/generate.cl
../mesa-25.0.2/src/intel/shaders/generate_draws.cl
../mesa-25.0.2/src/intel/shaders/generate_draws_iris.cl
../mesa-25.0.2/src/intel/shaders/query_copy.cl
../mesa-25.0.2/src/intel/shaders/util.cl -o
src/intel/shaders/intel_gfx80_shaders.spv -- -DNDEBUG=1
-DGFX_VERx10=80
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/shaders/.
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/compiler/libcl
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/genxml
/bin/sh: line 1:
TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/compiler/clc/mesa_clc:
No such file or directory
Quoted 35 lines · Dmitry Baryshkov

Mesa has dropped support for separate kmsro option to gallium-drivers. Drop it from the recipe and drop the now-unused PACKAGECONFIG too.

---
 meta/recipes-graphics/mesa/mesa.inc | 2 --
 1 file changed, 2 deletions(-)
meta/recipes-graphics/mesa/mesa.inc +0 -3
index aca34983e97ca684d662987d3a1d0b61ba44029a..a88cc8660e26bae43c713b2bfdbf396e804f6c09 100644
@@ -162,7 +162,6 @@ PACKAGECONFIG[opencl] = " \
 PACKAGECONFIG[broadcom] = ""
 PACKAGECONFIG[etnaviv] = ",,python3-pycparser-native"
 PACKAGECONFIG[freedreno] = ""
-PACKAGECONFIG[kmsro] = ""
 PACKAGECONFIG[vc4] = ""
 PACKAGECONFIG[v3d] = ""
 PACKAGECONFIG[zink] = ""
@@ -177,7 +176,6 @@ GALLIUMDRIVERS:append:i686 = ",i915,crocus"
 
 GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'etnaviv', ',etnaviv', '', d)}"
 GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}"
-GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'kmsro', ',kmsro', '', d)}"
 GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'vc4', ',vc4', '', d)}"
 GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'v3d', ',v3d', '', d)}"
 GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'zink', ',zink', '', d)}"
 
--

2.39.5

#3 lore raw

Re: [PATCH 1/7] mesa: drop kmsro PACKAGECONFIG

Quoted 6 lines · Martin Jansa

Thanks, I've sent PR for meta-raspberryip:
https://github.com/agherzan/meta-raspberrypi/pull/1456

There is one more separate issue which mesa_clc in mesa-native builds, possibly only in combination with using meta-clang, is it what you've fixed with last 3 meta-clang commits from you?

Yes, this is the LDFLAGS issue if I remember correctly. It should be fixed by the meta-clang PR that Khem has merged. Please ping me if it still can be reproduced.

Quoted 211 lines

In some builds I've noticed failure like:
FAILED: src/intel/shaders/intel_gfx80_shaders.spv TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/compiler/clc/mesa_clc ../mesa-25.0.2/src/intel/shaders/libintel_shaders.h ../mesa-25.0.2/src/intel/shaders/generate.cl ../mesa-25.0.2/src/intel/shaders/generate_draws.cl ../mesa-25.0.2/src/intel/shaders/generate_draws_iris.cl ../mesa-25.0.2/src/intel/shaders/query_copy.cl ../mesa-25.0.2/src/intel/shaders/util.cl -o src/intel/shaders/intel_gfx80_shaders.spv -- -DNDEBUG=1

(quoted diff) +0 -7
-DGFX_VERx10=80
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/shaders/.
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/compiler/libcl
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/genxml

/bin/sh: line 1:
TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/compiler/clc/mesa_clc:
No such file or directory

I haven't reproduced it locally yet, seen it couple times from jenkins builds, I guess it might be related to rm_work and mesa_clc using -L pointing to clang-native's libdir/WORKDIR which might be already cleaned by rm_work:

# grep mesa_clc log.do_compile
[8/2437] gcc -Isrc/compiler/clc/mesa_clc.p -Isrc/compiler/clc
(quoted diff) +0 -15
-I../mesa-25.0.2/src/compiler/clc -Iinclude -I../mesa-25.0.2/include
-Isrc -I../mesa-25.0.2/src
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include
-fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall
-Winvalid-pch -std=c11 -mtls-dialect=gnu2
-Werror=implicit-function-declaration -Werror=missing-prototypes
-Werror=return-type -Werror=empty-body
-Werror=incompatible-pointer-types -Werror=int-conversion
-Wimplicit-fallthrough -Wmisleading-indentation
-Wno-missing-field-initializers -Wno-format-truncation
-Wno-nonnull-compare -fno-math-errno -fno-trapping-math -fno-common
-Wno-unknown-pragmas -Wno-unused-function -Werror=format
-Wformat-security -ffunction-sections -fdata-sections -O2 -pipe
-pthread -isystemTOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/include
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS

'-DPACKAGE_VERSION="25.0.2"' '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/-/issues"'

(quoted diff) +0 -38
-DHAVE_OPENGL=1 -DHAVE_OPENGL_ES_1=1 -DHAVE_OPENGL_ES_2=1
-DHAVE_SOFTPIPE -DHAVE_I915 -DHAVE_CROCUS -DHAVE_R300 -DHAVE_NOUVEAU
-DHAVE_LLVMPIPE -DHAVE_IRIS -DHAVE_RADEONSI -DHAVE_SVGA -DHAVE_R600
-DHAVE_VIRGL -DHAVE_SWRAST -DVIDEO_CODEC_VC1DEC=0
-DVIDEO_CODEC_H264DEC=0 -DVIDEO_CODEC_H264ENC=0
-DVIDEO_CODEC_H265DEC=0 -DVIDEO_CODEC_H265ENC=0 -DVIDEO_CODEC_AV1DEC=1
-DVIDEO_CODEC_AV1ENC=1 -DVIDEO_CODEC_VP9DEC=1 -DHAVE_WAYLAND_PLATFORM
-DHAVE_X11_PLATFORM -DHAVE_SURFACELESS_PLATFORM -DHAVE_DRM_PLATFORM
-DHAVE_XCB_PLATFORM -DUSE_LIBGLVND=0 -DGLX_INDIRECT_RENDERING
-DGLX_DIRECT_RENDERING -DGLX_USE_DRM
-DGLAPI_EXPORT_PROTO_ENTRY_POINTS=0 -DALLOW_KCMP -DMESA_DEBUG=0
-DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32
-DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL
-DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS
-DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT
-DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE
-DHAVE___BUILTIN_TYPES_COMPATIBLE_P -DHAVE_FUNC_ATTRIBUTE_CONST
-DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC
-DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED
-DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK
-DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED
-DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_ALIAS
-DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_FUNC_ATTRIBUTE_OPTIMIZE
-DHAVE_FUNC_ATTRIBUTE_VISIBILITY -DHAVE_UINT128 -DHAVE_REALLOCARRAY
-DHAVE_FMEMOPEN -D_GNU_SOURCE -DUSE_SSE41
-DHAVE___BUILTIN_IA32_CLFLUSHOPT -DUSE_GCC_ATOMIC_BUILTINS
-DUSE_X86_64_ASM -DMAJOR_IN_SYSMACROS -DHAS_SCHED_H
-DHAS_SCHED_GETAFFINITY -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H
-DHAVE_DLFCN_H -DHAVE_SYS_SHM_H -DHAVE_CET_H -DHAVE_SYS_INOTIFY_H
-DHAVE_LINUX_UDMABUF_H -DHAVE_STRTOF -DHAVE_MKOSTEMP
-DHAVE_MEMFD_CREATE -DHAVE_RANDOM_R -DHAVE_FLOCK -DHAVE_STRTOK_R
-DHAVE_GETRANDOM -DHAVE_POSIX_FALLOCATE -DHAVE_SECURE_GETENV
-DHAVE_GNU_QSORT_R -DHAVE_STRUCT_TIMESPEC
-DHAVE_PROGRAM_INVOCATION_NAME -DHAVE_ISSIGNALING
-DHAVE_POSIX_MEMALIGN -DHAVE_DIRENT_D_TYPE -DHAVE_STRTOD_L
-DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DSUPPORT_INTEL_INTEGRATED_GPUS
-DHAVE_ZLIB -DHAVE_ZSTD -DHAVE_COMPRESSION -DHAVE_PTHREAD
-DHAVE_PTHREAD_SETAFFINITY -DHAVE_LIBDRM

'-DMESA_LLVM_VERSION_STRING="20.1.2"' -DLLVM_IS_SHARED=1

(quoted diff) +0 -7
-DLLVM_AVAILABLE=1 -DDRAW_LLVM_AVAILABLE=1 -DAMD_LLVM_AVAILABLE=1
-DGALLIVM_USE_ORCJIT=0 -DHAVE_SPIRV_TOOLS -DUSE_LIBELF
-DTHREAD_SANITIZER=0 -DWL_HIDE_DEPRECATED
-DHAVE_WL_CREATE_QUEUE_WITH_NAME -DHAVE_OPENMP -DHAVE_X11_DRM
-DHAVE_DRI -DHAVE_DRI2 -DHAVE_DRI3_EXPLICIT_SYNC -DHAVE_DRISW_KMS
-Wno-override-init -MD -MQ src/compiler/clc/mesa_clc.p/mesa_clc.c.o
-MF src/compiler/clc/mesa_clc.p/mesa_clc.c.o.d -o

src/compiler/clc/mesa_clc.p/mesa_clc.c.o -c ../mesa-25.0.2/src/compiler/clc/mesa_clc.c ../mesa-25.0.2/src/compiler/clc/mesa_clc.c: In function ‘main’:
../mesa-25.0.2/src/compiler/clc/mesa_clc.c:152:7: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
[920/2437] g++ -o src/compiler/clc/mesa_clc src/compiler/clc/mesa_clc.p/mesa_clc.c.o

(quoted diff) +0 -11
-LTOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib
-LTOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/lib
-Wl,--as-needed -Wl,--no-undefined -Wl,--enable-new-dtags
-Wl,-rpath-link,TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib
-Wl,-rpath-link,TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/lib
-Wl,-rpath,TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib
-Wl,-rpath,TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/lib
-Wl,-O1 -Wl,--allow-shlib-undefined
-Wl,--dynamic-linker=TOPDIR/BUILD/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2
-pthread -Wl,-rpath,TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib
-Wl,--start-group src/compiler/clc/liblibmesaclc.a

src/compiler/nir/libnir.a src/compiler/libcompiler.a src/util/libmesa_util.a src/util/libmesa_util_sse41.a src/util/blake3/libblake3.a src/c11/impl/libmesa_util_c11.a src/compiler/spirv/libvtn.a -Wl,--build-id=sha1 -fPIC -O2 -pipe

(quoted diff) +0 -11
-fvisibility-inlines-hidden -Wl,--enable-new-dtags
-Wl,-rpath-link,TOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/usr/lib
-Wl,-rpath-link,TOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/lib
-Wl,-rpath,TOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/usr/lib
-Wl,-rpath,TOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/lib
-Wl,-O1 -Wl,--allow-shlib-undefined
-Wl,--dynamic-linker=TOPDIR/BUILD/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2
-LTOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib
-LTOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/usr/lib
-LTOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/lib
-lLLVM-20 TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libSPIRV-Tools-opt.so

TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libSPIRV-Tools.so TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libSPIRV-Tools-link.so TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libz.so -lm TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libzstd.so TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/libclang-cpp.so

(quoted diff) +0 -8
-isystemTOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/usr/include
-O2 -fvisibility-inlines-hidden -Wl,--enable-new-dtags -Wl,-O1
-Wl,--allow-shlib-undefined
-LTOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib
-LTOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/usr/lib
-LTOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/lib
-lLLVM-20 TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libLLVMSPIRVLib.a
-Wl,--end-group

[921/2437] TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/compiler/clc/mesa_clc ../mesa-25.0.2/src/intel/shaders/libintel_shaders.h ../mesa-25.0.2/src/intel/shaders/generate.cl ../mesa-25.0.2/src/intel/shaders/generate_draws.cl ../mesa-25.0.2/src/intel/shaders/generate_draws_iris.cl ../mesa-25.0.2/src/intel/shaders/query_copy.cl ../mesa-25.0.2/src/intel/shaders/util.cl -o src/intel/shaders/intel_gfx80_shaders.spv -- -DNDEBUG=1

(quoted diff) +0 -7
-DGFX_VERx10=80
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/shaders/.
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/compiler/libcl
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/genxml

TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/compiler/clc/mesa_clc ../mesa-25.0.2/src/intel/shaders/libintel_shaders.h ../mesa-25.0.2/src/intel/shaders/generate.cl ../mesa-25.0.2/src/intel/shaders/generate_draws.cl ../mesa-25.0.2/src/intel/shaders/generate_draws_iris.cl ../mesa-25.0.2/src/intel/shaders/query_copy.cl ../mesa-25.0.2/src/intel/shaders/util.cl -o src/intel/shaders/intel_gfx80_shaders.spv -- -DNDEBUG=1

(quoted diff) +0 -7
-DGFX_VERx10=80
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/shaders/.
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/compiler/libcl
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/genxml

/bin/sh: line 1:
TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/compiler/clc/mesa_clc:
No such file or directory

Quoted 35 lines · Dmitry Baryshkov

Mesa has dropped support for separate kmsro option to gallium-drivers. Drop it from the recipe and drop the now-unused PACKAGECONFIG too.

---
  meta/recipes-graphics/mesa/mesa.inc | 2 --
  1 file changed, 2 deletions(-)
meta/recipes-graphics/mesa/mesa.inc +0 -3
index aca34983e97ca684d662987d3a1d0b61ba44029a..a88cc8660e26bae43c713b2bfdbf396e804f6c09 100644
@@ -162,7 +162,6 @@ PACKAGECONFIG[opencl] = " \
  PACKAGECONFIG[broadcom] = ""
  PACKAGECONFIG[etnaviv] = ",,python3-pycparser-native"
  PACKAGECONFIG[freedreno] = ""
-PACKAGECONFIG[kmsro] = ""
  PACKAGECONFIG[vc4] = ""
  PACKAGECONFIG[v3d] = ""
  PACKAGECONFIG[zink] = ""
@@ -177,7 +176,6 @@ GALLIUMDRIVERS:append:i686 = ",i915,crocus"
 
  GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'etnaviv', ',etnaviv', '', d)}"
  GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}"
-GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'kmsro', ',kmsro', '', d)}"
  GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'vc4', ',vc4', '', d)}"
  GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'v3d', ',v3d', '', d)}"
  GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'zink', ',zink', '', d)}"
 
--

2.39.5

Signature · 2 lines
With best wishes
Dmitry
#4 lore raw

Re: [OE-core] [PATCH 1/7] mesa: drop kmsro PACKAGECONFIG

I am still seeing an error with all updates applied

https://errors.yoctoproject.org/Errors/Details/852167/

Quoted 238 lines · Dmitry Baryshkov via lists.openembedded.org
Quoted 6 lines · Martin Jansa

Thanks, I've sent PR for meta-raspberryip:
https://github.com/agherzan/meta-raspberrypi/pull/1456

There is one more separate issue which mesa_clc in mesa-native builds, possibly only in combination with using meta-clang, is it what you've fixed with last 3 meta-clang commits from you?

Yes, this is the LDFLAGS issue if I remember correctly. It should be fixed by the meta-clang PR that Khem has merged. Please ping me if it still can be reproduced.

Quoted 208 lines

In some builds I've noticed failure like:
FAILED: src/intel/shaders/intel_gfx80_shaders.spv TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/compiler/clc/mesa_clc ../mesa-25.0.2/src/intel/shaders/libintel_shaders.h ../mesa-25.0.2/src/intel/shaders/generate.cl ../mesa-25.0.2/src/intel/shaders/generate_draws.cl ../mesa-25.0.2/src/intel/shaders/generate_draws_iris.cl ../mesa-25.0.2/src/intel/shaders/query_copy.cl ../mesa-25.0.2/src/intel/shaders/util.cl -o src/intel/shaders/intel_gfx80_shaders.spv -- -DNDEBUG=1

(quoted diff) +0 -7
-DGFX_VERx10=80
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/shaders/.
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/compiler/libcl
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/genxml

/bin/sh: line 1:
TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/compiler/clc/mesa_clc:
No such file or directory

I haven't reproduced it locally yet, seen it couple times from jenkins builds, I guess it might be related to rm_work and mesa_clc using -L pointing to clang-native's libdir/WORKDIR which might be already cleaned by rm_work:

# grep mesa_clc log.do_compile
[8/2437] gcc -Isrc/compiler/clc/mesa_clc.p -Isrc/compiler/clc
(quoted diff) +0 -15
-I../mesa-25.0.2/src/compiler/clc -Iinclude -I../mesa-25.0.2/include
-Isrc -I../mesa-25.0.2/src
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include
-fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall
-Winvalid-pch -std=c11 -mtls-dialect=gnu2
-Werror=implicit-function-declaration -Werror=missing-prototypes
-Werror=return-type -Werror=empty-body
-Werror=incompatible-pointer-types -Werror=int-conversion
-Wimplicit-fallthrough -Wmisleading-indentation
-Wno-missing-field-initializers -Wno-format-truncation
-Wno-nonnull-compare -fno-math-errno -fno-trapping-math -fno-common
-Wno-unknown-pragmas -Wno-unused-function -Werror=format
-Wformat-security -ffunction-sections -fdata-sections -O2 -pipe
-pthread -isystemTOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/include
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS

'-DPACKAGE_VERSION="25.0.2"' '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/-/issues"'

(quoted diff) +0 -38
-DHAVE_OPENGL=1 -DHAVE_OPENGL_ES_1=1 -DHAVE_OPENGL_ES_2=1
-DHAVE_SOFTPIPE -DHAVE_I915 -DHAVE_CROCUS -DHAVE_R300 -DHAVE_NOUVEAU
-DHAVE_LLVMPIPE -DHAVE_IRIS -DHAVE_RADEONSI -DHAVE_SVGA -DHAVE_R600
-DHAVE_VIRGL -DHAVE_SWRAST -DVIDEO_CODEC_VC1DEC=0
-DVIDEO_CODEC_H264DEC=0 -DVIDEO_CODEC_H264ENC=0
-DVIDEO_CODEC_H265DEC=0 -DVIDEO_CODEC_H265ENC=0 -DVIDEO_CODEC_AV1DEC=1
-DVIDEO_CODEC_AV1ENC=1 -DVIDEO_CODEC_VP9DEC=1 -DHAVE_WAYLAND_PLATFORM
-DHAVE_X11_PLATFORM -DHAVE_SURFACELESS_PLATFORM -DHAVE_DRM_PLATFORM
-DHAVE_XCB_PLATFORM -DUSE_LIBGLVND=0 -DGLX_INDIRECT_RENDERING
-DGLX_DIRECT_RENDERING -DGLX_USE_DRM
-DGLAPI_EXPORT_PROTO_ENTRY_POINTS=0 -DALLOW_KCMP -DMESA_DEBUG=0
-DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32
-DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL
-DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS
-DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT
-DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE
-DHAVE___BUILTIN_TYPES_COMPATIBLE_P -DHAVE_FUNC_ATTRIBUTE_CONST
-DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC
-DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED
-DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK
-DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED
-DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_ALIAS
-DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_FUNC_ATTRIBUTE_OPTIMIZE
-DHAVE_FUNC_ATTRIBUTE_VISIBILITY -DHAVE_UINT128 -DHAVE_REALLOCARRAY
-DHAVE_FMEMOPEN -D_GNU_SOURCE -DUSE_SSE41
-DHAVE___BUILTIN_IA32_CLFLUSHOPT -DUSE_GCC_ATOMIC_BUILTINS
-DUSE_X86_64_ASM -DMAJOR_IN_SYSMACROS -DHAS_SCHED_H
-DHAS_SCHED_GETAFFINITY -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H
-DHAVE_DLFCN_H -DHAVE_SYS_SHM_H -DHAVE_CET_H -DHAVE_SYS_INOTIFY_H
-DHAVE_LINUX_UDMABUF_H -DHAVE_STRTOF -DHAVE_MKOSTEMP
-DHAVE_MEMFD_CREATE -DHAVE_RANDOM_R -DHAVE_FLOCK -DHAVE_STRTOK_R
-DHAVE_GETRANDOM -DHAVE_POSIX_FALLOCATE -DHAVE_SECURE_GETENV
-DHAVE_GNU_QSORT_R -DHAVE_STRUCT_TIMESPEC
-DHAVE_PROGRAM_INVOCATION_NAME -DHAVE_ISSIGNALING
-DHAVE_POSIX_MEMALIGN -DHAVE_DIRENT_D_TYPE -DHAVE_STRTOD_L
-DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DSUPPORT_INTEL_INTEGRATED_GPUS
-DHAVE_ZLIB -DHAVE_ZSTD -DHAVE_COMPRESSION -DHAVE_PTHREAD
-DHAVE_PTHREAD_SETAFFINITY -DHAVE_LIBDRM

'-DMESA_LLVM_VERSION_STRING="20.1.2"' -DLLVM_IS_SHARED=1

(quoted diff) +0 -7
-DLLVM_AVAILABLE=1 -DDRAW_LLVM_AVAILABLE=1 -DAMD_LLVM_AVAILABLE=1
-DGALLIVM_USE_ORCJIT=0 -DHAVE_SPIRV_TOOLS -DUSE_LIBELF
-DTHREAD_SANITIZER=0 -DWL_HIDE_DEPRECATED
-DHAVE_WL_CREATE_QUEUE_WITH_NAME -DHAVE_OPENMP -DHAVE_X11_DRM
-DHAVE_DRI -DHAVE_DRI2 -DHAVE_DRI3_EXPLICIT_SYNC -DHAVE_DRISW_KMS
-Wno-override-init -MD -MQ src/compiler/clc/mesa_clc.p/mesa_clc.c.o
-MF src/compiler/clc/mesa_clc.p/mesa_clc.c.o.d -o

src/compiler/clc/mesa_clc.p/mesa_clc.c.o -c ../mesa-25.0.2/src/compiler/clc/mesa_clc.c ../mesa-25.0.2/src/compiler/clc/mesa_clc.c: In function ‘main’:
../mesa-25.0.2/src/compiler/clc/mesa_clc.c:152:7: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
[920/2437] g++ -o src/compiler/clc/mesa_clc src/compiler/clc/mesa_clc.p/mesa_clc.c.o

(quoted diff) +0 -11
-LTOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib
-LTOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/lib
-Wl,--as-needed -Wl,--no-undefined -Wl,--enable-new-dtags
-Wl,-rpath-link,TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib
-Wl,-rpath-link,TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/lib
-Wl,-rpath,TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib
-Wl,-rpath,TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/lib
-Wl,-O1 -Wl,--allow-shlib-undefined
-Wl,--dynamic-linker=TOPDIR/BUILD/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2
-pthread -Wl,-rpath,TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib
-Wl,--start-group src/compiler/clc/liblibmesaclc.a

src/compiler/nir/libnir.a src/compiler/libcompiler.a src/util/libmesa_util.a src/util/libmesa_util_sse41.a src/util/blake3/libblake3.a src/c11/impl/libmesa_util_c11.a src/compiler/spirv/libvtn.a -Wl,--build-id=sha1 -fPIC -O2 -pipe

(quoted diff) +0 -11
-fvisibility-inlines-hidden -Wl,--enable-new-dtags
-Wl,-rpath-link,TOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/usr/lib
-Wl,-rpath-link,TOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/lib
-Wl,-rpath,TOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/usr/lib
-Wl,-rpath,TOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/lib
-Wl,-O1 -Wl,--allow-shlib-undefined
-Wl,--dynamic-linker=TOPDIR/BUILD/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2
-LTOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib
-LTOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/usr/lib
-LTOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/lib
-lLLVM-20 TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libSPIRV-Tools-opt.so

TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libSPIRV-Tools.so TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libSPIRV-Tools-link.so TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libz.so -lm TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libzstd.so TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/libclang-cpp.so

(quoted diff) +0 -8
-isystemTOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/usr/include
-O2 -fvisibility-inlines-hidden -Wl,--enable-new-dtags -Wl,-O1
-Wl,--allow-shlib-undefined
-LTOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib
-LTOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/usr/lib
-LTOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/lib
-lLLVM-20 TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libLLVMSPIRVLib.a
-Wl,--end-group

[921/2437] TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/compiler/clc/mesa_clc ../mesa-25.0.2/src/intel/shaders/libintel_shaders.h ../mesa-25.0.2/src/intel/shaders/generate.cl ../mesa-25.0.2/src/intel/shaders/generate_draws.cl ../mesa-25.0.2/src/intel/shaders/generate_draws_iris.cl ../mesa-25.0.2/src/intel/shaders/query_copy.cl ../mesa-25.0.2/src/intel/shaders/util.cl -o src/intel/shaders/intel_gfx80_shaders.spv -- -DNDEBUG=1

(quoted diff) +0 -7
-DGFX_VERx10=80
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/shaders/.
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/compiler/libcl
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/genxml

TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/compiler/clc/mesa_clc ../mesa-25.0.2/src/intel/shaders/libintel_shaders.h ../mesa-25.0.2/src/intel/shaders/generate.cl ../mesa-25.0.2/src/intel/shaders/generate_draws.cl ../mesa-25.0.2/src/intel/shaders/generate_draws_iris.cl ../mesa-25.0.2/src/intel/shaders/query_copy.cl ../mesa-25.0.2/src/intel/shaders/util.cl -o src/intel/shaders/intel_gfx80_shaders.spv -- -DNDEBUG=1

(quoted diff) +0 -7
-DGFX_VERx10=80
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/shaders/.
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/compiler/libcl
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/genxml

/bin/sh: line 1:
TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/compiler/clc/mesa_clc:
No such file or directory

Quoted 32 lines · Dmitry Baryshkov

Mesa has dropped support for separate kmsro option to gallium-drivers. Drop it from the recipe and drop the now-unused PACKAGECONFIG too.

---
  meta/recipes-graphics/mesa/mesa.inc | 2 --
  1 file changed, 2 deletions(-)
meta/recipes-graphics/mesa/mesa.inc +0 -2
index aca34983e97ca684d662987d3a1d0b61ba44029a..a88cc8660e26bae43c713b2bfdbf396e804f6c09 100644
@@ -162,7 +162,6 @@ PACKAGECONFIG[opencl] = " \
  PACKAGECONFIG[broadcom] = ""
  PACKAGECONFIG[etnaviv] = ",,python3-pycparser-native"
  PACKAGECONFIG[freedreno] = ""
-PACKAGECONFIG[kmsro] = ""
  PACKAGECONFIG[vc4] = ""
  PACKAGECONFIG[v3d] = ""
  PACKAGECONFIG[zink] = ""
@@ -177,7 +176,6 @@ GALLIUMDRIVERS:append:i686 = ",i915,crocus"
 
  GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'etnaviv', ',etnaviv', '', d)}"
  GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}"
-GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'kmsro', ',kmsro', '', d)}"
  GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'vc4', ',vc4', '', d)}"
  GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'v3d', ',v3d', '', d)}"
  GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'zink', ',zink', '', d)}"
Quoted 3 lines
Quoted 3 lines

--
2.39.5

--
With best wishes
Dmitry

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#214775): https://lists.openembedded.org/g/openembedded-core/message/214775
Mute This Topic: https://lists.openembedded.org/mt/112219028/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#5 lore raw

Re: [OE-core] [PATCH 1/7] mesa: drop kmsro PACKAGECONFIG

Quoted 4 lines · Khem Raj

I am still seeing an error with all updates applied

https://errors.yoctoproject.org/Errors/Details/852167/

I'm seeing this one for target qemux86-64 builds as well, mesa-native seems to be fixed after meta-clang update.

Quoted 242 lines
Quoted 238 lines · Dmitry Baryshkov via lists.openembedded.org
Quoted 6 lines · Martin Jansa

Thanks, I've sent PR for meta-raspberryip:
https://github.com/agherzan/meta-raspberrypi/pull/1456

There is one more separate issue which mesa_clc in mesa-native builds, possibly only in combination with using meta-clang, is it what you've fixed with last 3 meta-clang commits from you?

Yes, this is the LDFLAGS issue if I remember correctly. It should be fixed by the meta-clang PR that Khem has merged. Please ping me if it still can be reproduced.

Quoted 208 lines

In some builds I've noticed failure like:
FAILED: src/intel/shaders/intel_gfx80_shaders.spv TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/compiler/clc/mesa_clc ../mesa-25.0.2/src/intel/shaders/libintel_shaders.h ../mesa-25.0.2/src/intel/shaders/generate.cl ../mesa-25.0.2/src/intel/shaders/generate_draws.cl ../mesa-25.0.2/src/intel/shaders/generate_draws_iris.cl ../mesa-25.0.2/src/intel/shaders/query_copy.cl ../mesa-25.0.2/src/intel/shaders/util.cl -o src/intel/shaders/intel_gfx80_shaders.spv -- -DNDEBUG=1

(quoted diff) +0 -7
-DGFX_VERx10=80
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/shaders/.
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/compiler/libcl
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/genxml

/bin/sh: line 1:
TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/compiler/clc/mesa_clc:
No such file or directory

I haven't reproduced it locally yet, seen it couple times from jenkins builds, I guess it might be related to rm_work and mesa_clc using -L pointing to clang-native's libdir/WORKDIR which might be already cleaned by rm_work:

# grep mesa_clc log.do_compile
[8/2437] gcc -Isrc/compiler/clc/mesa_clc.p -Isrc/compiler/clc
(quoted diff) +0 -15
-I../mesa-25.0.2/src/compiler/clc -Iinclude -I../mesa-25.0.2/include
-Isrc -I../mesa-25.0.2/src
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include
-fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall
-Winvalid-pch -std=c11 -mtls-dialect=gnu2
-Werror=implicit-function-declaration -Werror=missing-prototypes
-Werror=return-type -Werror=empty-body
-Werror=incompatible-pointer-types -Werror=int-conversion
-Wimplicit-fallthrough -Wmisleading-indentation
-Wno-missing-field-initializers -Wno-format-truncation
-Wno-nonnull-compare -fno-math-errno -fno-trapping-math -fno-common
-Wno-unknown-pragmas -Wno-unused-function -Werror=format
-Wformat-security -ffunction-sections -fdata-sections -O2 -pipe
-pthread -isystemTOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/include
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS

'-DPACKAGE_VERSION="25.0.2"' '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/-/issues"'

(quoted diff) +0 -38
-DHAVE_OPENGL=1 -DHAVE_OPENGL_ES_1=1 -DHAVE_OPENGL_ES_2=1
-DHAVE_SOFTPIPE -DHAVE_I915 -DHAVE_CROCUS -DHAVE_R300 -DHAVE_NOUVEAU
-DHAVE_LLVMPIPE -DHAVE_IRIS -DHAVE_RADEONSI -DHAVE_SVGA -DHAVE_R600
-DHAVE_VIRGL -DHAVE_SWRAST -DVIDEO_CODEC_VC1DEC=0
-DVIDEO_CODEC_H264DEC=0 -DVIDEO_CODEC_H264ENC=0
-DVIDEO_CODEC_H265DEC=0 -DVIDEO_CODEC_H265ENC=0 -DVIDEO_CODEC_AV1DEC=1
-DVIDEO_CODEC_AV1ENC=1 -DVIDEO_CODEC_VP9DEC=1 -DHAVE_WAYLAND_PLATFORM
-DHAVE_X11_PLATFORM -DHAVE_SURFACELESS_PLATFORM -DHAVE_DRM_PLATFORM
-DHAVE_XCB_PLATFORM -DUSE_LIBGLVND=0 -DGLX_INDIRECT_RENDERING
-DGLX_DIRECT_RENDERING -DGLX_USE_DRM
-DGLAPI_EXPORT_PROTO_ENTRY_POINTS=0 -DALLOW_KCMP -DMESA_DEBUG=0
-DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32
-DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL
-DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS
-DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT
-DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE
-DHAVE___BUILTIN_TYPES_COMPATIBLE_P -DHAVE_FUNC_ATTRIBUTE_CONST
-DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC
-DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED
-DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK
-DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED
-DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_ALIAS
-DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_FUNC_ATTRIBUTE_OPTIMIZE
-DHAVE_FUNC_ATTRIBUTE_VISIBILITY -DHAVE_UINT128 -DHAVE_REALLOCARRAY
-DHAVE_FMEMOPEN -D_GNU_SOURCE -DUSE_SSE41
-DHAVE___BUILTIN_IA32_CLFLUSHOPT -DUSE_GCC_ATOMIC_BUILTINS
-DUSE_X86_64_ASM -DMAJOR_IN_SYSMACROS -DHAS_SCHED_H
-DHAS_SCHED_GETAFFINITY -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H
-DHAVE_DLFCN_H -DHAVE_SYS_SHM_H -DHAVE_CET_H -DHAVE_SYS_INOTIFY_H
-DHAVE_LINUX_UDMABUF_H -DHAVE_STRTOF -DHAVE_MKOSTEMP
-DHAVE_MEMFD_CREATE -DHAVE_RANDOM_R -DHAVE_FLOCK -DHAVE_STRTOK_R
-DHAVE_GETRANDOM -DHAVE_POSIX_FALLOCATE -DHAVE_SECURE_GETENV
-DHAVE_GNU_QSORT_R -DHAVE_STRUCT_TIMESPEC
-DHAVE_PROGRAM_INVOCATION_NAME -DHAVE_ISSIGNALING
-DHAVE_POSIX_MEMALIGN -DHAVE_DIRENT_D_TYPE -DHAVE_STRTOD_L
-DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DSUPPORT_INTEL_INTEGRATED_GPUS
-DHAVE_ZLIB -DHAVE_ZSTD -DHAVE_COMPRESSION -DHAVE_PTHREAD
-DHAVE_PTHREAD_SETAFFINITY -DHAVE_LIBDRM

'-DMESA_LLVM_VERSION_STRING="20.1.2"' -DLLVM_IS_SHARED=1

(quoted diff) +0 -7
-DLLVM_AVAILABLE=1 -DDRAW_LLVM_AVAILABLE=1 -DAMD_LLVM_AVAILABLE=1
-DGALLIVM_USE_ORCJIT=0 -DHAVE_SPIRV_TOOLS -DUSE_LIBELF
-DTHREAD_SANITIZER=0 -DWL_HIDE_DEPRECATED
-DHAVE_WL_CREATE_QUEUE_WITH_NAME -DHAVE_OPENMP -DHAVE_X11_DRM
-DHAVE_DRI -DHAVE_DRI2 -DHAVE_DRI3_EXPLICIT_SYNC -DHAVE_DRISW_KMS
-Wno-override-init -MD -MQ src/compiler/clc/mesa_clc.p/mesa_clc.c.o
-MF src/compiler/clc/mesa_clc.p/mesa_clc.c.o.d -o

src/compiler/clc/mesa_clc.p/mesa_clc.c.o -c ../mesa-25.0.2/src/compiler/clc/mesa_clc.c ../mesa-25.0.2/src/compiler/clc/mesa_clc.c: In function ‘main’:
../mesa-25.0.2/src/compiler/clc/mesa_clc.c:152:7: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
[920/2437] g++ -o src/compiler/clc/mesa_clc src/compiler/clc/mesa_clc.p/mesa_clc.c.o

(quoted diff) +0 -11
-LTOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib
-LTOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/lib
-Wl,--as-needed -Wl,--no-undefined -Wl,--enable-new-dtags
-Wl,-rpath-link,TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib
-Wl,-rpath-link,TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/lib
-Wl,-rpath,TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib
-Wl,-rpath,TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/lib
-Wl,-O1 -Wl,--allow-shlib-undefined
-Wl,--dynamic-linker=TOPDIR/BUILD/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2
-pthread -Wl,-rpath,TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib
-Wl,--start-group src/compiler/clc/liblibmesaclc.a

src/compiler/nir/libnir.a src/compiler/libcompiler.a src/util/libmesa_util.a src/util/libmesa_util_sse41.a src/util/blake3/libblake3.a src/c11/impl/libmesa_util_c11.a src/compiler/spirv/libvtn.a -Wl,--build-id=sha1 -fPIC -O2 -pipe

(quoted diff) +0 -11
-fvisibility-inlines-hidden -Wl,--enable-new-dtags
-Wl,-rpath-link,TOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/usr/lib
-Wl,-rpath-link,TOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/lib
-Wl,-rpath,TOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/usr/lib
-Wl,-rpath,TOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/lib
-Wl,-O1 -Wl,--allow-shlib-undefined
-Wl,--dynamic-linker=TOPDIR/BUILD/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2
-LTOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib
-LTOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/usr/lib
-LTOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/lib
-lLLVM-20 TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libSPIRV-Tools-opt.so

TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libSPIRV-Tools.so TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libSPIRV-Tools-link.so TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libz.so -lm TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libzstd.so TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/libclang-cpp.so

(quoted diff) +0 -8
-isystemTOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/usr/include
-O2 -fvisibility-inlines-hidden -Wl,--enable-new-dtags -Wl,-O1
-Wl,--allow-shlib-undefined
-LTOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib
-LTOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/usr/lib
-LTOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/lib
-lLLVM-20 TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libLLVMSPIRVLib.a
-Wl,--end-group

[921/2437] TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/compiler/clc/mesa_clc ../mesa-25.0.2/src/intel/shaders/libintel_shaders.h ../mesa-25.0.2/src/intel/shaders/generate.cl ../mesa-25.0.2/src/intel/shaders/generate_draws.cl ../mesa-25.0.2/src/intel/shaders/generate_draws_iris.cl ../mesa-25.0.2/src/intel/shaders/query_copy.cl ../mesa-25.0.2/src/intel/shaders/util.cl -o src/intel/shaders/intel_gfx80_shaders.spv -- -DNDEBUG=1

(quoted diff) +0 -7
-DGFX_VERx10=80
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/shaders/.
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/compiler/libcl
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/genxml

TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/compiler/clc/mesa_clc ../mesa-25.0.2/src/intel/shaders/libintel_shaders.h ../mesa-25.0.2/src/intel/shaders/generate.cl ../mesa-25.0.2/src/intel/shaders/generate_draws.cl ../mesa-25.0.2/src/intel/shaders/generate_draws_iris.cl ../mesa-25.0.2/src/intel/shaders/query_copy.cl ../mesa-25.0.2/src/intel/shaders/util.cl -o src/intel/shaders/intel_gfx80_shaders.spv -- -DNDEBUG=1

(quoted diff) +0 -7
-DGFX_VERx10=80
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/shaders/.
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/compiler/libcl
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/genxml

/bin/sh: line 1:
TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/compiler/clc/mesa_clc:
No such file or directory

Quoted 32 lines · Dmitry Baryshkov

Mesa has dropped support for separate kmsro option to gallium-drivers. Drop it from the recipe and drop the now-unused PACKAGECONFIG too.

---
  meta/recipes-graphics/mesa/mesa.inc | 2 --
  1 file changed, 2 deletions(-)
meta/recipes-graphics/mesa/mesa.inc +0 -2
index aca34983e97ca684d662987d3a1d0b61ba44029a..a88cc8660e26bae43c713b2bfdbf396e804f6c09 100644
@@ -162,7 +162,6 @@ PACKAGECONFIG[opencl] = " \
  PACKAGECONFIG[broadcom] = ""
  PACKAGECONFIG[etnaviv] = ",,python3-pycparser-native"
  PACKAGECONFIG[freedreno] = ""
-PACKAGECONFIG[kmsro] = ""
  PACKAGECONFIG[vc4] = ""
  PACKAGECONFIG[v3d] = ""
  PACKAGECONFIG[zink] = ""
@@ -177,7 +176,6 @@ GALLIUMDRIVERS:append:i686 = ",i915,crocus"
 
  GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'etnaviv', ',etnaviv', '', d)}"
  GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}"
-GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'kmsro', ',kmsro', '', d)}"
  GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'vc4', ',vc4', '', d)}"
  GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'v3d', ',v3d', '', d)}"
  GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'zink', ',zink', '', d)}"
Quoted 3 lines
Quoted 3 lines

--
2.39.5

--
With best wishes
Dmitry

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#214775): https://lists.openembedded.org/g/openembedded-core/message/214775
Mute This Topic: https://lists.openembedded.org/mt/112219028/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#6 lore raw

Re: [OE-core] [PATCH 1/7] mesa: drop kmsro PACKAGECONFIG

Quoted 9 lines · Martin Jansa
Quoted 4 lines · Khem Raj

I am still seeing an error with all updates applied

https://errors.yoctoproject.org/Errors/Details/852167/

I'm seeing this one for target qemux86-64 builds as well, mesa-native seems to be fixed after meta-clang update.

I think the build failure is happening when we enable rm_work and perhaps meta-clang is required too ( I have not done a build without meta-clang )
Opened a tracker on YP bigzilla -
https://bugzilla.yoctoproject.org/show_bug.cgi?id=15831

Quoted 243 lines
Quoted 243 lines
Quoted 238 lines · Dmitry Baryshkov via lists.openembedded.org
Quoted 6 lines · Martin Jansa

Thanks, I've sent PR for meta-raspberryip:
https://github.com/agherzan/meta-raspberrypi/pull/1456

There is one more separate issue which mesa_clc in mesa-native builds, possibly only in combination with using meta-clang, is it what you've fixed with last 3 meta-clang commits from you?

Yes, this is the LDFLAGS issue if I remember correctly. It should be fixed by the meta-clang PR that Khem has merged. Please ping me if it still can be reproduced.

Quoted 208 lines

In some builds I've noticed failure like:
FAILED: src/intel/shaders/intel_gfx80_shaders.spv TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/compiler/clc/mesa_clc ../mesa-25.0.2/src/intel/shaders/libintel_shaders.h ../mesa-25.0.2/src/intel/shaders/generate.cl ../mesa-25.0.2/src/intel/shaders/generate_draws.cl ../mesa-25.0.2/src/intel/shaders/generate_draws_iris.cl ../mesa-25.0.2/src/intel/shaders/query_copy.cl ../mesa-25.0.2/src/intel/shaders/util.cl -o src/intel/shaders/intel_gfx80_shaders.spv -- -DNDEBUG=1

(quoted diff) +0 -7
-DGFX_VERx10=80
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/shaders/.
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/compiler/libcl
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/genxml

/bin/sh: line 1:
TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/compiler/clc/mesa_clc:
No such file or directory

I haven't reproduced it locally yet, seen it couple times from jenkins builds, I guess it might be related to rm_work and mesa_clc using -L pointing to clang-native's libdir/WORKDIR which might be already cleaned by rm_work:

# grep mesa_clc log.do_compile
[8/2437] gcc -Isrc/compiler/clc/mesa_clc.p -Isrc/compiler/clc
(quoted diff) +0 -15
-I../mesa-25.0.2/src/compiler/clc -Iinclude -I../mesa-25.0.2/include
-Isrc -I../mesa-25.0.2/src
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include
-fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall
-Winvalid-pch -std=c11 -mtls-dialect=gnu2
-Werror=implicit-function-declaration -Werror=missing-prototypes
-Werror=return-type -Werror=empty-body
-Werror=incompatible-pointer-types -Werror=int-conversion
-Wimplicit-fallthrough -Wmisleading-indentation
-Wno-missing-field-initializers -Wno-format-truncation
-Wno-nonnull-compare -fno-math-errno -fno-trapping-math -fno-common
-Wno-unknown-pragmas -Wno-unused-function -Werror=format
-Wformat-security -ffunction-sections -fdata-sections -O2 -pipe
-pthread -isystemTOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/include
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS

'-DPACKAGE_VERSION="25.0.2"' '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/-/issues"'

(quoted diff) +0 -38
-DHAVE_OPENGL=1 -DHAVE_OPENGL_ES_1=1 -DHAVE_OPENGL_ES_2=1
-DHAVE_SOFTPIPE -DHAVE_I915 -DHAVE_CROCUS -DHAVE_R300 -DHAVE_NOUVEAU
-DHAVE_LLVMPIPE -DHAVE_IRIS -DHAVE_RADEONSI -DHAVE_SVGA -DHAVE_R600
-DHAVE_VIRGL -DHAVE_SWRAST -DVIDEO_CODEC_VC1DEC=0
-DVIDEO_CODEC_H264DEC=0 -DVIDEO_CODEC_H264ENC=0
-DVIDEO_CODEC_H265DEC=0 -DVIDEO_CODEC_H265ENC=0 -DVIDEO_CODEC_AV1DEC=1
-DVIDEO_CODEC_AV1ENC=1 -DVIDEO_CODEC_VP9DEC=1 -DHAVE_WAYLAND_PLATFORM
-DHAVE_X11_PLATFORM -DHAVE_SURFACELESS_PLATFORM -DHAVE_DRM_PLATFORM
-DHAVE_XCB_PLATFORM -DUSE_LIBGLVND=0 -DGLX_INDIRECT_RENDERING
-DGLX_DIRECT_RENDERING -DGLX_USE_DRM
-DGLAPI_EXPORT_PROTO_ENTRY_POINTS=0 -DALLOW_KCMP -DMESA_DEBUG=0
-DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32
-DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL
-DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS
-DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT
-DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE
-DHAVE___BUILTIN_TYPES_COMPATIBLE_P -DHAVE_FUNC_ATTRIBUTE_CONST
-DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC
-DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED
-DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK
-DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED
-DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_ALIAS
-DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_FUNC_ATTRIBUTE_OPTIMIZE
-DHAVE_FUNC_ATTRIBUTE_VISIBILITY -DHAVE_UINT128 -DHAVE_REALLOCARRAY
-DHAVE_FMEMOPEN -D_GNU_SOURCE -DUSE_SSE41
-DHAVE___BUILTIN_IA32_CLFLUSHOPT -DUSE_GCC_ATOMIC_BUILTINS
-DUSE_X86_64_ASM -DMAJOR_IN_SYSMACROS -DHAS_SCHED_H
-DHAS_SCHED_GETAFFINITY -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H
-DHAVE_DLFCN_H -DHAVE_SYS_SHM_H -DHAVE_CET_H -DHAVE_SYS_INOTIFY_H
-DHAVE_LINUX_UDMABUF_H -DHAVE_STRTOF -DHAVE_MKOSTEMP
-DHAVE_MEMFD_CREATE -DHAVE_RANDOM_R -DHAVE_FLOCK -DHAVE_STRTOK_R
-DHAVE_GETRANDOM -DHAVE_POSIX_FALLOCATE -DHAVE_SECURE_GETENV
-DHAVE_GNU_QSORT_R -DHAVE_STRUCT_TIMESPEC
-DHAVE_PROGRAM_INVOCATION_NAME -DHAVE_ISSIGNALING
-DHAVE_POSIX_MEMALIGN -DHAVE_DIRENT_D_TYPE -DHAVE_STRTOD_L
-DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DSUPPORT_INTEL_INTEGRATED_GPUS
-DHAVE_ZLIB -DHAVE_ZSTD -DHAVE_COMPRESSION -DHAVE_PTHREAD
-DHAVE_PTHREAD_SETAFFINITY -DHAVE_LIBDRM

'-DMESA_LLVM_VERSION_STRING="20.1.2"' -DLLVM_IS_SHARED=1

(quoted diff) +0 -7
-DLLVM_AVAILABLE=1 -DDRAW_LLVM_AVAILABLE=1 -DAMD_LLVM_AVAILABLE=1
-DGALLIVM_USE_ORCJIT=0 -DHAVE_SPIRV_TOOLS -DUSE_LIBELF
-DTHREAD_SANITIZER=0 -DWL_HIDE_DEPRECATED
-DHAVE_WL_CREATE_QUEUE_WITH_NAME -DHAVE_OPENMP -DHAVE_X11_DRM
-DHAVE_DRI -DHAVE_DRI2 -DHAVE_DRI3_EXPLICIT_SYNC -DHAVE_DRISW_KMS
-Wno-override-init -MD -MQ src/compiler/clc/mesa_clc.p/mesa_clc.c.o
-MF src/compiler/clc/mesa_clc.p/mesa_clc.c.o.d -o

src/compiler/clc/mesa_clc.p/mesa_clc.c.o -c ../mesa-25.0.2/src/compiler/clc/mesa_clc.c ../mesa-25.0.2/src/compiler/clc/mesa_clc.c: In function ‘main’:
../mesa-25.0.2/src/compiler/clc/mesa_clc.c:152:7: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
[920/2437] g++ -o src/compiler/clc/mesa_clc src/compiler/clc/mesa_clc.p/mesa_clc.c.o

(quoted diff) +0 -11
-LTOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib
-LTOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/lib
-Wl,--as-needed -Wl,--no-undefined -Wl,--enable-new-dtags
-Wl,-rpath-link,TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib
-Wl,-rpath-link,TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/lib
-Wl,-rpath,TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib
-Wl,-rpath,TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/lib
-Wl,-O1 -Wl,--allow-shlib-undefined
-Wl,--dynamic-linker=TOPDIR/BUILD/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2
-pthread -Wl,-rpath,TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib
-Wl,--start-group src/compiler/clc/liblibmesaclc.a

src/compiler/nir/libnir.a src/compiler/libcompiler.a src/util/libmesa_util.a src/util/libmesa_util_sse41.a src/util/blake3/libblake3.a src/c11/impl/libmesa_util_c11.a src/compiler/spirv/libvtn.a -Wl,--build-id=sha1 -fPIC -O2 -pipe

(quoted diff) +0 -11
-fvisibility-inlines-hidden -Wl,--enable-new-dtags
-Wl,-rpath-link,TOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/usr/lib
-Wl,-rpath-link,TOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/lib
-Wl,-rpath,TOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/usr/lib
-Wl,-rpath,TOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/lib
-Wl,-O1 -Wl,--allow-shlib-undefined
-Wl,--dynamic-linker=TOPDIR/BUILD/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2
-LTOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib
-LTOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/usr/lib
-LTOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/lib
-lLLVM-20 TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libSPIRV-Tools-opt.so

TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libSPIRV-Tools.so TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libSPIRV-Tools-link.so TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libz.so -lm TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libzstd.so TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/libclang-cpp.so

(quoted diff) +0 -8
-isystemTOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/usr/include
-O2 -fvisibility-inlines-hidden -Wl,--enable-new-dtags -Wl,-O1
-Wl,--allow-shlib-undefined
-LTOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib
-LTOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/usr/lib
-LTOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/lib
-lLLVM-20 TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libLLVMSPIRVLib.a
-Wl,--end-group

[921/2437] TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/compiler/clc/mesa_clc ../mesa-25.0.2/src/intel/shaders/libintel_shaders.h ../mesa-25.0.2/src/intel/shaders/generate.cl ../mesa-25.0.2/src/intel/shaders/generate_draws.cl ../mesa-25.0.2/src/intel/shaders/generate_draws_iris.cl ../mesa-25.0.2/src/intel/shaders/query_copy.cl ../mesa-25.0.2/src/intel/shaders/util.cl -o src/intel/shaders/intel_gfx80_shaders.spv -- -DNDEBUG=1

(quoted diff) +0 -7
-DGFX_VERx10=80
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/shaders/.
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/compiler/libcl
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/genxml

TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/compiler/clc/mesa_clc ../mesa-25.0.2/src/intel/shaders/libintel_shaders.h ../mesa-25.0.2/src/intel/shaders/generate.cl ../mesa-25.0.2/src/intel/shaders/generate_draws.cl ../mesa-25.0.2/src/intel/shaders/generate_draws_iris.cl ../mesa-25.0.2/src/intel/shaders/query_copy.cl ../mesa-25.0.2/src/intel/shaders/util.cl -o src/intel/shaders/intel_gfx80_shaders.spv -- -DNDEBUG=1

(quoted diff) +0 -7
-DGFX_VERx10=80
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/shaders/.
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/compiler/libcl
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/genxml

/bin/sh: line 1:
TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/compiler/clc/mesa_clc:
No such file or directory

Quoted 32 lines · Dmitry Baryshkov

Mesa has dropped support for separate kmsro option to gallium-drivers. Drop it from the recipe and drop the now-unused PACKAGECONFIG too.

---
  meta/recipes-graphics/mesa/mesa.inc | 2 --
  1 file changed, 2 deletions(-)
meta/recipes-graphics/mesa/mesa.inc +0 -2
index aca34983e97ca684d662987d3a1d0b61ba44029a..a88cc8660e26bae43c713b2bfdbf396e804f6c09 100644
@@ -162,7 +162,6 @@ PACKAGECONFIG[opencl] = " \
  PACKAGECONFIG[broadcom] = ""
  PACKAGECONFIG[etnaviv] = ",,python3-pycparser-native"
  PACKAGECONFIG[freedreno] = ""
-PACKAGECONFIG[kmsro] = ""
  PACKAGECONFIG[vc4] = ""
  PACKAGECONFIG[v3d] = ""
  PACKAGECONFIG[zink] = ""
@@ -177,7 +176,6 @@ GALLIUMDRIVERS:append:i686 = ",i915,crocus"
 
  GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'etnaviv', ',etnaviv', '', d)}"
  GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}"
-GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'kmsro', ',kmsro', '', d)}"
  GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'vc4', ',vc4', '', d)}"
  GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'v3d', ',v3d', '', d)}"
  GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'zink', ',zink', '', d)}"
Quoted 3 lines
Quoted 3 lines

--
2.39.5

--
With best wishes
Dmitry

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#214775): https://lists.openembedded.org/g/openembedded-core/message/214775
Mute This Topic: https://lists.openembedded.org/mt/112219028/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#7 lore raw

Re: [OE-core] [PATCH 1/7] mesa: drop kmsro PACKAGECONFIG

Quoted 8 lines · Khem Raj
Quoted 7 lines · Martin Jansa
Quoted 4 lines · Khem Raj

I am still seeing an error with all updates applied

https://errors.yoctoproject.org/Errors/Details/852167/

Quoted 8 lines
Quoted 2 lines

I'm seeing this one for target qemux86-64 builds as well, mesa-native seems to be fixed after meta-clang update.

I think the build failure is happening when we enable rm_work and perhaps meta-clang is required too ( I have not done a build without meta-clang )
Opened a tracker on YP bigzilla -
https://bugzilla.yoctoproject.org/show_bug.cgi?id=15831

I'm debugging builds with meta-clang enabled. I hope to have some results later today or tomorrow. Yes, rm_work makes things change slightly.

Quoted 244 lines
Quoted 244 lines
Quoted 244 lines
Quoted 238 lines · Dmitry Baryshkov via lists.openembedded.org
Quoted 6 lines · Martin Jansa

Thanks, I've sent PR for meta-raspberryip:
https://github.com/agherzan/meta-raspberrypi/pull/1456

There is one more separate issue which mesa_clc in mesa-native builds, possibly only in combination with using meta-clang, is it what you've fixed with last 3 meta-clang commits from you?

Yes, this is the LDFLAGS issue if I remember correctly. It should be fixed by the meta-clang PR that Khem has merged. Please ping me if it still can be reproduced.

Quoted 208 lines

In some builds I've noticed failure like:
FAILED: src/intel/shaders/intel_gfx80_shaders.spv TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/compiler/clc/mesa_clc ../mesa-25.0.2/src/intel/shaders/libintel_shaders.h ../mesa-25.0.2/src/intel/shaders/generate.cl ../mesa-25.0.2/src/intel/shaders/generate_draws.cl ../mesa-25.0.2/src/intel/shaders/generate_draws_iris.cl ../mesa-25.0.2/src/intel/shaders/query_copy.cl ../mesa-25.0.2/src/intel/shaders/util.cl -o src/intel/shaders/intel_gfx80_shaders.spv -- -DNDEBUG=1

(quoted diff) +0 -7
-DGFX_VERx10=80
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/shaders/.
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/compiler/libcl
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/genxml

/bin/sh: line 1:
TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/compiler/clc/mesa_clc:
No such file or directory

I haven't reproduced it locally yet, seen it couple times from jenkins builds, I guess it might be related to rm_work and mesa_clc using -L pointing to clang-native's libdir/WORKDIR which might be already cleaned by rm_work:

# grep mesa_clc log.do_compile
[8/2437] gcc -Isrc/compiler/clc/mesa_clc.p -Isrc/compiler/clc
(quoted diff) +0 -15
-I../mesa-25.0.2/src/compiler/clc -Iinclude -I../mesa-25.0.2/include
-Isrc -I../mesa-25.0.2/src
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include
-fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall
-Winvalid-pch -std=c11 -mtls-dialect=gnu2
-Werror=implicit-function-declaration -Werror=missing-prototypes
-Werror=return-type -Werror=empty-body
-Werror=incompatible-pointer-types -Werror=int-conversion
-Wimplicit-fallthrough -Wmisleading-indentation
-Wno-missing-field-initializers -Wno-format-truncation
-Wno-nonnull-compare -fno-math-errno -fno-trapping-math -fno-common
-Wno-unknown-pragmas -Wno-unused-function -Werror=format
-Wformat-security -ffunction-sections -fdata-sections -O2 -pipe
-pthread -isystemTOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/include
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS

'-DPACKAGE_VERSION="25.0.2"' '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/-/issues"'

(quoted diff) +0 -38
-DHAVE_OPENGL=1 -DHAVE_OPENGL_ES_1=1 -DHAVE_OPENGL_ES_2=1
-DHAVE_SOFTPIPE -DHAVE_I915 -DHAVE_CROCUS -DHAVE_R300 -DHAVE_NOUVEAU
-DHAVE_LLVMPIPE -DHAVE_IRIS -DHAVE_RADEONSI -DHAVE_SVGA -DHAVE_R600
-DHAVE_VIRGL -DHAVE_SWRAST -DVIDEO_CODEC_VC1DEC=0
-DVIDEO_CODEC_H264DEC=0 -DVIDEO_CODEC_H264ENC=0
-DVIDEO_CODEC_H265DEC=0 -DVIDEO_CODEC_H265ENC=0 -DVIDEO_CODEC_AV1DEC=1
-DVIDEO_CODEC_AV1ENC=1 -DVIDEO_CODEC_VP9DEC=1 -DHAVE_WAYLAND_PLATFORM
-DHAVE_X11_PLATFORM -DHAVE_SURFACELESS_PLATFORM -DHAVE_DRM_PLATFORM
-DHAVE_XCB_PLATFORM -DUSE_LIBGLVND=0 -DGLX_INDIRECT_RENDERING
-DGLX_DIRECT_RENDERING -DGLX_USE_DRM
-DGLAPI_EXPORT_PROTO_ENTRY_POINTS=0 -DALLOW_KCMP -DMESA_DEBUG=0
-DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32
-DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL
-DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS
-DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT
-DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE
-DHAVE___BUILTIN_TYPES_COMPATIBLE_P -DHAVE_FUNC_ATTRIBUTE_CONST
-DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC
-DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED
-DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK
-DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED
-DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_ALIAS
-DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_FUNC_ATTRIBUTE_OPTIMIZE
-DHAVE_FUNC_ATTRIBUTE_VISIBILITY -DHAVE_UINT128 -DHAVE_REALLOCARRAY
-DHAVE_FMEMOPEN -D_GNU_SOURCE -DUSE_SSE41
-DHAVE___BUILTIN_IA32_CLFLUSHOPT -DUSE_GCC_ATOMIC_BUILTINS
-DUSE_X86_64_ASM -DMAJOR_IN_SYSMACROS -DHAS_SCHED_H
-DHAS_SCHED_GETAFFINITY -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H
-DHAVE_DLFCN_H -DHAVE_SYS_SHM_H -DHAVE_CET_H -DHAVE_SYS_INOTIFY_H
-DHAVE_LINUX_UDMABUF_H -DHAVE_STRTOF -DHAVE_MKOSTEMP
-DHAVE_MEMFD_CREATE -DHAVE_RANDOM_R -DHAVE_FLOCK -DHAVE_STRTOK_R
-DHAVE_GETRANDOM -DHAVE_POSIX_FALLOCATE -DHAVE_SECURE_GETENV
-DHAVE_GNU_QSORT_R -DHAVE_STRUCT_TIMESPEC
-DHAVE_PROGRAM_INVOCATION_NAME -DHAVE_ISSIGNALING
-DHAVE_POSIX_MEMALIGN -DHAVE_DIRENT_D_TYPE -DHAVE_STRTOD_L
-DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DSUPPORT_INTEL_INTEGRATED_GPUS
-DHAVE_ZLIB -DHAVE_ZSTD -DHAVE_COMPRESSION -DHAVE_PTHREAD
-DHAVE_PTHREAD_SETAFFINITY -DHAVE_LIBDRM

'-DMESA_LLVM_VERSION_STRING="20.1.2"' -DLLVM_IS_SHARED=1

(quoted diff) +0 -7
-DLLVM_AVAILABLE=1 -DDRAW_LLVM_AVAILABLE=1 -DAMD_LLVM_AVAILABLE=1
-DGALLIVM_USE_ORCJIT=0 -DHAVE_SPIRV_TOOLS -DUSE_LIBELF
-DTHREAD_SANITIZER=0 -DWL_HIDE_DEPRECATED
-DHAVE_WL_CREATE_QUEUE_WITH_NAME -DHAVE_OPENMP -DHAVE_X11_DRM
-DHAVE_DRI -DHAVE_DRI2 -DHAVE_DRI3_EXPLICIT_SYNC -DHAVE_DRISW_KMS
-Wno-override-init -MD -MQ src/compiler/clc/mesa_clc.p/mesa_clc.c.o
-MF src/compiler/clc/mesa_clc.p/mesa_clc.c.o.d -o

src/compiler/clc/mesa_clc.p/mesa_clc.c.o -c ../mesa-25.0.2/src/compiler/clc/mesa_clc.c ../mesa-25.0.2/src/compiler/clc/mesa_clc.c: In function ‘main’:
../mesa-25.0.2/src/compiler/clc/mesa_clc.c:152:7: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
[920/2437] g++ -o src/compiler/clc/mesa_clc src/compiler/clc/mesa_clc.p/mesa_clc.c.o

(quoted diff) +0 -11
-LTOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib
-LTOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/lib
-Wl,--as-needed -Wl,--no-undefined -Wl,--enable-new-dtags
-Wl,-rpath-link,TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib
-Wl,-rpath-link,TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/lib
-Wl,-rpath,TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib
-Wl,-rpath,TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/lib
-Wl,-O1 -Wl,--allow-shlib-undefined
-Wl,--dynamic-linker=TOPDIR/BUILD/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2
-pthread -Wl,-rpath,TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib
-Wl,--start-group src/compiler/clc/liblibmesaclc.a

src/compiler/nir/libnir.a src/compiler/libcompiler.a src/util/libmesa_util.a src/util/libmesa_util_sse41.a src/util/blake3/libblake3.a src/c11/impl/libmesa_util_c11.a src/compiler/spirv/libvtn.a -Wl,--build-id=sha1 -fPIC -O2 -pipe

(quoted diff) +0 -11
-fvisibility-inlines-hidden -Wl,--enable-new-dtags
-Wl,-rpath-link,TOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/usr/lib
-Wl,-rpath-link,TOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/lib
-Wl,-rpath,TOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/usr/lib
-Wl,-rpath,TOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/lib
-Wl,-O1 -Wl,--allow-shlib-undefined
-Wl,--dynamic-linker=TOPDIR/BUILD/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2
-LTOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib
-LTOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/usr/lib
-LTOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/lib
-lLLVM-20 TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libSPIRV-Tools-opt.so

TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libSPIRV-Tools.so TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libSPIRV-Tools-link.so TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libz.so -lm TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libzstd.so TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/libclang-cpp.so

(quoted diff) +0 -8
-isystemTOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/usr/include
-O2 -fvisibility-inlines-hidden -Wl,--enable-new-dtags -Wl,-O1
-Wl,--allow-shlib-undefined
-LTOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib
-LTOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/usr/lib
-LTOPDIR/BUILD/work/x86_64-linux/clang-native/20.1.2/recipe-sysroot-native/lib
-lLLVM-20 TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libLLVMSPIRVLib.a
-Wl,--end-group

[921/2437] TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/compiler/clc/mesa_clc ../mesa-25.0.2/src/intel/shaders/libintel_shaders.h ../mesa-25.0.2/src/intel/shaders/generate.cl ../mesa-25.0.2/src/intel/shaders/generate_draws.cl ../mesa-25.0.2/src/intel/shaders/generate_draws_iris.cl ../mesa-25.0.2/src/intel/shaders/query_copy.cl ../mesa-25.0.2/src/intel/shaders/util.cl -o src/intel/shaders/intel_gfx80_shaders.spv -- -DNDEBUG=1

(quoted diff) +0 -7
-DGFX_VERx10=80
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/shaders/.
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/compiler/libcl
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/genxml

TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/compiler/clc/mesa_clc ../mesa-25.0.2/src/intel/shaders/libintel_shaders.h ../mesa-25.0.2/src/intel/shaders/generate.cl ../mesa-25.0.2/src/intel/shaders/generate_draws.cl ../mesa-25.0.2/src/intel/shaders/generate_draws_iris.cl ../mesa-25.0.2/src/intel/shaders/query_copy.cl ../mesa-25.0.2/src/intel/shaders/util.cl -o src/intel/shaders/intel_gfx80_shaders.spv -- -DNDEBUG=1

(quoted diff) +0 -7
-DGFX_VERx10=80
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/shaders/.
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/compiler/libcl
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/intel
-ITOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/mesa-25.0.2/src/intel/genxml

/bin/sh: line 1:
TOPDIR/BUILD/work/x86_64-linux/mesa-native/25.0.2/build/src/compiler/clc/mesa_clc:
No such file or directory

Quoted 32 lines · Dmitry Baryshkov

Mesa has dropped support for separate kmsro option to gallium-drivers. Drop it from the recipe and drop the now-unused PACKAGECONFIG too.

---
   meta/recipes-graphics/mesa/mesa.inc | 2 --
   1 file changed, 2 deletions(-)
meta/recipes-graphics/mesa/mesa.inc +0 -2
index aca34983e97ca684d662987d3a1d0b61ba44029a..a88cc8660e26bae43c713b2bfdbf396e804f6c09 100644
@@ -162,7 +162,6 @@ PACKAGECONFIG[opencl] = " \
   PACKAGECONFIG[broadcom] = ""
   PACKAGECONFIG[etnaviv] = ",,python3-pycparser-native"
   PACKAGECONFIG[freedreno] = ""
-PACKAGECONFIG[kmsro] = ""
   PACKAGECONFIG[vc4] = ""
   PACKAGECONFIG[v3d] = ""
   PACKAGECONFIG[zink] = ""
@@ -177,7 +176,6 @@ GALLIUMDRIVERS:append:i686 = ",i915,crocus"
 
   GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'etnaviv', ',etnaviv', '', d)}"
   GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}"
-GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'kmsro', ',kmsro', '', d)}"
   GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'vc4', ',vc4', '', d)}"
   GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'v3d', ',v3d', '', d)}"
   GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'zink', ',zink', '', d)}"
Quoted 3 lines
Quoted 3 lines

--
2.39.5

--
With best wishes
Dmitry

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#214775): https://lists.openembedded.org/g/openembedded-core/message/214775
Mute This Topic: https://lists.openembedded.org/mt/112219028/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 2 lines
With best wishes
Dmitry
#8 lore raw

PATCH 2/7 meson: pass -target and -I to bindgen calls

In reply to Dmitry Baryshkov

In order to properly generate Rust bindings for the target systems, we need to pass '-taget foo-linux-gnueabi' flags and a correct include target include path (${STAGING_INCDIR}) to the bindgen. Add those flags to the generated meson target file.

---
 meta/classes-recipe/meson.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes-recipe/meson.bbclass +1 -0
index cbfc45b94bbd076735847134a0976b6b30784d50..ef45a034a767e979a45553ba08e46dc90e34f33f 100644
@@ -93,6 +93,7 @@ cpp_link_args = ${@meson_array('LDFLAGS', d)}
 [properties]
 needs_exe_wrapper = true
 sys_root = '${STAGING_DIR_HOST}'
+bindgen_clang_arguments = ['-target', '${@d.getVar('RUST_HOST_SYS')}', '-I${STAGING_INCDIR}']
 
 [host_machine]
 system = '${@meson_operating_system('HOST_OS', d)}'
Signature · 1 line
2.39.5
#9 lore raw

Re: [OE-core] [PATCH 2/7] meson: pass -target and -I to bindgen calls

Quoted 16 lines · Dmitry Baryshkov via lists.openembedded.org

In order to properly generate Rust bindings for the target systems, we need to pass '-taget foo-linux-gnueabi' flags and a correct include target include path (${STAGING_INCDIR}) to the bindgen. Add those flags to the generated meson target file.

---
 meta/classes-recipe/meson.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes-recipe/meson.bbclass +0 -0
index cbfc45b94bbd076735847134a0976b6b30784d50..ef45a034a767e979a45553ba08e46dc90e34f33f 100644

meta/classes-recipe/meson.bbclass cpp_link_args = ${@meson_array('LDFLAGS', d)} · line 96

Quoted 4 lines
meta/classes-recipe/meson.bbclass +1 -0
@@ -93,6 +93,7 @@ cpp_link_args = ${@meson_array('LDFLAGS', d)}
 [properties]
 needs_exe_wrapper = true
 sys_root = '${STAGING_DIR_HOST}'
+bindgen_clang_arguments = ['-target', '${@d.getVar('RUST_HOST_SYS')}', '-I${STAGING_INCDIR}']

I think its better to use ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} --target=${TARGET_SYS}
here

Quoted 16 lines
meta/classes-recipe/meson.bbclass +0 -1
 [host_machine]
 system = '${@meson_operating_system('HOST_OS', d)}'
 
--

2.39.5

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#214764): https://lists.openembedded.org/g/openembedded-core/message/214764
Mute This Topic: https://lists.openembedded.org/mt/112219030/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#10 lore raw

Re: [OE-core] [PATCH 2/7] meson: pass -target and -I to bindgen calls

Quoted 14 lines · Khem Raj
Quoted 11 lines · Dmitry Baryshkov via lists.openembedded.org

In order to properly generate Rust bindings for the target systems, we need to pass '-taget foo-linux-gnueabi' flags and a correct include target include path (${STAGING_INCDIR}) to the bindgen. Add those flags to the generated meson target file.

---
  meta/classes-recipe/meson.bbclass | 1 +
  1 file changed, 1 insertion(+)
Quoted 12 lines

meta/classes-recipe/meson.bbclass cpp_link_args = ${@meson_array('LDFLAGS', d)} · line 96

Quoted 9 lines
meta/classes-recipe/meson.bbclass +1 -0
index cbfc45b94bbd076735847134a0976b6b30784d50..ef45a034a767e979a45553ba08e46dc90e34f33f 100644
@@ -93,6 +93,7 @@ cpp_link_args = ${@meson_array('LDFLAGS', d)}
  [properties]
  needs_exe_wrapper = true
  sys_root = '${STAGING_DIR_HOST}'
+bindgen_clang_arguments = ['-target', '${@d.getVar('RUST_HOST_SYS')}', '-I${STAGING_INCDIR}']

I think its better to use ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} --target=${TARGET_SYS}

TARGET_SYS doesn't work, as it doesn't include 'hf' on ARM, etc. For v2 I'll use ${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS} --target=${RUST_HOST_SYS}

Quoted 18 lines

here

Quoted 16 lines
meta/classes-recipe/meson.bbclass +0 -1
  [host_machine]
  system = '${@meson_operating_system('HOST_OS', d)}'
 
--

2.39.5

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#214764): https://lists.openembedded.org/g/openembedded-core/message/214764
Mute This Topic: https://lists.openembedded.org/mt/112219030/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 2 lines
With best wishes
Dmitry
#11 lore raw

Re: [OE-core] [PATCH 2/7] meson: pass -target and -I to bindgen calls

In reply to Khem Raj
Quoted 14 lines · Khem Raj
Quoted 11 lines · Dmitry Baryshkov via lists.openembedded.org

In order to properly generate Rust bindings for the target systems, we need to pass '-taget foo-linux-gnueabi' flags and a correct include target include path (${STAGING_INCDIR}) to the bindgen. Add those flags to the generated meson target file.

---
  meta/classes-recipe/meson.bbclass | 1 +
  1 file changed, 1 insertion(+)
Quoted 12 lines

meta/classes-recipe/meson.bbclass cpp_link_args = ${@meson_array('LDFLAGS', d)} · line 96

Quoted 9 lines
meta/classes-recipe/meson.bbclass +1 -0
index cbfc45b94bbd076735847134a0976b6b30784d50..ef45a034a767e979a45553ba08e46dc90e34f33f 100644
@@ -93,6 +93,7 @@ cpp_link_args = ${@meson_array('LDFLAGS', d)}
  [properties]
  needs_exe_wrapper = true
  sys_root = '${STAGING_DIR_HOST}'
+bindgen_clang_arguments = ['-target', '${@d.getVar('RUST_HOST_SYS')}', '-I${STAGING_INCDIR}']

I think its better to use ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} --target=${TARGET_SYS}

Using ${TOOLCHAIN_OPTIONS} breaks x86-64 build with the compiler being unable to find headers. I'd rather stick to the patch I have posted.

Quoted 18 lines

here

Quoted 16 lines
meta/classes-recipe/meson.bbclass +0 -1
  [host_machine]
  system = '${@meson_operating_system('HOST_OS', d)}'
 
--

2.39.5

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#214764): https://lists.openembedded.org/g/openembedded-core/message/214764
Mute This Topic: https://lists.openembedded.org/mt/112219030/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 2 lines
With best wishes
Dmitry
#12 lore raw

Re: [OE-core] [PATCH 2/7] meson: pass -target and -I to bindgen calls

Quoted 29 lines · Dmitry Baryshkov
Quoted 14 lines · Khem Raj
Quoted 11 lines · Dmitry Baryshkov via lists.openembedded.org

In order to properly generate Rust bindings for the target systems, we need to pass '-taget foo-linux-gnueabi' flags and a correct include target include path (${STAGING_INCDIR}) to the bindgen. Add those flags to the generated meson target file.

---
  meta/classes-recipe/meson.bbclass | 1 +
  1 file changed, 1 insertion(+)
Quoted 12 lines

meta/classes-recipe/meson.bbclass cpp_link_args = ${@meson_array('LDFLAGS', d)} · line 96

Quoted 9 lines
meta/classes-recipe/meson.bbclass +1 -0
index cbfc45b94bbd076735847134a0976b6b30784d50..ef45a034a767e979a45553ba08e46dc90e34f33f 100644
@@ -93,6 +93,7 @@ cpp_link_args = ${@meson_array('LDFLAGS', d)}
  [properties]
  needs_exe_wrapper = true
  sys_root = '${STAGING_DIR_HOST}'
+bindgen_clang_arguments = ['-target', '${@d.getVar('RUST_HOST_SYS')}', '-I${STAGING_INCDIR}']

I think its better to use ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} --target=${TARGET_SYS}

Quoted 2 lines

Using ${TOOLCHAIN_OPTIONS} breaks x86-64 build with the compiler being unable to find headers. I'd rather stick to the patch I have posted.

You have to use ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} and --target=${TARGET_SYS} together, OE's compilers do not deal with 'hf' from target tuple but TOOLCHAIN_OPTIONS decide
the ABI, please try both of them together.

Quoted 24 lines
Quoted 19 lines

here

Quoted 16 lines
meta/classes-recipe/meson.bbclass +0 -1
  [host_machine]
  system = '${@meson_operating_system('HOST_OS', d)}'
 
--

2.39.5

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#214764): https://lists.openembedded.org/g/openembedded-core/message/214764
Mute This Topic: https://lists.openembedded.org/mt/112219030/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

--
With best wishes
Dmitry

#13 lore raw

Re: [OE-core] [PATCH 2/7] meson: pass -target and -I to bindgen calls

Quoted 31 lines · Khem Raj
Quoted 11 lines · Dmitry Baryshkov
Quoted 9 lines · Khem Raj
Quoted 6 lines · Dmitry Baryshkov via lists.openembedded.org

In order to properly generate Rust bindings for the target systems, we need to pass '-taget foo-linux-gnueabi' flags and a correct include target include path (${STAGING_INCDIR}) to the bindgen. Add those flags to the generated meson target file.

Quoted 7 lines
Quoted 7 lines

meta/classes-recipe/meson.bbclass

Quoted 7 lines
---
   meta/classes-recipe/meson.bbclass | 1 +
   1 file changed, 1 insertion(+)
meta/classes-recipe/meson.bbclass +0 -0
index cbfc45b94bbd076735847134a0976b6b30784d50..ef45a034a767e979a45553ba08e46dc90e34f33f 100644

; >>> --- a/meta/classes-recipe/meson.bbclass

Quoted 10 lines
Quoted 9 lines

meta/classes-recipe/meson.bbclass cpp_link_args = ${@meson_array('LDFLAGS', d)} · line 96

Quoted 6 lines

+++ b/meta/classes-recipe/meson.bbclass

meta/classes-recipe/meson.bbclass +1 -0
@@ -93,6 +93,7 @@ cpp_link_args = ${@meson_array('LDFLAGS', d)}
   [properties]
   needs_exe_wrapper = true
   sys_root = '${STAGING_DIR_HOST}'
+bindgen_clang_arguments = ['-target', '${@d.getVar('RUST_HOST_SYS')}', '-I${STAGING_INCDIR}']

I think its better to use ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} --target=${TARGET_SYS}

Quoted 7 lines
Quoted 2 lines

Using ${TOOLCHAIN_OPTIONS} breaks x86-64 build with the compiler being unable to find headers. I'd rather stick to the patch I have posted.

You have to use ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} and --target=${TARGET_SYS} together, OE's compilers do not deal with 'hf' from target tuple but TOOLCHAIN_OPTIONS decide
the ABI, please try both of them together.

As I wrote earlier, it breaks qemuarm.

BINDGEN_CLANG_ARGS=" -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 --sysroot=/home/lumag/Projects/RPB/build-rpb/tmp-rpb/work/armv7at2hf-neon-linaro-linux-gnueabi/mesa/25.0.2/recipe-sysroot --target=arm-linaro-linux-gnueabi"

/../lib/gcc-cross/arm-linux-gnueabi/12/../../../../include/c++/12/cassert:43:10: fatal error: 'bits/c++config.h' file not found
Unable to generate bindings: clang diagnosed error: /../lib/gcc-cross/arm-linux-gnueabi/12/../../../../include/c++/12/cassert:43:10: fatal error: 'bits/c++config.h' file

/home/lumag/Projects/RPB/build-rpb/tmp-rpb/work/armv7at2hf-neon-linaro-linux-gnueabi/mesa/25.0.2/recipe-sysroot-native/usr/bin/bindgen ../mesa-25.0.2/src/gallium/frontends/rusticl/rusticl_llvm_bindings.hpp --output /home/lumag/Projects/RPB/build-rpb/tmp-rpb/work/armv7at2hf-neon-linaro-linux-gnueabi/mesa/25.0.2/build/src/gallium/frontends/rusticl/rusticl_llvm_bindings.rs --generate constructors,functions,types --opaque-type '.*' --allowlist-function clang::getClangFullVersion --allowlist-function llvm::LLVMContext::LLVMContext --allowlist-function llvm::writeSpirv --rust-target 1.85.1 -- -fno-builtin-malloc -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS '-DPACKAGE_VERSION="25.0.2"' '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/-/issues"' -DHAVE_OPENGL=1 -DHAVE_OPENGL_ES_1=1 -DHAVE_OPENGL_ES_2=1 -DHAVE_SOFTPIPE -DHAVE_ZINK -DHAVE_R300 -DHAVE_NOUVEAU -DHAVE_LLVMPIPE -DHAVE_VIRGL -DHAVE_SWRAST -DVIDEO_CODEC_VC1DEC=0 -DVIDEO_CODEC_H264DEC=0 -DVIDEO_CODEC_H264ENC=0 -DVIDEO_CODEC_H265DEC=0 -DVIDEO_CODEC_H265ENC=0 -DVIDEO_CODEC_AV1DEC=1 -DVIDEO_CODEC_AV1ENC=1 -DVIDEO_CODEC_VP9DEC=1 -DHAVE_X11_PLATFORM -DHAVE_SURFACELESS_PLATFORM -DHAVE_DRM_PLATFORM -DHAVE_XCB_PLATFORM -DUSE_LIBGLVND=0 -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_DRM -DGLAPI_EXPORT_PROTO_ENTRY_POINTS=0 -DALLOW_KCMP -DMESA_DEBUG=0 -DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE -DHAVE___BUILTIN_TYPES_COMPATIBLE_P -DHAVE_FUNC_ATTRIBUTE_CONST -DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC -DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK -DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_FUNC_ATTRIBUTE_OPTIMIZE -DHAVE_FUNC_ATTRIBUTE_VISIBILITY -DHAVE_REALLOCARRAY -DHAVE_FMEMOPEN -D_GNU_SOURCE -DUSE_GCC_ATOMIC_BUILTINS -DUSE_ARM_ASM -DMAJOR_IN_SYSMACROS -DHAS_SCHED_H -DHAS_SCHED_GETAFFINITY -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_SYS_SHM_H -DHAVE_SYS_INOTIFY_H -DHAVE_LINUX_UDMABUF_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_MEMFD_CREATE -DHAVE_RANDOM_R -DHAVE_FLOCK -DHAVE_STRTOK_R -DHAVE_GETRANDOM -DHAVE_POSIX_FALLOCATE -DHAVE_SECURE_GETENV -DHAVE_GNU_QSORT_R -DHAVE_STRUCT_TIMESPEC -DHAVE_PROGRAM_INVOCATION_NAME -DHAVE_ISSIGNALING -DHAVE_POSIX_MEMALIGN -DHAVE_DIRENT_D_TYPE -DHAVE_STRTOD_L -DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DHAVE_ZLIB -DHAVE_ZSTD -DHAVE_COMPRESSION -DHAVE_PTHREAD -DHAVE_PTHREAD_SETAFFINITY -DHAVE_LIBDRM '-DMESA_LLVM_VERSION_STRING="20.1.2"' -DLLVM_IS_SHARED=1 -DLLVM_AVAILABLE=1 -DDRAW_LLVM_AVAILABLE=1 -DAMD_LLVM_AVAILABLE=1 -DGALLIVM_USE_ORCJIT=0 -DHAVE_SPIRV_TOOLS -DUSE_LIBELF -DTHREAD_SANITIZER=0 -DHAVE_X11_DRM -DHAVE_DRI -DHAVE_DRI2 -DHAVE_DRI3_EXPLICIT_SYNC -DHAVE_DRISW_KMS -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 --sysroot=/home/lumag/Projects/RPB/build-rpb/tmp-rpb/work/armv7at2hf-neon-linaro-linux-gnueabi/mesa/25.0.2/recipe-sysroot --target=arm-linaro-linux-gnueabi -DNDEBUG -pthread -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS '-DPACKAGE_VERSION="25.0.2"' '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/-/issues"' -DHAVE_OPENGL=1 -DHAVE_OPENGL_ES_1=1 -DHAVE_OPENGL_ES_2=1 -DHAVE_SOFTPIPE -DHAVE_ZINK -DHAVE_R300 -DHAVE_NOUVEAU -DHAVE_LLVMPIPE -DHAVE_VIRGL -DHAVE_SWRAST -DVIDEO_CODEC_VC1DEC=0 -DVIDEO_CODEC_H264DEC=0 -DVIDEO_CODEC_H264ENC=0 -DVIDEO_CODEC_H265DEC=0 -DVIDEO_CODEC_H265ENC=0 -DVIDEO_CODEC_AV1DEC=1 -DVIDEO_CODEC_AV1ENC=1 -DVIDEO_CODEC_VP9DEC=1 -DHAVE_X11_PLATFORM -DHAVE_SURFACELESS_PLATFORM -DHAVE_DRM_PLATFORM -DHAVE_XCB_PLATFORM -DUSE_LIBGLVND=0 -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_DRM -DGLAPI_EXPORT_PROTO_ENTRY_POINTS=0 -DALLOW_KCMP -DMESA_DEBUG=0 -DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE -DHAVE___BUILTIN_TYPES_COMPATIBLE_P -DHAVE_FUNC_ATTRIBUTE_CONST -DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC -DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK -DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_FUNC_ATTRIBUTE_OPTIMIZE -DHAVE_FUNC_ATTRIBUTE_VISIBILITY -DHAVE_REALLOCARRAY -DHAVE_FMEMOPEN -D_GNU_SOURCE -DUSE_GCC_ATOMIC_BUILTINS -DUSE_ARM_ASM -DMAJOR_IN_SYSMACROS -DHAS_SCHED_H -DHAS_SCHED_GETAFFINITY -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_SYS_SHM_H -DHAVE_SYS_INOTIFY_H -DHAVE_LINUX_UDMABUF_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_MEMFD_CREATE -DHAVE_RANDOM_R -DHAVE_FLOCK -DHAVE_STRTOK_R -DHAVE_GETRANDOM -DHAVE_POSIX_FALLOCATE -DHAVE_SECURE_GETENV -DHAVE_GNU_QSORT_R -DHAVE_STRUCT_TIMESPEC -DHAVE_PROGRAM_INVOCATION_NAME -DHAVE_ISSIGNALING -DHAVE_POSIX_MEMALIGN -DHAVE_DIRENT_D_TYPE -DHAVE_STRTOD_L -DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DHAVE_ZLIB -DHAVE_ZSTD -DHAVE_COMPRESSION -DHAVE_PTHREAD -DHAVE_PTHREAD_SETAFFINITY -DHAVE_LIBDRM '-DMESA_LLVM_VERSION_STRING="20.1.2"' -DLLVM_IS_SHARED=1 -DLLVM_AVAILABLE=1 -DDRAW_LLVM_AVAILABLE=1 -DAMD_LLVM_AVAILABLE=1 -DGALLIVM_USE_ORCJIT=0 -DHAVE_SPIRV_TOOLS -DUSE_LIBELF -DTHREAD_SANITIZER=0 -DHAVE_X11_DRM -DHAVE_DRI -DHAVE_DRI2 -DHAVE_DRI3_EXPLICIT_SYNC -DHAVE_DRISW_KMS -x c++ -std=c++17 -MD -MQ ../mesa-25.0.2/src/gallium/frontends/rusticl/rusticl_llvm_bindings.hpp -MF src/gallium/frontends/rusticl/rusticl_llvm_bindings.hpp.d /../lib/gcc-cross/arm-linux-gnueabi/12/../../../../include/c++/12/cassert:43:10: fatal error: 'bits/c++config.h' file not found
Unable to generate bindings: clang diagnosed error: /../lib/gcc-cross/arm-linux-gnueabi/12/../../../../include/c++/12/cassert:43:10: fatal error: 'bits/c++config.h' file not found

Quoted 24 lines
Quoted 24 lines
Quoted 19 lines

here

Quoted 16 lines
meta/classes-recipe/meson.bbclass +0 -1
   [host_machine]
   system = '${@meson_operating_system('HOST_OS', d)}'
 
--

2.39.5

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#214764): https://lists.openembedded.org/g/openembedded-core/message/214764
Mute This Topic: https://lists.openembedded.org/mt/112219030/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

--
With best wishes
Dmitry

Signature · 2 lines
With best wishes
Dmitry
#14 lore raw

PATCH 3/7 mesa: drop the bindgen patch

In reply to Dmitry Baryshkov

Drop the bingen-target and bindgen-includedir options in favour of the bindgen_clang_args being passed through the meson target file.

---
 ...vide-cross-compilation-arguments-to-LLVM-.patch | 67 ----------------------
 meta/recipes-graphics/mesa/mesa.inc                |  6 +-
 2 files changed, 1 insertion(+), 72 deletions(-)
meta/recipes-graphics/mesa/files/0001-rusticl-provide-cross-compilation-arguments-to-LLVM-.patch deleted +0 -67
deleted file mode 100644
index d527b3408734dfa0aa756053c1b0f3ea3a59563b..0000000000000000000000000000000000000000
@@ -1,67 +0,0 @@
-From b9cf34f39ca7e7546508ce2ab1f053edef5fc201 Mon Sep 17 00:00:00 2001
-From: Dmitry Baryshkov <[email protected]>
-Date: Wed, 26 Mar 2025 17:47:09 +0200
-Subject: [PATCH] rusticl: provide cross-compilation arguments to LLVM bindgen
- invocation
-
-Correctly generating LLVM bindings requires several croos-compilation
-arguments. Provide them to rust.bindgen(). Karol Herbst on IRC suggested
-that a proper fix should be to fix meson's rust.bindgen() to support
-cross-compilation. Carry this patch until meson is fixed.
-
-Upstream-Status: Inappropriate [OE-Specific]
-Link: https://github.com/mesonbuild/meson/issues/13591
-Signed-off-by: Dmitry Baryshkov <[email protected]>
----
- meson_options.txt                         | 14 ++++++++++++++
- src/gallium/frontends/rusticl/meson.build |  8 ++++++++
- 2 files changed, 22 insertions(+)
-
-diff --git a/meson_options.txt b/meson_options.txt
-index 0147cafcb146..f73e83fded18 100644
---- a/meson_options.txt
-+++ b/meson_options.txt
-@@ -796,3 +796,17 @@ option(
-   value : false,
-   description : 'Install the drivers internal shader compilers (if needed for cross builds).'
- )
-+
-+option(
-+  'bindgen-includedir',
-+  type : 'string',
-+  value : '',
-+  description : 'system-wide include directory for cross-generating LLVM bindings'
-+  )
-+
-+option(
-+  'bindgen-target',
-+  type : 'string',
-+  value : '',
-+  description : 'Clang target for cross-generating LLVM bindings'
-+  )
-diff --git a/src/gallium/frontends/rusticl/meson.build b/src/gallium/frontends/rusticl/meson.build
-index a5d1dcf3abb9..480c220b7f5f 100644
---- a/src/gallium/frontends/rusticl/meson.build
-+++ b/src/gallium/frontends/rusticl/meson.build
-@@ -115,6 +115,11 @@ rusticl_bindgen_c_args = [
-   '-fno-builtin-malloc',
- ]
- 
-+bindgen_target = get_option('bindgen-target')
-+if bindgen_target != ''
-+  rusticl_bindgen_c_args += [ '-target', bindgen_target ]
-+endif
-+
- cl_c_args = [
-   '-DCL_USE_DEPRECATED_OPENCL_1_0_APIS',
-   '-DCL_USE_DEPRECATED_OPENCL_1_1_APIS',
-@@ -187,6 +192,9 @@ rusticl_llvm_bindings_rs = rust.bindgen(
-     rusticl_bindgen_c_args,
-     pre_args,
-   ],
-+  include_directories : [
-+    get_option('bindgen-includedir'),
-+  ],
-   dependencies : [
-     dep_clang,
-     dep_llvm,
meta/recipes-graphics/mesa/mesa.inc +1 -5
index a88cc8660e26bae43c713b2bfdbf396e804f6c09..d2de6a096a6343b6d1bf9e7a638abc0e3c7eb492 100644
@@ -18,7 +18,6 @@ SRC_URI = "https://archive.mesa3d.org/mesa-${PV}.tar.xz \
            file://0001-meson-misdetects-64bit-atomics-on-mips-clang.patch \
            file://0001-meson-disable-SIMD-blake-optimisations-on-x32-host.patch \
            file://0001-freedreno-don-t-encode-build-path-into-binaries.patch\
-           file://0001-rusticl-provide-cross-compilation-arguments-to-LLVM-.patch \
 "
 
 SRC_URI[sha256sum] = "adf904d083b308df95898600ffed435f4b5c600d95fb6ec6d4c45638627fdc97"
@@ -148,13 +147,10 @@ PACKAGECONFIG[gles] = "-Dgles1=enabled -Dgles2=enabled, -Dgles1=disabled -Dgles2
 # "egl" requires "opengl"
 PACKAGECONFIG[egl] = "-Degl=enabled, -Degl=disabled"
 
-BINDGEN_TARGET = "${TARGET_ARCH}-${TARGET_OS}${@['-gnu', ''][d.getVar('LIBCEXTENSION') != '']}"
-BINDGEN_TARGET:class-native = ""
-
 # "opencl" also requires libclc and gallium-llvm to be present in PKGCONFIG!
 # Be sure to enable them both for the target and for the native build.
 PACKAGECONFIG[opencl] = " \
-    -Dgallium-opencl=icd -Dgallium-rusticl=true -Dbindgen-includedir=${STAGING_INCDIR} -Dbindgen-target=${BINDGEN_TARGET},\
+    -Dgallium-opencl=icd -Dgallium-rusticl=true, \
     -Dgallium-opencl=disabled -Dgallium-rusticl=false, \
     bindgen-cli-native \
 "
Signature · 1 line
2.39.5
#15 lore raw

PATCH 4/7 mesa: update patch status

In reply to Dmitry Baryshkov

Update status of mesa build fix as the patch have been submitted to the project.

---
 .../files/0001-meson-disable-SIMD-blake-optimisations-on-x32-host.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-graphics/mesa/files/0001-meson-disable-SIMD-blake-optimisations-on-x32-host.patch +1 -1
index bebe30037abffab676bdd371116c1b9cbd9f9cef..f8af2bafb43333a2746b3bd25c794beec8db066e 100644
@@ -8,7 +8,7 @@ blake3_hash_many_sse41(), most likely because of the different pointer
 size. Disable SIMD blake implementation if x32 is detected.
 
 Signed-off-by: Dmitry Baryshkov <[email protected]>
-Upstream-Status: Pending [will be submitted upstream after internal clearance]
+Upstream-Status: Backport [https://gitlab.freedesktop.org/mesa/mesa/-/commit/b9c6afd3a7c7ac302b47e70b5c745b84cb35f188]
 ---
  src/util/blake3/meson.build | 2 ++
  1 file changed, 2 insertions(+)
Signature · 1 line
2.39.5
#16 lore raw

PATCH 5/7 mesa: don't buid Intel drivers outside of x86 world

In reply to Dmitry Baryshkov

It mostly doesn't make sense to build i915 & Co drivers for non-x86 targets. Add separate 'intel' PACKAGECONFIG entry (enabled by default on x86) and use it to select Intel-related drivers.

---
 meta/recipes-graphics/mesa/mesa.inc | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)
meta/recipes-graphics/mesa/mesa.inc +8 -9
index d2de6a096a6343b6d1bf9e7a638abc0e3c7eb492..1b758a28d38b4d2d02df501b8898fb7f2f5e88a4 100644
@@ -88,9 +88,9 @@ PACKAGECONFIG = " \
 # skip all Rust dependencies if we are not building OpenCL"
 INHIBIT_DEFAULT_RUST_DEPS = "${@bb.utils.contains('PACKAGECONFIG', 'opencl', '', '1', d)}"
 
-PACKAGECONFIG:append:x86 = " libclc gallium-llvm"
-PACKAGECONFIG:append:x86-64 = " libclc gallium-llvm"
-PACKAGECONFIG:append:i686 = " libclc gallium-llvm"
+PACKAGECONFIG:append:x86 = " libclc gallium-llvm intel"
+PACKAGECONFIG:append:x86-64 = " libclc gallium-llvm intel"
+PACKAGECONFIG:append:i686 = " libclc gallium-llvm intel"
 PACKAGECONFIG:append:class-native = " libclc gallium-llvm r600"
 
 # "gbm" requires "opengl"
@@ -107,7 +107,7 @@ VULKAN_DRIVERS_AMD:x86-64 = ",amd"
 # i686 is a 32 bit override for mesa-native
 VULKAN_DRIVERS_AMD:i686 = ",amd"
 
-VULKAN_DRIVERS_INTEL = "${@bb.utils.contains('PACKAGECONFIG', 'libclc', ',intel', '', d)}"
+VULKAN_DRIVERS_INTEL = "${@bb.utils.contains('PACKAGECONFIG', 'intel libclc', ',intel', '', d)}"
 VULKAN_DRIVERS_SWRAST = ",swrast"
 # Crashes on x32
 VULKAN_DRIVERS_SWRAST:x86-x32 = ""
@@ -165,10 +165,6 @@ PACKAGECONFIG[zink] = ""
 GALLIUMDRIVERS = "softpipe"
 # gallium swrast was found to crash Xorg on startup in x32 qemu
 GALLIUMDRIVERS:x86-x32 = ""
-GALLIUMDRIVERS:append:x86 = ",i915,crocus"
-GALLIUMDRIVERS:append:x86-64 = ",i915,crocus"
-# i686 is a 32 bit override for mesa-native
-GALLIUMDRIVERS:append:i686 = ",i915,crocus"
 
 GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'etnaviv', ',etnaviv', '', d)}"
 GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}"
@@ -177,7 +173,7 @@ GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'v3d', ',v3d', ''
 GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'zink', ',zink', '', d)}"
 
 # radeonsi requires LLVM
-GALLIUMDRIVERS_IRIS = "${@bb.utils.contains('PACKAGECONFIG', 'libclc', ',iris', '', d)}"
+GALLIUMDRIVERS_IRIS = "${@bb.utils.contains('PACKAGECONFIG', 'intel libclc', ',iris', '', d)}"
 GALLIUMDRIVERS_RADEONSI = "${@bb.utils.contains('PACKAGECONFIG', 'r600', ',radeonsi', '', d)}"
 GALLIUMDRIVERS_LLVMPIPE = ",llvmpipe"
 # llvmpipe crashes on x32
@@ -211,6 +207,9 @@ PACKAGECONFIG[vdpau] = "-Dgallium-vdpau=enabled,-Dgallium-vdpau=disabled,libvdpa
 
 PACKAGECONFIG[imagination] = "-Dimagination-srv=true,-Dimagination-srv=false"
 
+PACKAGECONFIG[intel] = ""
+GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'intel', ',i915,crocus', '', d)}"
+
 PACKAGECONFIG[lima] = ""
 GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'lima', ',lima', '', d)}"
 
Signature · 1 line
2.39.5
#17 lore raw

PATCH 6/7 mesa: introduce amd PACKAGECONFIG

In reply to Dmitry Baryshkov

Follow the example of other hardware platforms and introduce a separate PACKAGECONFIG knbob for all AMD/ATI cards. Enable it by default on x86 platforms.

---
 meta/recipes-graphics/mesa/mesa.inc | 21 ++++++++-------------
 1 file changed, 8 insertions(+), 13 deletions(-)
meta/recipes-graphics/mesa/mesa.inc +8 -13
index 1b758a28d38b4d2d02df501b8898fb7f2f5e88a4..8ab9af9887ef567925563247b88d96aca3fcfb1c 100644
@@ -88,10 +88,10 @@ PACKAGECONFIG = " \
 # skip all Rust dependencies if we are not building OpenCL"
 INHIBIT_DEFAULT_RUST_DEPS = "${@bb.utils.contains('PACKAGECONFIG', 'opencl', '', '1', d)}"
 
-PACKAGECONFIG:append:x86 = " libclc gallium-llvm intel"
-PACKAGECONFIG:append:x86-64 = " libclc gallium-llvm intel"
-PACKAGECONFIG:append:i686 = " libclc gallium-llvm intel"
-PACKAGECONFIG:append:class-native = " libclc gallium-llvm r600"
+PACKAGECONFIG:append:x86 = " libclc gallium-llvm intel amd"
+PACKAGECONFIG:append:x86-64 = " libclc gallium-llvm intel amd"
+PACKAGECONFIG:append:i686 = " libclc gallium-llvm intel amd"
+PACKAGECONFIG:append:class-native = " libclc gallium-llvm amd"
 
 # "gbm" requires "opengl"
 PACKAGECONFIG[gbm] = "-Dgbm=enabled,-Dgbm=disabled"
@@ -101,12 +101,7 @@ X11_DEPS = "xorgproto virtual/libx11 libxext libxxf86vm libxdamage libxfixes xra
 PACKAGECONFIG[x11] = ",-Dglx=disabled,${X11_DEPS}"
 PACKAGECONFIG[wayland] = ",,wayland-native wayland libdrm wayland-protocols"
 
-VULKAN_DRIVERS_AMD = ""
-VULKAN_DRIVERS_AMD:x86 = ",amd"
-VULKAN_DRIVERS_AMD:x86-64 = ",amd"
-# i686 is a 32 bit override for mesa-native
-VULKAN_DRIVERS_AMD:i686 = ",amd"
-
+VULKAN_DRIVERS_AMD = "${@bb.utils.contains('PACKAGECONFIG', 'amd', ',amd', '', d)}"
 VULKAN_DRIVERS_INTEL = "${@bb.utils.contains('PACKAGECONFIG', 'intel libclc', ',intel', '', d)}"
 VULKAN_DRIVERS_SWRAST = ",swrast"
 # Crashes on x32
@@ -174,7 +169,7 @@ GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'zink', ',zink',
 
 # radeonsi requires LLVM
 GALLIUMDRIVERS_IRIS = "${@bb.utils.contains('PACKAGECONFIG', 'intel libclc', ',iris', '', d)}"
-GALLIUMDRIVERS_RADEONSI = "${@bb.utils.contains('PACKAGECONFIG', 'r600', ',radeonsi', '', d)}"
+GALLIUMDRIVERS_RADEONSI = "${@bb.utils.contains('PACKAGECONFIG', 'amd', ',radeonsi', '', d)}"
 GALLIUMDRIVERS_LLVMPIPE = ",llvmpipe"
 # llvmpipe crashes on x32
 GALLIUMDRIVERS_LLVMPIPE:x86-x32 = ""
@@ -184,11 +179,11 @@ GALLIUMDRIVERS_LLVM:append:x86-64 = ",svga"
 # i686 is a 32 bit override for mesa-native
 GALLIUMDRIVERS_LLVM:append:i686 = ",svga"
 
-PACKAGECONFIG[r600] = ""
+PACKAGECONFIG[amd] = ""
 PACKAGECONFIG[virgl] = ""
 
 GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'gallium-llvm', '${GALLIUMDRIVERS_LLVM}', '', d)}"
-GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'r600', ',r600', '', d)}"
+GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'amd', ',r600', '', d)}"
 GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'virgl', ',virgl', '', d)}"
 
 MESA_CLC = "system"
Signature · 1 line
2.39.5
#18 lore raw

PATCH 7/7 mesa: hanlde svga Gallium driver through PACKAGECONFIG too

In reply to Dmitry Baryshkov

For the sake of uniformity add the svga PACKAGECONFIG and use it to guard inclusion of the svga Gallium driver.

---
 meta/recipes-graphics/mesa/mesa.inc | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)
meta/recipes-graphics/mesa/mesa.inc +7 -9
index 8ab9af9887ef567925563247b88d96aca3fcfb1c..c191e68b5841118d94574c243b74561484f39370 100644
@@ -88,10 +88,10 @@ PACKAGECONFIG = " \
 # skip all Rust dependencies if we are not building OpenCL"
 INHIBIT_DEFAULT_RUST_DEPS = "${@bb.utils.contains('PACKAGECONFIG', 'opencl', '', '1', d)}"
 
-PACKAGECONFIG:append:x86 = " libclc gallium-llvm intel amd"
-PACKAGECONFIG:append:x86-64 = " libclc gallium-llvm intel amd"
-PACKAGECONFIG:append:i686 = " libclc gallium-llvm intel amd"
-PACKAGECONFIG:append:class-native = " libclc gallium-llvm amd"
+PACKAGECONFIG:append:x86 = " libclc gallium-llvm intel amd svga"
+PACKAGECONFIG:append:x86-64 = " libclc gallium-llvm intel amd svga"
+PACKAGECONFIG:append:i686 = " libclc gallium-llvm intel amd svga"
+PACKAGECONFIG:append:class-native = " libclc gallium-llvm amd svga"
 
 # "gbm" requires "opengl"
 PACKAGECONFIG[gbm] = "-Dgbm=enabled,-Dgbm=disabled"
@@ -173,13 +173,11 @@ GALLIUMDRIVERS_RADEONSI = "${@bb.utils.contains('PACKAGECONFIG', 'amd', ',radeon
 GALLIUMDRIVERS_LLVMPIPE = ",llvmpipe"
 # llvmpipe crashes on x32
 GALLIUMDRIVERS_LLVMPIPE:x86-x32 = ""
-GALLIUMDRIVERS_LLVM = ",r300,nouveau${GALLIUMDRIVERS_LLVMPIPE}${GALLIUMDRIVERS_IRIS}${GALLIUMDRIVERS_RADEONSI}"
-GALLIUMDRIVERS_LLVM:append:x86 = ",svga"
-GALLIUMDRIVERS_LLVM:append:x86-64 = ",svga"
-# i686 is a 32 bit override for mesa-native
-GALLIUMDRIVERS_LLVM:append:i686 = ",svga"
+GALLIUMDRIVERS_SVGA = "${@bb.utils.contains('PACKAGECONFIG', 'svga', ',svga', '', d)}"
+GALLIUMDRIVERS_LLVM = ",r300,nouveau${GALLIUMDRIVERS_LLVMPIPE}${GALLIUMDRIVERS_IRIS}${GALLIUMDRIVERS_RADEONSI}${GALLIUMDRIVERS_SVGA}"
 
 PACKAGECONFIG[amd] = ""
+PACKAGECONFIG[svga] = ""
 PACKAGECONFIG[virgl] = ""
 
 GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'gallium-llvm', '${GALLIUMDRIVERS_LLVM}', '', d)}"
Signature · 1 line
2.39.5