Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914576 - media-libs/mesa-23.2.0_rc3 - [slibtool] ../.../meson.build: ERROR: Dependency lookup for LLVMSPIRVLib with method pkgconfig failed: Invalid version, need LLVMSPI
Summary: media-libs/mesa-23.2.0_rc3 - [slibtool] ../.../meson.build: ERROR: Dependency...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-23 17:56 UTC by Toralf Förster
Modified: 2023-09-24 04:13 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.00 KB, text/plain)
2023-09-23 17:56 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,28.69 KB, text/plain)
2023-09-23 17:56 UTC, Toralf Förster
Details
environment (environment,159.65 KB, text/plain)
2023-09-23 17:56 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.05 KB, application/x-xz)
2023-09-23 17:56 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,13.86 KB, application/x-xz)
2023-09-23 17:57 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,344.09 KB, application/x-xz)
2023-09-23 17:57 UTC, Toralf Förster
Details
media-libs:mesa-23.2.0_rc3:20230923-171434.log (media-libs:mesa-23.2.0_rc3:20230923-171434.log,13.55 KB, text/plain)
2023-09-23 17:57 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,35.29 KB, application/x-xz)
2023-09-23 17:57 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-09-23 17:56:55 UTC
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"
Comment 1 Toralf Förster gentoo-dev 2023-09-23 17:56:56 UTC
Created attachment 871201 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-09-23 17:56:57 UTC
Created attachment 871202 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-09-23 17:56:58 UTC
Created attachment 871203 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-09-23 17:56:59 UTC
Created attachment 871204 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-09-23 17:57:00 UTC
Created attachment 871205 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-09-23 17:57:01 UTC
Created attachment 871206 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-09-23 17:57:02 UTC
Created attachment 871207 [details]
media-libs:mesa-23.2.0_rc3:20230923-171434.log
Comment 8 Toralf Förster gentoo-dev 2023-09-23 17:57:03 UTC
Created attachment 871208 [details]
temp.tar.xz
Comment 9 Eli Schwartz gentoo-dev 2023-09-24 03:37:26 UTC
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
Comment 10 Larry the Git Cow gentoo-dev 2023-09-24 04:13:45 UTC
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(+)