ruamel-yaml-clib 0.2.8 failed to build on latest xcode
C version of reader, parser and emitter for ruamel.yaml
Brought to you by:
anthon
looks like ruamel-yaml-clib 0.2.8 does not build for the xcode
building '_ruamel_yaml' extension
creating build/temp.macosx-14.0-arm64-cpython-312
clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -I/opt/homebrew/Cellar/ansible-lint/24.2.1/libexec/include -I/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c _ruamel_yaml.c -o build/temp.macosx-14.0-arm64-cpython-312/_ruamel_yaml.o
_ruamel_yaml.c:5929:52: error: incompatible function pointer types passing 'int (void *, char *, int, int *)' to parameter of type 'yaml_read_handler_t *' (aka 'int (*)(void *, unsigned char *, unsigned long, unsigned long *)') [-Wincompatible-function-pointer-types]
yaml_parser_set_input((&__pyx_v_self->parser), __pyx_f_6ruamel_4yaml_4clib_12_ruamel_yaml_input_handler, ((void *)__pyx_v_self));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./yaml.h:1370:30: note: passing argument to parameter 'handler' here
yaml_read_handler_t *handler, void *data);
^
_ruamel_yaml.c:16882:53: error: incompatible function pointer types passing 'int (void *, char *, int)' to parameter of type 'yaml_write_handler_t *' (aka 'int (*)(void *, unsigned char *, unsigned long)') [-Wincompatible-function-pointer-types]
yaml_emitter_set_output((&__pyx_v_self->emitter), __pyx_f_6ruamel_4yaml_4clib_12_ruamel_yaml_output_handler, ((void *)__pyx_v_self));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./yaml.h:1837:31: note: passing argument to parameter 'handler' here
yaml_write_handler_t *handler, void *data);
^
2 errors generated.
error: command '/opt/homebrew/Library/Homebrew/shims/mac/super/clang' failed with exit code 1
error: subprocess-exited-with-error
× Building wheel for ruamel.yaml.clib (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /opt/homebrew/Cellar/ansible-lint/24.2.1/libexec/bin/python /opt/homebrew/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_wheel /private/tmp/tmpc9aceg3i
cwd: /private/tmp/ansible-lint--ruamel-yaml-clib-20240313-7426-gu71dm/ruamel.yaml.clib-0.2.8
Building wheel for ruamel.yaml.clib (pyproject.toml): finished with status 'error'
ERROR: Failed building wheel for ruamel.yaml.clib
Failed to build ruamel.yaml.clib
ERROR: Could not build wheels for ruamel.yaml.clib, which is required to install pyproject.toml-based projects
relates to
https://github.com/Homebrew/homebrew-core/pull/165998
https://github.com/Homebrew/homebrew-core/pull/166000
Might be the same issue as: https://sourceforge.net/p/ruamel-yaml-clib/tickets/22/