Skip to content
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

Docker build failed: Could not find OpenMP_CXX #44

Open
markuspi opened this issue Oct 19, 2022 · 0 comments
Open

Docker build failed: Could not find OpenMP_CXX #44

markuspi opened this issue Oct 19, 2022 · 0 comments

Comments

@markuspi
Copy link

markuspi commented Oct 19, 2022

I tried building using Docker and ran into this CMake error:

CMake Error at /usr/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
Call Stack (most recent call first):
  /usr/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.24/Modules/FindOpenMP.cmake:547 (find_package_handle_standard_args)
  CMakeLists.txt:58 (find_package)

It looks like this is due to a missing dependency libomp-X-dev where X is the major version of clang++. In my case for Ubuntu 20.04 and the newest clang apt repository, adding apt install -y libomp-16-dev fixed the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant