Closed yc2984 closed 1 month ago
Similar problem on Fedora 41.
× Building wheel for msgspec (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [47 lines of output]
running bdist_wheel
running build
running build_py
creating build/lib.linux-x86_64-cpython-313/msgspec
copying msgspec/__init__.py -> build/lib.linux-x86_64-cpython-313/msgspec
copying msgspec/_json_schema.py -> build/lib.linux-x86_64-cpython-313/msgspec
copying msgspec/_utils.py -> build/lib.linux-x86_64-cpython-313/msgspec
copying msgspec/_version.py -> build/lib.linux-x86_64-cpython-313/msgspec
copying msgspec/inspect.py -> build/lib.linux-x86_64-cpython-313/msgspec
copying msgspec/json.py -> build/lib.linux-x86_64-cpython-313/msgspec
copying msgspec/msgpack.py -> build/lib.linux-x86_64-cpython-313/msgspec
copying msgspec/structs.py -> build/lib.linux-x86_64-cpython-313/msgspec
copying msgspec/toml.py -> build/lib.linux-x86_64-cpython-313/msgspec
copying msgspec/yaml.py -> build/lib.linux-x86_64-cpython-313/msgspec
copying msgspec/__init__.pyi -> build/lib.linux-x86_64-cpython-313/msgspec
copying msgspec/json.pyi -> build/lib.linux-x86_64-cpython-313/msgspec
copying msgspec/msgpack.pyi -> build/lib.linux-x86_64-cpython-313/msgspec
copying msgspec/structs.pyi -> build/lib.linux-x86_64-cpython-313/msgspec
copying msgspec/py.typed -> build/lib.linux-x86_64-cpython-313/msgspec
warning: cmd_build_py: byte-compiling is disabled, skipping.
UPDATING build/lib.linux-x86_64-cpython-313/msgspec/_version.py
set build/lib.linux-x86_64-cpython-313/msgspec/_version.py to '0.18.5'
running build_ext
building 'msgspec._core' extension
creating build/temp.linux-x86_64-cpython-313/msgspec
gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -I/opt/venv/include -I/usr/include/python3.13 -c msgspec/_core.c -o build/temp.linux-x86_64-cpython-313/msgspec/_core.o
msgspec/_core.c: In function ‘find_keyword’:
msgspec/_core.c:499:13: error: implicit declaration of function ‘_PyUnicode_EQ’; did you mean ‘PyUnicode_New’? [-Wimplicit-function-declaration]
499 | if (_PyUnicode_EQ(kwname, key)) {
| ^~~~~~~~~~~~~
| PyUnicode_New
msgspec/_core.c: In function ‘typenode_collect_convert_structs’:
msgspec/_core.c:4260:12: error: implicit declaration of function ‘_PySet_NextEntry’ [-Wimplicit-function-declaration]
4260 | while (_PySet_NextEntry(state->structs_set, &set_pos, &set_item, &set_hash)) {
| ^~~~~~~~~~~~~~~~
msgspec/_core.c: In function ‘ms_uuid_to_16_bytes’:
msgspec/_core.c:10874:15: error: too few arguments to function ‘_PyLong_AsByteArray’
10874 | int out = _PyLong_AsByteArray((PyLongObject *)int128, buf, 16, 0, 0);
| ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.13/longobject.h:107,
from /usr/include/python3.13/Python.h:81,
from msgspec/_core.c:9:
/usr/include/python3.13/cpython/longobject.h:111:17: note: declared here
111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
| ^~~~~~~~~~~~~~~~~~~
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for msgspec
Description
OS: macOS Sonoma 14.6.1 Python 3.13.