Run-time dependency libudev found: YES 254 Run-time dependency LLVM (modules: LLVM) found: YES 16.0.6 Run-time dependency spirv-tools found: YES 2023.4.1 Dependency LLVMSPIRVLib found: NO found 17.0.0.0 but need: '< 16.1' ; matched: '>= 13.0.0.0', '>= 16.0' Run-time dependency llvmspirvlib found: NO (tried cmake) ../mesa-23.2.0-rc3/meson.build:1770:21: ERROR: Dependency lookup for LLVMSPIRVLib with method 'pkgconfig' failed: Invalid version, need 'LLVMSPIRVLib' ['< 16.1'] found '17.0.0.0'. A full log can be found at /var/tmp/portage/media-libs/mesa-23.2.0_rc3/work/mesa-23.2.0-rc3-abi_x86_64.amd64/meson-logs/meson-log.txt ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 23.0_desktop_gnome_systemd-20230922-235024 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-13 * clang/llvm (if any): clang version 17.0.1 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/17/bin Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg /usr/lib/llvm/17 17.0.1 Python 3.11.5 Available Rust versions: [1] rust-1.72.0 * php cli (if any): HEAD of ::gentoo commit d410bd10f93f56e6128f280828925d61ebbe4b91 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Fri Sep 22 23:16:41 2023 +0000 2023-09-22 23:16:40 UTC emerge -qpvO media-libs/mesa [ebuild N ] media-libs/mesa-23.2.0_rc3 USE="X gles2 llvm proprietary-codecs vulkan wayland zstd -d3d9 -debug -gles1 -lm-sensors -opencl -osmesa (-selinux) -test -unwind -vaapi (-valgrind) -vdpau -vulkan-overlay -xa -zink" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="sse2" VIDEO_CARDS="intel radeon radeonsi -d3d12 (-freedreno) -lavapipe (-lima) -nouveau (-panfrost) -r300 -r600 (-v3d) (-vc4) -virgl (-vivante) -vmware"
Created attachment 871201 [details] emerge-info.txt
Created attachment 871202 [details] emerge-history.txt
Created attachment 871203 [details] environment
Created attachment 871204 [details] etc.clang.tar.xz
Created attachment 871205 [details] etc.portage.tar.xz
Created attachment 871206 [details] logs.tar.xz
Created attachment 871207 [details] media-libs:mesa-23.2.0_rc3:20230923-171434.log
Created attachment 871208 [details] temp.tar.xz
Meson fails to find LLVM 17, instead it finds 16 but also an LLVMSPIRVLib from 17. Mesa is strict here and wants an LLVMSPIRVLib that matches the major version of LLVM itself, hence the computed upper version bounds which fails here. The real question is why doesn't meson detect LLVM 17? Answer: you will need this upstream meson change which was merged to git master today: https://github.com/mesonbuild/meson/pull/12286
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41f439c2e9964de598ac976e41dc68924b338bc5 commit 41f439c2e9964de598ac976e41dc68924b338bc5 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-09-24 04:12:53 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-09-24 04:13:35 +0000 dev-util/meson: backport LLVM 17 fixes 1.2.2 is hopefully coming Real Soon Now but Eli already pointed out precisely which PR it is and meson "rebuilds" are extremely cheap so there's no real reason to not throw it in now. Closes: https://bugs.gentoo.org/914576 Signed-off-by: Sam James <sam@gentoo.org> dev-util/meson/files/meson-1.2.1-llvm-17.patch | 41 +++++++++ dev-util/meson/meson-1.2.1-r2.ebuild | 122 +++++++++++++++++++++++++ 2 files changed, 163 insertions(+)