public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH 0/7] mesa: small improvements after 25.0 merge
@ 2025-04-11 22:09 Dmitry Baryshkov
  2025-04-11 22:09 ` [PATCH 1/7] mesa: drop kmsro PACKAGECONFIG Dmitry Baryshkov
                   ` (6 more replies)
  0 siblings, 7 replies; 19+ messages in thread
From: Dmitry Baryshkov @ 2025-04-11 22:09 UTC (permalink / raw)
  To: openembedded-core; +Cc: Martin Jansa

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

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
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,
-- 
Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>



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

* [PATCH 1/7] mesa: drop kmsro PACKAGECONFIG
  2025-04-11 22:09 [PATCH 0/7] mesa: small improvements after 25.0 merge Dmitry Baryshkov
@ 2025-04-11 22:09 ` Dmitry Baryshkov
  2025-04-12 10:27   ` Martin Jansa
  2025-04-11 22:09 ` [PATCH 2/7] meson: pass -target and -I to bindgen calls Dmitry Baryshkov
                   ` (5 subsequent siblings)
  6 siblings, 1 reply; 19+ messages in thread
From: Dmitry Baryshkov @ 2025-04-11 22:09 UTC (permalink / raw)
  To: openembedded-core; +Cc: Martin Jansa

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



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

* [PATCH 2/7] meson: pass -target and -I to bindgen calls
  2025-04-11 22:09 [PATCH 0/7] mesa: small improvements after 25.0 merge Dmitry Baryshkov
  2025-04-11 22:09 ` [PATCH 1/7] mesa: drop kmsro PACKAGECONFIG Dmitry Baryshkov
@ 2025-04-11 22:09 ` Dmitry Baryshkov
  2025-04-11 22:53   ` [OE-core] " Khem Raj
  2025-04-11 22:09 ` [PATCH 3/7] mesa: drop the bindgen patch Dmitry Baryshkov
                   ` (4 subsequent siblings)
  6 siblings, 1 reply; 19+ messages in thread
From: Dmitry Baryshkov @ 2025-04-11 22:09 UTC (permalink / raw)
  To: openembedded-core

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.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
 meta/classes-recipe/meson.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes-recipe/meson.bbclass b/meta/classes-recipe/meson.bbclass
index cbfc45b94bbd076735847134a0976b6b30784d50..ef45a034a767e979a45553ba08e46dc90e34f33f 100644
--- a/meta/classes-recipe/meson.bbclass
+++ b/meta/classes-recipe/meson.bbclass
@@ -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)}'

-- 
2.39.5



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

* [PATCH 3/7] mesa: drop the bindgen patch
  2025-04-11 22:09 [PATCH 0/7] mesa: small improvements after 25.0 merge Dmitry Baryshkov
  2025-04-11 22:09 ` [PATCH 1/7] mesa: drop kmsro PACKAGECONFIG Dmitry Baryshkov
  2025-04-11 22:09 ` [PATCH 2/7] meson: pass -target and -I to bindgen calls Dmitry Baryshkov
@ 2025-04-11 22:09 ` Dmitry Baryshkov
  2025-04-11 22:09 ` [PATCH 4/7] mesa: update patch status Dmitry Baryshkov
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 19+ messages in thread
From: Dmitry Baryshkov @ 2025-04-11 22:09 UTC (permalink / raw)
  To: openembedded-core

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

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
 ...vide-cross-compilation-arguments-to-LLVM-.patch | 67 ----------------------
 meta/recipes-graphics/mesa/mesa.inc                |  6 +-
 2 files changed, 1 insertion(+), 72 deletions(-)

diff --git a/meta/recipes-graphics/mesa/files/0001-rusticl-provide-cross-compilation-arguments-to-LLVM-.patch b/meta/recipes-graphics/mesa/files/0001-rusticl-provide-cross-compilation-arguments-to-LLVM-.patch
deleted file mode 100644
index d527b3408734dfa0aa756053c1b0f3ea3a59563b..0000000000000000000000000000000000000000
--- a/meta/recipes-graphics/mesa/files/0001-rusticl-provide-cross-compilation-arguments-to-LLVM-.patch
+++ /dev/null
@@ -1,67 +0,0 @@
-From b9cf34f39ca7e7546508ce2ab1f053edef5fc201 Mon Sep 17 00:00:00 2001
-From: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
-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 <dmitry.baryshkov@oss.qualcomm.com>
----
- 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,
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index a88cc8660e26bae43c713b2bfdbf396e804f6c09..d2de6a096a6343b6d1bf9e7a638abc0e3c7eb492 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -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 \
 "

-- 
2.39.5



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

* [PATCH 4/7] mesa: update patch status
  2025-04-11 22:09 [PATCH 0/7] mesa: small improvements after 25.0 merge Dmitry Baryshkov
                   ` (2 preceding siblings ...)
  2025-04-11 22:09 ` [PATCH 3/7] mesa: drop the bindgen patch Dmitry Baryshkov
@ 2025-04-11 22:09 ` Dmitry Baryshkov
  2025-04-11 22:09 ` [PATCH 5/7] mesa: don't buid Intel drivers outside of x86 world Dmitry Baryshkov
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 19+ messages in thread
From: Dmitry Baryshkov @ 2025-04-11 22:09 UTC (permalink / raw)
  To: openembedded-core

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

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
 .../files/0001-meson-disable-SIMD-blake-optimisations-on-x32-host.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/mesa/files/0001-meson-disable-SIMD-blake-optimisations-on-x32-host.patch b/meta/recipes-graphics/mesa/files/0001-meson-disable-SIMD-blake-optimisations-on-x32-host.patch
index bebe30037abffab676bdd371116c1b9cbd9f9cef..f8af2bafb43333a2746b3bd25c794beec8db066e 100644
--- a/meta/recipes-graphics/mesa/files/0001-meson-disable-SIMD-blake-optimisations-on-x32-host.patch
+++ b/meta/recipes-graphics/mesa/files/0001-meson-disable-SIMD-blake-optimisations-on-x32-host.patch
@@ -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 <dmitry.baryshkov@oss.qualcomm.com>
-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(+)

-- 
2.39.5



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

* [PATCH 5/7] mesa: don't buid Intel drivers outside of x86 world
  2025-04-11 22:09 [PATCH 0/7] mesa: small improvements after 25.0 merge Dmitry Baryshkov
                   ` (3 preceding siblings ...)
  2025-04-11 22:09 ` [PATCH 4/7] mesa: update patch status Dmitry Baryshkov
@ 2025-04-11 22:09 ` Dmitry Baryshkov
  2025-04-11 22:09 ` [PATCH 6/7] mesa: introduce amd PACKAGECONFIG Dmitry Baryshkov
  2025-04-11 22:09 ` [PATCH 7/7] mesa: hanlde svga Gallium driver through PACKAGECONFIG too Dmitry Baryshkov
  6 siblings, 0 replies; 19+ messages in thread
