Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914632 - media-libs/mesa-23.2.0_rc4 (VIDEO_CARDS=intel) - FAILED: .../gfx125_bvh_build_DFS_DFS.h
Summary: media-libs/mesa-23.2.0_rc4 (VIDEO_CARDS=intel) - FAILED: .../gfx125_bvh_build...
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-25 08:20 UTC by Toralf Förster
Modified: 2023-09-27 02:20 UTC (History)
9 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.65 KB, text/plain)
2023-09-25 08:20 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,63.95 KB, application/x-xz)
2023-09-25 08:20 UTC, Toralf Förster
Details
environment (environment,161.03 KB, text/plain)
2023-09-25 08:20 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.05 KB, application/x-xz)
2023-09-25 08:20 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,27.82 KB, application/x-xz)
2023-09-25 08:20 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,348.05 KB, application/x-xz)
2023-09-25 08:20 UTC, Toralf Förster
Details
media-libs:mesa-23.2.0_rc4:20230925-003229.log.xz (media-libs:mesa-23.2.0_rc4:20230925-003229.log.xz,30.73 KB, application/x-xz)
2023-09-25 08:20 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,63.52 KB, application/x-xz)
2023-09-25 08:20 UTC, Toralf Förster
Details
build log (media-libs:mesa-23.2.0_rc4:20230926-012629.log,14.25 KB, text/plain)
2023-09-26 01:30 UTC, Gary E. Miller
Details
meson.log (meson-log.txt,178.91 KB, text/plain)
2023-09-26 01:43 UTC, Gary E. Miller
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-25 08:20:20 UTC
too long lines were shrinked:

kernel shader triggered register spilling.  Try reducing the number of live scalar values to improve performance.
CS SIMD16 shader: 10659 inst, 3 loops, 1447396 cycles, 349:596 spills:fills, 53 sends, scheduled with mode lifo, Promoted 0 constants, compacted 170544 to 155904 bytes.
[803/2369] env MESA_SHADER_CACHE_DISABLE=true /var/tmp/portage/media-libs/mesa-23.2.0_rc4/work/mesa-23.2.0-rc4-abi_x86_64.amd64/src/intel/compiler/intel_clc -p dg2 --prefix gfx125_bvh_build_BFS_scheduler -e scheduler --in ../mesa-23.2.0-rc4/src/intel/vulkan/grl/gpu/bvh_build_BFS.cl --in /var/tmp/por
kernel shader triggered register spilling.  Try reducing the number of live scalar values to improve performance.
CS SIMD16 shader: 3222 inst, 7 loops, 154248 cycles, 73:110 spills:fills, 72 sends, scheduled with mode lifo, Promoted 0 constants, compacted 51552 to 45728 bytes.
[804/2369] env MESA_SHADER_CACHE_DISABLE=true /var/tmp/portage/media-libs/mesa-23.2.0_rc4/work/mesa-23.2.0-rc4-abi_x86_64.amd64/src/intel/compiler/intel_clc -p dg2 --prefix gfx125_bvh_build_DFS_DFS -e DFS --in ../mesa-23.2.0-rc4/src/intel/vulkan/grl/gpu/bvh_build_DFS.cl -o src/intel/vulkan/grl/gfx12
FAILED: src/intel/vulkan/grl/gfx125_bvh_build_DFS_DFS.h 
env MESA_SHADER_CACHE_DISABLE=true /var/tmp/portage/media-libs/mesa-23.2.0_rc4/work/mesa-23.2.0-rc4-abi_x86_64.amd64/src/intel/compiler/intel_clc -p dg2 --prefix gfx125_bvh_build_DFS_DFS -e DFS --in ../mesa-23.2.0-rc4/src/intel/vulkan/grl/gpu/bvh_build_DFS.cl -o src/intel/vulkan/grl/gfx125_bvh_build
[805/2369] env MESA_SHADER_CACHE_DISABLE=true /var/tmp/portage/media-libs/mesa-23.2.0_rc4/work/mesa-23.2.0-rc4-abi_x86_64.amd64/src/intel/compiler/intel_clc -p dg2 --prefix gfx125_bvh_build_DFS_DFS_single_wg -e DFS_single_wg --in ../mesa-23.2.0-rc4/src/intel/vulkan/grl/gpu/bvh_build_DFS.cl -o src/in

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-20230919-060524

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] 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 Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.72.0 *
The following VMs are available for generation-2:
1)	OpenJDK 11.0.20.1_p1 [openjdk-11]
2)	OpenJDK 17.0.8.1_p1 [openjdk-17]
3)	OpenJDK 8.382_p05 [openjdk-8]
4)	Eclipse Temurin JDK 11.0.20.1_p1 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
6)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-8 
  [2]   openjdk-11 
  [3]   openjdk-17 
  [4]   openjdk-bin-8 
  [5]   openjdk-bin-11 
  [6]   openjdk-bin-17  system-vm

