cython: [BUG] Not compatible with gcc 11
Describe the bug
After recent update to gcc I am getting missing symbols when trying to load the .so generated by cython. In particular I am getting throw_bad_array_new_lengthv. After downgrading to gcc 10.2.0 the error disappears.
To Reproduce
- install gcc 11.1.0
- compile any cython code
- ??
- error
Expected behavior
No missing symbols, in particular throw_bad_array_new_lengthv
Environment (please complete the following information):
- OS: Linux
- Python version 3.9.4
- Cython version 3.07a
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 19 (7 by maintainers)
Commits related to this issue
- Use a sentinel for managing vectors' memory StdVectorSentinel makes a proper life-cycle management for std::vectors' buffers possible. Duplication seems needed as fused types can't be used as attrib... — committed to jjerphan/scikit-learn by jjerphan 3 years ago
- Use a sentinel for managing vectors' memory StdVectorSentinel makes a proper life-cycle management for std::vectors' buffers possible. Duplication seems needed as fused types can't be used as attrib... — committed to jjerphan/scikit-learn by jjerphan 3 years ago
Closing since it’s not something that Cython can (or should) handle.