diff mbox series

[1/7] mesa: drop kmsro PACKAGECONFIG

Message ID 20250412-mesa-25-fixes-v1-1-791840391271@oss.qualcomm.com
State Under Review
Headers show
Series mesa: small improvements after 25.0 merge | expand

Commit Message

Dmitry Baryshkov April 11, 2025, 10:09 p.m. UTC
Mesa has dropped support for separate kmsro option to gallium-drivers.
Drop it from the recipe and drop the now-unused PACKAGECONFIG too.

Reported-by: Martin Jansa <martin.jansa@gmail.com>
Closes: https://lore.kernel.org/r/CA+chaQeWA01kB3q6=o4xcZwA1TMggHxYTZ0AZETY7he_yU3E1A@mail.gmail.com/
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
 meta/recipes-graphics/mesa/mesa.inc | 2 --
 1 file changed, 2 deletions(-)

Comments

Martin Jansa April 12, 2025, 10:27 a.m. UTC | #1
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


On Sat, Apr 12, 2025 at 12:09 AM Dmitry Baryshkov
<dmitry.baryshkov@oss.qualcomm.com> wrote:
>
> Mesa has dropped support for separate kmsro option to gallium-drivers.
> Drop it from the recipe and drop the now-unused PACKAGECONFIG too.
>
> Reported-by: Martin Jansa <martin.jansa@gmail.com>
> Closes: https://lore.kernel.org/r/CA+chaQeWA01kB3q6=o4xcZwA1TMggHxYTZ0AZETY7he_yU3E1A@mail.gmail.com/
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> ---
>  meta/recipes-graphics/mesa/mesa.inc | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
> index aca34983e97ca684d662987d3a1d0b61ba44029a..a88cc8660e26bae43c713b2bfdbf396e804f6c09 100644
> --- a/meta/recipes-graphics/mesa/mesa.inc
> +++ b/meta/recipes-graphics/mesa/mesa.inc
> @@ -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
>
Dmitry Baryshkov April 12, 2025, 1:52 p.m. UTC | #2
On 12/04/2025 13:27, Martin Jansa wrote:
> 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.

> 
> 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
> 
> 
> On Sat, Apr 12, 2025 at 12:09 AM Dmitry Baryshkov
> <dmitry.baryshkov@oss.qualcomm.com> wrote:
>>
>> Mesa has dropped support for separate kmsro option to gallium-drivers.
>> Drop it from the recipe and drop the now-unused PACKAGECONFIG too.
>>
>> Reported-by: Martin Jansa <martin.jansa@gmail.com>
>> Closes: https://lore.kernel.org/r/CA+chaQeWA01kB3q6=o4xcZwA1TMggHxYTZ0AZETY7he_yU3E1A@mail.gmail.com/
>> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
>> ---
>>   meta/recipes-graphics/mesa/mesa.inc | 2 --
>>   1 file changed, 2 deletions(-)
>>
>> diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
>> index aca34983e97ca684d662987d3a1d0b61ba44029a..a88cc8660e26bae43c713b2bfdbf396e804f6c09 100644
>> --- a/meta/recipes-graphics/mesa/mesa.inc
>> +++ b/meta/recipes-graphics/mesa/mesa.inc
>> @@ -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
>>
Khem Raj April 12, 2025, 5:25 p.m. UTC | #3
I am still seeing an error with all updates applied

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

On Sat, Apr 12, 2025 at 6:52 AM Dmitry Baryshkov via
lists.openembedded.org
<dmitry.baryshkov=oss.qualcomm.com@lists.openembedded.org> wrote:
>
> On 12/04/2025 13:27, Martin Jansa wrote:
> > 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.
>
> >
> > 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
> >
> >
> > On Sat, Apr 12, 2025 at 12:09 AM Dmitry Baryshkov
> > <dmitry.baryshkov@oss.qualcomm.com> wrote:
> >>
> >> Mesa has dropped support for separate kmsro option to gallium-drivers.
> >> Drop it from the recipe and drop the now-unused PACKAGECONFIG too.
> >>
> >> Reported-by: Martin Jansa <martin.jansa@gmail.com>
> >> Closes: https://lore.kernel.org/r/CA+chaQeWA01kB3q6=o4xcZwA1TMggHxYTZ0AZETY7he_yU3E1A@mail.gmail.com/
> >> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> >> ---
> >>   meta/recipes-graphics/mesa/mesa.inc | 2 --
> >>   1 file changed, 2 deletions(-)
> >>
> >> diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
> >> index aca34983e97ca684d662987d3a1d0b61ba44029a..a88cc8660e26bae43c713b2bfdbf396e804f6c09 100644
> >> --- a/meta/recipes-graphics/mesa/mesa.inc
> >> +++ b/meta/recipes-graphics/mesa/mesa.inc
> >> @@ -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
> >>
>
>
> --
> 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: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
Martin Jansa April 12, 2025, 6:46 p.m. UTC | #4
On Sat, Apr 12, 2025 at 7:26 PM Khem Raj <raj.khem@gmail.com> wrote:
>
> 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.

>
> On Sat, Apr 12, 2025 at 6:52 AM Dmitry Baryshkov via
> lists.openembedded.org
> <dmitry.baryshkov=oss.qualcomm.com@lists.openembedded.org> wrote:
> >
> > On 12/04/2025 13:27, Martin Jansa wrote:
> > > 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.
> >
> > >
> > > 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
> > >
> > >
> > > On Sat, Apr 12, 2025 at 12:09 AM Dmitry Baryshkov
> > > <dmitry.baryshkov@oss.qualcomm.com> wrote:
> > >>
> > >> Mesa has dropped support for separate kmsro option to gallium-drivers.
> > >> Drop it from the recipe and drop the now-unused PACKAGECONFIG too.
> > >>
> > >> Reported-by: Martin Jansa <martin.jansa@gmail.com>
> > >> Closes: https://lore.kernel.org/r/CA+chaQeWA01kB3q6=o4xcZwA1TMggHxYTZ0AZETY7he_yU3E1A@mail.gmail.com/
> > >> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> > >> ---
> > >>   meta/recipes-graphics/mesa/mesa.inc | 2 --
> > >>   1 file changed, 2 deletions(-)
> > >>
> > >> diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
> > >> index aca34983e97ca684d662987d3a1d0b61ba44029a..a88cc8660e26bae43c713b2bfdbf396e804f6c09 100644
> > >> --- a/meta/recipes-graphics/mesa/mesa.inc
> > >> +++ b/meta/recipes-graphics/mesa/mesa.inc
> > >> @@ -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
> > >>
> >
> >
> > --
> > 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: openembedded-core+owner@lists.openembedded.org
> > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
diff mbox series

Patch

diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index aca34983e97ca684d662987d3a1d0b61ba44029a..a88cc8660e26bae43c713b2bfdbf396e804f6c09 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -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)}"