Open hansfbaier opened 3 years ago
Hello, when I try to run the examples, I get:
[... successfully compiling code ... ] g++ verilator.o verilated.o verilated_vpi.o Vadder__ALL.a -L /devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests/build/libs/x86_64/ -lvpi -lgpi -lcocotb -lgpilog -lcocotbutils -o Vadder -lm -lstdc++ /usr/bin/ld: /devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests/build/libs/x86_64//libgpilog.so: undefined reference to `PyTuple_SetItem' /usr/bin/ld: /devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests/build/libs/x86_64//libgpilog.so: undefined reference to `_Py_TrueStruct' /usr/bin/ld: /devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests/build/libs/x86_64//libcocotb.so: undefined reference to `PyObject_GetAttrString' /usr/bin/ld: /devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests/build/libs/x86_64//libcocotb.so: undefined reference to `PyModule_GetDict' /usr/bin/ld: /devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests/build/libs/x86_64//libgpilog.so: undefined reference to `PyTuple_New' /usr/bin/ld: /devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests/build/libs/x86_64//libcocotb.so: undefined reference to `_Py_NoneStruct' /usr/bin/ld: /devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests/build/libs/x86_64//libcocotb.so: undefined reference to `PyDict_SetItemString' /usr/bin/ld: /devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests/build/libs/x86_64//libcocotb.so: undefined reference to `PyList_Append' /usr/bin/ld: /devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests/build/libs/x86_64//libgpilog.so: undefined reference to `PyObject_CallObject' /usr/bin/ld: /devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests/build/libs/x86_64//libcocotbutils.so: undefined reference to `dlopen' /usr/bin/ld: /devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests/build/libs/x86_64//libgpilog.so: undefined reference to `_Py_Dealloc' /usr/bin/ld: /devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests/build/libs/x86_64//libcocotb.so: undefined reference to `Py_BuildValue' /usr/bin/ld: /devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests/build/libs/x86_64//libcocotb.so: undefined reference to `PyList_New' /usr/bin/ld: /devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests/build/libs/x86_64//libcocotb.so: undefined reference to `PyImport_ImportModule' /usr/bin/ld: /devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests/build/libs/x86_64//libgpilog.so: undefined reference to `PyUnicode_FromString' /usr/bin/ld: /devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests/build/libs/x86_64//libcocotb.so: undefined reference to `Py_SetProgramName' /usr/bin/ld: /devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests/build/libs/x86_64//libcocotb.so: undefined reference to `PyEval_InitThreads' /usr/bin/ld: /devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests/build/libs/x86_64//libcocotb.so: undefined reference to `PyObject_SetAttrString' /usr/bin/ld: /devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests/build/libs/x86_64//libgpilog.so: undefined reference to `PyGILState_Release' /usr/bin/ld: /devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests/build/libs/x86_64//libcocotb.so: undefined reference to `PySys_SetArgvEx' /usr/bin/ld: /devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests/build/libs/x86_64//libcocotb.so: undefined reference to `Py_DecodeLocale' /usr/bin/ld: /devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests/build/libs/x86_64//libcocotb.so: undefined reference to `PyEval_SaveThread' /usr/bin/ld: /devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests/build/libs/x86_64//libcocotbutils.so: undefined reference to `dlerror' /usr/bin/ld: /devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests/build/libs/x86_64//libcocotbutils.so: undefined reference to `dlsym' /usr/bin/ld: /devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests/build/libs/x86_64//libgpilog.so: undefined reference to `PyLong_FromLong' /usr/bin/ld: /devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests/build/libs/x86_64//libcocotb.so: undefined reference to `PyErr_Occurred' /usr/bin/ld: /devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests/build/libs/x86_64//libcocotb.so: undefined reference to `PyCallable_Check' /usr/bin/ld: /devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests/build/libs/x86_64//libgpilog.so: undefined reference to `PyGILState_Ensure' /usr/bin/ld: /devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests/build/libs/x86_64//libcocotb.so: undefined reference to `Py_Initialize' /usr/bin/ld: /devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests/build/libs/x86_64//libcocotb.so: undefined reference to `PyErr_Print' collect2: error: ld returned 1 exit status make[3]: *** [Vadder.mk:64: Vadder] Error 1 make[3]: Leaving directory '/devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests/sim_build' make[2]: *** [/devel/HDL/cocotb-verilator-build/cocotb/cocotb/share/makefiles/simulators/Makefile.verilator:78: sim_build/Vadder] Error 2 make[2]: Leaving directory '/devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests' make[1]: *** [/devel/HDL/cocotb-verilator-build/cocotb/cocotb/share/makefiles/Makefile.sim:85: sim] Error 2 make[1]: Leaving directory '/devel/HDL/cocotb-verilator-build/cocotb/examples/adder/tests' make: *** [Makefile:71: cocotb/adder/run] Error 2
Are there -l flags missing, or does it have something to do with versions of the linked software?
I am getting the same outcome on Ubuntu 20.04
Hello, when I try to run the examples, I get:
Are there -l flags missing, or does it have something to do with versions of the linked software?