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

Bug 665474

Summary: sys-libs/libomp lacks -lm
Product: Gentoo Linux Reporter: Haelwenn (lanodan) Monnier <contact>
Component: Current packagesAssignee: Bernard Cafarelli <voyageur>
Status: RESOLVED DUPLICATE    
Severity: normal CC: egger.m, herrtimson, jstein, llvm, mgorny, sam
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: FreeBSD_bug32279.patch (modified for Linux)

Description Haelwenn (lanodan) Monnier 2018-09-08 01:47:10 UTC
Created attachment 546226 [details, diff]
FreeBSD_bug32279.patch (modified for Linux)

Related FreeBSD bug: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214258

This fixes compiling and checking with tc-has-openmp by linking libm into libomp.so, thus avoiding to put -lm on each usage of OpenMP in LLVM/Clang.
Comment 1 tt_1 2020-01-25 21:25:10 UTC
was this patch ever upstreamed?
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-01-26 04:39:10 UTC
Apparently yes... but conditionally to DragonFly|FreeBSD.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-29 12:26:08 UTC
I'm going to reverse mark-as-duplicate because the other is much newer with an upstream link, but I'll link to OP comment.

*** This bug has been marked as a duplicate of bug 816831 ***