From: Dmitry Baryshkov @ 2025-04-11 22:09 UTC (permalink / raw)
  To: openembedded-core

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.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
 meta/recipes-graphics/mesa/mesa.inc | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

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

-- 
2.39.5



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

* [PATCH 6/7] mesa: introduce amd PACKAGECONFIG
  2025-04-11 22:09 [PATCH 0/7] mesa: small improvements after 25.0 merge Dmitry Baryshkov
                   ` (4 preceding siblings ...)
  2025-04-11 22:09 ` [PATCH 5/7] mesa: don't buid Intel drivers outside of x86 world Dmitry Baryshkov
@ 2025-04-11 22:09 ` Dmitry Baryshkov
  2025-04-11 22:09 ` [PATCH 7/7] mesa: hanlde svga Gallium driver through PACKAGECONFIG too Dmitry Baryshkov
  6 siblings, 0 replies; 19+ messages in thread
From: Dmitry Baryshkov @ 2025-04-11 22:09 UTC (permalink / raw)
  To: openembedded-core

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.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
 meta/recipes-graphics/mesa/mesa.inc | 21 ++++++++-------------
 1 file changed, 8 insertions(+), 13 deletions(-)

diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index 1b758a28d38b4d2d02df501b8898fb7f2f5e88a4..8ab9af9887ef567925563247b88d96aca3fcfb1c 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -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"

-- 
2.39.5



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

* [PATCH 7/7] mesa: hanlde svga Gallium driver through PACKAGECONFIG too
  2025-04-11 22:09 [PATCH 0/7] mesa: small improvements after 25.0 merge Dmitry Baryshkov
                   ` (5 preceding siblings ...)
  2025-04-11 22:09 ` [PATCH 6/7] mesa: introduce amd PACKAGECONFIG Dmitry Baryshkov
