Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 927911 - sys-devel/clang-common[default-lld] allows installation of incompatible (old) lld
Summary: sys-devel/clang-common[default-lld] allows installation of incompatible (old)...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-26 17:57 UTC by Sv. Lockal
Modified: 2024-03-27 03:37 UTC (History)
1 user (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 Sv. Lockal 2024-03-26 17:57:37 UTC
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}
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-03-27 03:33:36 UTC
Thanks for the report!
Comment 2 Larry the Git Cow gentoo-dev 2024-03-27 03:37:10 UTC
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(-)