I enabled USE=default-lld and installed sys-devel/clang (17.0.6, current stable one). This automatically installed sys-devel/lld-17.0.6:17 (current stable one). After that I installed =sys-devel/clang-18* (testing version). Expectation: clang works Reality: if LTO or LLVM bitcode is used, clang fails with: ld.lld: error: utils/prepare-builtins/CMakeFiles/prepare-builtins.dir/prepare-builtins.cpp.o: Unknown attribute kind (91) (Producer: 'LLVM18.1.2' Reader: 'LLVM 17.0.6') (LLVM bitcode is backwards compatible. It is however not forward compatible) Proposal: in sys-devel/clang-common setup dependency on >=sys-devel/lld-{PV}
Thanks for the report!
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=827043317fd721d36b2c6a0080b204c2baca8beb commit 827043317fd721d36b2c6a0080b204c2baca8beb Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2024-03-27 03:33:30 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2024-03-27 03:37:06 +0000 sys-devel/clang-common: Require new enough lld version Closes: https://bugs.gentoo.org/927911 Signed-off-by: Michał Górny <mgorny@gentoo.org> sys-devel/clang-common/clang-common-15.0.7-r8.ebuild | 2 +- .../{clang-common-16.0.6-r3.ebuild => clang-common-16.0.6-r4.ebuild} | 2 +- .../{clang-common-17.0.6-r3.ebuild => clang-common-17.0.6-r4.ebuild} | 2 +- .../{clang-common-18.1.2-r2.ebuild => clang-common-18.1.2-r3.ebuild} | 2 +- sys-devel/clang-common/clang-common-19.0.0.9999.ebuild | 2 +- sys-devel/clang-common/clang-common-19.0.0_pre20240322-r1.ebuild | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-)