Bug#1081631: FTBFS with Python 3.13

Antonio Valentino antonio.valentino at tiscali.it
Sat Sep 14 11:53:46 BST 2024


On Fri, 13 Sep 2024 12:17:20 +0200 Stefano Rivera <stefanor at debian.org> 
wrote:
> Source: pyzoltan
> Version: 1.0.1-9
> Severity: serious
> Tags: ftbfs
> Justification: FTBFS
> 
> This package failed build from source when test-built.
> 
> The rebuild was part of a Python 3.13 rebuild, but it reproduces in a
> pristine sid environment.
> 
> Log snippet:
> 
> creating build/temp.linux-aarch64-cpython-313/pyzoltan/core
> aarch64-linux-gnu-g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/trilinos -I/<<PKGBUILDDIR>>/pyzoltan/czoltan -I/usr/lib/python3/dist-packages/cyarray -I/usr/lib/python3/dist-packages/mpi4py/include -I/usr/include/python3.13 -c pyzoltan/core/zoltan.cpp -o build/temp.linux-aarch64-cpython-313/pyzoltan/core/zoltan.o -I/usr/lib/aarch64-linux-gnu/openmpi/include -I/usr/lib/aarch64-linux-gnu/openmpi/include/openmpi
> In file included from /usr/lib/python3/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1929,
>                  from /usr/lib/python3/dist-packages/numpy/core/include/numpy/ndarrayobject.h:12,
>                  from /usr/lib/python3/dist-packages/numpy/core/include/numpy/arrayobject.h:5,
>                  from pyzoltan/core/zoltan.cpp:1291:
> /usr/lib/python3/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
>    17 | #warning "Using deprecated NumPy API, disable it with " \
>       |  ^~~~~~~
> pyzoltan/core/zoltan.cpp:2287:3: error: ‘MPI_Session’ does not name a type
>  2287 |   MPI_Session ob_mpi;
>       |   ^~~~~~~~~~~
> error: command '/usr/bin/aarch64-linux-gnu-g++' failed with exit code 1
> E: pybuild pybuild:389: build: plugin distutils failed with: exit code=1: /usr/bin/python3.13 setup.py build 
> I: pybuild base:311: /usr/bin/python3 setup.py build 


Looking at the generated zoltan.cpp line 2287 the problem seems to come 
form the following statement:

/* "mpi4py/MPI.pxd":107
  *     cdef object       __weakref__
  *
  * ctypedef api class Session [             # <<<<<<<<<<<<<<
  *     type   PyMPISession_Type,
  *     object PyMPISessionObject,
  */
struct PyMPISessionObject {
   PyObject_HEAD
   MPI_Session ob_mpi;  // line 2278
   unsigned int flags;
   PyObject *__weakref__;
};
typedef struct PyMPISessionObject PyMPISessionObject;

Which is clearly linked to an issue in mpi4py.


Reassigning to mpi4py.

-- 
Antonio Valentino



More information about the debian-science-maintainers mailing list