Closed TaoTao-real closed 1 year ago
@llvm/issue-subscribers-openmp
I thought the host runtime (libomp) can be build as static and dynamic library. Linking it in statically was supported at some point but might cause problems down the line. That said, if there is no option to build a static library I doubt we have much incentive to add one.
JFYI, https://discourse.llvm.org/c/runtimes/openmp/ is a better place for OpenMP related questions. I'll close this one for now. Feel free to open it if you see necessary.
every one.
I am curious about did clang can't static link the openmp library when compliling. When i try to build spec2017 intspeed benchmarks, I found when i try to build them staticly, will failed with error
cannot find -lomp
.So, i searched the llvm lib for omp, only find libomp.so, but no omp realated
.a
file. Then found the posted mail of wheather need static openmp library, seem like LLVM developers reject this opinion. https://lists.llvm.org/pipermail/openmp-dev/2016-January/001051.htmlDid i miss something, or is there someway can link openmp staticly i not found?
Thanks for your suggestions.
I did build those spec benchmarks use llvm10 and llvm15 with dynamic link on ubuntu20.04, all found the -lomp, build successfully.