Hello,

I am Thawra Kadeed from the university of Braunschweig in Germany.

I started using Gem5 and during the build process I got the foolowing error:

ext/pybind11/include/pybind11/pybind11.h: In member function 'void pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, const char*, const std::type_info* const*, pybind11::size_t)': ext/pybind11/include/pybind11/pybind11.h:320:74: error: cast between incompatible function types from 'PyObject* (*)(PyObject*, PyObject*, PyObject*)' {aka '_object* (*)(_object*, _object*, _object*)'} to 'PyCFunction' {aka '_object* (*)(_object*, _object*)'} [-Werror=cast-function-type] rec->def->ml_meth = reinterpret_cast<PyCFunction>(*dispatcher);


Obviously as the error reports that the problem is cast between incompatible function types from 'PyObject' to 'PyCFunction'

I installed all the required dependencies and as I am using fedora28 I installed:

Python 2.7.14 and gcc-8.0.1-0.20.fc28.x86_64

I hope you have a helpful guide in this issue.
Thanks in advance.
Best regards,
Thawra
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to