Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 857825 - sys-libs/libomp fails compile phase with llvm-libunwind[-static-libs]
Summary: sys-libs/libomp fails compile phase with llvm-libunwind[-static-libs]
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-13 00:41 UTC by unhappy-ending
Modified: 2022-07-15 12:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
compile phase error log (libomp-requires-libunwind-static-libs.log,65.75 KB, text/x-log)
2022-07-13 00:41 UTC, unhappy-ending
Details

Note You need to log in before you can comment on or make changes to this bug.
Description unhappy-ending 2022-07-13 00:41:25 UTC
Created attachment 791264 [details]
compile phase error log

This is built on a LLVM/Clang toolchain based system using -stdlib=libc++, -rtlib=compilert-rt, and -unwindlib=libunwind.

As summarized, libomp will fail the compile phase if sys-libs/llvm-libunwind is compiled without the static-libs USE flag.

ld.lld: error: unable to find library -l:libunwind.a
ld.lld: error: unable to find library -l:libunwind.a

Not sure if this is expected behavior that libomp requires a static llvm-libunwind. Perhaps it has to do with the CMAKE macro LIBOMP_HAVE_STATIC_LIBGCC_FLAG. I can make a local ebuild to check in the future if this is desirable.

Passing -rtlib=libgcc -unwindlib=libgcc doesn't have this issue, perhaps expected since there doesn't seem to be a static-libs option available especially since they are built with GCC and not as separate libraries like we have with the LLVM toolchain.