Summary: | sys-libs/libomp should depend on sys-libs/compiler-rt | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Manuel Nickschas <sputnick> |
Component: | Current packages | Assignee: | Bernard Cafarelli <voyageur> |
Status: | RESOLVED CANTFIX | ||
Severity: | normal | CC: | llvm, mgorny, sputnick |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 408963 | ||
Attachments: |
build.log
emerge --info |
Description
Manuel Nickschas
2022-11-02 10:52:43 UTC
Created attachment 826691 [details]
build.log
Created attachment 826693 [details]
emerge --info
I'm sorry but we can't really solve this dependency problem. sys-libs/libomp can be built with either GCC or Clang, and we definitely don't want to force the whole clang toolchain when someone uses GCC to build it. No way to do this conditionally based on current toolchain? I mean I can deal with this myself, but it does break automatic upgrades for clang users, and if that is ever supposed to be a supported thing, then I guess a solution needs to be found... No, not really. The metadata is static, so it can't know what toolchain is being used. However, I'm thinking that moving clang-runtime dependency in sys-devel/clang from PDEPEND to RDEPEND might help Portage order packages better. In LLVM 16.x (currently snapshots with no KEYWORDS), I've moved sys-devel/clang-runtime to RDEPEND of sys-devel/clang and we've changed compiler-rt to be installed into /usr/lib/clang/16 (without minor version), so hopefully upgrades will be less painful in the future. |