kenlm icon indicating copy to clipboard operation
kenlm copied to clipboard

macOS can't make, Could NOT find OpenMP_C

Open gaboolic opened this issue 1 year ago • 0 comments

I followed this doc brew install cmake boost eigen and then compiling

mkdir -p build
cd build
cmake ..

Then failed, Terminal mesage:

CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Warning at /usr/local/Cellar/cmake/3.29.6/share/cmake/Modules/Platform/Darwin-Initialize.cmake:308 (message):
  Ignoring CMAKE_OSX_SYSROOT value:

   /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk

  because the directory does not exist.
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.29.6/share/cmake/Modules/CMakeSystemSpecificInitialize.cmake:34 (include)
  CMakeLists.txt:14 (project)


-- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES) 
-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES) 
-- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND) 
-- Configuring done (1.8s)
-- Generating done (0.2s)

Then I goto openmp, make install succeed. But kenlm cd build cmake .. failed too.

I noticed https://github.com/kpu/kenlm/actions/runs/8040140392 build failed too?

gaboolic avatar Jul 12 '24 09:07 gaboolic