Bug#978175: petsc4py: FTBFS: src/petsc4py.PETSc.c:330930:43: error: ‘MATDAAD’ undeclared (first use in this function)

Lucas Nussbaum lucas at debian.org
Sat Dec 26 21:33:01 GMT 2020


Source: petsc4py
Version: 3.14.0-2
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20201226 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> PYBUILD_NAME=petsc4py_real3.14 PETSC_DIR=/usr/lib/petscdir/petsc3.14/x86_64-linux-gnu-real  dh_auto_build -ppython3-petsc4py-real3.14 -- --build-args=--force
> I: pybuild base:232: /usr/bin/python3 setup.py build --force
> running build
> running build_src
> cythonizing 'petsc4py.PETSc.pyx' -> 'petsc4py.PETSc.c'
> /usr/lib/python3/dist-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: include/petsc4py/PETSc.pxd
>   tree = Parsing.p_module(s, pxd, full_module_name)
> cythonizing 'libpetsc4py/libpetsc4py.pyx' -> 'libpetsc4py/libpetsc4py.c'
> /usr/lib/python3/dist-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /<<PKGBUILDDIR>>/src/libpetsc4py/libpetsc4py.pyx
>   tree = Parsing.p_module(s, pxd, full_module_name)
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_petsc4py_real3.14/build/petsc4py
> copying src/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_petsc4py_real3.14/build/petsc4py
> copying src/__main__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_petsc4py_real3.14/build/petsc4py
> copying src/PETSc.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_petsc4py_real3.14/build/petsc4py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_petsc4py_real3.14/build/petsc4py/lib
> copying src/lib/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_petsc4py_real3.14/build/petsc4py/lib
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_petsc4py_real3.14/build/petsc4py/include
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_petsc4py_real3.14/build/petsc4py/include/petsc4py
> copying src/include/petsc4py/petsc4py.PETSc_api.h -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_petsc4py_real3.14/build/petsc4py/include/petsc4py
> copying src/include/petsc4py/petsc4py.h -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_petsc4py_real3.14/build/petsc4py/include/petsc4py
> copying src/include/petsc4py/numpy.h -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_petsc4py_real3.14/build/petsc4py/include/petsc4py
> copying src/include/petsc4py/petsc4py.PETSc.h -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_petsc4py_real3.14/build/petsc4py/include/petsc4py
> copying src/include/petsc4py/petsc4py.i -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_petsc4py_real3.14/build/petsc4py/include/petsc4py
> copying src/include/petsc4py/__init__.pxd -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_petsc4py_real3.14/build/petsc4py/include/petsc4py
> copying src/include/petsc4py/PETSc.pxd -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_petsc4py_real3.14/build/petsc4py/include/petsc4py
> copying src/include/petsc4py/__init__.pyx -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_petsc4py_real3.14/build/petsc4py/include/petsc4py
> copying src/PETSc.pxd -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_petsc4py_real3.14/build/petsc4py
> copying src/lib/petsc.cfg -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_petsc4py_real3.14/build/petsc4py/lib
> running build_ext
> PETSC_DIR:    /usr/lib/petscdir/petsc3.14/x86_64-linux-gnu-real
> PETSC_ARCH:   
> version:      3.14.2 release
> integer-size: 32-bit
> scalar-type:  real
> precision:    double
> language:     CONLY
> compiler:     mpicc
> linker:       mpicc
> building 'PETSc' extension
> creating build
> creating build/temp.linux-x86_64-3.9
> creating build/temp.linux-x86_64-3.9/src
> mpicc -pthread -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/hdf5/openmpi -I/usr/include/scotch -I/usr/include/superlu-dist -I/usr/include/superlu -I/usr/include/suitesparse -I/usr/include/hypre -I/usr/lib/petscdir/petsc3.14/x86_64-linux-gnu-real/include -Isrc/include -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.9 -c src/PETSc.c -o build/temp.linux-x86_64-3.9/src/PETSc.o
> In file included from src/PETSc.c:4:
> src/petsc4py.PETSc.c: In function ‘__pyx_pymod_exec_PETSc’:
> src/petsc4py.PETSc.c:330930:43: error: ‘MATDAAD’ undeclared (first use in this function)
> 330930 |   __pyx_t_7 = __pyx_f_8petsc4py_5PETSc_S_(MATDAAD); if (unlikely(!__pyx_t_7)) __PYX_ERR(38, 49, __pyx_L1_error)
>        |                                           ^~~~~~~
> src/petsc4py.PETSc.c:330930:43: note: each undeclared identifier is reported only once for each function it appears in
> error: command '/usr/bin/mpicc' failed with exit code 1
> E: pybuild pybuild:353: build: plugin distutils failed with: exit code=1: /usr/bin/python3 setup.py build --force
> dh_auto_build: error: pybuild --build -i python{version} -p 3.9 --build-args=--force returned exit code 13
> make[1]: *** [debian/rules:55: override_dh_auto_build-arch] Error 25

The full build log is available from:
   http://qa-logs.debian.net/2020/12/26/petsc4py_3.14.0-2_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with me
so that we can identify if something relevant changed in the meantime.

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the debian-science-maintainers mailing list