Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Undefined reference errors when running make #29

Open
hlzhang109 opened this issue Jul 8, 2023 · 0 comments
Open

Undefined reference errors when running make #29

hlzhang109 opened this issue Jul 8, 2023 · 0 comments

Comments

@hlzhang109
Copy link

CMakeFiles/profile_dipcc.dir/dipcc/cc/cfrstats.cc.o: In function pybind11::capsule::name() const [clone .isra.564]': cfrstats.cc:(.text+0x2297): undefined reference to PyCapsule_GetName'
cfrstats.cc:(.text+0x22b1): undefined reference to PyErr_Occurred' CMakeFiles/profile_dipcc.dir/dipcc/cc/cfrstats.cc.o: In function pybind11::setattr(pybind11::handle, char const*, pybind11::handle)':
cfrstats.cc:(.text.ZN8pybind117setattrENS_6handleEPKcS0[ZN8pybind117setattrENS_6handleEPKcS0]+0x7): undefined reference to PyObject_SetAttrString' CMakeFiles/profile_dipcc.dir/dipcc/cc/cfrstats.cc.o: In function pybind11::repr(pybind11::handle)':
cfrstats.cc:(.text._ZN8pybind114reprENS_6handleE[_ZN8pybind114reprENS_6handleE]+0xd): undefined reference to PyObject_Repr' CMakeFiles/profile_dipcc.dir/dipcc/cc/encoding_impl.cc.o: In function pybind11::capsule::name() const [clone .isra.472]':
encoding_impl.cc:(.text+0x667): undefined reference to PyCapsule_GetName' encoding_impl.cc:(.text+0x681): undefined reference to PyErr_Occurred'
CMakeFiles/profile_dipcc.dir/dipcc/cc/encoding_v1.cc.o: In function pybind11::capsule::name() const [clone .isra.538]': encoding_v1.cc:(.text+0xda7): undefined reference to PyCapsule_GetName'
encoding_v1.cc:(.text+0xdc1): undefined reference to PyErr_Occurred' CMakeFiles/profile_dipcc.dir/dipcc/cc/encoding_v2.cc.o: In function pybind11::capsule::name() const [clone .isra.538]':
encoding_v2.cc:(.text+0xff7): undefined reference to PyCapsule_GetName' encoding_v2.cc:(.text+0x1011): undefined reference to PyErr_Occurred'
CMakeFiles/profile_dipcc.dir/dipcc/cc/json.cc.o: In function pybind11::capsule::name() const [clone .isra.581]': json.cc:(.text+0x677): undefined reference to PyCapsule_GetName'
json.cc:(.text+0x691): undefined reference to `PyErr_Occurred'
collect2: error: ld returned 1 exit status
make[3]: *** [CMakeFiles/profile_dipcc.dir/build.make:448: out/profile_dipcc] Error 1
make[3]: Leaving directory '/hanlinzhang/diplomacy/dipcc/build'
make[2]: *** [CMakeFiles/Makefile2:141: CMakeFiles/profile_dipcc.dir/all] Error 2
make[2]: Leaving directory '/hanlinzhang/diplomacy/dipcc/build'
make[1]: *** [Makefile:91: all] Error 2
make[1]: Leaving directory '/hanlinzhang/diplomacy/dipcc/build'
protoc conf/*.proto --python_out ./ --mypy_out ./
Writing mypy to conf/agents_pb2.pyi
Writing mypy to conf/common_pb2.pyi
Writing mypy to conf/conf_pb2.pyi
Writing mypy to conf/misc_pb2.pyi
python heyhi/bin/patch_protos.py conf/*pb2.py
Patching conf/agents_pb2.py
Generating conf/agents_cfgs.py
Also patching conf/agents_pb2.pyi
Generating conf/agents_cfgs.pyi
Patching conf/common_pb2.py
Generating conf/common_cfgs.py
Also patching conf/common_pb2.pyi
Generating conf/common_cfgs.pyi
Patching conf/conf_pb2.py
Generating conf/conf_cfgs.py
Also patching conf/conf_pb2.pyi
Generating conf/conf_cfgs.pyi
Patching conf/misc_pb2.py
Generating conf/misc_cfgs.py
Also patching conf/misc_pb2.pyi
Generating conf/misc_cfgs.pyi
mkdir -p build/selfplay
cd build/selfplay
&& cmake ../../fairdiplomacy/selfplay/cc -DPOSTMAN_DIR=/hanlinzhang/diplomacy/thirdparty/github/fairinternal/postman -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=../../fairdiplomacy/selfplay
&& make -j
-- Found PythonInterp: /n/home07/hanlinzhang/.conda/envs/diplomacy/bin/python3.7 (found suitable version "3.7.12", minimum required is "3.7")
-- pybind11 v2.3.dev1
CMake Deprecation Warning at /hanlinzhang/diplomacy/thirdparty/github/fairinternal/postman/third_party/grpc/third_party/googletest/CMakeLists.txt:4 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

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

CMake Deprecation Warning at /hanlinzhang/diplomacy/thirdparty/github/fairinternal/postman/third_party/grpc/third_party/googletest/googlemock/CMakeLists.txt:45 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

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

CMake Deprecation Warning at /hanlinzhang/diplomacy/thirdparty/github/fairinternal/postman/third_party/grpc/third_party/googletest/googletest/CMakeLists.txt:56 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

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

-- Found PythonInterp: /n/home07/hanlinzhang/.conda/envs/diplomacy/bin/python3.7 (found version "3.7.12")
-- Caffe2: CUDA detected: 12.0
-- Caffe2: CUDA nvcc is: /n/sw/helmod-rocky8/apps/Core/cuda/12.0.1-fasrc01/cuda/bin/nvcc
-- Caffe2: CUDA toolkit directory: /n/sw/helmod-rocky8/apps/Core/cuda/12.0.1-fasrc01/cuda
-- Caffe2: Header version is: 12.0
CMake Warning (dev) at /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/share/cmake/Caffe2/public/cuda.cmake:106 (find_package):
Policy CMP0074 is not set: find_package uses _ROOT variables.
Run "cmake --help-policy CMP0074" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

Environment variable CUDNN_ROOT is set to:

/n/sw/helmod-rocky8/apps/Core/cudnn/8.8.0.121_cuda12-fasrc01

For compatibility, CMake is ignoring the variable.
Call Stack (most recent call first):
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/share/cmake/Caffe2/Caffe2Config.cmake:88 (include)
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:40 (find_package)
CMakeLists.txt:47 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found cuDNN: v8.8.0 (include: /n/home07/hanlinzhang/.conda/envs/diplomacy/include, library: /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/libcudnn.so)
-- Added CUDA NVCC flags for: -gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_70,code=sm_70
-- MKL_ARCH: intel64
-- MKL_LINK: dynamic
-- MKL_INTERFACE_FULL: intel_ilp64
-- MKL_THREADING: intel_thread
-- MKL_MPI: intelmpi
-- Configuring done (8.6s)
CMake Warning at /hanlinzhang/diplomacy/thirdparty/github/fairinternal/postman/third_party/pybind11/tools/pybind11Tools.cmake:131 (add_library):
Cannot generate a safe runtime search path for target rela because files in
some directories may conflict with libraries in implicit directories:

runtime library [libnvToolsExt.so.1] in /n/sw/helmod-rocky8/apps/Core/cuda/12.0.1-fasrc01/cuda/lib64 may be hidden by files in:
  /n/home07/hanlinzhang/.conda/envs/diplomacy/lib
runtime library [libcurand.so.10] in /n/sw/helmod-rocky8/apps/Core/cuda/12.0.1-fasrc01/cuda/lib64 may be hidden by files in:
  /n/home07/hanlinzhang/.conda/envs/diplomacy/lib

Some of these libraries may not be found correctly.
Call Stack (most recent call first):
CMakeLists.txt:57 (pybind11_add_module)

CMake Warning at CMakeLists.txt:72 (add_executable):
Cannot generate a safe runtime search path for target
prioritized_replay_test because files in some directories may conflict with
libraries in implicit directories:

runtime library [libnvToolsExt.so.1] in /n/sw/helmod-rocky8/apps/Core/cuda/12.0.1-fasrc01/cuda/lib64 may be hidden by files in:
  /n/home07/hanlinzhang/.conda/envs/diplomacy/lib
runtime library [libcurand.so.10] in /n/sw/helmod-rocky8/apps/Core/cuda/12.0.1-fasrc01/cuda/lib64 may be hidden by files in:
  /n/home07/hanlinzhang/.conda/envs/diplomacy/lib

Some of these libraries may not be found correctly.

-- Generating done (0.6s)
-- Build files have been written to: /hanlinzhang/diplomacy/build/selfplay

[ 16%] Built target gtest
[ 25%] Building CXX object CMakeFiles/rela.dir/pybind.cc.o
[ 58%] Built target gtest_main
[ 58%] Built target gmock
[ 75%] Built target gmock_main
[ 83%] Linking CXX executable prioritized_replay_test
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyUnicode_InternFromString' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyInstanceMethod_Type'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyDict_DelItemString' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyLong_FromLong'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyModule_Create2' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyLong_AsVoidPtr'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyExc_NotImplementedError' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyLong_FromSsize_t'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_SetAttrString' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyType_IsSubtype'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyErr_Fetch' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyException_SetTraceback'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyExc_RuntimeError' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyComplex_Type'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyDict_Copy' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to _PyThreadState_UncheckedGet'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyEval_RestoreThread' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyDict_Size'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyUnicode_Type' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyExc_MemoryError'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyStaticMethod_New' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyUnicode_DecodeUTF8'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyErr_Print' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyUnicode_FromString'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyBytes_FromString' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyBaseObject_Type'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyNumber_Check' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PySlice_Type'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyList_Type' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyModule_Type'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyThread_tss_create' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_HasAttrString'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_GetBuffer' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyTuple_Pack'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyBytes_AsString' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyStructSequence_New'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyCapsule_GetContext' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to _PyObject_NextNotImplemented'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyList_SetItem' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to _PyType_Lookup'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyThreadState_Clear' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyMemoryView_FromMemory'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyErr_Clear' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyArg_ParseTupleAndKeywords'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyCallable_Check' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyNumber_Xor'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyCapsule_New' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyMem_Calloc'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyLong_AsUnsignedLongLong' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyErr_ExceptionMatches'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyBuffer_Release' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyBytes_Size'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyNumber_Or' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyLong_AsSsize_t'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PySequence_Size' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyExc_TypeError'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyComplex_RealAsDouble' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyNumber_Index'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyLong_AsUnsignedLong' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyModule_New'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyEval_InitThreads' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyNumber_Long'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyType_Ready' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyGILState_Check'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyFloat_FromDouble' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_IsTrue'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyStructSequence_InitType' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PySet_New'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyExc_DeprecationWarning' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyTuple_GetItem'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyBytes_Type' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to _PyObject_GetDictPtr'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_Size' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_Malloc'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyUnicode_InternInPlace' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyLong_AsLongLong'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyTuple_SetItem' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyBool_Type'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyThread_tss_get' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyErr_Restore'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyErr_WarnEx' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyCapsule_SetName'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyErr_WarnExplicit' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_Type'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_Call' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyThread_tss_alloc'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PySequence_List' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyFrozenSet_Type'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyLong_FromSize_t' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyList_Size'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyTuple_Type' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyCFunction_Type'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_GetIter' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyGILState_GetThisThreadState'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyDict_GetItem' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyBytes_AsStringAndSize'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyUnicode_AsEncodedString' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyMethod_Type'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyTuple_New' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyUnicode_AsUTF8'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyImport_AddModule' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_CallFunctionObjArgs'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PySlice_Unpack' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyExc_ImportError'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyExc_AttributeError' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PySequence_Fast'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyErr_Occurred' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyThreadState_DeleteCurrent'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PySequence_Tuple' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyWeakref_NewRef'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyComplex_ImagAsDouble' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyUnicode_AsUTF8String'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyEval_GetBuiltins' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyBytes_FromStringAndSize'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyExc_ValueError' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyUnicode_FromFormat'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyNumber_And' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to _Py_FalseStruct'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyCapsule_GetName' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyDict_SetItemString'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyImport_ImportModule' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyExc_OverflowError'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyComplex_AsCComplex' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyLong_Type'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyDict_Type' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyExc_BufferError'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyTuple_GetSlice' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PySlice_AdjustIndices'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyGILState_Ensure' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyEval_AcquireThread'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyErr_SetString' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_CallObject'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyThread_tss_set' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyList_GetItem'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_IsInstance' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyList_Append'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyMem_Free' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyThreadState_Get'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyNumber_Invert' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyUnicode_FromStringAndSize'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyType_Type' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyLong_FromDouble'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyArg_ParseTuple' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyThreadState_New'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyEval_GetFrame' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_Repr'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyProperty_Type' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyFrame_GetLineNumber'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyErr_NormalizeException' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyDict_Merge'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyLong_FromUnsignedLongLong' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_ClearWeakRefs'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyDict_Next' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_IsSubclass'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PySet_Type' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyCapsule_GetPointer'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to _Py_NoneStruct' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyInstanceMethod_New'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyDict_New' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyCapsule_SetPointer'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyExc_UserWarning' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyUnicode_Join'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_RichCompareBool' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyGILState_Release'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyErr_NewException' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PySet_Add'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyModule_AddObject' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PySequence_GetItem'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to _Py_NotImplementedStruct' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_GetItem'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyFrame_FastToLocals' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyExc_RuntimeWarning'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyType_GenericNew' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_SetItem'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyDict_Contains' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyExc_SystemError'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyDict_Items' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to Py_BuildValue'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyCapsule_Type' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyComplex_FromDoubles'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyDict_GetItemString' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyNumber_Float'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyBool_FromLong' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyLong_AsLong'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyExc_Exception' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to _Py_TrueStruct'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyFloat_Type' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyExc_IndexError'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_AsFileDescriptor' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyLong_AsLongLongAndOverflow'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyComplex_FromCComplex' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyFloat_AsDouble'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyLong_FromLongLong' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyIter_Next'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyEval_SaveThread' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyCapsule_SetContext'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyExc_StopIteration' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PySequence_Check'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyType_GenericAlloc' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_GC_UnTrack'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyLong_FromVoidPtr' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyCapsule_Import'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_CallMethod' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_GetAttrString'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyList_New' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyModule_GetName'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_Str' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyErr_Format'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_SetAttr' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to _Py_EllipsisObject'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyCFunction_NewEx' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyStaticMethod_Type'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyUnicode_AsUTF8AndSize' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyTuple_Size'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to `PyCode_Addr2Line'
collect2: error: ld returned 1 exit status
make[3]: *** [CMakeFiles/prioritized_replay_test.dir/build.make:115: prioritized_replay_test] Error 1
make[3]: Leaving directory '/hanlinzhang/diplomacy/build/selfplay'
make[2]: *** [CMakeFiles/Makefile2:183: CMakeFiles/prioritized_replay_test.dir/all] Error 2

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

No branches or pull requests

1 participant