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 #17

Open
CodeNinja98 opened this issue Dec 22, 2022 · 3 comments
Open

Undefined Reference Errors when running make #17

CodeNinja98 opened this issue Dec 22, 2022 · 3 comments
Assignees

Comments

@CodeNinja98
Copy link

CodeNinja98 commented Dec 22, 2022

Using Debian Linux. Followed install instructions, but on running make am getting a bunch of undefined reference errors as follows:

[ 83%] Built target gmock_main
[ 91%] Linking CXX shared module /home/[username]/diplomacy_cicero/fairdiplomacy/selfplay/rela.cpython-37m-x86_64-linux-gnu.so
[100%] Linking CXX executable prioritized_replay_test
/usr/bin/ld: /opt/conda/envs/cicero2/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyUnicode_InternFromString' /usr/bin/ld: /opt/conda/envs/cicero2/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyInstanceMethod_Type'
/usr/bin/ld: /opt/conda/envs/cicero2/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to `PyDict_DelItemString'

Have also tested this on several other machines/configurations with the same results.

@adamlerer
Copy link
Contributor

For now, I would suggest commenting out the selfplay target in the Makefile. Everything except self-play RL should still work.

@akhti can take a look when back from vacation.

@CodeNinja98
Copy link
Author

For now, I would suggest commenting out the selfplay target in the Makefile. Everything except self-play RL should still work.

@akhti can take a look when back from vacation.

Thank you! This workaround does appear to work for now, we are currently having some issues with missing includes when we run it with the example command:

python run.py --adhoc --cfg conf/c01_ag_cmp/cmp.prototxt Iagent_one=agents/bqre1p_parlai_20220819_cicero_2.prototxt Iagent_six=agents/ablations/cicero_imitation_only.prototxt power_one=TURKEY

but are working on resolving those.

@akhti
Copy link
Contributor

akhti commented Feb 8, 2023

Is this fixed?

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

3 participants