Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaks with Python option enabled: error: no matching function for call to 'evalScript' #2373

Closed
yurivict opened this issue Jan 1, 2022 · 4 comments

Comments

@yurivict
Copy link

yurivict commented Jan 1, 2022

/usr/bin/c++ -DPLI_DLLESPEC="" -DPLI_DLLISPEC="" -DSURELOG_WITH_PYTHON -I/disk-samsung/freebsd-ports/cad/surelog/work/Surelog-0.0-3950-g88ae53316/src -I/disk-samsung/freebsd-ports/cad/surelog/work/.build/generated/src -I/disk-samsung/freebsd-ports/cad/surelog/work/Surelog-0.0-3950-g88ae53316/third_party/antlr4_fast/runtime/Cpp/runtime/src -I/disk-samsung/freebsd-ports/cad/surelog/work/Surelog-0.0-3950-g88ae53316/third_party/flatbuffers/include -I/disk-samsung/freebsd-ports/cad/surelog/work/Surelog-0.0-3950-g88ae53316/third_party/googletest/googletest/include -I/disk-samsung/freebsd-ports/cad/surelog/work/Surelog-0.0-3950-g88ae53316/third_party/googletest/googlemock/include -I/usr/local/include/python3.8 -I/disk-samsung/freebsd-ports/cad/surelog/work/Surelog-0.0-3950-g88ae53316/third_party/UHDM/third_party/capnproto/c++/src/capnp/.. -I/disk-samsung/freebsd-ports/cad/surelog/work/Surelog-0.0-3950-g88ae53316/third_party/UHDM/third_party/capnproto/c++/src/kj/.. -isystem /disk-samsung/freebsd-ports/cad/surelog/work/.build/third_party/UHDM/generated -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -fno-omit-frame-pointer  -isystem /usr/local/include -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free  -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -fno-omit-frame-pointer  -isystem /usr/local/include -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -Wall -O3  -DNDEBUG  -std=gnu++17 -MD -MT CMakeFiles/surelog.dir/src/ErrorReporting/ErrorContainer.cpp.o -MF CMakeFiles/surelog.dir/src/ErrorReporting/ErrorContainer.cpp.o.d -o CMakeFiles/surelog.dir/src/ErrorReporting/ErrorContainer.cpp.o -c /disk-samsung/freebsd-ports/cad/surelog/work/Surelog-0.0-3950-g88ae53316/src/ErrorReporting/ErrorContainer.cpp
/disk-samsung/freebsd-ports/cad/surelog/work/Surelog-0.0-3950-g88ae53316/src/ErrorReporting/ErrorContainer.cpp:254:15: error: no matching function for call to 'evalScript'
        tmp = PythonAPI::evalScript("__main__", "SLformatMsg", args,
              ^~~~~~~~~~~~~~~~~~~~~
/disk-samsung/freebsd-ports/cad/surelog/work/Surelog-0.0-3950-g88ae53316/src/API/PythonAPI.h:57:22: note: candidate function not viable: cannot convert argument of incomplete type 'void *const' to 'PyThreadState *' (aka '_ts *') for 4th argument
  static std::string evalScript(std::string module, std::string function,
                     ^
/disk-samsung/freebsd-ports/cad/surelog/work/Surelog-0.0-3950-g88ae53316/src/API/PythonAPI.h:60:15: note: candidate function not viable: requires 3 arguments, but 4 were provided
  static void evalScript(std::string function, SV3_1aPythonListener* listener,
              ^
/disk-samsung/freebsd-ports/cad/surelog/work/Surelog-0.0-3950-g88ae53316/src/API/PythonAPI.h:70:15: note: candidate function not viable: requires 2 arguments, but 4 were provided
  static bool evalScript(std::string script, Design* design);
              ^

clang-12
python-3.8

@alaindargelas
Copy link
Collaborator

Pretty much everybody has ran away from the Python API of Surelog, it is not maintained.
Why do you want to use it?
UHDM is a far superior API.

@yurivict
Copy link
Author

yurivict commented Jan 2, 2022

Why do you want to use it?

I didn't know that Pretty much everybody has ran away from the Python API of Surelog, it is not maintained.

@alaindargelas
Copy link
Collaborator

Please use the UHDM API.

@alaindargelas
Copy link
Collaborator

FYI, I fixed a compilation issue in Python since there was another inquiry.
Maybe that fix your issue too.

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

No branches or pull requests

2 participants