Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 927249

Summary: sys-libs/libomp: OpenMP not found since libomp was slotted
Product: Gentoo Linux Reporter: Manuel Nickschas <sputnick>
Component: Current packagesAssignee: Bernard Cafarelli <voyageur>
Status: UNCONFIRMED ---    
Severity: major CC: contyk, llvm, negril.nx+gentoo, sputnick
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=904140
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
die.env

Description Manuel Nickschas 2024-03-18 16:13:57 UTC
Created attachment 887881 [details]
emerge --info

Slotting was recently introduced for sys-libs/libomp as per #904140. Since then, when using clang/libc++ as system compiler, libomp is no longer found via tc-check-openmp nor during src_configure() if the check is removed. I have rebuilt the clang toolchain, which did not help.

As an example, we can look at dev-util/mdds, however the same issue seems to occur for any other package relying on OpenMP as well:

 * Messages for package dev-util/mdds-2.1.1:

 * Your current compiler does not support OpenMP!
 * OpenMP support in sys-devel/clang is provided by sys-libs/libomp.
 * ERROR: dev-util/mdds-2.1.1::gentoo failed (pretend phase):
 *   Active compiler does not have required support for OpenMP
 * 
 * Call stack:
 *                ebuild.sh, line 136:  Called pkg_pretend
 *        mdds-2.1.1.ebuild, line  36:  Called tc-check-openmp
 *   toolchain-funcs.eclass, line 602:  Called die
 * The specific snippet of code:
 *              die "Active compiler does not have required support for OpenMP"
Comment 1 Manuel Nickschas 2024-03-18 16:14:25 UTC
Created attachment 887882 [details]
die.env
Comment 2 Larry the Git Cow gentoo-dev 2024-03-18 16:56:53 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=550762d676b90df013b4e74e8d23737ab83225b8

commit 550762d676b90df013b4e74e8d23737ab83225b8
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2024-03-18 16:55:32 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-03-18 16:56:50 +0000

    sys-libs/libomp: Revert "Add slotted versions"
    
    Bug: https://bugs.gentoo.org/927249
    Reverts: 2836fd63ef7c7b8756883bffd58e06392653f65d
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 sys-libs/libomp/libomp-15.0.7-r7.ebuild            | 135 -----------------
 sys-libs/libomp/libomp-16.0.6-r1.ebuild            | 153 -------------------
 sys-libs/libomp/libomp-17.0.6-r1.ebuild            | 153 -------------------
 sys-libs/libomp/libomp-18.1.0-r1.ebuild            | 163 ---------------------
 sys-libs/libomp/libomp-19.0.0.9999.ebuild          |   4 +-
 .../libomp/libomp-19.0.0_pre20240316-r1.ebuild     | 162 --------------------
 6 files changed, 1 insertion(+), 769 deletions(-)