Skip to content

Python 3.11 compilation error #81

Open
@priv-kweihmann

Description

@priv-kweihmann

Package version (if known): 3.0.1

Describe the bug

Compilation on x86-64 (and potentially all other platforms) fails

Steps to Reproduce

Try to compile the c extension with python 3.11.0 release, up to py 3.10.6 everything at least compiled

Expected behavior

c extension compiles

Screenshots (if applicable)

Additional context

| intbitset/intbitset.c: In function ‘__pyx_pf_9intbitset_9intbitset___cinit__’:
| intbitset/intbitset.c:2337:13: warning: ‘PyObject_AsReadBuffer’ is deprecated [-Wdeprecated-declarations]
|  2337 |             __pyx_t_4 = ((PyObject_AsReadBuffer(__pyx_v_tmp, (&__pyx_v_buf), (&__pyx_v_size)) < 0) != 0);
|       |             ^~~~~~~~~
| In file included from /opt/build/build/tmp/work/x86_64-linux/python3-intbitset-native/3.0.1-r0/recipe-sysroot-native/usr/include/python3.11/Python.h:100,
|                  from intbitset/intbitset.c:6:
| /opt/build/build/tmp/work/x86_64-linux/python3-intbitset-native/3.0.1-r0/recipe-sysroot-native/usr/include/python3.11/abstract.h:343:17: note: declared here
|   343 | PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj,
|       |                 ^~~~~~~~~~~~~~~~~~~~~
| intbitset/intbitset.c: In function ‘__pyx_f_9intbitset_9intbitset_fastload’:
| intbitset/intbitset.c:9595:7: warning: ‘PyObject_AsReadBuffer’ is deprecated [-Wdeprecated-declarations]
|  9595 |       __pyx_t_9 = ((PyObject_AsReadBuffer(__pyx_v_tmp, (&__pyx_v_buf), (&__pyx_v_size)) < 0) != 0);
|       |       ^~~~~~~~~
| In file included from /opt/build/build/tmp/work/x86_64-linux/python3-intbitset-native/3.0.1-r0/recipe-sysroot-native/usr/include/python3.11/Python.h:100,
|                  from intbitset/intbitset.c:6:
| /opt/build/build/tmp/work/x86_64-linux/python3-intbitset-native/3.0.1-r0/recipe-sysroot-native/usr/include/python3.11/abstract.h:343:17: note: declared here
|   343 | PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj,
|       |                 ^~~~~~~~~~~~~~~~~~~~~
| intbitset/intbitset.c: In function ‘__Pyx_AddTraceback’:
| intbitset/intbitset.c:438:62: error: dereferencing pointer to incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
|   438 |   #define __Pyx_PyFrame_SetLineNumber(frame, lineno)  (frame)->f_lineno = (lineno)
|       |                                                              ^~
| intbitset/intbitset.c:17283:5: note: in expansion of macro ‘__Pyx_PyFrame_SetLineNumber’
| 17283 |     __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
|       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions