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

Build fails on macOS 14 (Sonoma) #182

Closed
Rid opened this issue Nov 7, 2024 · 1 comment
Closed

Build fails on macOS 14 (Sonoma) #182

Rid opened this issue Nov 7, 2024 · 1 comment

Comments

@Rid
Copy link

Rid commented Nov 7, 2024

OS: macOS 14.6.1 23G93 arm64
Python 3.13.0
Apple clang version 16.0.0 (clang-1600.0.26.4)
Target: arm64-apple-darwin23.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Here is the error:

$ pip install yappi>=1.6.9
  error: subprocess-exited-with-error

  × Building wheel for yappi (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [21 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build/lib.macosx-14.0-arm64-cpython-313
      copying yappi/yappi.py -> build/lib.macosx-14.0-arm64-cpython-313
      running build_ext
      building '_yappi' extension
      creating build/temp.macosx-14.0-arm64-cpython-313/yappi
      clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -I/Users/rid/Development/venv/main/include -I/opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13 -c yappi/_yappi.c -o build/temp.macosx-14.0-arm64-cpython-313/yappi/_yappi.o
      yappi/_yappi.c:1288:5: error: call to undeclared function '_PyEval_SetProfile'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
       1288 |     _PyEval_SetProfile(ts, _yapp_callback, NULL);
            |     ^
      yappi/_yappi.c:1288:5: note: did you mean 'PyEval_SetProfile'?
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/ceval.h:5:18: note: 'PyEval_SetProfile' declared here
          5 | PyAPI_FUNC(void) PyEval_SetProfile(Py_tracefunc, PyObject *);
            |                  ^
      yappi/_yappi.c:1302:5: error: call to undeclared function '_PyEval_SetProfile'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
       1302 |     _PyEval_SetProfile(ts, NULL, NULL);
            |     ^
      2 errors 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 yappi
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (yappi)

Related:
llvm/llvm-project#87221
shellinabox/shellinabox#518
https://gitlab.gnome.org/GNOME/pan/-/issues/177

@Rid
Copy link
Author

Rid commented Nov 7, 2024

Seems to also work with xcode upgrade, closing.

@Rid Rid closed this as completed Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant