package: petsc4py
version: 3.10.0-2
severity: serious

While trying to get the petsc/slepc/etc stack in raspbian buster into a 
consistent state I ran into the following error with petsc4py. I was also able 
to reproduce this in a Debian sid amd64 environment, so it's not raspbian 
specific.

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 -DPETSC_DIR=/usr/lib/petscdir/petsc3.10/arm-linux-gnueabihf-real 
-I/usr/include/scotch -I/usr/include/hdf5/openmpi -I/usr/include/hypre 
-I/usr/include/superlu-dist -I/usr/include/superlu -I/usr/include/suitesparse 
-I/usr/lib/petscdir/petsc3.10/arm-linux-gnueabihf-real/include -Isrc/include 
-I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c 
src/PETSc.c -o build/temp.linux-armhf-2.7/src/PETSc.o
In file included from src/PETSc.c:4:
src/petsc4py.PETSc.c: In function 'initPETSc':
src/petsc4py.PETSc.c:284319:43: error: 'SNESTEST' undeclared (first use in this 
function); did you mean 'SNESType'?
   __pyx_t_7 = __pyx_f_8petsc4py_5PETSc_S_(SNESTEST); if (unlikely(!__pyx_t_7)) 
__PYX_ERR(37, 7, __pyx_L1_error)
                                           ^~~~~~~~
                                           SNESType
src/petsc4py.PETSc.c:284319:43: note: each undeclared identifier is reported 
only once for each function it appears in
error: command 'mpicc' failed with exit status 1

Searching for SNESTEST on codesearch.debian.net reveals the following in the 
dolfin changelog.

  * create patch PETSc_3.10_SNESTEST_removed.patch to work with
*PETSc 3.10 (SNESTEST has been removed). Thanks Jed Brown. Presumablly a 
similar fix is needed in petsc4py. *


Reply via email to