mesa: build failure in CI, dependency not found
Hello,
The following error was raised in Swat's CI:
| Run-time dependency libclc found: NO (tried pkgconfig) | | ../mesa-24.1.0/meson.build:852:12: ERROR: Dependency "libclc" not found, tried pkgconfig | | A full log can be found at /home/pokybuild/yocto-worker/qemux86-64-ptest/build/build/tmp/work/core2-64-poky-linux/mesa/24.1.0/build/meson-logs/meson-log.txt | ERROR: meson failed | WARNING: /home/pokybuild/yocto-worker/qemux86-64-ptest/build/build/tmp/work/core2-64-poky-linux/mesa/24.1.0/temp/run.do_configure.47874:171 exit 1 from 'exit 1' | WARNING: Backtrace (BB generated script): | #1: bbfatal_log, /home/pokybuild/yocto-worker/qemux86-64-ptest/build/build/tmp/work/core2-64-poky-linux/mesa/24.1.0/temp/run.do_configure.47874, line 171 | #2: meson_do_configure, /home/pokybuild/yocto-worker/qemux86-64-ptest/build/build/tmp/work/core2-64-poky-linux/mesa/24.1.0/temp/run.do_configure.47874, line 160 | #3: do_configure, /home/pokybuild/yocto-worker/qemux86-64-ptest/build/build/tmp/work/core2-64-poky-linux/mesa/24.1.0/temp/run.do_configure.47874, line 149 | #4: main, /home/pokybuild/yocto-worker/qemux86-64-ptest/build/build/tmp/work/core2-64-poky-linux/mesa/24.1.0/temp/run.do_configure.47874, line 184
NOTE: recipe mesa-2_24.1.0-r0: task do_configure: Failed
https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/6680/steps/12/logs/stdio
Mesa was upgraded a few days ago. Could it be related to this error?
Signature · 2 lines
Best regards, João Marcos Costa
Hi Joao,
Quoted 16 lines · Joao Marcos Costa via lists.openembedded.org
Hello,
The following error was raised in Swat's CI:
| Run-time dependency libclc found: NO (tried pkgconfig) | | ../mesa-24.1.0/meson.build:852:12: ERROR: Dependency "libclc" not found, tried pkgconfig | | A full log can be found at /home/pokybuild/yocto-worker/qemux86-64-ptest/build/build/tmp/work/core2-64-poky-linux/mesa/24.1.0/build/meson-logs/meson-log.txt | ERROR: meson failed | WARNING: /home/pokybuild/yocto-worker/qemux86-64-ptest/build/build/tmp/work/core2-64-poky-linux/mesa/24.1.0/temp/run.do_configure.47874:171 exit 1 from 'exit 1' | WARNING: Backtrace (BB generated script): | #1: bbfatal_log, /home/pokybuild/yocto-worker/qemux86-64-ptest/build/build/tmp/work/core2-64-poky-linux/mesa/24.1.0/temp/run.do_configure.47874, line 171 | #2: meson_do_configure, /home/pokybuild/yocto-worker/qemux86-64-ptest/build/build/tmp/work/core2-64-poky-linux/mesa/24.1.0/temp/run.do_configure.47874, line 160 | #3: do_configure, /home/pokybuild/yocto-worker/qemux86-64-ptest/build/build/tmp/work/core2-64-poky-linux/mesa/24.1.0/temp/run.do_configure.47874, line 149 | #4: main, /home/pokybuild/yocto-worker/qemux86-64-ptest/build/build/tmp/work/core2-64-poky-linux/mesa/24.1.0/temp/run.do_configure.47874, line 184
Quoted 6 lines
NOTE: recipe mesa-2_24.1.0-r0: task
do_configure: Failedhttps://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/6680/steps/12/logs/stdio
Mesa was upgraded a few days ago. Could it be related to this error?
Likely yes, can you provide some info on how I can reproduce this locally so I don't have to hunt this?
Maybe you also have access to the full log somewhere?
Cheers,
Quentin
I don't think you need the full log. The key part is:
Run-time dependency libclc found: NO (tried pkgconfig)
Quoted 4 lines
|
| ../mesa-24.1.0/meson.build:852:12: ERROR: Dependency "libclc" not found, tried pkgconfig
|
So you could find meson.build in ${S}, find line 852 in it, and see why that line is being processed and what enables the block of code it's in. We also have a libclc patch that looks highly suspicious to me (and should be dropped tbh).
Alex
Quoted 50 lines · Quentin Schulz via lists.openembedded.org
Hi Joao,
Quoted 25 lines · Joao Marcos Costa via lists.openembedded.org
Hello,
The following error was raised in Swat's CI:
| Run-time dependency libclc found: NO (tried pkgconfig) | | ../mesa-24.1.0/meson.build:852:12: ERROR: Dependency "libclc" notfound, tried pkgconfig
|
| A full log can be found at/home/pokybuild/yocto-worker/qemux86-64-ptest/build/build/tmp/work/core2-64-poky-linux/mesa/24.1.0/build/meson-logs/meson-log.txt| ERROR: meson failed
| WARNING:/home/pokybuild/yocto-worker/qemux86-64-ptest/build/build/tmp/work/core2-64-poky-linux/mesa/24.1.0/temp/run.do_configure.47874:171exit 1 from 'exit 1' | WARNING: Backtrace (BB generated script):
| #1:bbfatal_log,/home/pokybuild/yocto-worker/qemux86-64-ptest/build/build/tmp/work/core2-64-poky-linux/mesa/24.1.0/temp/run.do_configure.47874, line 171
| #2:meson_do_configure,/home/pokybuild/yocto-worker/qemux86-64-ptest/build/build/tmp/work/core2-64-poky-linux/mesa/24.1.0/temp/run.do_configure.47874, line 160
| #3:do_configure,/home/pokybuild/yocto-worker/qemux86-64-ptest/build/build/tmp/work/core2-64-poky-linux/mesa/24.1.0/temp/run.do_configure.47874, line 149
| #4: main,/home/pokybuild/yocto-worker/qemux86-64-ptest/build/build/tmp/work/core2-64-poky-linux/mesa/24.1.0/temp/run.do_configure.47874, line 184
NOTE: recipe mesa-2_24.1.0-r0: taskdo_configure: FailedQuoted 4 lines
https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/6680/steps/12/logs/stdio
Mesa was upgraded a few days ago. Could it be related to this error?
Likely yes, can you provide some info on how I can reproduce this locally so I don't have to hunt this?
Maybe you also have access to the full log somewhere?
Cheers,
Quentin-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#200321): https://lists.openembedded.org/g/openembedded-core/message/200321
Mute This Topic: https://lists.openembedded.org/mt/106464279/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
A message that is not in the archive (sent off-list or not yet received): [email protected]
I think we could ask Markus to look at this update to 24.1, as he's done work with libclc dependency previously (and authored the patch for it, which should preferably be dropped).
Alex
Quoted 71 lines · Alexander Kanavin via lists.openembedded.org
I don't think you need the full log. The key part is:
Run-time dependency libclc found: NO (tried pkgconfig)
Quoted 4 lines
|
| ../mesa-24.1.0/meson.build:852:12: ERROR: Dependency "libclc" not found, tried pkgconfig
|So you could find meson.build in ${S}, find line 852 in it, and see why that line is being processed and what enables the block of code it's in. We also have a libclc patch that looks highly suspicious to me (and should be dropped tbh).
Alex
Quoted 34 lines · Quentin Schulz via lists.openembedded.org
Hi Joao,
Quoted 25 lines · Joao Marcos Costa via lists.openembedded.org
Hello,
The following error was raised in Swat's CI:
| Run-time dependency libclc found: NO (tried pkgconfig) | | ../mesa-24.1.0/meson.build:852:12: ERROR: Dependency "libclc" notfound, tried pkgconfig
|
| A full log can be found at/home/pokybuild/yocto-worker/qemux86-64-ptest/build/build/tmp/work/core2-64-poky-linux/mesa/24.1.0/build/meson-logs/meson-log.txt| ERROR: meson failed
| WARNING:/home/pokybuild/yocto-worker/qemux86-64-ptest/build/build/tmp/work/core2-64-poky-linux/mesa/24.1.0/temp/run.do_configure.47874:171exit 1 from 'exit 1' | WARNING: Backtrace (BB generated script):
| #1:bbfatal_log,/home/pokybuild/yocto-worker/qemux86-64-ptest/build/build/tmp/work/core2-64-poky-linux/mesa/24.1.0/temp/run.do_configure.47874, line 171
| #2:meson_do_configure,/home/pokybuild/yocto-worker/qemux86-64-ptest/build/build/tmp/work/core2-64-poky-linux/mesa/24.1.0/temp/run.do_configure.47874, line 160
| #3:do_configure,/home/pokybuild/yocto-worker/qemux86-64-ptest/build/build/tmp/work/core2-64-poky-linux/mesa/24.1.0/temp/run.do_configure.47874, line 149
| #4: main,/home/pokybuild/yocto-worker/qemux86-64-ptest/build/build/tmp/work/core2-64-poky-linux/mesa/24.1.0/temp/run.do_configure.47874, line 184
NOTE: recipe mesa-2_24.1.0-r0: taskdo_configure: FailedQuoted 4 lines
https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/6680/steps/12/logs/stdio
Mesa was upgraded a few days ago. Could it be related to this error?
Quoted 10 lines
Likely yes, can you provide some info on how I can reproduce this locally so I don't have to hunt this?
Maybe you also have access to the full log somewhere?
Cheers,
Quentin-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#200323): https://lists.openembedded.org/g/openembedded-core/message/200323
Mute This Topic: https://lists.openembedded.org/mt/106464279/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Hi Alex, Markus,
Quoted 4 lines · Alexander Kanavin
I think we could ask Markus to look at this update to 24.1, as he's done work with libclc dependency previously (and authored the patch for it, which should preferably be dropped).
Yeah, I'm hitting a lot of issues right now :/
I can provide the following info already though (patches not tested):
"""
commit 9d03be215762c45ad547446a29865c20c9ed4c2c
Author: Quentin Schulz <[email protected]> Date: Wed Jun 5 13:31:29 2024 +0200
mesa: enable RayTracing by default on intel if clc is enabled
This was the default before 012489e55ce3c88615c5fb2667e10e9cfd7b7edb
meta/recipes-graphics/mesa/mesa.inc +0 -0
@@ -73,7 +73,7 @@ EXTRA_OEMESON = " \ " EXTRA_OEMESON:append:class-target = "
${@bb.utils.contains('PACKAGECONFIG', 'opencl', '-Dintel-clc=system', '', d)}"
-EXTRA_OEMESON:append:class-native = " ${@bb.utils.contains('PACKAGECONFIG', 'opencl', '-Dintel-clc=enabled', '', d)}" +EXTRA_OEMESON:append:class-native = " ${@bb.utils.contains('PACKAGECONFIG', 'opencl', '-Dintel-clc=enabled -Dintel-rt=enabled', '', d)}"
def strip_comma(s):
return s.strip(',')
"""
"""
commit d0fbbca90047248d97ddcc90e3699dfb998f3fad
Author: Quentin Schulz <[email protected]>
Date: Wed Jun 5 13:54:16 2024 +0200 mesa: use new option for installing intel_clc binary
Comes from 1e31fd5f4268b134b26cd9d82d76d406332a3d8d
meta/recipes-graphics/mesa/mesa.inc +0 -0
@@ -73,7 +73,7 @@ EXTRA_OEMESON = " \ " EXTRA_OEMESON:append:class-target = "
${@bb.utils.contains('PACKAGECONFIG', 'opencl', '-Dintel-clc=system', '', d)}"
-EXTRA_OEMESON:append:class-native = " ${@bb.utils.contains('PACKAGECONFIG', 'opencl', '-Dintel-clc=enabled -Dintel-rt=enabled', '', d)}" +EXTRA_OEMESON:append:class-native = " ${@bb.utils.contains('PACKAGECONFIG', 'opencl', '-Dintel-clc=enabled -Dintel-rt=enabled -Dinstall-intel-clc=true', '', d)}"
def strip_comma(s):
return s.strip(',')
@@ -254,13 +254,6 @@ do_install:append () {
rm -f ${D}${libdir}/pkgconfig/wayland-egl.pc}
-do_install:append:class-native () {
- if ${@bb.utils.contains('PACKAGECONFIG', 'opencl', 'true', 'false', d)}; then
- install -d ${D}${bindir}
- install -m0755 ${B}/src/intel/compiler/intel_clc ${D}${bindir}
- fi
-}
-
# For the packages that make up the OpenGL interfaces, inject
variables so that
# they don't get Debian-renamed (which would remove the -mesa suffix), and # RPROVIDEs/RCONFLICTs on the generic libgl name. """
Additionally, Intel Vulkan driver forces libclc dependency if intel-clc option is not "system" (so either "enabled" or "disabled" or "auto"), since commit b52e25d3a8eee702ff5d21e4cdb9a4dc0736282a.
Moreover, Intel Iris Gallium driver forces libclc dependency if intel-clc option is not "system", since commit 5438b1910464e4b17fe0248a96a6ed98f0280a20.
Now, if I add libclc to the dependencies, I need meta-clang for this but then llvm + libclc as DEPENDS is not working, I get the following error:
"""
Exception: FileExistsError: [Errno 17] File exists: '/hdd5tb/qschulz/work/upstream/yocto/build/tmp/sysroots-components/x86_64/clang-native/usr/lib/libLLVMPasses.a' -> '/hdd5tb/qschulz/work/upstream/yocto/build/tmp/work/x86_64-linux/mesa-native/24.1.0/recipe-sysroot-native/usr/lib/libLLVMPasses.a' """
We probably also should migrate to rusticl instead of keeping Markus's patch but I have no idea how to do that properly.
Finally, I have no clue how to test any of this so even if it passes the build, I wouldn't be able to trust it works :)
Cheers,
Quentin
Quoted 7 lines · Quentin Schulz
Additionally, Intel Vulkan driver forces libclc dependency if intel-clc option is not "system" (so either "enabled" or "disabled" or "auto"), since commit
b52e25d3a8eee702ff5d21e4cdb9a4dc0736282a.Moreover, Intel Iris Gallium driver forces libclc dependency if intel-clc option is not "system", since commit
5438b1910464e4b17fe0248a96a6ed98f0280a20.
core cannot rely on meta-clang (although merging that into core is a medium term aspiration), so I think the only feasible solution is to drop both iris and intel_vk from default driver set. And have meta-intel folks sort out the needed pieces in their layer, with meta-clang dependency or whatever else that requires. It's their silicon, so I think it's fair to say it's on them to figure out how to support it with the yocto stack.
CC Anuj.
Alex