Skip to content

BUG: Python 3.13t tests are failing in manylinux_2_28 #28570

@mayeut

Description

@mayeut

Describe the issue:

Python 3.13t tests are failing in manylinux_2_28

c.f. the last run of the wheel builder workflow on main: https://github.com/numpy/numpy/actions/runs/14014895658

Introduced in #28436, the last commit did not trigger the wheel builder workflow which probably mislead the reviewer in thinking that everything was ok with gcc-toolset-14.

The analysis of the issue shows that it's a bug in gcc-toolset-14, reported to RH: https://issues.redhat.com/browse/RHEL-84606

manylinux_2_28 will be patched while waiting for feedback from RH

The difference in tests outcome between Python 3.13t and other Python versions can probably be explained by the version of Cython used and/or generated code for free-threading differs from the non free-threading one.

Reproduce the code example:

trigger the wheel builder workflow

The failing test does more or less:
python -c 'import numpy; import extending_cpp'

Error message:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
    import numpy; import extending_cpp
                  ^^^^^^^^^^^^^^^^^^^^
ImportError: /tmp/pytest-of-root/pytest-0/popen-gw4/test_cython0/random/_examples/cython/build/extending_cpp.cpython-313t-aarch64-linux-gnu.so: undefined symbol: __gxx_personality_v0

Python and NumPy Versions:

main

Runtime Environment:

manylinux_2_28

Context for the issue:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions