[Openmp-commits] [PATCH] D108534: [OpenMP][Docs] add clang to LLVM_ENABLE_PROJECTS in build instructions
Shivam Gupta via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Mon Aug 23 10:52:45 PDT 2021
xgupta added a comment.
So I looked at how buildbot built openmp here - https://github.com/llvm/llvm-zorg/blob/main/buildbot/osuosl/master/config/builders.py#L1377.
And did ``cmake ../llvm -DLLVM_ENABLE_RUNTIMES="openmp" -DLLVM_ENABLE_PROJECTS="clang" -DLLVM_ENABLE_LLD=ON -DCMAKE_BUILD_TYPE=Release` and `make openmp` to build it and faced a newly reported issue - https://bugs.llvm.org/show_bug.cgi?id=51579
In configure stage pthread.h header not found and I get the following error but I have pthread in usr/include/pthread.h
CMake Error at /usr/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Threads (missing: Threads_FOUND)
Call Stack (most recent call first):
/usr/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.21/Modules/FindThreads.cmake:238 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
/home/xgupta/project/llvm-project/openmp/runtime/cmake/config-ix.cmake:155 (find_package)
/home/xgupta/project/llvm-project/openmp/runtime/CMakeLists.txt:240 (include)
So can someone please share the recipe for building in-tree openmp or it is me who has something missing?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108534/new/
https://reviews.llvm.org/D108534
More information about the Openmp-commits
mailing list