-
Notifications
You must be signed in to change notification settings - Fork 320
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
Building with LLVM Clang and OpenMP fails on Ubuntu 24.04 #486
Comments
Building with LLVM Clang and libomp currently fails (see ElmerCSC#486). Add configurations to the build matrix that build with LLVM Clang without OpenMP. Also add a runner that builds with GCC without OpenMP.
Did I get it wrong, but are you still using |
Yes, this is still with When it comes to using LLVM Flang: MSYS2 (Windows MinGW) has the CLANG64 environment that is based on a LLVM toolchain ( I'd like to add some CI runners for MSYS2 (incl. a runner using their CLANG64 environment) once the CMake build rules are ready for Windows. That would hopefully cover at least parts of the build configuration on your supercomputer. |
I got a similar error. The linker cant find openMP or something. I suggest you check here: #503 (comment) |
I can't find the issue (i.e, the error message) that you saw in #503. |
I had the same issue as you. I had to explicitly link the dylib. That is what chat gpt told me. Adding
to my shell configuration file,
to the cmake command solved the issue for me. I cant tell you more. ChatGPT: |
Do you mean to explicitly link with |
I mean that I had the same problem as you and that I asked chatgpt and it told me: Id simply compare your cmake command to mine and add what is missing regarding OpenMP. If you tried that and it still fails we can look further. But for now apply the information that has been given to you. Short answer: |
Mixing different OpenMP implementations is probably a bad idea. I took the opposite approach and linked to the GNU implementation of OpenMP instead of linking explicitly with |
It looks like configuring with So, this was a user error on configuration. |
When trying to build with LLVM Clang 18.1.3 on Ubuntu 24.04, linking
ViewFactors
fails with the following error when EulerFEM is configured to build with OpenMP (CC=clang CXX=clang++ cmake -DWITH_OpenMP=ON ..
:I don't know what causes that error or how to resolve it.
Building works after having configured with
-DWITH_OpenMP=OFF
(the default ifWITH_OpenMP
isn't set manually).Is that a known issue?
The text was updated successfully, but these errors were encountered: