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

gcc-python-plugin doesn't build with GCC 10 #181

Open
doko42 opened this issue Feb 20, 2020 · 3 comments
Open

gcc-python-plugin doesn't build with GCC 10 #181

doko42 opened this issue Feb 20, 2020 · 3 comments

Comments

@doko42
Copy link

doko42 commented Feb 20, 2020

gcc-python-plugin doesn't build with GCC 10, first error is to include the params.h file, removed in GCC 10.

@davidmalcolm
Copy link
Owner

Possibly fixed by b6cb6bb.

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.

@nzinfo
Copy link

nzinfo commented Oct 4, 2021

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.

@jmikedupont2
Copy link

My solution was to strip out the entire metaclass #192
It seems there is another patch possible #188

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

4 participants