Skip to content

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

Open

Description

@doko42

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

Activity

  1. davidmalcolm commented on Sep 19, 2020

    @davidmalcolm
    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.

  2. nzinfo commented on Oct 4, 2021

    @nzinfo

    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.

  3. jmikedupont2 commented on Dec 31, 2021

    @jmikedupont2

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions