open_spiel: CMake error

Hi, I am trying to setup OpenSpiel on a cluster on which I do not have sudo access. I am following the instructions as given in the Colab setup for OpenSpiel. While running cmake -DPython3_EXECUTABLE=`which python3` -DCMAKE_CXX_COMPILER=`which clang++-9` ../open_spiel, I am getting the following error:

CMake Error: Could not find CMAKE_ROOT !!! CMake has most likely not been installed correctly. Modules directory not found in path/to/env/miniconda3/share/cmake-3.5 CMake Error: Error executing cmake::LoadCache(). Aborting.

Following is the output when I run cmake --version:

CMake Error: Could not find CMAKE_ROOT !!! CMake has most likely not been installed correctly. Modules directory not found in path/to/env/miniconda3/share/cmake-3.5 cmake version 3.5.1

Please let me know how to resolve this error. Thank you in advance!

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 52

Commits related to this issue

Most upvoted comments

I am not sure if it’s only clang-9 to blame but yes only use absl::optional. I am adding a rule now to block submitting any code with std::optional because this is the third time it’s caused problems, so at least we can easily catch future instances.

Sure! I’ll put it.

I edited my post and added a few things. 😃

I’m on it 😃

Ok great @vrn25, I just uploaded the change above: can you pull changes from master and try again?

I don’t know why you’re getting that warning with abseil 😦

But the build error is definitely related to std::optional. I have a fix almost ready, will submit it some time later tonight. I’ll keep you posted.

You can do that, or prepend it:

rm -rf build
mkdir build
cd build
CXX=/path/to/conda/env/miniconda3/bin/clang-cpp cmake -DPython3_EXECUTABLE=`which python3` -DCMAKE _CXX_COMPILER=`which clang-cpp` ../open_spiel