Thawra Kadeed
2018-07-31 16:08:48 UTC
Hello Jason,
I submitted before this error message I got during the build process of
Gem5.
you recommended me either to use previous versions of gcc (e.g. gcc 7)
or to use clang.
As I am using Feodra28, I am not able to install gcc 7 because there are
no corresponding dependencies in fedora28 for such a version.
However, I removed gcc8 and installed clang. Here, gcc8 installs
automatically as a dependency package for clang. I tried to build, I got
the same error.
I do not know which c compiler the scons uses. I tried to look if I am
able to specify the c compiler in the scons but have not seen such a
choice.
Could anyone please give me a hint about this problem.
Thanks in advance,
Thawra
PS: your old answer was:
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
I submitted before this error message I got during the build process of
Gem5.
you recommended me either to use previous versions of gcc (e.g. gcc 7)
or to use clang.
As I am using Feodra28, I am not able to install gcc 7 because there are
no corresponding dependencies in fedora28 for such a version.
However, I removed gcc8 and installed clang. Here, gcc8 installs
automatically as a dependency package for clang. I tried to build, I got
the same error.
I do not know which c compiler the scons uses. I tried to look if I am
able to specify the c compiler in the scons but have not seen such a
choice.
Could anyone please give me a hint about this problem.
Thanks in advance,
Thawra
PS: your old answer was:
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
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
ext/pybind11/include/pybind11/pybind11.h: In member function 'void
pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*,
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
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
I am Thawra Kadeed from the university of Braunschweig in Germany.
I started using Gem5 and during the build process I got the foolowing
ext/pybind11/include/pybind11/pybind11.h: In member function 'void
pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*,
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
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