php cli (if any):
  [1]   php8.1
  [2]   php8.2 *
go version go1.21.1 linux/amd64

  HEAD of ::gentoo
commit 8a7fa2e1a987895b281cafe8dc757c60f875d2d6
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Sep 25 00:16:39 2023 +0000

    2023-09-25 00:16:39 UTC

emerge -qpvO media-libs/mesa
[ebuild     U ] media-libs/mesa-23.2.0_rc4 [23.2.0_rc3] USE="X gles2 llvm lm-sensors proprietary-codecs vaapi vulkan wayland zstd -d3d9 -debug -gles1 -opencl -osmesa (-selinux) -test -unwind (-valgrind) -vdpau -vulkan-overlay -xa -zink" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="sse2" VIDEO_CARDS="intel nouveau radeon radeonsi -d3d12 (-freedreno) -lavapipe (-lima) (-panfrost) -r300 -r600 (-v3d) (-vc4) -virgl (-vivante) -vmware"
Comment 1 Toralf Förster gentoo-dev 2023-09-25 08:20:21 UTC
Created attachment 871270 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-09-25 08:20:22 UTC
Created attachment 871271 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2023-09-25 08:20:23 UTC
Created attachment 871272 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-09-25 08:20:24 UTC
Created attachment 871273 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-09-25 08:20:25 UTC
Created attachment 871274 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-09-25 08:20:27 UTC
Created attachment 871275 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-09-25 08:20:28 UTC
Created attachment 871276 [details]
media-libs:mesa-23.2.0_rc4:20230925-003229.log.xz
Comment 8 Toralf Förster gentoo-dev 2023-09-25 08:20:29 UTC
Created attachment 871277 [details]
temp.tar.xz
Comment 9 Gary E. Miller 2023-09-25 19:35:53 UTC
#MeToo
Comment 10 Matt Turner gentoo-dev 2023-09-25 19:37:48 UTC
I'm seeing some failures as well. I think intel_clc is segfaulting...
Comment 11 Gary E. Miller 2023-09-25 19:50:16 UTC
(In reply to Matt Turner from comment #10)
> I'm seeing some failures as well. I think intel_clc is segfaulting...

Yup, from my dmesg:

````
[513955.499517] intel_clc[10289]: segfault at c ip 000056077285e460 sp 00007ffc083ef2e8 error 4 in intel_clc[560772630000+2ce000] likely on CPU 8 (core 2, socket 0)
[513955.499532] Code: 2e 0f 1f 84 00 00 00 00 00 90 80 7f 04 12 75 0a 8b 47 0c c3 66 0f 1f 44 00 00 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 <0f> b6 47 09 3c 01 76 30 0f b6 47 04 8d 50 fe 80 fa 02 77 2e 0f b6
[513956.212983] intel_clc[10290]: segfault at 60000000c ip 0000560757b54460 sp 00007ffe4f326048 error 4 in intel_clc[560757926000+2ce000] likely on CPU 3 (core 3, socket 0)
[513956.212996] Code: 2e 0f 1f 84 00 00 00 00 00 90 80 7f 04 12 75 0a 8b 47 0c c3 66 0f 1f 44 00 00 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 <0f> b6 47 09 3c 01 76 30 0f b6 47 04 8d 50 fe 80 fa 02 77 2e 0f b6
[515448.875589] intel_clc[14465]: segfault at c ip 00005608a4cce460 sp 00007ffd3e136928 error 4 in intel_clc[5608a4aa0000+2ce000] likely on CPU 2 (core 2, socket 0)
[515448.875602] Code: 2e 0f 1f 84 00 00 00 00 00 90 80 7f 04 12 75 0a 8b 47 0c c3 66 0f 1f 44 00 00 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 <0f> b6 47 09 3c 01 76 30 0f b6 47 04 8d 50 fe 80 fa 02 77 2e 0f b6
[515449.599696] intel_clc[14466]: segfault at 60000000c ip 0000555e22a59460 sp 00007ffc0b56da48 error 4 in intel_clc[555e2282b000+2ce000] likely on CPU 0 (core 0, socket 0)
[515449.599710] Code: 2e 0f 1f 84 00 00 00 00 00 90 80 7f 04 12 75 0a 8b 47 0c c3 66 0f 1f 44 00 00 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 <0f> b6 47 09 3c 01 76 30 0f b6 47 04 8d 50 fe 80 fa 02 77 2e 0f b6
````
Comment 12 Matt Turner gentoo-dev 2023-09-25 20:08:12 UTC
Thanks!

Are you also using llvm-17 like Toralf?

I haven't been able to reproduce the failure on my stable system with llvm-16, but someone on IRC with llvm-17 is also seeing the failure.
Comment 13 Gary E. Miller 2023-09-25 20:23:24 UTC
(In reply to Matt Turner from comment #12)
> Thanks!
> 
> Are you also using llvm-17 like Toralf?
> 
> I haven't been able to reproduce the failure on my stable system with
> llvm-16, but someone on IRC with llvm-17 is also seeing the failure.

I have installed:

    sys-devel/llvm:15
    sys-devel/llvm:16
    sys-devel/llvm:17

The build log leads me to think I am using 17:

meson setup --libdir lib64 --localstatedir /var/lib --prefix /usr --sysconfdir /etc --wrap-mode nodownload --build.pkg-config-path /usr/lib/llvm/17/lib64/pkgconfig:/usr/share/pkgconfig --pkg-config-path /usr/lib/llvm/17/lib64/pkgconfig:/usr/share/pkgconfig --native-file /var/tmp/portage/media-libs/mesa-23.2.0_rc4/temp/meson.x86_64-pc-linux-gnu.amd64.ini -Db_pch=false -Dwerror=false --buildtype plain -Dplatforms=x11 -Dgallium-nine=false -Dgallium-va=enabled -Dva-libs-path=/usr/lib64/va/drivers -Dgallium-vdpau=enabled -Dgallium-xa=enabled -Dvulkan-layers=device-select -Dintel-clc=enabled -Dbuild-tests=false -Dglx=dri -Dshared-glapi=enabled -Ddri3=enabled -Degl=enabled -Dexpat=enabled -Dgbm=enabled -Dglvnd=true -Dgles1=disabled -Dgles2=enabled -Dllvm=enabled -Dlmsensors=disabled -Dosmesa=false -Dselinux=false -Dlibunwind=disabled -Dzstd=enabled -Dsse2=true -Dvalgrind=disabled -Dvideo-codecs=h264dec,h264enc,h265dec,h265enc,vc1dec -Dgallium-drivers=crocus,i915,iris,nouveau,swrast,zink -Dvulkan-drivers=intel,intel_hasvk --buildtype plain -Db_ndebug=true /var/tmp/portage/media-libs/mesa-23.2.0_rc4/work/mesa-23.2.0-rc4 /var/tmp/portage/media-libs/mesa-23.2.0_rc4/work/mesa-23.2.0-rc4-abi_x86_64.amd64
Comment 14 Matt Turner gentoo-dev 2023-09-25 21:00:54 UTC
Thanks!

I'm really confused how this can happen, because the ebuild has

> LLVM_MAX_SLOT="16"
> LLVM_MIN_SLOT="15"

so llvm:17 shouldn't even be an option.
Comment 15 Larry the Git Cow gentoo-dev 2023-09-25 21:24:14 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d50956db21f37b3216f09df5149686eb43a76d8

commit 5d50956db21f37b3216f09df5149686eb43a76d8
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2023-09-25 21:21:22 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2023-09-25 21:24:10 +0000

    media-libs/mesa: Pass LLVM_MAX_SLOT to get_llvm_prefix
    
    Closes: https://bugs.gentoo.org/914632
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 media-libs/mesa/mesa-23.2.0_rc4.ebuild | 2 +-
 media-libs/mesa/mesa-9999.ebuild       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Comment 16 Matt Turner gentoo-dev 2023-09-25 21:24:30 UTC
Let's see if that fixes it...
Comment 17 Gary E. Miller 2023-09-25 22:59:39 UTC
(In reply to Matt Turner from comment #16)
> Let's see if that fixes it...

Nope.  My mirror just updated with your fix.  Same thing at the top of the build log:

````
meson setup --libdir lib64 --localstatedir /var/lib --prefix /usr --sysconfdir /etc --wrap-mode nodownload --build.pkg-config-path /usr/lib/llvm/17/lib64/pkgconfig:/usr/share/pkgconfig --pkg-config-path /usr/lib/llvm/17/lib64/pkgconfig:/usr/share/pkgconfig --native-file /var/tmp/portage/media-libs/mesa-23.2.0_rc4/temp/meson.x86_64-pc-linux-gnu.amd64.ini -Db_pch=false -Dwerror=false --buildtype plain -Dplatforms=x11 -Dgallium-nine=false -Dgallium-va=enabled -Dva-libs-path=/usr/lib64/va/drivers -Dgallium-vdpau=enabled -Dgallium-xa=enabled -Dvulkan-layers=device-select -Dintel-clc=enabled -Dbuild-tests=false -Dglx=dri -Dshared-glapi=enabled -Ddri3=enabled -Degl=enabled -Dexpat=enabled -Dgbm=enabled -Dglvnd=true -Dgles1=disabled -Dgles2=enabled -Dllvm=enabled -Dlmsensors=disabled -Dosmesa=false -Dselinux=false -Dlibunwind=disabled -Dzstd=enabled -Dsse2=true -Dvalgrind=disabled -Dvideo-codecs=h264dec,h264enc,h265dec,h265enc,vc1dec -Dgallium-drivers=crocus,i915,iris,nouveau,swrast,zink -Dvulkan-drivers=intel,intel_hasvk --buildtype plain -Db_ndebug=true /var/tmp/portage/media-libs/mesa-23.2.0_rc4/work/mesa-23.2.0-rc4 /var/tmp/portage/media-libs/mesa-23.2.0_rc4/work/mesa-23.2.0-rc4-abi_x86_64.amd64
````

Any way I can confirm my ebuild matches yours?

````
dilbert ~ # sha1sum  /var/db/repos/gentoo/media-libs/mesa/mesa-23.2.0_rc4.ebuild 
bb65cdacec55422820edaf30be24f5214463d1f5  /var/db/repos/gentoo/media-libs/mesa/mesa-23.2.0_rc4.ebuild
````
Comment 18 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-25 23:04:24 UTC
I see the problem, sec.
Comment 19 Larry the Git Cow gentoo-dev 2023-09-25 23:07:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e918fa5767c83c04b9443f9c77f6ebbf779825a

commit 2e918fa5767c83c04b9443f9c77f6ebbf779825a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-09-25 23:06:35 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-09-25 23:06:35 +0000

    media-libs/mesa: pass LLVM_MAX_SLOT to get_llvm_prefix for old + missed spot
    
    Followup to 5d50956db21f37b3216f09df5149686eb43a76d8.
    
    Add it for the intel case, not just opencl, to fix all instances. Backport
    the change to older ebuilds too.
    
    Closes: https://bugs.gentoo.org/914632
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/mesa/mesa-23.1.6.ebuild     | 4 ++--
 media-libs/mesa/mesa-23.1.7.ebuild     | 4 ++--
 media-libs/mesa/mesa-23.1.8.ebuild     | 4 ++--
 media-libs/mesa/mesa-23.2.0_rc3.ebuild | 4 ++--
 media-libs/mesa/mesa-23.2.0_rc4.ebuild | 2 +-
 media-libs/mesa/mesa-9999.ebuild       | 2 +-
 6 files changed, 10 insertions(+), 10 deletions(-)
Comment 20 Gary E. Miller 2023-09-26 01:00:34 UTC
Not so fast:

Run-time dependency libdrm_intel found: YES 2.4.116
Run-time dependency libdrm_nouveau found: YES 2.4.116
Run-time dependency libdrm found: YES 2.4.116
Run-time dependency libudev found: YES 254
Run-time dependency LLVM (modules: LLVM) found: YES 17.0.1
Run-time dependency spirv-tools found: YES 2023.4.1
Dependency LLVMSPIRVLib found: NO found 16.0.0.0 but need: '>= 17.0' ; matched: '>= 13.0.0.0', '< 17.1'
Run-time dependency llvmspirvlib found: NO (tried cmake)

../mesa-23.2.0-rc4/meson.build:1772:21: ERROR: Dependency lookup for LLVMSPIRVLib with method 'pkgconfig' failed: Invalid version, need 'LLVMSPIRVLib' ['>= 17.0'] found '16.0.0.0'.


My mirror takes a while to get your changes.  Is there a mirror I can use that gets them as you push them?
Comment 21 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-26 01:16:41 UTC
(In reply to Gary E. Miller from comment #20)
> Not so fast:
> 
> Run-time dependency libdrm_intel found: YES 2.4.116
> Run-time dependency libdrm_nouveau found: YES 2.4.116
> Run-time dependency libdrm found: YES 2.4.116
> Run-time dependency libudev found: YES 254
> Run-time dependency LLVM (modules: LLVM) found: YES 17.0.1
> Run-time dependency spirv-tools found: YES 2023.4.1
> Dependency LLVMSPIRVLib found: NO found 16.0.0.0 but need: '>= 17.0' ;
> matched: '>= 13.0.0.0', '< 17.1'
> Run-time dependency llvmspirvlib found: NO (tried cmake)
> 
> ../mesa-23.2.0-rc4/meson.build:1772:21: ERROR: Dependency lookup for
> LLVMSPIRVLib with method 'pkgconfig' failed: Invalid version, need
> 'LLVMSPIRVLib' ['>= 17.0'] found '16.0.0.0'.
> 

This bit looks like bug 914576. I suspect you're using stable but using ~arch mesa via package.accept_keywords, which would explain why (if I'm right) your machine hasn't yet picked up dev-util/meson-1.2.1-r2 with that fix.

(If that's right, you can either add meson to package.accept_keywords too, maybe with that precise version with =, or drop mesa).

If I'm wrong, could you give me the full build.log and emerge --info so I can poke a bit more?

> 
> My mirror takes a while to get your changes.  Is there a mirror I can use
> that gets them as you push them?

Sure. I usually use git on machines where I really want changes fast, like https://wiki.gentoo.org/wiki/Portage_with_Git. That one is delayed by about ~15m because a CI job runs to make sure things are valid before making them available (otherwise it lags until things are fixed).

Another option could be to have one machine do that, and setup your own rsync mirror locally if you have a lot of machines.
Comment 22 Gary E. Miller 2023-09-26 01:29:36 UTC
(In reply to Sam James from comment #21)
> (In reply to Gary E. Miller from comment #20)
> > Not so fast:
> > 
> > Run-time dependency libdrm_intel found: YES 2.4.116
> > Run-time dependency libdrm_nouveau found: YES 2.4.116
> > Run-time dependency libdrm found: YES 2.4.116
> > Run-time dependency libudev found: YES 254
> > Run-time dependency LLVM (modules: LLVM) found: YES 17.0.1
> > Run-time dependency spirv-tools found: YES 2023.4.1
> > Dependency LLVMSPIRVLib found: NO found 16.0.0.0 but need: '>= 17.0' ;
> > matched: '>= 13.0.0.0', '< 17.1'
> > Run-time dependency llvmspirvlib found: NO (tried cmake)
> > 
> > ../mesa-23.2.0-rc4/meson.build:1772:21: ERROR: Dependency lookup for
> > LLVMSPIRVLib with method 'pkgconfig' failed: Invalid version, need
> > 'LLVMSPIRVLib' ['>= 17.0'] found '16.0.0.0'.
> > 
> 
> This bit looks like bug 914576. I suspect you're using stable but using
> ~arch mesa via package.accept_keywords, which would explain why (if I'm
> right) your machine hasn't yet picked up dev-util/meson-1.2.1-r2 with that
> fix.

I have this in my make.conf:

ACCEPT_KEYWORDS="~amd64"

So I am all unstable.

> (If that's right, you can either add meson to package.accept_keywords too,
> maybe with that precise version with =, or drop mesa).

eix meson:
[I] dev-util/meson
     Available versions:  1.1.1^t (~)1.2.0^t 1.2.1-r1^t (~)1.2.1-r2^t **9999*l^t {test PYTHON_TARGETS="pypy3 python3_10 python3_11 python3_12"}
     Installed versions:  1.2.1-r2^t(02:10:33 PM 09/24/2023)(-test PYTHON_TARGETS="python3_10 python3_11 -pypy3 -python3_12")

So I have 1.2.1-r2

> If I'm wrong, could you give me the full build.log and emerge --info so I
> can poke a bit more?

Coming up.

> > My mirror takes a while to get your changes.  Is there a mirror I can use
> > that gets them as you push them?
> 
> Sure. I usually use git on machines where I really want changes fast, like
> https://wiki.gentoo.org/wiki/Portage_with_Git. That one is delayed by about
> ~15m because a CI job runs to make sure things are valid before making them
> available (otherwise it lags until things are fixed).

I started that, but failed:

dilbert /usr/src # eselect repository remove gentoo
--2023-09-25 18:27:47--  https://qa-reports.gentoo.org/output/repos/repositories.xml
Resolving qa-reports.gentoo.org... 2a04:4e42:a::347, 151.101.41.91
Connecting to qa-reports.gentoo.org|2a04:4e42:a::347|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 255942 (250K) [text/xml]
Saving to: ‘/root/.cache/eselect-repo/repositories.xml’

repositories.xml    100%[===================>] 249.94K  --.-KB/s    in 0.1s    

2023-09-25 18:27:48 (2.50 MB/s) - ‘/root/.cache/eselect-repo/repositories.xml’ saved [255942/255942]

Removing /var/db/repos/gentoo ...
Updating repos.conf ...
1 repositories removed
dilbert /usr/src # eselect repository add gentoo
!!! Error: incorrect parameters to add


> Another option could be to have one machine do that, and setup your own
> rsync mirror locally if you have a lot of machines.

I've done that for years.  Of course now it is broken until I get the gentoo re-added.  {-(
Comment 23 Gary E. Miller 2023-09-26 01:30:49 UTC
Created attachment 871465 [details]
build log

build log. Dependency LLVMSPIRVLib found: NO found 16.0.0.0
Comment 24 Gary E. Miller 2023-09-26 01:37:59 UTC
root #eselect repository remove gentoo

Configure a new repository with Portage, having a "git" sync-type:

root #eselect repository add gentoo

That second eselect fails.  I'll shave that yak another day.

dilbert ~ # emerge -pqv '=media-libs/mesa-23.2.0_rc4::gentoo'
[ebuild     U ] media-libs/mesa-23.2.0_rc4 [23.2.0_rc3] USE="X gles2 llvm proprietary-codecs vaapi vdpau vulkan xa zink zstd -d3d9 -debug -gles1 -lm-sensors -opencl -osmesa (-selinux) -test -unwind -valgrind -vulkan-overlay -wayland" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="sse2" VIDEO_CARDS="intel nouveau -d3d12 (-freedreno) -lavapipe (-lima) (-panfrost) -r300 -r600 -radeon -radeonsi (-v3d) (-vc4) -virgl (-vivante) -vmware" 


dilbert ~ # emerge --info '=media-libs/mesa-23.2.0_rc4::gentoo'
Portage 3.0.51 (python 3.11.5-final-0, default/linux/amd64/17.1/desktop, gcc-13, glibc-2.38-r2, 6.5.4-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.5.4-gentoo-x86_64-Intel-R-_Core-TM-_i7-8750H_CPU_@_2.20GHz-with-glibc2.38
KiB Mem:    32718748 total,   8786388 free
KiB Swap:   32767996 total,  32767996 free
Timestamp of repository gentoo: Tue, 26 Sep 2023 01:02:35 +0000
Head commit of repository gentoo: dce02c8e7aac7a96f307a0345f30ab5474b35e75

Timestamp of repository brother-overlay: Fri, 18 Aug 2023 01:47:53 +0000
Head commit of repository brother-overlay: 20786946bc66b74d29aa45b7beec92dc2ca9e07a

Timestamp of repository guru: Mon, 25 Sep 2023 10:18:17 +0000
Head commit of repository guru: 4cdab542f63bbf2c9a29ac066c44d5e8d67a77d3

Timestamp of repository vifino-overlay: Thu, 14 Sep 2023 05:49:18 +0000
Head commit of repository vifino-overlay: 8022f785457d10151266d3da48f441e7498e2579

sh bash 5.2_p15-r6
ld GNU ld (Gentoo 2.41 p2) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r6::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           2.7.18_p16-r1::gentoo, 3.10.13::gentoo, 3.11.5::gentoo, 3.12.0_rc3::gentoo
dev-lang/rust-bin:         1.72.0::gentoo
dev-util/cmake:            3.27.6-r1::gentoo
dev-util/meson:            1.2.1-r2::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/openrc:           0.50::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.41-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.1::gentoo
sys-devel/gcc:             13.2.1_p20230826::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             15.0.7::gentoo, 16.0.6::gentoo, 17.0.1::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.1::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.5::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r2::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    volatile: False

brother-overlay
    location: /var/db/repos/brother-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/brother-overlay.git
    masters: gentoo
    volatile: False

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

vifino-overlay
    location: /var/db/repos/vifino-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/vifino-overlay.git
    masters: gentoo
    volatile: False

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/brother/scanner/brscan4/brsanenetdevice4.cfg /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going=y --with-bdeps=y --backtrack=15"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe -march=native"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live candy clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sfperms unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j3 -l4"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi adns aio alsa alsa-plugin amd64 appindicator blake2 bluetooth bluray bpf branding bs2b btpclient bzip2 cairo calf capstone cdda cdr chromecast cli converter corefonts cover cpudetection cron crypt cups curl custom-modes dav1d dbus dri dri3 drm dts dv dvb dvd dvdr elogind encode equalizer exif extra faac faad fdk fdt ffmpeg ffmpegthumbnailer fingerprint fingerprints flac flashrom fontconfig fontforge fortran fuse gbm gdal gdbm geolocation geos gif gimp gles2 glib gpg gpm gstreamer gtk gtk3 gui harfbuzz hddtemp http2 iconv icu introspection io-uring ipp_autosetup ipv6 jemalloc jpeg keybinder ladspa lastfm lcms libcanberra libdrm libmpeg2 libmpv libnotify libretro libsamplerate libtirpc libuvc lm_sensors lto lv2 lvm lz4 lzma lzo mad matroska md5sum mda-lv2 metadata mng mp3 mp4 mpeg mtp multilib ncurses nfs nfsv41 nls notify nptl nvenc nvme obex offensive ogg openal opengl openmp opus pam pango pcap pcre pcre32 pdf pgo pipewire pkcs11 plugins png policykit postproc ppds projectm pulseaudio pvr python qml qt5 qtaudio rav1e readline realtime rtc rtmp rubberband screencast sdl sdl-image seccomp sensors sftp slirp sna snappy sndfile snmp sound sox spandsp spell spice spirv split-usr sqlite ssh ssl startup-notification svg svt-av1 system-llvm system-png test-rust theora threads tiff tools truetype twolame udev udisks uefi unicode update_drivedb upnp upower usb usbredir uxa v4l v4lutils vaapi vde vdpau vdr vim vim-syntax virgl vmaf vorbis vpx vulkan webp wg-quick widgets wifi wxwidgets x264 x265 xa xattr xcb xft xinerama xml xrandr xv xvid zamaudio zeroconf zimg zink zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="roccat_savu libinput joystick" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11 python3_10" RUBY_TARGETS="ruby31" SANE_BACKENDS="net" VIDEO_CARDS="intel i965 nvidia iris nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 25 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-26 01:38:39 UTC
ugh, sorry, I broke the wiki page (fixing now). do 'eselect repository enable gentoo' instead. will read the rest now
Comment 26 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-26 01:40:13 UTC
thanks! Could you grab /var/tmp/portage/media-libs/mesa-23.2.0_rc4/work/mesa-23.2.0-rc4-abi_x86_64.amd64/meson-logs/meson-log.txt for me? I don't get wtf 17 is coming from yet..
Comment 27 Gary E. Miller 2023-09-26 01:43:02 UTC
Created attachment 871466 [details]
meson.log

meson.log
Comment 28 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-26 01:51:33 UTC
```
CMake TARGET:
  -- name:      LLVM
  -- type:      SHARED
  -- imported:  True
  -- properties: {
      'IMPORTED_CONFIGURATIONS': ['RELWITHDEBINFO']
      'IMPORTED_LOCATION_RELWITHDEBINFO': ['/usr/lib/llvm/17/lib64/libLLVM-17.so']
      'IMPORTED_SONAME_RELWITHDEBINFO': ['libLLVM-17.so']
     }
  -- tline: CMake TRACE: /usr/lib/llvm/17/lib64/cmake/llvm/LLVMExports.cmake:311 add_library(['LLVM', 'SHARED', 'IMPORTED'])
[...]
Include Dirs:         []
Compiler Options:     []
Libraries:            ['/usr/lib/llvm/17/lib64/libLLVM-17.so']
Run-time dependency LLVM (modules: LLVM) found: YES 17.0.1
Pkg-config binary for 1 is cached.
```

eli, are we missing something in llvm.eclass to influence what it picks?
Comment 29 Gary E. Miller 2023-09-26 01:53:21 UTC
Don't need the "rm /var/db/repos/gentoo:

backup /usr/local/archive/GPS/RTCM # eselect repository remove gentoo
--2023-09-25 18:50:57--  https://qa-reports.gentoo.org/output/repos/repositories.xml
Resolving qa-reports.gentoo.org... 2a04:4e42:a::347, 151.101.41.91
Connecting to qa-reports.gentoo.org|2a04:4e42:a::347|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 255942 (250K) [text/xml]
Saving to: '/root/.cache/eselect-repo/repositories.xml'

repositories.xml    100%[===================>] 249.94K   684KB/s    in 0.4s    

2023-09-25 18:50:58 (684 KB/s) - '/root/.cache/eselect-repo/repositories.xml' saved [255942/255942]

>>>>>>>>>>>>>>>>>>>>>>>>
Removing /var/db/repos/gentoo ...
<<<<<<<<<<<<<<<<<<<<<<<<

Updating repos.conf ...
1 repositories removed
backup /usr/local/archive/GPS/RTCM # eselect repository enable gentoo
Adding gentoo to /etc/portage/repos.conf/eselect-repo.conf ...
1 repositories enabled
Comment 30 Eli Schwartz gentoo-dev 2023-09-26 02:25:19 UTC
Its detecting llvm via cmake, and I have no clue how that works. Dylan Baker works on both mesa and meson, and IIRC he said that Mesa people very much prefer using llvm-config to detect llvm when building mesa for precisely reasons of correctly detecting which llvm to build against... with that, you can just define the llvm-config binary via a machine file or via $LLVM_CONFIG.
Comment 31 Brahmajit Das 2023-09-26 10:10:50 UTC
Not sure if it's related but now I'm hitting

Dependency LLVMSPIRVLib found: NO found 16.0.0.0 but need: '>= 17.0' ; matched: '>= 13.0.0.0', '< 17.1'
Run-time dependency llvmspirvlib found: NO (tried cmake)

../mesa-23.2.0-rc4/meson.build:1772:21: ERROR: Dependency lookup for LLVMSPIRVLib with method 'pkgconfig' failed: Invalid version, need 'LLVMSPIRVLib' ['>= 17.0'] found '16.0.0.0'.

Build log: https://bpa.st/2V4A
meson-log.txt: http://0x0.st/HVSN.txt
Comment 32 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-26 18:32:49 UTC
Okay, I think I get what's going on now (not sure how to fix it yet).

The original bug here is fixed, but the issue that gary & listout are hitting is bug 907965. Let's carry on the discussion there of the remaining issues.

*** This bug has been marked as a duplicate of bug 907965 ***
Comment 33 Larry the Git Cow gentoo-dev 2023-09-27 01:52:21 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90da97e78ade65753dfb2e0fb30ec9067c5aa766

commit 90da97e78ade65753dfb2e0fb30ec9067c5aa766
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-09-27 01:49:30 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-09-27 01:51:44 +0000

    media-libs/mesa: fix LLVM detection
    
    Meson will prefer looking up LLVM via CMake to llvm-config and it's non-trivial
    to try coerce CMake into looking at the right thing, so we end up trying to use
    the wrong LLVM and exploding - fortunately just at configure time.
    
    Add a patch to force using llvm-config - which llvm.eclass controls the availability
    of - and avoid the CMake problem entirely.
    
    Of course, it'd be far better if LLVM just finally adopted pkg-config.
    
    Bug: https://bugs.gentoo.org/914632
    Bug: https://bugs.gentoo.org/914742
    Bug: https://bugs.gentoo.org/914775
    Closes: https://bugs.gentoo.org/907965
    Thanks-to: Eli Schwartz <eschwartz93@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/mesa/files/clang_config_tool.patch | 13 +++++++++++++
 media-libs/mesa/mesa-23.1.8.ebuild            |  3 +++
 media-libs/mesa/mesa-23.2.0_rc4.ebuild        |  5 +++++
 media-libs/mesa/mesa-9999.ebuild              |  5 +++++
 4 files changed, 26 insertions(+)
Comment 34 Gary E. Miller 2023-09-27 02:20:55 UTC
Confirmed.  I just built fine.  Thanks Sam!