Repository navigation
Closed
Description
Description
OS: macOS Sonoma 14.6.1
Python 3.13.
pip install msgspec
Collecting msgspec
Downloading msgspec-0.18.6.tar.gz (216 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: msgspec
Building wheel for msgspec (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for msgspec (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [55 lines of output]
running bdist_wheel
running build
running build_py
creating build/lib.macosx-10.13-universal2-cpython-313/msgspec
copying msgspec/msgpack.py -> build/lib.macosx-10.13-universal2-cpython-313/msgspec
copying msgspec/_version.py -> build/lib.macosx-10.13-universal2-cpython-313/msgspec
copying msgspec/__init__.py -> build/lib.macosx-10.13-universal2-cpython-313/msgspec
copying msgspec/yaml.py -> build/lib.macosx-10.13-universal2-cpython-313/msgspec
copying msgspec/structs.py -> build/lib.macosx-10.13-universal2-cpython-313/msgspec
copying msgspec/inspect.py -> build/lib.macosx-10.13-universal2-cpython-313/msgspec
copying msgspec/_json_schema.py -> build/lib.macosx-10.13-universal2-cpython-313/msgspec
copying msgspec/json.py -> build/lib.macosx-10.13-universal2-cpython-313/msgspec
copying msgspec/_utils.py -> build/lib.macosx-10.13-universal2-cpython-313/msgspec
copying msgspec/toml.py -> build/lib.macosx-10.13-universal2-cpython-313/msgspec
copying msgspec/msgpack.pyi -> build/lib.macosx-10.13-universal2-cpython-313/msgspec
copying msgspec/__init__.pyi -> build/lib.macosx-10.13-universal2-cpython-313/msgspec
copying msgspec/json.pyi -> build/lib.macosx-10.13-universal2-cpython-313/msgspec
copying msgspec/structs.pyi -> build/lib.macosx-10.13-universal2-cpython-313/msgspec
copying msgspec/py.typed -> build/lib.macosx-10.13-universal2-cpython-313/msgspec
UPDATING build/lib.macosx-10.13-universal2-cpython-313/msgspec/_version.py
set build/lib.macosx-10.13-universal2-cpython-313/msgspec/_version.py to '0.18.6'
running build_ext
building 'msgspec._core' extension
creating build/temp.macosx-10.13-universal2-cpython-313/msgspec
clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -arch arm64 -arch x86_64 "-I/Users/yangcao/Library/Mobile Documents/com~apple~CloudDocs/Repositories/monorepo/ewx-root/context/ewx-opsy/.venv/include" -I/Library/Frameworks/Python.framework/Versions/3.13/include/python3.13 -c msgspec/_core.c -o build/temp.macosx-10.13-universal2-cpython-313/msgspec/_core.o
msgspec/_core.c:500:13: error: call to undeclared function '_PyUnicode_EQ'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
500 | if (_PyUnicode_EQ(kwname, key)) {
| ^
msgspec/_core.c:4452:12: error: call to undeclared function '_PySet_NextEntry'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
4452 | while (_PySet_NextEntry(state->structs_set, &set_pos, &set_item, &set_hash)) {
| ^
msgspec/_core.c:7316:17: error: call to undeclared function '_PyUnicode_EQ'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
7316 | if (_PyUnicode_EQ(kwname, field)) {
| ^
msgspec/_core.c:7723:17: error: call to undeclared function '_PyUnicode_EQ'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
7723 | if (_PyUnicode_EQ(kwname, field)) goto kw_found;
| ^
msgspec/_core.c:11254:72: error: too few arguments to function call, expected 6, have 5
11254 | int out = _PyLong_AsByteArray((PyLongObject *)int128, buf, 16, 0, 0);
| ~~~~~~~~~~~~~~~~~~~ ^
/Library/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/longobject.h:111:17: note: '_PyLong_AsByteArray' declared here
111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
| ^ ~~~~~~~~~~~~~~~~
112 | unsigned char* bytes, size_t n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
113 | int little_endian, int is_signed, int with_exceptions);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
msgspec/_core.c:12426:12: error: call to undeclared function '_PySet_NextEntry'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
12426 | while (_PySet_NextEntry(obj, &ppos, &item, &hash)) {
| ^
msgspec/_core.c:13748:12: error: call to undeclared function '_PySet_NextEntry'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
13748 | while (_PySet_NextEntry(obj, &ppos, &item, &hash)) {
| ^
7 errors generated.
error: command '/usr/local/opt/llvm/bin/clang' 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
Failed to build msgspec
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (msgspec)
Reacted by dnso86, Andrey Tikhonov, francoisNeoOilTools, Harshil, LouisP0 and Michael Gurbanov
Metadata
Metadata
Assignees
Labels
No labels
Activity
dnso86 commentedon Oct 3, 2024
Similar problem on Fedora 41.
JacobCoffee commentedon Oct 4, 2024
Dupe of #698