Summary: | sys-libs/libomp-13.0.0 emerge fails (The dependency target "LLVMBinaryFormat" of target "elf_common" does not exist) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Mateusz Paluszkiewicz <theaifam5> |
Component: | Current packages | Assignee: | Bernard Cafarelli <voyageur> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | gentoo, llvm, lssndrbarbieri, mgorny, theaifam5 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
URL: | https://reviews.llvm.org/D111038 | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=815715 https://bugs.llvm.org/show_bug.cgi?id=52059 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Build log of libomp-13.0.0 |
Description
Mateusz Paluszkiewicz
2021-10-02 18:51:02 UTC
(In reply to theaifam5 from comment #0) > The dependency target "LLVMBinaryFormat" of target "elf_common" does not > exist. > The dependency target "LLVMObject" of target "elf_common" does not exist. These libraries are part of sys-devel/llvm but they are not exported. That is why cmake is unable to find them. Hacking the llvm ebuild like this allows libomp to compile : --- /mnt/repos/gentoo/sys-devel/llvm/llvm-13.0.0.ebuild 2021-10-01 18:54:19.110648000 -0400 +++ /mnt/repos/fixes/sys-devel/llvm/llvm-13.0.0.ebuild 2021-10-03 15:32:20.936414000 -0400 @@ -204,6 +204,18 @@ LLVMDemangle LLVMSupport LLVMTableGen + + # libraries needed for libomp + LLVMBinaryFormat + LLVMBitReader + LLVMBitstreamReader + LLVMCore + LLVMDebugInfoCodeView + LLVMMC + LLVMMCParser + LLVMObject + LLVMRemarks + LLVMTextAPI ) if multilib_is_native_abi; then Does it really build for you though? I'm getting a ton of errors such as: /tmp/portage/sys-libs/libomp-13.0.0/work/openmp/libomptarget/plugins/amdgpu/src/rtl.cpp:505:18: error: ‘AMDGPUGpuGridValues’ is not a member of ‘llvm::omp’; did you mean ‘AMDGPUGridValues64’? 505 | llvm::omp::AMDGPUGpuGridValues[llvm::omp::GVIDX::GV_Max_Teams]; | ^~~~~~~~~~~~~~~~~~~ | AMDGPUGridValues64 My totally random guess is that this release is seriously screwed up. (In reply to Michał Górny from comment #2) > Does it really build for you though? I'm getting a ton of errors such as: > > /tmp/portage/sys-libs/libomp-13.0.0/work/openmp/libomptarget/plugins/amdgpu/ > src/rtl.cpp:505:18: error: ‘AMDGPUGpuGridValues’ is not a member of > ‘llvm::omp’; did you mean ‘AMDGPUGridValues64’? > 505 | llvm::omp::AMDGPUGpuGridValues[llvm::omp::GVIDX::GV_Max_Teams]; > | ^~~~~~~~~~~~~~~~~~~ > | AMDGPUGridValues64 > > > My totally random guess is that this release is seriously screwed up. Nevermind, the ebuild needs adjusting to use LLVM 13. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c62a7a3872d8ebda89b4734d57f8fb780a70269 commit 7c62a7a3872d8ebda89b4734d57f8fb780a70269 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2021-10-04 13:11:29 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2021-10-04 13:20:13 +0000 sys-libs/libomp: Fix linking against LLVM w/ USE=offload Closes: https://bugs.gentoo.org/815853 Signed-off-by: Michał Górny <mgorny@gentoo.org> sys-libs/libomp/Manifest | 2 +- sys-libs/libomp/libomp-13.0.0.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (In reply to Michał Górny from comment #2) > Does it really build for you though? I'm getting a ton of errors such as: > It did work, though I realize mine was not an elegant solution. |