Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 816381 - media-libs/mesa: please add LLVM version 13
Summary: media-libs/mesa: please add LLVM version 13
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-05 08:05 UTC by Oleksa
Modified: 2021-10-30 23:04 UTC (History)
2 users (show)

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 Oleksa 2021-10-05 08:05:45 UTC
Hello there! After release for LLVM version 13, current .ebuild file for media-libs/mesa still include only version 12. There cause dependencies conflict and need to be both LLVM (12 and 13) installed. Please, fix .ebuild files. Thank You very much!
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2021-10-05 08:53:45 UTC
mesa-21.2.3 fails to build with llvm-13 on 32bit. At least the changes from this MR are required to fix build with llvm-13:

  https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11940
Comment 2 tt_1 2021-10-05 16:29:09 UTC
you will have to pull in that fix to the 20.2.x branch, upstream is not really keen on backporting it - I asked for an official backport two months ago, no answer from them whatsoever.
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2021-10-15 13:09:21 UTC
mesa-21.2.4 builds with llvm-13 without further patching.
Comment 4 Jason Chan 2021-10-16 01:53:12 UTC
I can confirm that mesa-21.2.4 builds successfully with USE llvm and LLVM_MAX_SLOT="13" with no patching required.


From the poly-c repo, with CC and CXX set in env

media-libs/mesa-21.2.4_pre::poly-c
ABI_X86="32 64"
CC=clang (13.0.0)
CXX=clang++ (13.0.0)
LD=ld.lld (12.0.1)
CFLAGS="-march=native -O3 -pipe"
CXXFLAGS="-march=native -O3 -pipe"

I can also build with GCC 11.2.0 and ld.bfd 2.37_p1, but using the -O3 flag gives a QA notice.
Comment 5 Larry the Git Cow gentoo-dev 2021-10-30 23:04:27 UTC
The bug has been closed via the following commit(s):

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

commit b9ab97c1f47ec0a3f0dc4f6c6a5982cbedb52d76
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2021-10-30 20:31:45 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2021-10-30 23:04:13 +0000

    media-libs/mesa: Allow sys-devel/llvm:13
    
    Closes: https://bugs.gentoo.org/816381
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 media-libs/mesa/mesa-9999.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)