Hi Thawra,

My guess is that this is an issue with the version of pybind11 we're using
and gcc 8+. We haven't tested on anything after gcc 7.X.

I'll put testing gcc 8 on my to do list, but I don't know when I'll get to
it. I would try downgrading gcc to 7 or possibly using clang.

Jason

On Tue, May 8, 2018 at 10:02 AM <kad...@ida.ing.tu-bs.de> wrote:

> 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
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to