@ 2025-04-11 22:09 ` Dmitry Baryshkov
  6 siblings, 0 replies; 19+ messages in thread
From: Dmitry Baryshkov @ 2025-04-11 22:09 UTC (permalink / raw)
  To: openembedded-core

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

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
 meta/recipes-graphics/mesa/mesa.inc | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

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

-- 
2.39.5



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

* Re: [OE-core] [PATCH 2/7] meson: pass -target and -I to bindgen calls
  2025-04-11 22:09 ` [PATCH 2/7] meson: pass -target and -I to bindgen calls Dmitry Baryshkov
@ 2025-04-11 22:53   ` Khem Raj
  2025-04-12 15:50     ` Dmitry Baryshkov
  2025-04-12 16:29     ` Dmitry Baryshkov
  0 siblings, 2 replies; 19+ messages in thread
From: Khem Raj @ 2025-04-11 22:53 UTC (permalink / raw)
  To: dmitry.baryshkov; +Cc: openembedded-core

On Fri, Apr 11, 2025 at 3:09 PM Dmitry Baryshkov via
lists.openembedded.org
<dmitry.baryshkov=oss.qualcomm.com@lists.openembedded.org> wrote:
>
> 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.
>
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> ---
>  meta/classes-recipe/meson.bbclass | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/meta/classes-recipe/meson.bbclass b/meta/classes-recipe/meson.bbclass
> index cbfc45b94bbd076735847134a0976b6b30784d50..ef45a034a767e979a45553ba08e46dc90e34f33f 100644
> --- a/meta/classes-recipe/meson.bbclass
> +++ b/meta/classes-recipe/meson.bbclass
> @@ -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

>
>  [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: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


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

* Re: [PATCH 1/7] mesa: drop kmsro PACKAGECONFIG
  2025-04-11 22:09 ` [PATCH 1/7] mesa: drop kmsro PACKAGECONFIG Dmitry Baryshkov
@ 2025-04-12 10:27   ` Martin Jansa
  2025-04-12 13:52     ` Dmitry Baryshkov
  0 siblings, 1 reply; 19+ messages in thread
From: Martin Jansa @ 2025-04-12 10:27 UTC (permalink / raw)
  To: Dmitry Baryshkov; +Cc: openembedded-core

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
>


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

* Re: [PATCH 1/7] mesa: drop kmsro PACKAGECONFIG
  2025-04-12 10:27   ` Martin Jansa
@ 2025-04-12 13:52     ` Dmitry Baryshkov
  2025-04-12 17:25       ` [OE-core] " Khem Raj
  0 siblings, 1 reply; 19+ messages in thread
From: Dmitry Baryshkov @ 2025-04-12 13:52 UTC (permalink / raw)
  To: Martin Jansa; +Cc: openembedded-core

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


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

* Re: [OE-core] [PATCH 2/7] meson: pass -target and -I to bindgen calls
  2025-04-11 22:53   ` [OE-core] " Khem Raj
@ 2025-04-12 15:50     ` Dmitry Baryshkov
  2025-04-12 16:29     ` Dmitry Baryshkov
  1 sibling, 0 replies; 19+ messages in thread
From: Dmitry Baryshkov @ 2025-04-12 15:50 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-core

On 12/04/2025 01:53, Khem Raj wrote:
> On Fri, Apr 11, 2025 at 3:09 PM Dmitry Baryshkov via
> lists.openembedded.org
> <dmitry.baryshkov=oss.qualcomm.com@lists.openembedded.org> wrote:
>>
>> 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.
>>
>> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
>> ---
>>   meta/classes-recipe/meson.bbclass | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/meta/classes-recipe/meson.bbclass b/meta/classes-recipe/meson.bbclass
>> index cbfc45b94bbd076735847134a0976b6b30784d50..ef45a034a767e979a45553ba08e46dc90e34f33f 100644
>> --- a/meta/classes-recipe/meson.bbclass
>> +++ b/meta/classes-recipe/meson.bbclass
>> @@ -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}

