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]
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
Depends on:
Reported: 2022-07-13 00:41 UTC by unhappy-ending
Modified: 2023-07-16 13:19 UTC (History)
1 user (show)

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

compile phase error log (libomp-requires-libunwind-static-libs.log,65.75 KB, text/x-log)
2022-07-13 00:41 UTC, unhappy-ending
Build Log, libomp-16.0.6 (build.log,61.60 KB, application/octet-stream)
2023-07-16 13:19 UTC, wolfgang

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.
Comment 1 wolfgang 2023-07-16 13:19:07 UTC
I can confirm that this is still present for libomp-16.0.6
Comment 2 wolfgang 2023-07-16 13:19:40 UTC
Created attachment 865606 [details]
Build Log, libomp-16.0.6