-
Notifications
You must be signed in to change notification settings - Fork 13.4k
BUG: openmp/cmake/HandleOpenMPOptions.cmake
uses CMake function append
without defining it
#80117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the report, I will take a look today. |
Could you also please explain what cmake version are you using and the arguments used to build LLVM? |
@llvm/issue-subscribers-openmp Author: None (h-vetinari)
While [building](https://github.com/conda-forge/openmp-feedstock/pull/113) openmp 18.1.0-rc1 on windows, I get:
```
CMake Error at cmake/HandleOpenMPOptions.cmake:47 (append):
Unknown CMake command "append".
```
This is due to https://github.com/llvm/llvm-project/blame/release/18.x/openmp/cmake/HandleOpenMPOptions.cmake using llvm-project/openmp/cmake/HandleOpenMPOptions.cmake Lines 1 to 10 in 400a02b
I don't know why this file does not (or cannot) do CC @aganea |
We use the newest available CMake (3.28.2) and the main build invocation is:
The truth is slightly more complicated (for various reasons incl. CI limitations, we build LLVM component-wise; originally that was done with the subproject tarballs, now we ensure that just Edit: fixed a braino in referring to the wrong component |
Thank you for the quick response! 🙏 |
IIRC the reason we can't just |
I mean, the waters have muddied on this substantially in recent years, c.f. here and here. My understanding of the former is that using I do care about building openmp "standalone", but I don't mind if I need to provide the corresponding CMake sources alongside (this has been the status quo for several other subprojects as well). |
Even so, host OpenMP still supports standalone build w/o LLVM. That's why we are pretty careful about adding dependencies for |
@h-vetinari Can you check please if #80174 fixes the issue? |
Thanks a lot @aganea! Tested the state of this patch on top of the |
/cherry-pick d2565bb |
This fixes: llvm#80117 (cherry picked from commit d2565bb)
/pull-request #80291 |
This fixes: llvm#80117 (cherry picked from commit d2565bb)
PR has been created, we will track the status there. |
This fixes: llvm#80117 (cherry picked from commit d2565bb)
This fixes: llvm#80117 (cherry picked from commit d2565bb)
This fixes: llvm#80117 (cherry picked from commit d2565bb)
This fixes: llvm#80117 (cherry picked from commit d2565bb)
While building openmp 18.1.0-rc1 on windows, I get:
This is due to https://github.com/llvm/llvm-project/blame/release/18.x/openmp/cmake/HandleOpenMPOptions.cmake using
append
since 15fdc76, but not defining it -- in contrast toappend_if
which explicitly duplicates the definition fromHandleLLVMOptions.cmake
:llvm-project/openmp/cmake/HandleOpenMPOptions.cmake
Lines 1 to 10 in 400a02b
I don't know why this file does not (or cannot) do
include(HandleLLVMOptions)
, but if that's not an option, then it needs to similarly vendor the definition ofappend
.CC @aganea
The text was updated successfully, but these errors were encountered: