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

[BUG] Duplicate __Pyx_PyInt_As_int functions #5623

Closed
FrancescAlted opened this issue Aug 15, 2023 · 0 comments · Fixed by #5632
Closed

[BUG] Duplicate __Pyx_PyInt_As_int functions #5623

FrancescAlted opened this issue Aug 15, 2023 · 0 comments · Fixed by #5632

Comments

@FrancescAlted
Copy link

FrancescAlted commented Aug 15, 2023

Describe the bug

We are having an issue when migrating to recent Cython 3.0. The compiler issues the next error:

/Users/faltet/blosc/python-blosc2/_skbuild/macosx-13.0-arm64-3.11/cmake-build/blosc2/blosc2_ext.c:71562:28: error: redefinition of '__Pyx_PyInt_As_int'
  static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) {
                           ^
/Users/faltet/blosc/python-blosc2/_skbuild/macosx-13.0-arm64-3.11/cmake-build/blosc2/blosc2_ext.c:69734:28: note: previous definition is here
  static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) {
                           ^
2 warnings and 1 error generated.
make[2]: *** [blosc2/CMakeFiles/blosc2_ext.dir/blosc2_ext.c.o] Error 1
make[1]: *** [blosc2/CMakeFiles/blosc2_ext.dir/all] Error 2
make: *** [all] Error 2

Code to reproduce the behaviour:

You can reproduce the issue by going to the python-blosc2 project at: https://github.com/Blosc/python-blosc2 and compile the extension with regular:

python setup.py build_ext -j 8 -i

Expected behaviour

We are expecting a successful compilation. Actually, we are using Cython < 3 for many years, and never had this issue before.

OS

macOSX, Linux

Python version

any

Cython version

3.0.0

Additional context

No response

@da-woods da-woods changed the title [BUG] [BUG] Duplicate __Pyx_PyInt_As_int functions Aug 15, 2023
da-woods added a commit to da-woods/cython that referenced this issue Aug 18, 2023
da-woods added a commit that referenced this issue Aug 20, 2023
* Avoid conflict between int-to-py and anonymous-enum-to-py

Introduced in dec61cd

Fixes #5623

* Typos
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

Successfully merging a pull request may close this issue.

1 participant