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

legacy-install-failure with pip in Mac M1 chip, unable to pip install yajl #244

Open
pajain-mdsol opened this issue Aug 15, 2022 · 1 comment

Comments

@pajain-mdsol
Copy link

`pip install yajl
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at Homebrew/homebrew-core#76621
Collecting yajl
Using cached yajl-0.3.5.tar.gz (52 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: yajl
Building wheel for yajl (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [110 lines of output]
fatal: not a git repository (or any of the parent directories): .git
running bdist_wheel
running build
running build_ext
building 'yajl' extension
creating build
creating build/temp.macosx-12-arm64-cpython-39
creating build/temp.macosx-12-arm64-cpython-39/yajl
creating build/temp.macosx-12-arm64-cpython-39/yajl/src
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I. -Iincludes/ -Iyajl/src -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c decoder.c -o build/temp.macosx-12-arm64-cpython-39/decoder.o -Wall
decoder.c:111:39: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
for (floaty_char = 0; floaty_char < length; floaty_char++) {
~~~~~~~~~~~ ^ ~~~~~~
decoder.c:120:21: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
if (floaty_char >= length) {
~~~~~~~~~~~ ^ ~~~~~~
2 warnings generated.
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I. -Iincludes/ -Iyajl/src -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c encoder.c -o build/temp.macosx-12-arm64-cpython-39/encoder.o -Wall
encoder.c:63:29: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
Py_ssize_t length = PyUnicode_GET_SIZE(object);
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE'
PyUnicode_WSTR_LENGTH(op) :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
#define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
Py_DEPRECATED(3.3)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
encoder.c:63:29: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]
Py_ssize_t length = PyUnicode_GET_SIZE(object);
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE'
((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked deprecated here
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE ) PyUnicode_AsUnicode(
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
encoder.c:63:29: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
Py_ssize_t length = PyUnicode_GET_SIZE(object);
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE'
PyUnicode_WSTR_LENGTH(op)))
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
#define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject
)op)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
Py_DEPRECATED(3.3)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
encoder.c:64:35: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]
Py_UNICODE *raw_unicode = PyUnicode_AS_UNICODE(object);
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:279:7: note: expanded from macro 'PyUnicode_AS_UNICODE'
PyUnicode_AsUnicode(_PyObject_CAST(op)))
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked deprecated here
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
encoder.c:262:17: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'Py_ssize_t' (aka 'long') [-Wsign-compare]
if (newsize != Py_SIZE(sauc->str)) {
~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
5 warnings generated.
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I. -Iincludes/ -Iyajl/src -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c yajl.c -o build/temp.macosx-12-arm64-cpython-39/yajl.o -Wall
yajl.c:347:15: warning: incompatible function pointer types initializing 'PyCFunction' (aka 'struct _object ()(struct _object *, struct _object *)') with an expression of type 'PyCFunctionWithKeywords' (aka 'struct _object ()(struct _object *, struct _object *, struct _object *)') [-Wincompatible-function-pointer-types]
{"dumps", (PyCFunctionWithKeywords)(py_dumps), METH_VARARGS | METH_KEYWORDS,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
yajl.c:363:14: warning: incompatible function pointer types initializing 'PyCFunction' (aka 'struct _object ()(struct _object *, struct _object *)') with an expression of type 'PyCFunctionWithKeywords' (aka 'struct _object ()(struct _object *, struct _object *, struct _object *)') [-Wincompatible-function-pointer-types]
{"dump", (PyCFunctionWithKeywords)(py_dump), METH_VARARGS | METH_KEYWORDS,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
yajl.c:286:18: warning: unused function 'py_iterload' [-Wunused-function]
static PyObject *py_iterload(PYARGS)
^
3 warnings generated.
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I. -Iincludes/ -Iyajl/src -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c yajl/src/yajl.c -o build/temp.macosx-12-arm64-cpython-39/yajl/src/yajl.o -Wall
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I. -Iincludes/ -Iyajl/src -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c yajl/src/yajl_alloc.c -o build/temp.macosx-12-arm64-cpython-39/yajl/src/yajl_alloc.o -Wall
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I. -Iincludes/ -Iyajl/src -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c yajl/src/yajl_buf.c -o build/temp.macosx-12-arm64-cpython-39/yajl/src/yajl_buf.o -Wall
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I. -Iincludes/ -Iyajl/src -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c yajl/src/yajl_encode.c -o build/temp.macosx-12-arm64-cpython-39/yajl/src/yajl_encode.o -Wall
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I. -Iincludes/ -Iyajl/src -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c yajl/src/yajl_gen.c -o build/temp.macosx-12-arm64-cpython-39/yajl/src/yajl_gen.o -Wall
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I. -Iincludes/ -Iyajl/src -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c yajl/src/yajl_lex.c -o build/temp.macosx-12-arm64-cpython-39/yajl/src/yajl_lex.o -Wall
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I. -Iincludes/ -Iyajl/src -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c yajl/src/yajl_parser.c -o build/temp.macosx-12-arm64-cpython-39/yajl/src/yajl_parser.o -Wall
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I. -Iincludes/ -Iyajl/src -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c yajl_hacks.c -o build/temp.macosx-12-arm64-cpython-39/yajl_hacks.o -Wall
yajl_hacks.c:116:37: error: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-declaration]
ENSURE_VALID_STATE; INSERT_SEP; INSERT_WHITESPACE;
^
yajl_hacks.c:79:26: note: expanded from macro 'INSERT_WHITESPACE'
strlen(g->indentString));
^
yajl_hacks.c:116:37: note: include the header <string.h> or explicitly provide a declaration for 'strlen'
yajl_hacks.c:79:26: note: expanded from macro 'INSERT_WHITESPACE'
strlen(g->indentString));
^
yajl_hacks.c:118:22: warning: passing 'const unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
g->print(g->ctx, str, len);
^~~
1 warning and 1 error generated.
error: command '/usr/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 yajl
Running setup.py clean for yajl
Failed to build yajl
Installing collected packages: yajl
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at Homebrew/homebrew-core#76621
Running setup.py install for yajl ... error
error: subprocess-exited-with-error

× Running setup.py install for yajl did not run successfully.
│ exit code: 1
╰─> [112 lines of output]
fatal: not a git repository (or any of the parent directories): .git
running install
/opt/homebrew/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_ext
building 'yajl' extension
creating build
creating build/temp.macosx-12-arm64-cpython-39
creating build/temp.macosx-12-arm64-cpython-39/yajl
creating build/temp.macosx-12-arm64-cpython-39/yajl/src
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I. -Iincludes/ -Iyajl/src -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c decoder.c -o build/temp.macosx-12-arm64-cpython-39/decoder.o -Wall
decoder.c:111:39: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
for (floaty_char = 0; floaty_char < length; floaty_char++) {
~~~~~~~~~~~ ^ ~~~~~~
decoder.c:120:21: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
if (floaty_char >= length) {
~~~~~~~~~~~ ^ ~~~~~~
2 warnings generated.
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I. -Iincludes/ -Iyajl/src -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c encoder.c -o build/temp.macosx-12-arm64-cpython-39/encoder.o -Wall
encoder.c:63:29: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
Py_ssize_t length = PyUnicode_GET_SIZE(object);
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE'
PyUnicode_WSTR_LENGTH(op) :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
#define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
Py_DEPRECATED(3.3)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
encoder.c:63:29: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]
Py_ssize_t length = PyUnicode_GET_SIZE(object);
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE'
((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked deprecated here
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE ) PyUnicode_AsUnicode(
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
encoder.c:63:29: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
Py_ssize_t length = PyUnicode_GET_SIZE(object);
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE'
PyUnicode_WSTR_LENGTH(op)))
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
#define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject
)op)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
Py_DEPRECATED(3.3)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
encoder.c:64:35: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]
Py_UNICODE *raw_unicode = PyUnicode_AS_UNICODE(object);
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:279:7: note: expanded from macro 'PyUnicode_AS_UNICODE'
PyUnicode_AsUnicode(_PyObject_CAST(op)))
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked deprecated here
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
encoder.c:262:17: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'Py_ssize_t' (aka 'long') [-Wsign-compare]
if (newsize != Py_SIZE(sauc->str)) {
~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
5 warnings generated.
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I. -Iincludes/ -Iyajl/src -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c yajl.c -o build/temp.macosx-12-arm64-cpython-39/yajl.o -Wall
yajl.c:347:15: warning: incompatible function pointer types initializing 'PyCFunction' (aka 'struct _object ()(struct _object *, struct _object *)') with an expression of type 'PyCFunctionWithKeywords' (aka 'struct _object ()(struct _object *, struct _object *, struct _object *)') [-Wincompatible-function-pointer-types]
{"dumps", (PyCFunctionWithKeywords)(py_dumps), METH_VARARGS | METH_KEYWORDS,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
yajl.c:363:14: warning: incompatible function pointer types initializing 'PyCFunction' (aka 'struct _object ()(struct _object *, struct _object *)') with an expression of type 'PyCFunctionWithKeywords' (aka 'struct _object ()(struct _object *, struct _object *, struct _object *)') [-Wincompatible-function-pointer-types]
{"dump", (PyCFunctionWithKeywords)(py_dump), METH_VARARGS | METH_KEYWORDS,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
yajl.c:286:18: warning: unused function 'py_iterload' [-Wunused-function]
static PyObject *py_iterload(PYARGS)
^
3 warnings generated.
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I. -Iincludes/ -Iyajl/src -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c yajl/src/yajl.c -o build/temp.macosx-12-arm64-cpython-39/yajl/src/yajl.o -Wall
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I. -Iincludes/ -Iyajl/src -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c yajl/src/yajl_alloc.c -o build/temp.macosx-12-arm64-cpython-39/yajl/src/yajl_alloc.o -Wall
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I. -Iincludes/ -Iyajl/src -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c yajl/src/yajl_buf.c -o build/temp.macosx-12-arm64-cpython-39/yajl/src/yajl_buf.o -Wall
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I. -Iincludes/ -Iyajl/src -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c yajl/src/yajl_encode.c -o build/temp.macosx-12-arm64-cpython-39/yajl/src/yajl_encode.o -Wall
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I. -Iincludes/ -Iyajl/src -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c yajl/src/yajl_gen.c -o build/temp.macosx-12-arm64-cpython-39/yajl/src/yajl_gen.o -Wall
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I. -Iincludes/ -Iyajl/src -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c yajl/src/yajl_lex.c -o build/temp.macosx-12-arm64-cpython-39/yajl/src/yajl_lex.o -Wall
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I. -Iincludes/ -Iyajl/src -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c yajl/src/yajl_parser.c -o build/temp.macosx-12-arm64-cpython-39/yajl/src/yajl_parser.o -Wall
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I. -Iincludes/ -Iyajl/src -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c yajl_hacks.c -o build/temp.macosx-12-arm64-cpython-39/yajl_hacks.o -Wall
yajl_hacks.c:116:37: error: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-declaration]
ENSURE_VALID_STATE; INSERT_SEP; INSERT_WHITESPACE;
^
yajl_hacks.c:79:26: note: expanded from macro 'INSERT_WHITESPACE'
strlen(g->indentString));
^
yajl_hacks.c:116:37: note: include the header <string.h> or explicitly provide a declaration for 'strlen'
yajl_hacks.c:79:26: note: expanded from macro 'INSERT_WHITESPACE'
strlen(g->indentString));
^
yajl_hacks.c:118:22: warning: passing 'const unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
g->print(g->ctx, str, len);
^~~
1 warning and 1 error generated.
error: command '/usr/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: legacy-install-failure

× Encountered error while trying to install package.
╰─> yajl

note: This is an issue with the package mentioned above, not pip.`

@Horizonik
Copy link

Horizonik commented Aug 2, 2023

I had the same issue. The error contains a lot of C code, just fiddling and guessing around I managed to fix it by installing gcc:
brew install gcc

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