8000 Compiling fails with Cython >= 3 · Issue #77 · SENeC-Initiative/DeNSE · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Compiling fails with Cython >= 3 #77

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

Open
tfardet opened this issue Jan 28, 2024 · 0 comments
Open

Compiling fails with Cython >= 3 #77

tfardet opened this issue Jan 28, 2024 · 0 comments
Labels
bug Something isn't working build help wanted Extra attention is needed

Comments

@tfardet
Copy link
Contributor
tfardet commented Jan 28, 2024

For some reason it is not possible to compile DeNSE with the new Cython 3 version.

Compilation fails with:

Dans le fichier inclus depuis /usr/include/python3.11/Python.h:11,
                 depuis DeNSE/src/pymodule/dense/_pygrowth.cpp:60:
DeNSE/src/pymodule/dense/_pygrowth.cpp: Dans la fonction « int __pyx_import_star_set(PyObject*, PyObject*, char*) »:
/usr/include/python3.11/patchlevel.h:19:33: erreur: l-valeur exigée comme opérande de gauche de l'affectation
   19 | #define PY_MAJOR_VERSION        3
      |                                 ^
DeNSE/src/pymodule/dense/_pygrowth.cpp:52624:3: note: dans l'expansion de la macro « PY_MAJOR_VERSION »
52624 |   PY_MAJOR_VERSION = __Pyx_PyInt_As_int(o); if (unlikely((PY_MAJOR_VERSION == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 203, __pyx_L2_error)
      |   ^~~~~~~~~~~~~~~~
/usr/include/python3.11/pyport.h:132:27: erreur: l-valeur exigée comme opérande de gauche de l'affectation
  132 | #   define PY_SSIZE_T_MAX SSIZE_MAX
      |                           ^~~~~~~~~
DeNSE/src/pymodule/dense/_pygrowth.cpp:52627:3: note: dans l'expansion de la macro « PY_SSIZE_T_MAX »
52627 |   PY_SSIZE_T_MAX = __Pyx_PyIndex_AsSsize_t(o); if (unlikely((PY_SSIZE_T_MAX == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 63, __pyx_L2_error)
      |   ^~~~~~~~~~~~~~
error: command '/usr/bin/gcc' failed with exit code 1
@tfardet tfardet added bug Something isn't working help wanted Extra attention is needed build labels Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant
0