> here
> 
>>
>>   [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: openembedded-core+owner@lists.openembedded.org
>> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>


-- 
With best wishes
Dmitry


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

* Re: [OE-core] [PATCH 2/7] meson: pass -target and -I to bindgen calls
  2025-04-11 22:53   ` [OE-core] " Khem Raj
  2025-04-12 15:50     ` Dmitry Baryshkov
@ 2025-04-12 16:29     ` Dmitry Baryshkov
  2025-04-12 18:02       ` Khem Raj
  1 sibling, 1 reply; 19+ messages in thread
From: Dmitry Baryshkov @ 2025-04-12 16:29 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-core

On 12/04/2025 01:53, Khem Raj wrote:
> On Fri, Apr 11, 2025 at 3:09 PM Dmitry Baryshkov via
> lists.openembedded.org
> <dmitry.baryshkov=oss.qualcomm.com@lists.openembedded.org> wrote:
>>
>> 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.
>>
>> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
>> ---
>>   meta/classes-recipe/meson.bbclass | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/meta/classes-recipe/meson.bbclass b/meta/classes-recipe/meson.bbclass
>> index cbfc45b94bbd076735847134a0976b6b30784d50..ef45a034a767e979a45553ba08e46dc90e34f33f 100644
>> --- a/meta/classes-recipe/meson.bbclass
>> +++ b/meta/classes-recipe/meson.bbclass
>> @@ -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.

> here
> 
>>
>>   [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: openembedded-core+owner@lists.openembedded.org
>> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>


-- 
With best wishes
Dmitry


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

* Re: [OE-core] [PATCH 1/7] mesa: drop kmsro PACKAGECONFIG
  2025-04-12 13:52     ` Dmitry Baryshkov
@ 2025-04-12 17:25       ` Khem Raj
  2025-04-12 18:46         ` Martin Jansa
  0 siblings, 1 reply; 19+ messages in thread
From: Khem Raj @ 2025-04-12 17:25 UTC (permalink / raw)
  To: dmitry.baryshkov; +Cc: Martin Jansa, openembedded-core

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]
> -=-=-=-=-=-=-=-=-=-=-=-
>


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

* Re: [OE-core] [PATCH 2/7] meson: pass -target and -I to bindgen calls
  2025-04-12 16:29     ` Dmitry Baryshkov
@ 2025-04-12 18:02       ` Khem Raj
  2025-04-13 11:15         ` Dmitry Baryshkov
  0 siblings, 1 reply; 19+ messages in thread
From: Khem Raj @ 2025-04-12 18:02 UTC (permalink / raw)
  To: Dmitry Baryshkov; +Cc: openembedded-core

On Sat, Apr 12, 2025 at 9:29 AM Dmitry Baryshkov
<dmitry.baryshkov@oss.qualcomm.com> wrote:
>
> On 12/04/2025 01:53, Khem Raj wrote:
> > On Fri, Apr 11, 2025 at 3:09 PM Dmitry Baryshkov via
> > lists.openembedded.org
> > <dmitry.baryshkov=oss.qualcomm.com@lists.openembedded.org> wrote:
> >>
> >> 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.
> >>
> >> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> >> ---
> >>   meta/classes-recipe/meson.bbclass | 1 +
> >>   1 file changed, 1 insertion(+)
> >>
> >> diff --git a/meta/classes-recipe/meson.bbclass b/meta/classes-recipe/meson.bbclass
> >> index cbfc45b94bbd076735847134a0976b6b30784d50..ef45a034a767e979a45553ba08e46dc90e34f33f 100644
> >> --- a/meta/classes-recipe/meson.bbclass
> >> +++ b/meta/classes-recipe/meson.bbclass
> >> @@ -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.

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.
>
> > here
> >
> >>
> >>   [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: openembedded-core+owner@lists.openembedded.org
> >> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> >> -=-=-=-=-=-=-=-=-=-=-=-
> >>
>
>
> --
> With best wishes
> Dmitry


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

* Re: [OE-core] [PATCH 1/7] mesa: drop kmsro PACKAGECONFIG
  2025-04-12 17:25       ` [OE-core] " Khem Raj
@ 2025-04-12 18:46         ` Martin Jansa
  2025-04-14 20:11           ` Khem Raj
  0 siblings, 1 reply; 19+ messages in thread
From: Martin Jansa @ 2025-04-12 18:46 UTC (permalink / raw)
  To: Khem Raj; +Cc: dmitry.baryshkov, openembedded-core

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]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >


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

* Re: [OE-core] [PATCH 2/7] meson: pass -target and -I to bindgen calls
  2025-04-12 18:02       ` Khem Raj
@ 2025-04-13 11:15         ` Dmitry Baryshkov
  0 siblings, 0 replies; 19+ messages in thread
From: Dmitry Baryshkov @ 2025-04-13 11:15 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-core

On 12/04/2025 21:02, Khem Raj wrote:
> On Sat, Apr 12, 2025 at 9:29 AM Dmitry Baryshkov
> <dmitry.baryshkov@oss.qualcomm.com> wrote:
>>
>> On 12/04/2025 01:53, Khem Raj wrote:
>>> On Fri, Apr 11, 2025 at 3:09 PM Dmitry Baryshkov via
>>> lists.openembedded.org
>>> <dmitry.baryshkov=oss.qualcomm.com@lists.openembedded.org> wrote:
>>>>
>>>> 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.
>>>>
>>>> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
>>>> ---
>>>>    meta/classes-recipe/meson.bbclass | 1 +
>>>>    1 file changed, 1 insertion(+)
>>>>
>>>> diff --git a/meta/classes-recipe/meson.bbclass b/meta/classes-recipe/meson.bbclass
>>>> index cbfc45b94bbd076735847134a0976b6b30784d50..ef45a034a767e979a45553ba08e46dc90e34f33f 100644
>; >>> --- a/meta/classes-recipe/meson.bbclass
>>>> +++ b/meta/classes-recipe/meson.bbclass
>>>> @@ -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.
> 
> 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



>>
>>> here
>>>
>>>>
>>>>    [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: openembedded-core+owner@lists.openembedded.org
>>>> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
>>>> -=-=-=-=-=-=-=-=-=-=-=-
>>>>
>>
>>
>> --
>> With best wishes
>> Dmitry


-- 
With best wishes
Dmitry


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

* Re: [OE-core] [PATCH 1/7] mesa: drop kmsro PACKAGECONFIG
  2025-04-12 18:46         ` Martin Jansa
@ 2025-04-14 20:11           ` Khem Raj
  2025-04-15  8:55             ` Dmitry Baryshkov
  0 siblings, 1 reply; 19+ messages in thread
From: Khem Raj @ 2025-04-14 20:11 UTC (permalink / raw)
  To: Martin Jansa; +Cc: dmitry.baryshkov, openembedded-core

On Sat, Apr 12, 2025 at 11:46 AM Martin Jansa <martin.jansa@gmail.com> wrote:
>
> 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.

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

>
> >
> > 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]
> > > -=-=-=-=-=-=-=-=-=-=-=-
> > >


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

* Re: [OE-core] [PATCH 1/7] mesa: drop kmsro PACKAGECONFIG
  2025-04-14 20:11           ` Khem Raj
@ 2025-04-15  8:55             ` Dmitry Baryshkov
  0 siblings, 0 replies; 19+ messages in thread
From: Dmitry Baryshkov @ 2025-04-15  8:55 UTC (permalink / raw)
  To: Khem Raj, Martin Jansa; +Cc: openembedded-core

On 14/04/2025 23:11, Khem Raj wrote:
> On Sat, Apr 12, 2025 at 11:46 AM Martin Jansa <martin.jansa@gmail.com> wrote:
>>
>> 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.
> 
> 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.

> 
>>
>>>
>>> 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]
>>>> -=-=-=-=-=-=-=-=-=-=-=-
>>>>


-- 
With best wishes
Dmitry


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

end of thread, other threads:[~2025-04-15  8:55 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-11 22:09 [PATCH 0/7] mesa: small improvements after 25.0 merge Dmitry Baryshkov
2025-04-11 22:09 ` [PATCH 1/7] mesa: drop kmsro PACKAGECONFIG Dmitry Baryshkov
2025-04-12 10:27   ` Martin Jansa
2025-04-12 13:52     ` Dmitry Baryshkov
2025-04-12 17:25       ` [OE-core] " Khem Raj
2025-04-12 18:46         ` Martin Jansa
2025-04-14 20:11           ` Khem Raj
2025-04-15  8:55             ` Dmitry Baryshkov
2025-04-11 22:09 ` [PATCH 2/7] meson: pass -target and -I to bindgen calls Dmitry Baryshkov
2025-04-11 22:53   ` [OE-core] " Khem Raj
2025-04-12 15:50     ` Dmitry Baryshkov
2025-04-12 16:29     ` Dmitry Baryshkov
2025-04-12 18:02       ` Khem Raj
2025-04-13 11:15         ` Dmitry Baryshkov
2025-04-11 22:09 ` [PATCH 3/7] mesa: drop the bindgen patch Dmitry Baryshkov
2025-04-11 22:09 ` [PATCH 4/7] mesa: update patch status Dmitry Baryshkov
2025-04-11 22:09 ` [PATCH 5/7] mesa: don't buid Intel drivers outside of x86 world Dmitry Baryshkov
2025-04-11 22:09 ` [PATCH 6/7] mesa: introduce amd PACKAGECONFIG Dmitry Baryshkov
2025-04-11 22:09 ` [PATCH 7/7] mesa: hanlde svga Gallium driver through PACKAGECONFIG too Dmitry Baryshkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox