Skip to content

BUG: error: implicit declaration of function ‘_Py_HashDouble’ (building with Python 3.13~alpha1) #25035

Closed
@befeleme

Description

@befeleme

Describe the issue:

Hello,
in Fedora Linux, we've already started integrating Python 3.13 into the ecosystem.
Numpy is high on our list of priorities as many other libraries depend on it.
During the RPM build I've encountered a build failure that I'm unable to mitigate, see below.

Error message:

In file included from ../../numpy/core/src/multiarray/scalartypes.c.src:16:
  ../../numpy/core/src/multiarray/scalartypes.c.src: In function ‘float_arrtype_hash’:
  ../../numpy/core/src/common/npy_pycompat.h:12:24: error: implicit declaration of function ‘_Py_HashDouble’; did you mean ‘Npy_HashDouble’? [-Werror=implicit-function-declaration]
     12 | #define Npy_HashDouble _Py_HashDouble
        |                        ^~~~~~~~~~~~~~
  ../../numpy/core/src/multiarray/scalartypes.c.src:3418:12: note: in expansion of macro ‘Npy_HashDouble’
   3418 |     return Npy_HashDouble(obj, (double)PyArrayScalar_VAL(obj, @name@));
        |            ^~~~~~~~~~~~~~

Runtime information:

1.26.0

Context for the issue:

This function has been moved to the internal API: python/cpython#107026
There's already a discussion about restoring it: python/cpython#111418

At this point, we're unable to build a working numpy RPM and our integration efforts have to pause.

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