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

Bug 851597

Summary: toolchain-funcs.eclass: unable to detect OpenMP support when using clang
Product: Gentoo Linux Reporter: Sheng Yu <syu.os>
Component: EclassesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED DUPLICATE    
Severity: normal CC: ionen
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sheng Yu 2022-06-12 19:09:41 UTC
Under LLVM/clang 14, _tc-has-openmp return failed because it needs extra -lm in order to compile.

undefined reference to fmaxl
undefined reference to logbl

 * Your current compiler does not support OpenMP!
 * OpenMP support in sys-devel/clang is provided by sys-libs/libomp.


Reproducible: Always
Comment 1 Ionen Wolkens gentoo-dev 2022-06-14 14:42:07 UTC
See bug #794481, I assume the stance hasn't changed (albeit it is becoming a long standing issue).

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