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

C extensions don't build with nightly Python 3.10 #416

Open
The-Compiler opened this issue Jul 3, 2020 · 4 comments
Open

C extensions don't build with nightly Python 3.10 #416

The-Compiler opened this issue Jul 3, 2020 · 4 comments

Comments

@The-Compiler
Copy link
Contributor

When installing PyYAML with Python 3.10 (e.g. via the Archlinux AUR package or the deadsnakes python3.10-dev package, building C extensions fails:

    running build_ext
    building '_yaml' extension
    creating build/temp.linux-x86_64-3.10
    creating build/temp.linux-x86_64-3.10/ext
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fno-semantic-interposition -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fPIC -I/home/florian/tmp/pyyaml/.venv-310/include -I/usr/include/python3.10 -c ext/_yaml.c -o build/temp.linux-x86_64-3.10/ext/_yaml.o
    In file included from ext/_yaml.c:596:
    ext/_yaml.h:10: warning: "PyString_CheckExact" redefined
       10 | #define PyString_CheckExact PyBytes_CheckExact
          |
    ext/_yaml.c:486: note: this is the location of the previous definition
      486 |   #define PyString_CheckExact          PyUnicode_CheckExact
          |
    ext/_yaml.c: In function ‘__Pyx_PyList_Append’:
    ext/_yaml.c:1233:23: error: lvalue required as left operand of assignment
     1233 |         Py_SIZE(list) = len+1;
          |                       ^
    ext/_yaml.c: In function ‘__pyx_pf_5_yaml_get_version_string’:
    ext/_yaml.c:1891:17: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
     1891 |   __pyx_v_value = yaml_get_version_string();
          |                 ^
    ext/_yaml.c: In function ‘__pyx_pf_5_yaml_7CParser___init__’:
    ext/_yaml.c:3391:52: warning: passing argument 2 of ‘yaml_parser_set_input’ from incompatible pointer type [-Wincompatible-pointer-types]
     3391 |     yaml_parser_set_input((&__pyx_v_self->parser), __pyx_f_5_yaml_input_handler, ((void *)__pyx_v_self));
          |                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
          |                                                    |
          |                                                    int (*)(void *, char *, size_t,  size_t *) {aka int (*)(void *, char *, long unsigned int,  long unsigned int *)}
    In file included from ext/_yaml.h:2,
                     from ext/_yaml.c:596:
    /usr/include/yaml.h:1374:30: note: expected ‘int (*)(void *, unsigned char *, size_t,  size_t *)’ {aka ‘int (*)(void *, unsigned char *, long unsigned int,  long unsigned int *)’} but argument is of type ‘int (*)(void *, char *, size_t,  size_t *)’ {aka ‘int (*)(void *, char *, long unsigned int,  long unsigned int *)’}
     1374 |         yaml_read_handler_t *handler, void *data);
          |         ~~~~~~~~~~~~~~~~~~~~~^~~~~~~
    In file included from /usr/include/python3.10/bytesobject.h:75,
                     from /usr/include/python3.10/Python.h:96,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/cpython/bytesobject.h:32:57: warning: pointer targets in passing argument 2 of ‘yaml_parser_set_input_string’ differ in signedness [-Wpointer-sign]
       32 | #define PyBytes_AS_STRING(op) (assert(PyBytes_Check(op)), \
          |                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
          |                                                         |
          |                                                         char *
       33 |                                 (((PyBytesObject *)(op))->ob_sval))
          |                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ext/_yaml.h:11:29: note: in expansion of macro ‘PyBytes_AS_STRING’
       11 | #define PyString_AS_STRING  PyBytes_AS_STRING
          |                             ^~~~~~~~~~~~~~~~~
    ext/_yaml.c:3632:59: note: in expansion of macro ‘PyString_AS_STRING’
     3632 |     yaml_parser_set_input_string((&__pyx_v_self->parser), PyString_AS_STRING(__pyx_v_stream), PyString_GET_SIZE(__pyx_v_stream));
          |                                                           ^~~~~~~~~~~~~~~~~~
    In file included from ext/_yaml.h:2,
                     from ext/_yaml.c:596:
    /usr/include/yaml.h:1348:30: note: expected ‘const unsigned char *’ but argument is of type ‘char *’
     1348 |         const unsigned char *input, size_t size);
          |         ~~~~~~~~~~~~~~~~~~~~~^~~~~
    ext/_yaml.c: In function ‘__pyx_f_5_yaml_7CParser__token_to_object’:
    ext/_yaml.c:5466:71: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
     5466 |     __pyx_t_2 = PyUnicode_FromString(__pyx_v_token->data.tag_directive.handle); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 417, __pyx_L1_error)
          |                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
          |                                                                       |
          |                                                                       yaml_char_t * {aka unsigned char *}
    In file included from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
      138 |     const char *u              /* UTF-8 encoded string */
          |     ~~~~~~~~~~~~^
    ext/_yaml.c:5478:71: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
     5478 |     __pyx_t_2 = PyUnicode_FromString(__pyx_v_token->data.tag_directive.prefix); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 418, __pyx_L1_error)
          |                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
          |                                                                       |
          |                                                                       yaml_char_t * {aka unsigned char *}
    In file included from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
      138 |     const char *u              /* UTF-8 encoded string */
          |     ~~~~~~~~~~~~^
    ext/_yaml.c:6480:63: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
     6480 |     __pyx_t_2 = PyUnicode_FromString(__pyx_v_token->data.alias.value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 448, __pyx_L1_error)
          |                                      ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
          |                                                               |
          |                                                               yaml_char_t * {aka unsigned char *}
    In file included from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
      138 |     const char *u              /* UTF-8 encoded string */
          |     ~~~~~~~~~~~~^
    ext/_yaml.c:6564:64: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
     6564 |     __pyx_t_2 = PyUnicode_FromString(__pyx_v_token->data.anchor.value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 451, __pyx_L1_error)
          |                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
          |                                                                |
          |                                                                yaml_char_t * {aka unsigned char *}
    In file included from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
      138 |     const char *u              /* UTF-8 encoded string */
          |     ~~~~~~~~~~~~^
    ext/_yaml.c:6648:61: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
     6648 |     __pyx_t_2 = PyUnicode_FromString(__pyx_v_token->data.tag.handle); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 454, __pyx_L1_error)
          |                                      ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
          |                                                             |
          |                                                             yaml_char_t * {aka unsigned char *}
    In file included from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
      138 |     const char *u              /* UTF-8 encoded string */
          |     ~~~~~~~~~~~~^
    ext/_yaml.c:6660:61: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
     6660 |     __pyx_t_2 = PyUnicode_FromString(__pyx_v_token->data.tag.suffix); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 455, __pyx_L1_error)
          |                                      ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
          |                                                             |
          |                                                             yaml_char_t * {aka unsigned char *}
    In file included from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
      138 |     const char *u              /* UTF-8 encoded string */
          |     ~~~~~~~~~~~~^
    ext/_yaml.c:6784:64: warning: pointer targets in passing argument 1 of ‘PyUnicode_DecodeUTF8’ differ in signedness [-Wpointer-sign]
     6784 |     __pyx_t_2 = PyUnicode_DecodeUTF8(__pyx_v_token->data.scalar.value, __pyx_v_token->data.scalar.length, ((char *)"strict")); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 460, __pyx_L1_error)
          |                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
          |                                                                |
          |                                                                yaml_char_t * {aka unsigned char *}
    In file included from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/unicodeobject.h:452:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
      452 |     const char *string,         /* UTF-8 encoded string */
          |     ~~~~~~~~~~~~^~~~~~
    ext/_yaml.c: In function ‘__pyx_f_5_yaml_7CParser__event_to_object’:
    ext/_yaml.c:8465:63: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
     8465 |         __pyx_t_4 = PyUnicode_FromString(__pyx_v_tag_directive->handle); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 574, __pyx_L1_error)
          |                                          ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
          |                                                               |
          |                                                               yaml_char_t * {aka unsigned char *}
    In file included from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
      138 |     const char *u              /* UTF-8 encoded string */
          |     ~~~~~~~~~~~~^
    ext/_yaml.c:8477:63: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
     8477 |         __pyx_t_4 = PyUnicode_FromString(__pyx_v_tag_directive->prefix); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 575, __pyx_L1_error)
          |                                          ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
          |                                                               |
          |                                                               yaml_char_t * {aka unsigned char *}
    In file included from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
      138 |     const char *u              /* UTF-8 encoded string */
          |     ~~~~~~~~~~~~^
    ext/_yaml.c:8720:63: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
     8720 |     __pyx_t_4 = PyUnicode_FromString(__pyx_v_event->data.alias.anchor); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 586, __pyx_L1_error)
          |                                      ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
          |                                                               |
          |                                                               yaml_char_t * {aka unsigned char *}
    In file included from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
      138 |     const char *u              /* UTF-8 encoded string */
          |     ~~~~~~~~~~~~^
    ext/_yaml.c:8824:66: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
     8824 |       __pyx_t_4 = PyUnicode_FromString(__pyx_v_event->data.scalar.anchor); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 591, __pyx_L1_error)
          |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
          |                                                                  |
          |                                                                  yaml_char_t * {aka unsigned char *}
    In file included from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
      138 |     const char *u              /* UTF-8 encoded string */
          |     ~~~~~~~~~~~~^
    ext/_yaml.c:8865:66: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
     8865 |       __pyx_t_4 = PyUnicode_FromString(__pyx_v_event->data.scalar.tag); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 594, __pyx_L1_error)
          |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
          |                                                                  |
          |                                                                  yaml_char_t * {aka unsigned char *}
    In file included from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
      138 |     const char *u              /* UTF-8 encoded string */
          |     ~~~~~~~~~~~~^
    ext/_yaml.c:8886:64: warning: pointer targets in passing argument 1 of ‘PyUnicode_DecodeUTF8’ differ in signedness [-Wpointer-sign]
     8886 |     __pyx_t_4 = PyUnicode_DecodeUTF8(__pyx_v_event->data.scalar.value, __pyx_v_event->data.scalar.length, ((char *)"strict")); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 595, __pyx_L1_error)
          |                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
          |                                                                |
          |                                                                yaml_char_t * {aka unsigned char *}
    In file included from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/unicodeobject.h:452:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
      452 |     const char *string,         /* UTF-8 encoded string */
          |     ~~~~~~~~~~~~^~~~~~
    ext/_yaml.c:9227:74: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
     9227 |       __pyx_t_4 = PyUnicode_FromString(__pyx_v_event->data.sequence_start.anchor); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 620, __pyx_L1_error)
          |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
          |                                                                          |
          |                                                                          yaml_char_t * {aka unsigned char *}
    In file included from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
      138 |     const char *u              /* UTF-8 encoded string */
          |     ~~~~~~~~~~~~^
    ext/_yaml.c:9268:74: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
     9268 |       __pyx_t_4 = PyUnicode_FromString(__pyx_v_event->data.sequence_start.tag); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 623, __pyx_L1_error)
          |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
          |                                                                          |
          |                                                                          yaml_char_t * {aka unsigned char *}
    In file included from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
      138 |     const char *u              /* UTF-8 encoded string */
          |     ~~~~~~~~~~~~^
    ext/_yaml.c:9500:73: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
     9500 |       __pyx_t_4 = PyUnicode_FromString(__pyx_v_event->data.mapping_start.anchor); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 637, __pyx_L1_error)
          |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
          |                                                                         |
          |                                                                         yaml_char_t * {aka unsigned char *}
    In file included from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
      138 |     const char *u              /* UTF-8 encoded string */
          |     ~~~~~~~~~~~~^
    ext/_yaml.c:9541:73: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
     9541 |       __pyx_t_4 = PyUnicode_FromString(__pyx_v_event->data.mapping_start.tag); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 640, __pyx_L1_error)
          |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
          |                                                                         |
          |                                                                         yaml_char_t * {aka unsigned char *}
    In file included from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
      138 |     const char *u              /* UTF-8 encoded string */
          |     ~~~~~~~~~~~~^
    ext/_yaml.c: In function ‘__pyx_f_5_yaml_7CParser__compose_node’:
    ext/_yaml.c:11214:75: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
    11214 |     __pyx_t_3 = PyUnicode_FromString(__pyx_v_self->parsed_event.data.alias.anchor); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 734, __pyx_L1_error)
          |                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
          |                                                                           |
          |                                                                           yaml_char_t * {aka unsigned char *}
    In file included from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
      138 |     const char *u              /* UTF-8 encoded string */
          |     ~~~~~~~~~~~~^
    ext/_yaml.c:11534:76: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
    11534 |     __pyx_t_6 = PyUnicode_FromString(__pyx_v_self->parsed_event.data.scalar.anchor); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 750, __pyx_L1_error)
          |                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
          |                                                                            |
          |                                                                            yaml_char_t * {aka unsigned char *}
    In file included from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
      138 |     const char *u              /* UTF-8 encoded string */
          |     ~~~~~~~~~~~~^
    ext/_yaml.c:11590:84: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
    11590 |     __pyx_t_6 = PyUnicode_FromString(__pyx_v_self->parsed_event.data.sequence_start.anchor); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 753, __pyx_L1_error)
          |                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
          |                                                                                    |
          |                                                                                    yaml_char_t * {aka unsigned char *}
    In file included from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
      138 |     const char *u              /* UTF-8 encoded string */
          |     ~~~~~~~~~~~~^
    ext/_yaml.c:11646:83: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
    11646 |     __pyx_t_6 = PyUnicode_FromString(__pyx_v_self->parsed_event.data.mapping_start.anchor); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 756, __pyx_L1_error)
          |                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
          |                                                                                   |
          |                                                                                   yaml_char_t * {aka unsigned char *}
    In file included from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
      138 |     const char *u              /* UTF-8 encoded string */
          |     ~~~~~~~~~~~~^
    ext/_yaml.c: In function ‘__pyx_f_5_yaml_7CParser__compose_scalar_node’:
    ext/_yaml.c:12304:74: warning: pointer targets in passing argument 1 of ‘PyUnicode_DecodeUTF8’ differ in signedness [-Wpointer-sign]
    12304 |   __pyx_t_2 = PyUnicode_DecodeUTF8(__pyx_v_self->parsed_event.data.scalar.value, __pyx_v_self->parsed_event.data.scalar.length, ((char *)"strict")); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 791, __pyx_L1_error)
          |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
          |                                                                          |
          |                                                                          yaml_char_t * {aka unsigned char *}
    In file included from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/unicodeobject.h:452:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
      452 |     const char *string,         /* UTF-8 encoded string */
          |     ~~~~~~~~~~~~^~~~~~
    ext/_yaml.c:12527:76: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
    12527 |     __pyx_t_2 = PyUnicode_FromString(__pyx_v_self->parsed_event.data.scalar.tag); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 804, __pyx_L1_error)
          |                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
          |                                                                            |
          |                                                                            yaml_char_t * {aka unsigned char *}
    In file included from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
      138 |     const char *u              /* UTF-8 encoded string */
          |     ~~~~~~~~~~~~^
    ext/_yaml.c: In function ‘__pyx_f_5_yaml_7CParser__compose_sequence_node’:
    ext/_yaml.c:13065:84: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
    13065 |     __pyx_t_3 = PyUnicode_FromString(__pyx_v_self->parsed_event.data.sequence_start.tag); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 837, __pyx_L1_error)
          |                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
          |                                                                                    |
          |                                                                                    yaml_char_t * {aka unsigned char *}
    In file included from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
      138 |     const char *u              /* UTF-8 encoded string */
          |     ~~~~~~~~~~~~^
    ext/_yaml.c: In function ‘__pyx_f_5_yaml_7CParser__compose_mapping_node’:
    ext/_yaml.c:13690:83: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
    13690 |     __pyx_t_3 = PyUnicode_FromString(__pyx_v_self->parsed_event.data.mapping_start.tag); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 876, __pyx_L1_error)
          |                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
          |                                                                                   |
          |                                                                                   yaml_char_t * {aka unsigned char *}
    In file included from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
      138 |     const char *u              /* UTF-8 encoded string */
          |     ~~~~~~~~~~~~^
    ext/_yaml.c: In function ‘__pyx_f_5_yaml_input_handler’:
    ext/_yaml.c:14502:87: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
    14502 |   __pyx_t_3 = (((__pyx_v_parser->stream_cache_len - __pyx_v_parser->stream_cache_pos) < __pyx_v_size) != 0);
          |                                                                                       ^
    ext/_yaml.c: In function ‘__pyx_pf_5_yaml_8CEmitter___init__’:
    ext/_yaml.c:15021:53: warning: passing argument 2 of ‘yaml_emitter_set_output’ from incompatible pointer type [-Wincompatible-pointer-types]
    15021 |   yaml_emitter_set_output((&__pyx_v_self->emitter), __pyx_f_5_yaml_output_handler, ((void *)__pyx_v_self));
          |                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          |                                                     |
          |                                                     int (*)(void *, char *, size_t) {aka int (*)(void *, char *, long unsigned int)}
    In file included from ext/_yaml.h:2,
                     from ext/_yaml.c:596:
    /usr/include/yaml.h:1844:31: note: expected ‘int (*)(void *, unsigned char *, size_t)’ {aka ‘int (*)(void *, unsigned char *, long unsigned int)’} but argument is of type ‘int (*)(void *, char *, size_t)’ {aka ‘int (*)(void *, char *, long unsigned int)’}
     1844 |         yaml_write_handler_t *handler, void *data);
          |         ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
    ext/_yaml.c: In function ‘__pyx_f_5_yaml_8CEmitter__object_to_event’:
    ext/_yaml.c:16373:44: warning: pointer targets in assignment from ‘char *’ to ‘yaml_char_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign]
    16373 |         __pyx_v_tag_directives_end->handle = PyString_AS_STRING(__pyx_v_handle);
          |                                            ^
    ext/_yaml.c:16488:44: warning: pointer targets in assignment from ‘char *’ to ‘yaml_char_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign]
    16488 |         __pyx_v_tag_directives_end->prefix = PyString_AS_STRING(__pyx_v_prefix);
          |                                            ^
    ext/_yaml.c:16825:62: warning: pointer targets in passing argument 2 of ‘yaml_alias_event_initialize’ differ in signedness [-Wpointer-sign]
    16825 |     __pyx_t_2 = ((yaml_alias_event_initialize(__pyx_v_event, __pyx_v_anchor) == 0) != 0);
          |                                                              ^~~~~~~~~~~~~~
          |                                                              |
          |                                                              char *
    In file included from ext/_yaml.h:2,
                     from ext/_yaml.c:596:
    /usr/include/yaml.h:555:69: note: expected ‘const yaml_char_t *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
      555 | yaml_alias_event_initialize(yaml_event_t *event, const yaml_char_t *anchor);
          |                                                  ~~~~~~~~~~~~~~~~~~~^~~~~~
    ext/_yaml.c:17540:63: warning: pointer targets in passing argument 2 of ‘yaml_scalar_event_initialize’ differ in signedness [-Wpointer-sign]
    17540 |     __pyx_t_2 = ((yaml_scalar_event_initialize(__pyx_v_event, __pyx_v_anchor, __pyx_v_tag, __pyx_v_value, __pyx_v_length, __pyx_v_plain_implicit, __pyx_v_quoted_implicit, __pyx_v_scalar_style) == 0) != 0);
          |                                                               ^~~~~~~~~~~~~~
          |                                                               |
          |                                                               char *
    In file included from ext/_yaml.h:2,
                     from ext/_yaml.c:596:
    /usr/include/yaml.h:581:28: note: expected ‘const yaml_char_t *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
      581 |         const yaml_char_t *anchor, const yaml_char_t *tag,
          |         ~~~~~~~~~~~~~~~~~~~^~~~~~
    ext/_yaml.c:17540:79: warning: pointer targets in passing argument 3 of ‘yaml_scalar_event_initialize’ differ in signedness [-Wpointer-sign]
    17540 |     __pyx_t_2 = ((yaml_scalar_event_initialize(__pyx_v_event, __pyx_v_anchor, __pyx_v_tag, __pyx_v_value, __pyx_v_length, __pyx_v_plain_implicit, __pyx_v_quoted_implicit, __pyx_v_scalar_style) == 0) != 0);
          |                                                                               ^~~~~~~~~~~
          |                                                                               |
          |                                                                               char *
    In file included from ext/_yaml.h:2,
                     from ext/_yaml.c:596:
    /usr/include/yaml.h:581:55: note: expected ‘const yaml_char_t *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
      581 |         const yaml_char_t *anchor, const yaml_char_t *tag,
          |                                    ~~~~~~~~~~~~~~~~~~~^~~
    ext/_yaml.c:17540:92: warning: pointer targets in passing argument 4 of ‘yaml_scalar_event_initialize’ differ in signedness [-Wpointer-sign]
    17540 |     __pyx_t_2 = ((yaml_scalar_event_initialize(__pyx_v_event, __pyx_v_anchor, __pyx_v_tag, __pyx_v_value, __pyx_v_length, __pyx_v_plain_implicit, __pyx_v_quoted_implicit, __pyx_v_scalar_style) == 0) != 0);
          |                                                                                            ^~~~~~~~~~~~~
          |                                                                                            |
          |                                                                                            char *
    In file included from ext/_yaml.h:2,
                     from ext/_yaml.c:596:
    /usr/include/yaml.h:582:28: note: expected ‘const yaml_char_t *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
      582 |         const yaml_char_t *value, int length,
          |         ~~~~~~~~~~~~~~~~~~~^~~~~
    ext/_yaml.c:17974:71: warning: pointer targets in passing argument 2 of ‘yaml_sequence_start_event_initialize’ differ in signedness [-Wpointer-sign]
    17974 |     __pyx_t_3 = ((yaml_sequence_start_event_initialize(__pyx_v_event, __pyx_v_anchor, __pyx_v_tag, __pyx_v_implicit, __pyx_v_sequence_style) == 0) != 0);
          |                                                                       ^~~~~~~~~~~~~~
          |                                                                       |
          |                                                                       char *
    In file included from ext/_yaml.h:2,
                     from ext/_yaml.c:596:
    /usr/include/yaml.h:604:28: note: expected ‘const yaml_char_t *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
      604 |         const yaml_char_t *anchor, const yaml_char_t *tag, int implicit,
          |         ~~~~~~~~~~~~~~~~~~~^~~~~~
    ext/_yaml.c:17974:87: warning: pointer targets in passing argument 3 of ‘yaml_sequence_start_event_initialize’ differ in signedness [-Wpointer-sign]
    17974 |     __pyx_t_3 = ((yaml_sequence_start_event_initialize(__pyx_v_event, __pyx_v_anchor, __pyx_v_tag, __pyx_v_implicit, __pyx_v_sequence_style) == 0) != 0);
          |                                                                                       ^~~~~~~~~~~
          |                                                                                       |
          |                                                                                       char *
    In file included from ext/_yaml.h:2,
                     from ext/_yaml.c:596:
    /usr/include/yaml.h:604:55: note: expected ‘const yaml_char_t *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
      604 |         const yaml_char_t *anchor, const yaml_char_t *tag, int implicit,
          |                                    ~~~~~~~~~~~~~~~~~~~^~~
    ext/_yaml.c:18408:70: warning: pointer targets in passing argument 2 of ‘yaml_mapping_start_event_initialize’ differ in signedness [-Wpointer-sign]
    18408 |     __pyx_t_2 = ((yaml_mapping_start_event_initialize(__pyx_v_event, __pyx_v_anchor, __pyx_v_tag, __pyx_v_implicit, __pyx_v_mapping_style) == 0) != 0);
          |                                                                      ^~~~~~~~~~~~~~
          |                                                                      |
          |                                                                      char *
    In file included from ext/_yaml.h:2,
                     from ext/_yaml.c:596:
    /usr/include/yaml.h:636:28: note: expected ‘const yaml_char_t *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
      636 |         const yaml_char_t *anchor, const yaml_char_t *tag, int implicit,
          |         ~~~~~~~~~~~~~~~~~~~^~~~~~
    ext/_yaml.c:18408:86: warning: pointer targets in passing argument 3 of ‘yaml_mapping_start_event_initialize’ differ in signedness [-Wpointer-sign]
    18408 |     __pyx_t_2 = ((yaml_mapping_start_event_initialize(__pyx_v_event, __pyx_v_anchor, __pyx_v_tag, __pyx_v_implicit, __pyx_v_mapping_style) == 0) != 0);
          |                                                                                      ^~~~~~~~~~~
          |                                                                                      |
          |                                                                                      char *
    In file included from ext/_yaml.h:2,
                     from ext/_yaml.c:596:
    /usr/include/yaml.h:636:55: note: expected ‘const yaml_char_t *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
      636 |         const yaml_char_t *anchor, const yaml_char_t *tag, int implicit,
          |                                    ~~~~~~~~~~~~~~~~~~~^~~
    ext/_yaml.c: In function ‘__pyx_pf_5_yaml_8CEmitter_12serialize’:
    ext/_yaml.c:19978:42: warning: pointer targets in assignment from ‘char *’ to ‘yaml_char_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign]
    19978 |       __pyx_v_tag_directives_end->handle = PyString_AS_STRING(__pyx_v_handle);
          |                                          ^
    ext/_yaml.c:20093:42: warning: pointer targets in assignment from ‘char *’ to ‘yaml_char_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign]
    20093 |       __pyx_v_tag_directives_end->prefix = PyString_AS_STRING(__pyx_v_prefix);
          |                                          ^
    ext/_yaml.c: In function ‘__pyx_f_5_yaml_8CEmitter__serialize_node’:
    ext/_yaml.c:20950:65: warning: pointer targets in passing argument 2 of ‘yaml_alias_event_initialize’ differ in signedness [-Wpointer-sign]
    20950 |     __pyx_t_2 = ((yaml_alias_event_initialize((&__pyx_v_event), __pyx_v_anchor) == 0) != 0);
          |                                                                 ^~~~~~~~~~~~~~
          |                                                                 |
          |                                                                 char *
    In file included from ext/_yaml.h:2,
                     from ext/_yaml.c:596:
    /usr/include/yaml.h:555:69: note: expected ‘const yaml_char_t *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
      555 | yaml_alias_event_initialize(yaml_event_t *event, const yaml_char_t *anchor);
          |                                                  ~~~~~~~~~~~~~~~~~~~^~~~~~
    ext/_yaml.c:21761:68: warning: pointer targets in passing argument 2 of ‘yaml_scalar_event_initialize’ differ in signedness [-Wpointer-sign]
    21761 |       __pyx_t_2 = ((yaml_scalar_event_initialize((&__pyx_v_event), __pyx_v_anchor, __pyx_v_tag, __pyx_v_value, __pyx_v_length, __pyx_v_plain_implicit, __pyx_v_quoted_implicit, __pyx_v_scalar_style) == 0) != 0);
          |                                                                    ^~~~~~~~~~~~~~
          |                                                                    |
          |                                                                    char *
    In file included from ext/_yaml.h:2,
                     from ext/_yaml.c:596:
    /usr/include/yaml.h:581:28: note: expected ‘const yaml_char_t *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
      581 |         const yaml_char_t *anchor, const yaml_char_t *tag,
          |         ~~~~~~~~~~~~~~~~~~~^~~~~~
    ext/_yaml.c:21761:84: warning: pointer targets in passing argument 3 of ‘yaml_scalar_event_initialize’ differ in signedness [-Wpointer-sign]
    21761 |       __pyx_t_2 = ((yaml_scalar_event_initialize((&__pyx_v_event), __pyx_v_anchor, __pyx_v_tag, __pyx_v_value, __pyx_v_length, __pyx_v_plain_implicit, __pyx_v_quoted_implicit, __pyx_v_scalar_style) == 0) != 0);
          |                                                                                    ^~~~~~~~~~~
          |                                                                                    |
          |                                                                                    char *
    In file included from ext/_yaml.h:2,
                     from ext/_yaml.c:596:
    /usr/include/yaml.h:581:55: note: expected ‘const yaml_char_t *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
      581 |         const yaml_char_t *anchor, const yaml_char_t *tag,
          |                                    ~~~~~~~~~~~~~~~~~~~^~~
    ext/_yaml.c:21761:97: warning: pointer targets in passing argument 4 of ‘yaml_scalar_event_initialize’ differ in signedness [-Wpointer-sign]
    21761 |       __pyx_t_2 = ((yaml_scalar_event_initialize((&__pyx_v_event), __pyx_v_anchor, __pyx_v_tag, __pyx_v_value, __pyx_v_length, __pyx_v_plain_implicit, __pyx_v_quoted_implicit, __pyx_v_scalar_style) == 0) != 0);
          |                                                                                                 ^~~~~~~~~~~~~
          |                                                                                                 |
          |                                                                                                 char *
    In file included from ext/_yaml.h:2,
                     from ext/_yaml.c:596:
    /usr/include/yaml.h:582:28: note: expected ‘const yaml_char_t *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
      582 |         const yaml_char_t *value, int length,
          |         ~~~~~~~~~~~~~~~~~~~^~~~~
    ext/_yaml.c:22148:76: warning: pointer targets in passing argument 2 of ‘yaml_sequence_start_event_initialize’ differ in signedness [-Wpointer-sign]
    22148 |       __pyx_t_2 = ((yaml_sequence_start_event_initialize((&__pyx_v_event), __pyx_v_anchor, __pyx_v_tag, __pyx_v_implicit, __pyx_v_sequence_style) == 0) != 0);
          |                                                                            ^~~~~~~~~~~~~~
          |                                                                            |
          |                                                                            char *
    In file included from ext/_yaml.h:2,
                     from ext/_yaml.c:596:
    /usr/include/yaml.h:604:28: note: expected ‘const yaml_char_t *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
      604 |         const yaml_char_t *anchor, const yaml_char_t *tag, int implicit,
          |         ~~~~~~~~~~~~~~~~~~~^~~~~~
    ext/_yaml.c:22148:92: warning: pointer targets in passing argument 3 of ‘yaml_sequence_start_event_initialize’ differ in signedness [-Wpointer-sign]
    22148 |       __pyx_t_2 = ((yaml_sequence_start_event_initialize((&__pyx_v_event), __pyx_v_anchor, __pyx_v_tag, __pyx_v_implicit, __pyx_v_sequence_style) == 0) != 0);
          |                                                                                            ^~~~~~~~~~~
          |                                                                                            |
          |                                                                                            char *
    In file included from ext/_yaml.h:2,
                     from ext/_yaml.c:596:
    /usr/include/yaml.h:604:55: note: expected ‘const yaml_char_t *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
      604 |         const yaml_char_t *anchor, const yaml_char_t *tag, int implicit,
          |                                    ~~~~~~~~~~~~~~~~~~~^~~
    ext/_yaml.c:22678:75: warning: pointer targets in passing argument 2 of ‘yaml_mapping_start_event_initialize’ differ in signedness [-Wpointer-sign]
    22678 |       __pyx_t_2 = ((yaml_mapping_start_event_initialize((&__pyx_v_event), __pyx_v_anchor, __pyx_v_tag, __pyx_v_implicit, __pyx_v_mapping_style) == 0) != 0);
          |                                                                           ^~~~~~~~~~~~~~
          |                                                                           |
          |                                                                           char *
    In file included from ext/_yaml.h:2,
                     from ext/_yaml.c:596:
    /usr/include/yaml.h:636:28: note: expected ‘const yaml_char_t *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
      636 |         const yaml_char_t *anchor, const yaml_char_t *tag, int implicit,
          |         ~~~~~~~~~~~~~~~~~~~^~~~~~
    ext/_yaml.c:22678:91: warning: pointer targets in passing argument 3 of ‘yaml_mapping_start_event_initialize’ differ in signedness [-Wpointer-sign]
    22678 |       __pyx_t_2 = ((yaml_mapping_start_event_initialize((&__pyx_v_event), __pyx_v_anchor, __pyx_v_tag, __pyx_v_implicit, __pyx_v_mapping_style) == 0) != 0);
          |                                                                                           ^~~~~~~~~~~
          |                                                                                           |
          |                                                                                           char *
    In file included from ext/_yaml.h:2,
                     from ext/_yaml.c:596:
    /usr/include/yaml.h:636:55: note: expected ‘const yaml_char_t *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
      636 |         const yaml_char_t *anchor, const yaml_char_t *tag, int implicit,
          |                                    ~~~~~~~~~~~~~~~~~~~^~~
    ext/_yaml.c: In function ‘__pyx_tp_dealloc_5_yaml_CParser’:
    ext/_yaml.c:23890:5: error: lvalue required as increment operand
    23890 |     ++Py_REFCNT(o);
          |     ^~
    ext/_yaml.c:23892:5: error: lvalue required as decrement operand
    23892 |     --Py_REFCNT(o);
          |     ^~
    ext/_yaml.c: In function ‘__pyx_tp_dealloc_5_yaml_CEmitter’:
    ext/_yaml.c:24071:5: error: lvalue required as increment operand
    24071 |     ++Py_REFCNT(o);
          |     ^~
    ext/_yaml.c:24073:5: error: lvalue required as decrement operand
    24073 |     --Py_REFCNT(o);
          |     ^~
    ext/_yaml.c: In function ‘__Pyx_ParseOptionalKeywords’:
    ext/_yaml.c:26135:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
    26135 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                     ^
    In file included from /usr/include/python3.10/unicodeobject.h:1026,
                     from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/cpython/unicodeobject.h:442:26: note: declared here
      442 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    ext/_yaml.c:26135:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
    26135 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                     ^
    In file included from /usr/include/python3.10/unicodeobject.h:1026,
                     from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/cpython/unicodeobject.h:576:45: note: declared here
      576 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
          |                                             ^~~~~~~~~~~~~~~~~~~
    ext/_yaml.c:26135:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
    26135 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                     ^
    In file included from /usr/include/python3.10/unicodeobject.h:1026,
                     from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/cpython/unicodeobject.h:442:26: note: declared here
      442 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    ext/_yaml.c:26135:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
    26135 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                     ^
    In file included from /usr/include/python3.10/unicodeobject.h:1026,
                     from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/cpython/unicodeobject.h:442:26: note: declared here
      442 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    ext/_yaml.c:26135:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
    26135 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                     ^
    In file included from /usr/include/python3.10/unicodeobject.h:1026,
                     from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/cpython/unicodeobject.h:576:45: note: declared here
      576 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
          |                                             ^~~~~~~~~~~~~~~~~~~
    ext/_yaml.c:26135:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
    26135 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                     ^
    In file included from /usr/include/python3.10/unicodeobject.h:1026,
                     from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/cpython/unicodeobject.h:442:26: note: declared here
      442 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    ext/_yaml.c:26151:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
    26151 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                         ^
    In file included from /usr/include/python3.10/unicodeobject.h:1026,
                     from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/cpython/unicodeobject.h:442:26: note: declared here
      442 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    ext/_yaml.c:26151:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
    26151 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                         ^
    In file included from /usr/include/python3.10/unicodeobject.h:1026,
                     from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/cpython/unicodeobject.h:576:45: note: declared here
      576 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
          |                                             ^~~~~~~~~~~~~~~~~~~
    ext/_yaml.c:26151:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
    26151 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                         ^
    In file included from /usr/include/python3.10/unicodeobject.h:1026,
                     from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/cpython/unicodeobject.h:442:26: note: declared here
      442 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    ext/_yaml.c:26151:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
    26151 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                         ^
    In file included from /usr/include/python3.10/unicodeobject.h:1026,
                     from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/cpython/unicodeobject.h:442:26: note: declared here
      442 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    ext/_yaml.c:26151:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
    26151 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                         ^
    In file included from /usr/include/python3.10/unicodeobject.h:1026,
                     from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/cpython/unicodeobject.h:576:45: note: declared here
      576 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
          |                                             ^~~~~~~~~~~~~~~~~~~
    ext/_yaml.c:26151:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
    26151 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                         ^
    In file included from /usr/include/python3.10/unicodeobject.h:1026,
                     from /usr/include/python3.10/Python.h:97,
                     from ext/_yaml.c:4:
    /usr/include/python3.10/cpython/unicodeobject.h:442:26: note: declared here
      442 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    Error compiling module, falling back to pure Python
@nitzmahone
Copy link
Member

At first glance, this is likely a Cython issue around C API changes in Python 3.10- I'll leave this one open, but given that 3.9 isn't even hitting beta until October, 3.10 support is a ways off. We did some hasty releases too early in Python 3.8 trying to address Cython issues that ended up getting fixed directly in Cython and CPython- we had to re-release a couple times to end up landing exactly where we started. I don't want to make that mistake again, so we'll watch to see what happens and check up on this when 3.10 gets a little closer to reality (and the upstream tools we need actually verify support for it).

@The-Compiler
Copy link
Contributor Author

FWIW I'm not sure if Python 3.9 is affected as well, and I currently don't have an easy way to test that.

@nitzmahone
Copy link
Member

C extension builds/works fine under 3.9b3 on Fedora 32.

@nitzmahone
Copy link
Member

I'm able to build against 3.10rc1 locally just fine, but I'm adding this to the 5.4.2 project since that's where official 3.10 support will come in.

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

2 participants