Summary: | media-libs/mesa fails to build with sys-devel/clang-10.0.0_rc3: ERROR: C++ library 'clangCodeGen' not found | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Johannes Hirte <johannes.hirte> |
Component: | Current packages | Assignee: | Gentoo X packagers <x11> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | brankob, chewi, fordfrog, jeff.kowalczyk, jstein, marcin.deranek, nrndda, ua_gentoo_bugzilla |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4417 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 715196 | ||
Bug Blocks: | 712910 | ||
Attachments: |
mesa-9999 clang-10 patch
build log with llvm:10 |
Description
Johannes Hirte
2020-03-06 08:42:49 UTC
What would you have me do? It's not fixed upstream and as noted in $URL the patch Fedora is applying is not suitable for upstream. What about blocking llvm/clang-10 for mesa? Or enforcing llvm/clang-build with individual component libraries, like prior versions are build. Created attachment 618586 [details, diff] mesa-9999 clang-10 patch (In reply to Matt Turner from comment #1) > What would you have me do? It's not fixed upstream and as noted in $URL the > patch Fedora is applying is not suitable for upstream. The patch from the upstream bug seems to work for me. I made a patch for the live ebuild out of it. The one that says
> Looks like that would break static linking (and/or older versions of clang?), so not suitable as-is for upstream I'm afraid.
... no, sorry. Not going to commit that.
*** Bug 715196 has been marked as a duplicate of this bug. *** *** Bug 714852 has been marked as a duplicate of this bug. *** A patch is going upstream in https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4417 that fixes this. (In reply to Matt Turner from comment #7) > A patch is going upstream in > https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4417 that fixes > this. https://gitlab.freedesktop.org/mesa/mesa/-/commit/ff1a3a00cb37d84ab9a563f0aa241714876f56b4 merged upstream Tested mesa-20.0.4-r1 with LLVM_MAX_SLOT="10" And it works. (In reply to charles17 from comment #9) > Tested mesa-20.0.4-r1 with LLVM_MAX_SLOT="10" > And it works. Please ignore this comment. It was still running on llvm:9 Of cause, it works, with llvm:10 line in LLVM_DEPSTR. Please enable llvm-20.0.4-r1 for llvm:10 Don't know what you are talking about. Could you simplify it and perhaps recheck ? I just tried setting LLVM_MAX_SLOT=10 and can't emerge mesa-20* nor mesa-9999... (In reply to Branko Badrljica from comment #12) > Don't know what you are talking about. > > Could you simplify it and perhaps recheck ? > > I just tried setting LLVM_MAX_SLOT=10 and can't emerge mesa-20* nor > mesa-9999... --- /var/db/repos/gentoo/media-libs/mesa/mesa-20.0.4-r1.ebuild 2020-04-13 18:39:41.000000000 +0200 +++ /var/db/repos/testing/media-libs/mesa/mesa-20.0.4-r1.ebuild 2020-04-21 11:30:50.797823180 +0200 @@ -147,9 +147,10 @@ # 1. List all the working slots (with min versions) in ||, newest first. # 2. Update the := to specify *max* version, e.g. < 10. # 3. Specify LLVM_MAX_SLOT, e.g. 9. -LLVM_MAX_SLOT="9" +LLVM_MAX_SLOT="10" LLVM_DEPSTR=" || ( + sys-devel/llvm:10[${MULTILIB_USEDEP}] sys-devel/llvm:9[${MULTILIB_USEDEP}] sys-devel/llvm:8[${MULTILIB_USEDEP}] ) Mesa-20.0.5 includes fix for one big lib: https://cgit.freedesktop.org/mesa/mesa/commit/src/gallium/targets/opencl/meson.build?h=20.0&id=b5b56d89a16760560bdb4aed03cc302882e7e544 Created attachment 634392 [details] build log with llvm:10 (In reply to Dmitry Derevyanko from comment #14) > Mesa-20.0.5 includes fix for one big lib: > https://cgit.freedesktop.org/mesa/mesa/commit/src/gallium/targets/opencl/ > meson.build?h=20.0&id=b5b56d89a16760560bdb4aed03cc302882e7e544 See attached build "build log with llvm:10" The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbf95d42221567866896f2e3b0ff14f719171724 commit dbf95d42221567866896f2e3b0ff14f719171724 Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2020-04-30 17:15:48 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2020-04-30 17:34:40 +0000 media-libs/mesa: Version bump to 20.0.6 Closes: https://bugs.gentoo.org/711656 Signed-off-by: Matt Turner <mattst88@gentoo.org> media-libs/mesa/Manifest | 1 + media-libs/mesa/mesa-20.0.6.ebuild | 550 +++++++++++++++++++++++++++++++++++++ 2 files changed, 551 insertions(+) |