Make fails with error
In a fresh new install, I get an error on make. This is on MacOS.
$ make -j$(nproc) [ 0%] Built target absl_spinlock_wait [ 0%] Built target absl_log_severity [ 0%] Built target absl_exponential_biased [ 0%] Building CXX object CMakeFiles/open_spiel_core.dir/fog/observation_history.cc.o [ 0%] Building CXX object CMakeFiles/open_spiel_core.dir/game_parameters.cc.o [ 0%] Building CXX object CMakeFiles/open_spiel_core.dir/matrix_game.cc.o [ 1%] Built target absl_dynamic_annotations [ 1%] Building CXX object CMakeFiles/open_spiel_core.dir/observer.cc.o In file included from /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/game_parameters.cc:15: /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:133:7: error: explicit specialization of 'value' in class scope int value() const { ^ /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:137:10: error: explicit specialization of 'value' in class scope double value() const { ^ /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:141:22: error: explicit specialization of 'value' in class scope const std::string& value() const { ^ /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:145:15: error: explicit specialization of 'value' in class scope std::string value() const { ^ /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:149:8: error: explicit specialization of 'value' in class scope bool value() const { ^ /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:153:47: error: explicit specialization of 'value' in class scope const std::map<std::string, GameParameter>& value() const { ^ /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:157:40: error: explicit specialization of 'value' in class scope std::map<std::string, GameParameter> value() const { ^ In file included from /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/fog/observation_history.cc:15: In file included from /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/fog/observation_history.h:24: In file included from /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/spiel.h:36: /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:133:7: error: explicit specialization of 'value' in class scope int value() const { ^ /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:137:10: error: explicit specialization of 'value' in class scope double value() const { ^ /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:141:22: error: explicit specialization of 'value' in class scope const std::string& value() const { ^ /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:145:15: error: explicit specialization of 'value' in class scope std::string value() const { ^ /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:149:8: error: explicit specialization of 'value' in class scope bool value() const { ^ /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:153:47: error: explicit specialization of 'value' in class scope const std::map<std::string, GameParameter>& value() const { ^ /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:157:40: error: explicit specialization of 'value' in class scope std::map<std::string, GameParameter> value() const { ^ In file included from /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/matrix_game.cc:15: In file included from /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/matrix_game.h:25: In file included from /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/normal_form_game.h:24: In file included from /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/simultaneous_move_game.h:22: In file included from /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/spiel.h:36: /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:133:7: error: explicit specialization of 'value' in class scope int value() const { ^ /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:137:10: error: explicit specialization of 'value' in class scope double value() const { ^ /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:141:22: error: explicit specialization of 'value' in class scope const std::string& value() const { ^ /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:145:15: error: explicit specialization of 'value' in class scope std::string value() const { ^ /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:149:8: error: explicit specialization of 'value' in class scope bool value() const { ^ /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:153:47: error: explicit specialization of 'value' in class scope const std::map<std::string, GameParameter>& value() const { ^ /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:157:40: error: explicit specialization of 'value' in class scope std::map<std::string, GameParameter> value() const { ^ In file included from /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/observer.cc:22: In file included from /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/spiel.h:36: /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:133:7: error: explicit specialization of 'value' in class scope int value() const { ^ /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:137:10: error: explicit specialization of 'value' in class scope double value() const { ^ /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:141:22: error: explicit specialization of 'value' in class scope const std::string& value() const { ^ /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:145:15: error: explicit specialization of 'value' in class scope std::string value() const { ^ /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:149:8: error: explicit specialization of 'value' in class scope bool value() const { ^ /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:153:47: error: explicit specialization of 'value' in class scope const std::map<std::string, GameParameter>& value() const { ^ /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:157:40: error: explicit specialization of 'value' in class scope std::map<std::string, GameParameter> value() const { ^ 7 errors generated. make[2]: *** [CMakeFiles/open_spiel_core.dir/game_parameters.cc.o] Error 1 make[2]: *** Waiting for unfinished jobs.... [ 3%] Built target absl_time_zone [ 3%] Built target absl_int128 [ 4%] Built target absl_civil_time Scanning dependencies of target absl_leak_check_disable [ 4%] Building CXX object abseil-cpp/absl/debugging/CMakeFiles/absl_leak_check_disable.dir/leak_check_disable.cc.o [ 4%] Linking CXX static library libabsl_leak_check_disable.a 7 errors generated. make[2]: *** [CMakeFiles/open_spiel_core.dir/fog/observation_history.cc.o] Error 1 7 errors generated. make[2]: *** [CMakeFiles/open_spiel_core.dir/matrix_game.cc.o] Error 1 7 errors generated. Scanning dependencies of target absl_leak_check make[2]: *** [CMakeFiles/open_spiel_core.dir/observer.cc.o] Error 1 make[1]: *** [CMakeFiles/open_spiel_core.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... Scanning dependencies of target absl_city [ 4%] Built target absl_leak_check_disable [ 4%] Building CXX object abseil-cpp/absl/debugging/CMakeFiles/absl_leak_check.dir/leak_check.cc.o [ 4%] Building CXX object abseil-cpp/absl/hash/CMakeFiles/absl_city.dir/internal/city.cc.o [ 5%] Linking CXX static library libabsl_leak_check.a [ 5%] Built target absl_leak_check [ 5%] Linking CXX static library libabsl_city.a [ 5%] Built target absl_city make: *** [all] Error 2
Hi @pratapram, we've seen this error before. You need Clang >= 9. I think on MacOS this simply means upgrading XCode. Can you show the output of clang++ --version?
Hi @lanctot ,
$ clang++ --version Apple LLVM version 10.0.0 (clang-1000.10.44.4) Target: x86_64-apple-darwin17.7.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Continuing here (closing #408).
Can you run cmake -version; we think your CMake might be too old to pick up the C++ standard requirement (in which case it'd be super easy to just add it to CXX_FLAGS.
@lanctot
btw, my mac version is 10.13.6 . I realized this is an older Macbook than usual, so 10.13.6 is the latest version for this mac.
$ cmake -version cmake version 3.18.4
CMake suite maintained and supported by Kitware (kitware.com/cmake). $
Alright, that should be new enough. Can you try:
Remove all of OpenSpiel and re-clone. Then:
deactivate # make sure you're not inside a virtualenv
rm -rf build venv
./install.sh
CXX=/usr/bin/clang++ CXX_FLAGS="-std=c++17" ./open_spiel/scripts/build_and_run_tests.sh
Followed the above instructions and got the tensorflow error again:
$ CXX=/usr/bin/clang++ CXX_FLAGS="-std=c++17" ./open_spiel/scripts/build_and_run_tests.sh \e[33mRunning ./open_spiel/scripts/build_and_run_tests.sh from /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel\e[0m Installing... \e[33mInstalling a virtualenv to ./venv. The setup is long the first time, please wait.\e[0m created virtual environment CPython3.8.0.final.0-64 in 679ms creator CPython3Posix(dest=/Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/venv, clear=False, global=False) seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/Users/swetha/Library/Application Support/virtualenv) added seed packages: pip==20.2.3, setuptools==50.3.0, wheel==0.35.1 activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator \e[33mInstalling the requirements (use --noinstall to skip).\e[0m Requirement already up-to-date: pip>=20.0.2 in ./venv/lib/python3.8/site-packages (from -r ./requirements.txt (line 15)) (20.2.3) Collecting absl-py==0.9.0 Using cached absl-py-0.9.0.tar.gz (104 kB) ERROR: Could not find a version that satisfies the requirement tensorflow==2.2.1 (from -r ./requirements.txt (line 17)) (from versions: 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0) ERROR: No matching distribution found for tensorflow==2.2.1 (from -r ./requirements.txt (line 17)) Exiting virtualenv
That's odd, can you just try changing the version to 2.3.0 in requirements.txt ?
ok. changing to tensorflow2.3.0 seems to have helped move beyond that error. Now I get the c++ error
$ CXX=/usr/bin/clang++ CXX_FLAGS="-std=c++17" ./open_spiel/scripts/build_and_run_tests.sh
\e[33mRunning ./open_spiel/scripts/build_and_run_tests.sh from /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel\e[0m
\e[33mReusing virtualenv from ./venv.\e[0m
\e[33mSkipping installation of requirements.txt.\e[0m
Building and testing in /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/build using 'python' (version 3.8.0).
-- The C compiler identification is AppleClang 10.0.0.10001044
-- The CXX compiler identification is AppleClang 10.0.0.10001044
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Current build type is: Testing
BUILD_WITH_ACPC: OFF
BUILD_WITH_EIGEN: OFF
BUILD_WITH_HANABI: OFF
BUILD_WITH_JULIA: OFF
BUILD_WITH_LIBTORCH: OFF
BUILD_WITH_PUBLIC_STATES: OFF
BUILD_WITH_PYTHON: ON
BUILD_WITH_XINXIN: OFF
BUILD_WITH_ROSHAMBO: OFF
BUILD_WITH_GAMUT: OFF
BUILD_WITH_ORTOOLS: OFF
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found Python3: /Users/swetha/.pyenv/shims/python3 (found version "3.8.0") found components: Interpreter Development Development.Module Development.Embed
Python include dirs: /Users/swetha/.pyenv/versions/3.8.0/include/python3.8
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/build
Building project
Scanning dependencies of target absl_exponential_biased
Scanning dependencies of target open_spiel_core
[ 0%] Building CXX object abseil-cpp/absl/base/CMakeFiles/absl_exponential_biased.dir/internal/exponential_biased.cc.o
[ 1%] Building CXX object CMakeFiles/open_spiel_core.dir/canonical_game_strings.cc.o
[ 1%] Linking CXX static library libabsl_exponential_biased.a
[ 1%] Built target absl_exponential_biased
Scanning dependencies of target absl_log_severity
[ 1%] Building CXX object abseil-cpp/absl/base/CMakeFiles/absl_log_severity.dir/log_severity.cc.o
[ 1%] Building CXX object CMakeFiles/open_spiel_core.dir/fog/observation_history.cc.o
[ 1%] Linking CXX static library libabsl_log_severity.a
[ 1%] Built target absl_log_severity
[ 1%] Building CXX object CMakeFiles/open_spiel_core.dir/game_parameters.cc.o
In file included from /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/fog/observation_history.cc:15:
In file included from /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/fog/observation_history.h:24:
In file included from /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/spiel.h:36:
/Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:133:7: error: explicit specialization of 'value' in class scope
int value() const {
^
/Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:137:10: error: explicit specialization of 'value' in class scope
double value() const {
^
/Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:141:22: error: explicit specialization of 'value' in class scope
const std::string& value() const {
^
/Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:145:15: error: explicit specialization of 'value' in class scope
std::string value() const {
^
/Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:149:8: error: explicit specialization of 'value' in class scope
bool value() const {
^
/Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:153:47: error: explicit specialization of 'value' in class scope
const std::map<std::string, GameParameter>& value() const {
^
/Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:157:40: error: explicit specialization of 'value' in class scope
std::map<std::string, GameParameter> value() const {
^
In file included from /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/game_parameters.cc:15:
/Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:133:7: error: explicit specialization of 'value' in class scope
int value() const {
^
/Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:137:10: error: explicit specialization of 'value' in class scope
double value() const {
^
/Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:141:22: error: explicit specialization of 'value' in class scope
const std::string& value() const {
^
/Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:145:15: error: explicit specialization of 'value' in class scope
std::string value() const {
^
/Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:149:8: error: explicit specialization of 'value' in class scope
bool value() const {
^
/Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:153:47: error: explicit specialization of 'value' in class scope
const std::map<std::string, GameParameter>& value() const {
^
/Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:157:40: error: explicit specialization of 'value' in class scope
std::map<std::string, GameParameter> value() const {
^
7 errors generated.
make[2]: *** [CMakeFiles/open_spiel_core.dir/fog/observation_history.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Scanning dependencies of target absl_spinlock_wait
7 errors generated.
[ 1%] Building CXX object abseil-cpp/absl/base/CMakeFiles/absl_spinlock_wait.dir/internal/spinlock_wait.cc.o
make[2]: *** [CMakeFiles/open_spiel_core.dir/game_parameters.cc.o] Error 1
make[1]: *** [CMakeFiles/open_spiel_core.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 1%] Linking CXX static library libabsl_spinlock_wait.a
[ 1%] Built target absl_spinlock_wait
make: *** [all] Error 2
Exiting virtualenv
Ok, progress. Whoops.. I got the flags wrong, it's CXXFLAGS not CXX_FLAGS.. can you try removing the underscore?
ok. I deleted the build and venv folders and re-ran the two scripts. I get something similar....
$ CXX=/usr/bin/clang++ CXXFLAGS="-std=c++17" ./open_spiel/scripts/build_and_run_tests.sh
\e[33mRunning ./open_spiel/scripts/build_and_run_tests.sh from /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel\e[0m
Installing...
\e[33mInstalling a virtualenv to ./venv. The setup is long the first time, please wait.\e[0m
created virtual environment CPython3.8.0.final.0-64 in 597ms
creator CPython3Posix(dest=/Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/venv, clear=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/Users/swetha/Library/Application Support/virtualenv)
added seed packages: pip==20.2.3, setuptools==50.3.0, wheel==0.35.1
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
\e[33mInstalling the requirements (use --noinstall to skip).\e[0m
Requirement already up-to-date: pip>=20.0.2 in ./venv/lib/python3.8/site-packages (from -r ./requirements.txt (line 15)) (20.2.3)
Collecting absl-py==0.9.0
Using cached absl-py-0.9.0.tar.gz (104 kB)
Collecting tensorflow==2.3.0
Downloading tensorflow-2.3.0-cp38-cp38-macosx_10_11_x86_64.whl (165.2 MB)
|████████████████████████████████| 165.2 MB 91 kB/s
Collecting IPython==5.8.0
Downloading ipython-5.8.0-py3-none-any.whl (758 kB)
|████████████████████████████████| 758 kB 6.4 MB/s
Collecting tensorflow-probability<0.8.0,>=0.7.0
Downloading tensorflow_probability-0.7.0-py2.py3-none-any.whl (981 kB)
|████████████████████████████████| 981 kB 6.9 MB/s
Collecting cvxopt==1.2.5
Downloading cvxopt-1.2.5-cp38-cp38-macosx_10_9_x86_64.whl (3.1 MB)
|████████████████████████████████| 3.1 MB 8.0 MB/s
Collecting networkx==2.4
Downloading networkx-2.4-py3-none-any.whl (1.6 MB)
|████████████████████████████████| 1.6 MB 6.2 MB/s
Collecting mock==4.0.2
Downloading mock-4.0.2-py3-none-any.whl (28 kB)
Collecting optax==0.0.1
Downloading optax-0.0.1-py3-none-any.whl (49 kB)
|████████████████████████████████| 49 kB 6.8 MB/s
Collecting matplotlib==3.2.2
Downloading matplotlib-3.2.2-cp38-cp38-macosx_10_9_x86_64.whl (12.5 MB)
|████████████████████████████████| 12.5 MB 246 kB/s
Collecting nashpy==0.0.19
Downloading nashpy-0.0.19.tar.gz (8.3 kB)
Collecting scipy==1.4.1
Downloading scipy-1.4.1-cp38-cp38-macosx_10_9_x86_64.whl (28.8 MB)
|████████████████████████████████| 28.8 MB 7.0 MB/s
Collecting attrs==19.3.0
Downloading attrs-19.3.0-py2.py3-none-any.whl (39 kB)
Collecting jax==0.1.67
Downloading jax-0.1.67.tar.gz (335 kB)
|████████████████████████████████| 335 kB 6.2 MB/s
Collecting jaxlib==0.1.47
Downloading jaxlib-0.1.47-cp38-none-macosx_10_9_x86_64.whl (39.4 MB)
|████████████████████████████████| 39.4 MB 6.4 MB/s
Collecting dm-haiku==0.0.1
Downloading dm_haiku-0.0.1-py3-none-any.whl (229 kB)
|████████████████████████████████| 229 kB 6.0 MB/s
Collecting six
Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
Collecting protobuf>=3.9.2
Using cached protobuf-3.13.0-cp38-cp38-macosx_10_9_x86_64.whl (1.3 MB)
Collecting google-pasta>=0.1.8
Using cached google_pasta-0.2.0-py3-none-any.whl (57 kB)
Collecting h5py<2.11.0,>=2.10.0
Downloading h5py-2.10.0-cp38-cp38-macosx_10_9_x86_64.whl (3.0 MB)
|████████████████████████████████| 3.0 MB 6.4 MB/s
Collecting astunparse==1.6.3
Using cached astunparse-1.6.3-py2.py3-none-any.whl (12 kB)
Collecting opt-einsum>=2.3.2
Using cached opt_einsum-3.3.0-py3-none-any.whl (65 kB)
Collecting termcolor>=1.1.0
Using cached termcolor-1.1.0.tar.gz (3.9 kB)
Collecting numpy<1.19.0,>=1.16.0
Downloading numpy-1.18.5-cp38-cp38-macosx_10_9_x86_64.whl (15.1 MB)
|████████████████████████████████| 15.1 MB 6.4 MB/s
Collecting keras-preprocessing<1.2,>=1.1.1
Using cached Keras_Preprocessing-1.1.2-py2.py3-none-any.whl (42 kB)
Collecting tensorboard<3,>=2.3.0
Using cached tensorboard-2.3.0-py3-none-any.whl (6.8 MB)
Collecting tensorflow-estimator<2.4.0,>=2.3.0
Using cached tensorflow_estimator-2.3.0-py2.py3-none-any.whl (459 kB)
Collecting grpcio>=1.8.6
Downloading grpcio-1.32.0-cp38-cp38-macosx_10_9_x86_64.whl (3.3 MB)
|████████████████████████████████| 3.3 MB 6.5 MB/s
Collecting wrapt>=1.11.1
Using cached wrapt-1.12.1.tar.gz (27 kB)
Collecting gast==0.3.3
Using cached gast-0.3.3-py2.py3-none-any.whl (9.7 kB)
Requirement already satisfied, skipping upgrade: wheel>=0.26 in ./venv/lib/python3.8/site-packages (from tensorflow==2.3.0->-r ./requirements.txt (line 17)) (0.35.1)
Collecting decorator
Downloading decorator-4.4.2-py2.py3-none-any.whl (9.2 kB)
Collecting pickleshare
Downloading pickleshare-0.7.5-py2.py3-none-any.whl (6.9 kB)
Collecting appnope; sys_platform == "darwin"
Downloading appnope-0.1.0-py2.py3-none-any.whl (4.0 kB)
Requirement already satisfied, skipping upgrade: setuptools>=18.5 in ./venv/lib/python3.8/site-packages (from IPython==5.8.0->-r ./requirements.txt (line 18)) (50.3.0)
Collecting pygments
Downloading Pygments-2.7.1-py3-none-any.whl (944 kB)
|████████████████████████████████| 944 kB 6.0 MB/s
Collecting prompt-toolkit<2.0.0,>=1.0.4
Downloading prompt_toolkit-1.0.18-py3-none-any.whl (245 kB)
|████████████████████████████████| 245 kB 1.5 MB/s
Collecting pexpect; sys_platform != "win32"
Downloading pexpect-4.8.0-py2.py3-none-any.whl (59 kB)
|████████████████████████████████| 59 kB 4.6 MB/s
Collecting traitlets>=4.2
Downloading traitlets-5.0.5-py3-none-any.whl (100 kB)
|████████████████████████████████| 100 kB 5.2 MB/s
Collecting simplegeneric>0.8
Downloading simplegeneric-0.8.1.zip (12 kB)
Collecting cloudpickle>=0.6.1
Downloading cloudpickle-1.6.0-py3-none-any.whl (23 kB)
Collecting chex>=0.0.2
Downloading chex-0.0.2-py3-none-any.whl (37 kB)
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1
Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Collecting python-dateutil>=2.1
Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting kiwisolver>=1.0.1
Downloading kiwisolver-1.2.0-cp38-cp38-macosx_10_9_x86_64.whl (60 kB)
|████████████████████████████████| 60 kB 6.9 MB/s
Collecting cycler>=0.10
Downloading cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)
Collecting requests<3,>=2.21.0
Using cached requests-2.24.0-py2.py3-none-any.whl (61 kB)
Collecting tensorboard-plugin-wit>=1.6.0
Using cached tensorboard_plugin_wit-1.7.0-py3-none-any.whl (779 kB)
Collecting markdown>=2.6.8
Downloading Markdown-3.3.1-py3-none-any.whl (95 kB)
|████████████████████████████████| 95 kB 4.3 MB/s
Collecting google-auth-oauthlib<0.5,>=0.4.1
Using cached google_auth_oauthlib-0.4.1-py2.py3-none-any.whl (18 kB)
Collecting google-auth<2,>=1.6.3
Downloading google_auth-1.22.1-py2.py3-none-any.whl (114 kB)
|████████████████████████████████| 114 kB 6.1 MB/s
Collecting werkzeug>=0.11.15
Using cached Werkzeug-1.0.1-py2.py3-none-any.whl (298 kB)
Collecting wcwidth
Downloading wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)
Collecting ptyprocess>=0.5
Downloading ptyprocess-0.6.0-py2.py3-none-any.whl (39 kB)
Collecting ipython-genutils
Downloading ipython_genutils-0.2.0-py2.py3-none-any.whl (26 kB)
Collecting toolz>=0.9.0
Downloading toolz-0.11.1-py3-none-any.whl (55 kB)
|████████████████████████████████| 55 kB 3.5 MB/s
Collecting certifi>=2017.4.17
Using cached certifi-2020.6.20-py2.py3-none-any.whl (156 kB)
Collecting idna<3,>=2.5
Using cached idna-2.10-py2.py3-none-any.whl (58 kB)
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
Using cached urllib3-1.25.10-py2.py3-none-any.whl (127 kB)
Collecting chardet<4,>=3.0.2
Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting requests-oauthlib>=0.7.0
Using cached requests_oauthlib-1.3.0-py2.py3-none-any.whl (23 kB)
Collecting rsa<5,>=3.1.4; python_version >= "3.5"
Using cached rsa-4.6-py3-none-any.whl (47 kB)
Collecting cachetools<5.0,>=2.0.0
Using cached cachetools-4.1.1-py3-none-any.whl (10 kB)
Collecting pyasn1-modules>=0.2.1
Using cached pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
Collecting oauthlib>=3.0.0
Using cached oauthlib-3.1.0-py2.py3-none-any.whl (147 kB)
Collecting pyasn1>=0.1.3
Using cached pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Building wheels for collected packages: absl-py, nashpy, jax, termcolor, wrapt, simplegeneric
Building wheel for absl-py (setup.py) ... done
Created wheel for absl-py: filename=absl_py-0.9.0-py3-none-any.whl size=121932 sha256=6c36ac2940aaa14c2cc32a89c7b6a5b75a2f6bf1c86dcbea77e82971e8daf06a
Stored in directory: /Users/swetha/Library/Caches/pip/wheels/1d/10/8e/2f79b924179ff1e6510933d63eb851bea01054fff262343b7a
Building wheel for nashpy (setup.py) ... done
Created wheel for nashpy: filename=nashpy-0.0.19-py3-none-any.whl size=10814 sha256=c836fac99bcf383c5b229bd74b9760474d904488c755aa37c6009ec324a31977
Stored in directory: /Users/swetha/Library/Caches/pip/wheels/2e/c1/86/88624bd1d29852e32cf5a7e7dc96f51b76de7b4972cd2d81fb
Building wheel for jax (setup.py) ... done
Created wheel for jax: filename=jax-0.1.67-py3-none-any.whl size=385148 sha256=ca1b3cb718c63b4e532554a4af5905fbd7a15d720e8739a8f187729e62384b5d
Stored in directory: /Users/swetha/Library/Caches/pip/wheels/5d/33/36/fb80f03e68e78a679583d4ab11d34257572a45c621311f9d38
Building wheel for termcolor (setup.py) ... done
Created wheel for termcolor: filename=termcolor-1.1.0-py3-none-any.whl size=4830 sha256=494ae9b435ff5164651f009f926377eb9e126bf3613709b0aac2e6d522484691
Stored in directory: /Users/swetha/Library/Caches/pip/wheels/a0/16/9c/5473df82468f958445479c59e784896fa24f4a5fc024b0f501
Building wheel for wrapt (setup.py) ... done
Created wheel for wrapt: filename=wrapt-1.12.1-cp38-cp38-macosx_10_13_x86_64.whl size=32625 sha256=86d7d07c112f5e3fb7861f4dbd90dd354c161aa2501bf9df8cacccf5b74f93ed
Stored in directory: /Users/swetha/Library/Caches/pip/wheels/5f/fd/9e/b6cf5890494cb8ef0b5eaff72e5d55a70fb56316007d6dfe73
Building wheel for simplegeneric (setup.py) ... done
Created wheel for simplegeneric: filename=simplegeneric-0.8.1-py3-none-any.whl size=5074 sha256=473e79febe2d10d099787361037627c25d700dc4439d01cf2e3c256fce523ff1
Stored in directory: /Users/swetha/Library/Caches/pip/wheels/0b/32/6b/5f5447909a062da20dfe432fa945d8f98636692637deccaa8a
Successfully built absl-py nashpy jax termcolor wrapt simplegeneric
Installing collected packages: six, absl-py, numpy, scipy, protobuf, google-pasta, h5py, astunparse, opt-einsum, termcolor, keras-preprocessing, certifi, idna, urllib3, chardet, requests, tensorboard-plugin-wit, markdown, oauthlib, requests-oauthlib, pyasn1, rsa, cachetools, pyasn1-modules, google-auth, google-auth-oauthlib, werkzeug, grpcio, tensorboard, tensorflow-estimator, wrapt, gast, tensorflow, decorator, pickleshare, appnope, pygments, wcwidth, prompt-toolkit, ptyprocess, pexpect, ipython-genutils, traitlets, simplegeneric, IPython, cloudpickle, tensorflow-probability, cvxopt, networkx, mock, jax, toolz, jaxlib, chex, optax, pyparsing, python-dateutil, kiwisolver, cycler, matplotlib, nashpy, attrs, dm-haiku
Successfully installed IPython-5.8.0 absl-py-0.9.0 appnope-0.1.0 astunparse-1.6.3 attrs-19.3.0 cachetools-4.1.1 certifi-2020.6.20 chardet-3.0.4 chex-0.0.2 cloudpickle-1.6.0 cvxopt-1.2.5 cycler-0.10.0 decorator-4.4.2 dm-haiku-0.0.1 gast-0.3.3 google-auth-1.22.1 google-auth-oauthlib-0.4.1 google-pasta-0.2.0 grpcio-1.32.0 h5py-2.10.0 idna-2.10 ipython-genutils-0.2.0 jax-0.1.67 jaxlib-0.1.47 keras-preprocessing-1.1.2 kiwisolver-1.2.0 markdown-3.3.1 matplotlib-3.2.2 mock-4.0.2 nashpy-0.0.19 networkx-2.4 numpy-1.18.5 oauthlib-3.1.0 opt-einsum-3.3.0 optax-0.0.1 pexpect-4.8.0 pickleshare-0.7.5 prompt-toolkit-1.0.18 protobuf-3.13.0 ptyprocess-0.6.0 pyasn1-0.4.8 pyasn1-modules-0.2.8 pygments-2.7.1 pyparsing-2.4.7 python-dateutil-2.8.1 requests-2.24.0 requests-oauthlib-1.3.0 rsa-4.6 scipy-1.4.1 simplegeneric-0.8.1 six-1.15.0 tensorboard-2.3.0 tensorboard-plugin-wit-1.7.0 tensorflow-2.3.0 tensorflow-estimator-2.3.0 tensorflow-probability-0.7.0 termcolor-1.1.0 toolz-0.11.1 traitlets-5.0.5 urllib3-1.25.10 wcwidth-0.2.5 werkzeug-1.0.1 wrapt-1.12.1
Building and testing in /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/build using 'python' (version 3.8.0).
-- The C compiler identification is AppleClang 10.0.0.10001044
-- The CXX compiler identification is AppleClang 10.0.0.10001044
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Current build type is: Testing
BUILD_WITH_ACPC: OFF
BUILD_WITH_EIGEN: OFF
BUILD_WITH_HANABI: OFF
BUILD_WITH_JULIA: OFF
BUILD_WITH_LIBTORCH: OFF
BUILD_WITH_PUBLIC_STATES: OFF
BUILD_WITH_PYTHON: ON
BUILD_WITH_XINXIN: OFF
BUILD_WITH_ROSHAMBO: OFF
BUILD_WITH_GAMUT: OFF
BUILD_WITH_ORTOOLS: OFF
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found Python3: /Users/swetha/.pyenv/shims/python3 (found version "3.8.0") found components: Interpreter Development Development.Module Development.Embed
Python include dirs: /Users/swetha/.pyenv/versions/3.8.0/include/python3.8
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/build
Building project
Scanning dependencies of target open_spiel_core
Scanning dependencies of target absl_exponential_biased
[ 0%] Building CXX object abseil-cpp/absl/base/CMakeFiles/absl_exponential_biased.dir/internal/exponential_biased.cc.o
[ 1%] Building CXX object CMakeFiles/open_spiel_core.dir/canonical_game_strings.cc.o
[ 1%] Linking CXX static library libabsl_exponential_biased.a
[ 1%] Built target absl_exponential_biased
Scanning dependencies of target absl_log_severity
[ 1%] Building CXX object abseil-cpp/absl/base/CMakeFiles/absl_log_severity.dir/log_severity.cc.o
[ 1%] Building CXX object CMakeFiles/open_spiel_core.dir/fog/observation_history.cc.o
[ 1%] Linking CXX static library libabsl_log_severity.a
[ 1%] Built target absl_log_severity
Scanning dependencies of target absl_spinlock_wait
[ 1%] Building CXX object abseil-cpp/absl/base/CMakeFiles/absl_spinlock_wait.dir/internal/spinlock_wait.cc.o
[ 1%] Linking CXX static library libabsl_spinlock_wait.a
[ 1%] Built target absl_spinlock_wait
Scanning dependencies of target absl_raw_logging_internal
[ 1%] Building CXX object abseil-cpp/absl/base/CMakeFiles/absl_raw_logging_internal.dir/internal/raw_logging.cc.o
In file included from /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/fog/observation_history.cc:15:
In file included from /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/fog/observation_history.h:24:
In file included from /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/spiel.h:36:
/Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:133:7: error: explicit specialization of 'value' in class scope
int value() const {
^
/Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:137:10: error: explicit specialization of 'value' in class scope
double value() const {
^
/Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:141:22: error: explicit specialization of 'value' in class scope
const std::string& value() const {
^
/Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:145:15: error: explicit specialization of 'value' in class scope
std::string value() const {
^
/Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:149:8: error: explicit specialization of 'value' in class scope
bool value() const {
^
/Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:153:47: error: explicit specialization of 'value' in class scope
const std::map<std::string, GameParameter>& value() const {
^
/Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:157:40: error: explicit specialization of 'value' in class scope
std::map<std::string, GameParameter> value() const {
^
[ 1%] Linking CXX static library libabsl_raw_logging_internal.a
[ 1%] Built target absl_raw_logging_internal
[ 1%] Building CXX object CMakeFiles/open_spiel_core.dir/game_parameters.cc.o
7 errors generated.
make[2]: *** [CMakeFiles/open_spiel_core.dir/fog/observation_history.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Scanning dependencies of target absl_dynamic_annotations
[ 1%] Building CXX object abseil-cpp/absl/base/CMakeFiles/absl_dynamic_annotations.dir/dynamic_annotations.cc.o
[ 2%] Linking CXX static library libabsl_dynamic_annotations.a
[ 2%] Built target absl_dynamic_annotations
Scanning dependencies of target absl_throw_delegate
[ 2%] Building CXX object abseil-cpp/absl/base/CMakeFiles/absl_throw_delegate.dir/internal/throw_delegate.cc.o
In file included from /Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/game_parameters.cc:15:
/Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:133:7: error: explicit specialization of 'value' in class scope
int value() const {
^
/Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:137:10: error: explicit specialization of 'value' in class scope
double value() const {
^
/Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:141:22: error: explicit specialization of 'value' in class scope
const std::string& value() const {
^
/Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:145:15: error: explicit specialization of 'value' in class scope
std::string value() const {
^
/Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:149:8: error: explicit specialization of 'value' in class scope
bool value() const {
^
/Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:153:47: error: explicit specialization of 'value' in class scope
const std::map<std::string, GameParameter>& value() const {
^
/Users/swetha/Desktop/OrbitalVelocity/ai/open_spiel/open_spiel/../open_spiel/game_parameters.h:157:40: error: explicit specialization of 'value' in class scope
std::map<std::string, GameParameter> value() const {
^
[ 2%] Linking CXX static library libabsl_throw_delegate.a
7 errors generated.
make[2]: *** [CMakeFiles/open_spiel_core.dir/game_parameters.cc.o] Error 1
make[1]: *** [CMakeFiles/open_spiel_core.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 2%] Built target absl_throw_delegate
make: *** [all] Error 2
Exiting virtualenv
Hi @lanctot
I have met a similar error. My cmake version is 3.17.3. Build from source with CC=/sw/arcts/centos7/gcc/9.2.0/bin/gcc CXX=/sw/arcts/centos7/gcc/9.2.0/bin/g++ CXXFLAGS="-std=c++17" cmake -DPython_TARGET_VERSION=3.6 -DCMAKE_CXX_COMPILER=/sw/arcts/centos7/gcc/9.2.0/bin/g++ ../open_spiel.
The error is
(spiel_env) [wangyzh@gl-login2 build]$ make
Scanning dependencies of target open_spiel_core
[ 1%] Building CXX object CMakeFiles/open_spiel_core.dir/canonical_game_strings.cc.o
[ 1%] Building CXX object CMakeFiles/open_spiel_core.dir/fog/observation_history.cc.o
In file included from /home/wangyzh/open_spiel/open_spiel/../open_spiel/spiel.h:36,
from /home/wangyzh/open_spiel/open_spiel/../open_spiel/fog/observation_history.h:24,
from /home/wangyzh/open_spiel/open_spiel/fog/observation_history.cc:15:
/home/wangyzh/open_spiel/open_spiel/../open_spiel/game_parameters.h:132:13: error: explicit specialization in non-namespace scope ‘class open_spiel::GameParameter’
132 | template <>
| ^
/home/wangyzh/open_spiel/open_spiel/../open_spiel/game_parameters.h:136:13: error: explicit specialization in non-namespace scope ‘class open_spiel::GameParameter’
136 | template <>
| ^
/home/wangyzh/open_spiel/open_spiel/../open_spiel/game_parameters.h:137:10: error: ‘double open_spiel::GameParameter::value() const’ cannot be overloaded with ‘int open_spiel::GameParameter::value() const’
137 | double value() const {
| ^~~~~
/home/wangyzh/open_spiel/open_spiel/../open_spiel/game_parameters.h:133:7: note: previous declaration ‘int open_spiel::GameParameter::value() const’
133 | int value() const {
| ^~~~~
/home/wangyzh/open_spiel/open_spiel/../open_spiel/game_parameters.h:140:13: error: explicit specialization in non-namespace scope ‘class open_spiel::GameParameter’
140 | template <>
| ^
/home/wangyzh/open_spiel/open_spiel/../open_spiel/game_parameters.h:141:22: error: ‘const string& open_spiel::GameParameter::value() const’ cannot be overloaded with ‘int open_spiel::GameParameter::value() const’
141 | const std::string& value() const {
| ^~~~~
/home/wangyzh/open_spiel/open_spiel/../open_spiel/game_parameters.h:133:7: note: previous declaration ‘int open_spiel::GameParameter::value() const’
133 | int value() const {
| ^~~~~
/home/wangyzh/open_spiel/open_spiel/../open_spiel/game_parameters.h:144:13: error: explicit specialization in non-namespace scope ‘class open_spiel::GameParameter’
144 | template <>
| ^
/home/wangyzh/open_spiel/open_spiel/../open_spiel/game_parameters.h:145:15: error: ‘std::string open_spiel::GameParameter::value() const’ cannot be overloaded with ‘int open_spiel::GameParameter::value() const’
145 | std::string value() const {
| ^~~~~
/home/wangyzh/open_spiel/open_spiel/../open_spiel/game_parameters.h:133:7: note: previous declaration ‘int open_spiel::GameParameter::value() const’
133 | int value() const {
| ^~~~~
/home/wangyzh/open_spiel/open_spiel/../open_spiel/game_parameters.h:148:13: error: explicit specialization in non-namespace scope ‘class open_spiel::GameParameter’
148 | template <>
| ^
/home/wangyzh/open_spiel/open_spiel/../open_spiel/game_parameters.h:149:8: error: ‘bool open_spiel::GameParameter::value() const’ cannot be overloaded with ‘int open_spiel::GameParameter::value() const’
149 | bool value() const {
| ^~~~~
/home/wangyzh/open_spiel/open_spiel/../open_spiel/game_parameters.h:133:7: note: previous declaration ‘int open_spiel::GameParameter::value() const’
133 | int value() const {
| ^~~~~
/home/wangyzh/open_spiel/open_spiel/../open_spiel/game_parameters.h:152:13: error: explicit specialization in non-namespace scope ‘class open_spiel::GameParameter’
152 | template <>
| ^
/home/wangyzh/open_spiel/open_spiel/../open_spiel/game_parameters.h:153:47: error: ‘const std::map<std::__cxx11::basic_string
This happens when I build from source on CentOS. The installation works on my Mac.
I get a similar error when I try it in Ubuntu18.04. Here is the end of the error
/home/pratap_ram/open_spiel/open_spiel/../open_spiel/game_parameters.h:157:40: error: explicit specialization of 'value' in class scope std::map<std::string, GameParameter> value() const { ^ 7 errors generated. CMakeFiles/open_spiel_core.dir/build.make:94: recipe for target 'CMakeFiles/open_spiel_core.dir/fog/observation_history.cc.o' failed make[2]: *** [CMakeFiles/open_spiel_core.dir/fog/observation_history.cc.o] Error 1 make[2]: *** Waiting for unfinished jobs....
Can you install clang 10? sudo apt-get install clang-10 ?
Edit: Hmm, probably should just be clang. Can you tell me the version of clang and cmake? It is getting quite hard to help as I cannot reproduce it :(
Edit 2: I compiled on MacOS again this morning to follow up on another issue, and I didn't run into the same problem you did. If it helps, my clang version is higher (but this is a C++17 thing, should work with clang 9 and -std=c++17):
Apple clang version 12.0.0 (clang-1200.0.32.2)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
lanctot@lanctot-macbookair2:~$
But you should not need this high version. Our travis tests pass with lower versions.
@lanctot This are the steps to reproduce the error on ubuntu. It is very consistent for me:
- Create a new Ubuntu 18.04 instance and ssh into the instance
- git clone https://github.com/deepmind/open_spiel.git
- cd open_spiel
- ./install.sh
- ./open_spiel/scripts/build_and_run_tests.sh
You will hit the error.
Can you please tell me what version of clang and cmake it uses?
I think you will need clang 10:
sudo apt-get install clang-10
ok. installing clang-10 in ubuntu1804 was difficult because of incombatible dependancies. Ubuntu2004-focal came with clang-10 in the default repository, with compatible dependancies. It worked.
I recommend ubuntu-2004-focal as the default OS.
Perfect. It should be already the recommended OS for OpenSpiel. Did you see any recommendation to use Ubuntu 18.04? Maybe we should make that clearer, or put a reference to this error somewhere. Let me know what you think.
Hi @lanctot, any suggestions on how to use cmake to compile the OpenSpiel? The university-owned cluster with CentOS currently only supports cmake.
Edit: the cmake version is 3.17.3 and compiling failed with
CC=/sw/arcts/centos7/gcc/9.2.0/bin/gcc CXX=/sw/arcts/centos7/gcc/9.2.0/bin/g++ CXXFLAGS="-std=c++17" cmake -DPython_TARGET_VERSION=3.6 -DCMAKE_CXX_COMPILER=/sw/arcts/centos7/gcc/9.2.0/bin/g++ ../open_spiel
Hi @lanctot, any suggestions on how to use cmake to compile the OpenSpiel?
We exclusively use cmake. I guess you meant to say g++? We no longer test with g++ but it should still work, I think the compiler just too old.
Can you try with the 0.1.0 release instead of master? I think it was before we made those changes.
Other options: use the docker container, or install clang-10 locally (i.e. as your user account in your home dir) and use it instead.