extensions fail to build with python 3.11

Bug #1995814 reported by Jelmer Vernooij
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Breezy
Fix Released
Undecided
Jelmer Vernooij

Bug Description

       clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -g -arch x86_64 -Ibreezy -I/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/cibw-run-rqkz8ij7/cp311-macosx_x86_64/build/venv/include -I/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c breezy/bzr/_rio_pyx.c -o build/temp.macosx-10.9-x86_64-cpython-311/breezy/bzr/_rio_pyx.o
        breezy/bzr/_rio_pyx.c:1591:19: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
            __pyx_v_c_tag = PyUnicode_AsUTF8AndSize(__pyx_v_tag, (&__pyx_v_c_len));
                          ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        breezy/bzr/_rio_pyx.c:2011:21: warning: 'PyUnicode_FromUnicode' is deprecated [-Wdeprecated-declarations]
                __pyx_t_3 = PyUnicode_FromUnicode(__pyx_v_line, __pyx_v_len); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 120, __pyx_L1_error)
                            ^
        /Library/Frameworks/Python.framework/Versions/3.11/include/python3.11/cpython/unicodeobject.h:600:1: note: 'PyUnicode_FromUnicode' has been explicitly marked deprecated here
        Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
        ^
        /Library/Frameworks/Python.framework/Versions/3.11/include/python3.11/pyport.h:336:54: note: expanded from macro 'Py_DEPRECATED'
        #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                             ^
        breezy/bzr/_rio_pyx.c:2076:21: warning: 'PyUnicode_FromUnicode' is deprecated [-Wdeprecated-declarations]
                __pyx_t_3 = PyUnicode_FromUnicode(__pyx_v_line, __pyx_v_i); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 124, __pyx_L1_error)
                            ^
        /Library/Frameworks/Python.framework/Versions/3.11/include/python3.11/cpython/unicodeobject.h:600:1: note: 'PyUnicode_FromUnicode' has been explicitly marked deprecated here
        Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
        ^
        /Library/Frameworks/Python.framework/Versions/3.11/include/python3.11/pyport.h:336:54: note: expanded from macro 'Py_DEPRECATED'
        #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                             ^
        breezy/bzr/_rio_pyx.c:2099:19: error: implicit declaration of function 'PyUnicode_EncodeASCII' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
              __pyx_t_3 = PyUnicode_EncodeASCII(__pyx_v_line, __pyx_v_i, ((char *)"strict")); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 125, __pyx_L1_error)
                          ^
        breezy/bzr/_rio_pyx.c:2099:19: note: did you mean 'PyUnicode_DecodeASCII'?
        /Library/Frameworks/Python.framework/Versions/3.11/include/python3.11/unicodeobject.h:646:23: note: 'PyUnicode_DecodeASCII' declared here
        PyAPI_FUNC(PyObject*) PyUnicode_DecodeASCII(
                              ^
        breezy/bzr/_rio_pyx.c:2099:17: warning: incompatible integer to pointer conversion assigning to 'PyObject *' (aka 'struct _object *') from 'int' [-Wint-conversion]
              __pyx_t_3 = PyUnicode_EncodeASCII(__pyx_v_line, __pyx_v_i, ((char *)"strict")); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 125, __pyx_L1_error)
                        ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        breezy/bzr/_rio_pyx.c:2122:15: warning: 'PyUnicode_FromUnicode' is deprecated [-Wdeprecated-declarations]
          __pyx_t_3 = PyUnicode_FromUnicode(__pyx_v_line, __pyx_v_len); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 127, __pyx_L1_error)
                      ^
        /Library/Frameworks/Python.framework/Versions/3.11/include/python3.11/cpython/unicodeobject.h:600:1: note: 'PyUnicode_FromUnicode' has been explicitly marked deprecated here
        Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
        ^
        /Library/Frameworks/Python.framework/Versions/3.11/include/python3.11/pyport.h:336:54: note: expanded from macro 'Py_DEPRECATED'
        #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                             ^
        5 warnings and 1 error generated.
        error: command '/usr/bin/clang' failed with exit code 1
        [end of output]

Jelmer Vernooij (jelmer)
Changed in brz:
status: New → Fix Released
assignee: nobody → Jelmer Vernooij (jelmer)
milestone: none → 3.3.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.