Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914775 - mesa compile error by llvm 17.0.0.1 for intel GPU with vulkan use flag
Summary: mesa compile error by llvm 17.0.0.1 for intel GPU with vulkan use flag
Status: RESOLVED DUPLICATE of bug 907965
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-27 01:40 UTC by Norel
Modified: 2023-09-27 01:52 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Norel 2023-09-27 01:40:03 UTC
With recently updated llvm 17.0.0.1 package, all versions of mesa package fail to compile for Intel GPU with vulkan use flag.
According to my tests, the temporary resolutions for this issue are  
1. Use llvm 16.0.6
2. Use llvm 17.0.0.1 without vulkan use flag

Could you check and patch mesa package to compile with llvm 17.x for Intel, vulkan use flag?

Reproducible: Always

Steps to Reproduce:
1. upgrade llvm to 17.0.0.1
2. setup VIDEO_CARDS="intel"
3. emerge mesa
Actual Results:  
Compile failure.

Expected Results:  
Successfully install mesa
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-27 01:40:29 UTC
Already on it, please see 907965.

*** This bug has been marked as a duplicate of bug 907965 ***
Comment 2 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(+)