gcc-python-plugin
gcc-python-plugin copied to clipboard
gcc-python-plugin doesn't build with GCC 10
gcc-python-plugin doesn't build with GCC 10, first error is to include the params.h file, removed in GCC 10.
Possibly fixed by b6cb6bbf181ba91960208f7a7e911315c8d9ba97.
I'm now seeing "TypeError: 'gcc.WrapperMeta' object is not iterable" with Python 3.8 and GCC 10. My current hunch is that it's an issue with Python 3.8's typeobject change (tp_vectorcall_offset), but that's a hunch right now.
The error "TypeError: 'gcc.WrapperMeta' object is not iterable" is caused by generate-gimple-c.py with the tp_flag Py_TPFLAGS_DEFAULT in series of generated classes pytype = PyGccWrapperTypeObject(identifier = 'PyGcc%s_TypeObj' . When changes it to Py_TPFLAGS_BASETYPE . The error will disappear, although this will lead to a crash.
The reason is clear, in py38 some logic changed in PyType_Ready function.
My solution was to strip out the entire metaclass #192 It seems there is another patch possible #188