Build failed with PETSc-3.7.7 and Numpy-1.12.1

Issue #73 invalid
sagitter created an issue

Hi all.

petsc4py commit 3ca5972a8b7665c3ed02fdc766e9a4c390116009 is not building against (OpenMPI) PETSc-3.7.7 with following errors:

+ cd petsc4py
+ export PETSC_DIR=/usr
+ PETSC_DIR=/usr
+ CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic'
+ /usr/bin/python2 setup.py build '--executable=/usr/bin/python2 -s'
running build
running build_src
cythonizing 'petsc4py.PETSc.pyx' -> 'petsc4py.PETSc.c'
cythonizing 'libpetsc4py/libpetsc4py.pyx' -> 'libpetsc4py/libpetsc4py.c'
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/petsc4py
copying src/__init__.py -> build/lib.linux-x86_64-2.7/petsc4py
copying src/PETSc.py -> build/lib.linux-x86_64-2.7/petsc4py
copying src/__main__.py -> build/lib.linux-x86_64-2.7/petsc4py
creating build/lib.linux-x86_64-2.7/petsc4py/lib
copying src/lib/__init__.py -> build/lib.linux-x86_64-2.7/petsc4py/lib
creating build/lib.linux-x86_64-2.7/petsc4py/include
creating build/lib.linux-x86_64-2.7/petsc4py/include/petsc4py
copying src/include/petsc4py/numpy.h -> build/lib.linux-x86_64-2.7/petsc4py/include/petsc4py
copying src/include/petsc4py/petsc4py.PETSc.h -> build/lib.linux-x86_64-2.7/petsc4py/include/petsc4py
copying src/include/petsc4py/petsc4py.h -> build/lib.linux-x86_64-2.7/petsc4py/include/petsc4py
copying src/include/petsc4py/petsc4py.PETSc_api.h -> build/lib.linux-x86_64-2.7/petsc4py/include/petsc4py
copying src/include/petsc4py/petsc4py.i -> build/lib.linux-x86_64-2.7/petsc4py/include/petsc4py
copying src/include/petsc4py/PETSc.pxd -> build/lib.linux-x86_64-2.7/petsc4py/include/petsc4py
copying src/include/petsc4py/__init__.pxd -> build/lib.linux-x86_64-2.7/petsc4py/include/petsc4py
copying src/include/petsc4py/__init__.pyx -> build/lib.linux-x86_64-2.7/petsc4py/include/petsc4py
copying src/PETSc.pxd -> build/lib.linux-x86_64-2.7/petsc4py
copying src/lib/petsc.cfg -> build/lib.linux-x86_64-2.7/petsc4py/lib
running build_ext
PETSC_DIR:    /usr
PETSC_ARCH:   
version:      3.7.7 release
integer-size: 32-bit
scalar-type:  real
precision:    double
language:     CONLY
compiler:     /usr/lib64/openmpi/bin/mpicc
linker:       /usr/lib64/openmpi/bin/mpicc
building 'PETSc' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
/usr/lib64/openmpi/bin/mpicc -pthread -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O3 -Wl,-z,now -fPIC -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -DPETSC_DIR=/usr -I/usr/include/openmpi-x86_64/hypre -I/usr/include/openmpi-x86_64/petsc -I/usr/include -Isrc/include -I/usr/lib64/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c src/PETSc.c -o build/temp.linux-x86_64-2.7/src/PETSc.o
In file included from /usr/lib64/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1788:0,
                 from /usr/lib64/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
                 from /usr/lib64/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from src/include/petsc4py/numpy.h:11,
                 from src/petsc4py.PETSc.c:436,
                 from src/PETSc.c:3:
/usr/lib64/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \
  ^~~~~~~
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:2422:76: error: unknown type name 'ISGlobalToLocalMappingMode'; did you mean 'ISGlobalToLocalMappingType'?
 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ISGlobalToLocalMappingMode(ISGlobalToLocalMappingMode value);
                                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                            ISGlobalToLocalMappingType
src/petsc4py.PETSc.c:2598:22: error: unknown type name 'ISGlobalToLocalMappingMode'
 static CYTHON_INLINE ISGlobalToLocalMappingMode __Pyx_PyInt_As_ISGlobalToLocalMappingMode(PyObject *);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c: In function '__pyx_f_8petsc4py_5PETSc_toBool':
src/petsc4py.PETSc.c:8137:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
     __Pyx_INCREF(Py_True);
     ^~~~~~~~~~~~
src/petsc4py.PETSc.c:8140:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
     __Pyx_INCREF(Py_False);
     ^~~~~~~~~~~~
src/petsc4py.PETSc.c: In function '__pyx_pf_8petsc4py_5PETSc_5Error_2__nonzero__':
src/petsc4py.PETSc.c:53024:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
   __pyx_t_1 = __Pyx_PyBool_FromLong((__pyx_v_ierr != 0)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 13, __pyx_L1_error)
   ^~~~~~~~~
src/petsc4py.PETSc.c:53024:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c: In function '__pyx_pf_8petsc4py_5PETSc_3Sys_getVersion':
src/petsc4py.PETSc.c:56416:47: warning: implicit declaration of function 'PetscGetVersionNumber'; did you mean 'PetscGetVersion'? [-Wimplicit-function-declaration]
   __pyx_t_1 = __pyx_f_8petsc4py_5PETSc_CHKERR(PetscGetVersionNumber((&__pyx_v_major), (&__pyx_v_minor), (&__pyx_v_micro), (&__pyx_v_release))); if (unlikely(__pyx_t_1 == -1)) __PYX_ERR(25, 10, __pyx_L1_error)
                                               ^~~~~~~~~~~~~~~~~~~~~
                                               PetscGetVersion
src/petsc4py.PETSc.c:56504:7: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
       __pyx_t_5 = __Pyx_PyBool_FromLong((!((__pyx_v_release != 0) != 0))); if (unlikely(!__pyx_t_5)) __PYX_ERR(25, 15, __pyx_L1_error)
       ^~~~~~~~~
src/petsc4py.PETSc.c:56504:7: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
src/petsc4py.PETSc.c: In function '__pyx_pf_8petsc4py_5PETSc_3Sys_2getVersionInfo':
src/petsc4py.PETSc.c:57013:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
   __pyx_t_5 = __Pyx_PyBool_FromLong((!__pyx_t_8)); if (unlikely(!__pyx_t_5)) __PYX_ERR(25, 35, __pyx_L1_error)
   ^~~~~~~~~
src/petsc4py.PETSc.c:57013:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
src/petsc4py.PETSc.c: In function '__pyx_f_8petsc4py_5PETSc_set_citation':
src/petsc4py.PETSc.c:59201:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
   __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_is_set); if (unlikely(!__pyx_t_1)) __PYX_ERR(25, 181, __pyx_L1_error)
   ^~~~~~~~~
src/petsc4py.PETSc.c:59201:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
src/petsc4py.PETSc.c: In function '__pyx_pf_8petsc4py_5PETSc_4Comm_4__richcmp__':
src/petsc4py.PETSc.c:66076:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
         __pyx_t_6 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 34, __pyx_L1_error)
         ^~~~~~~~~
src/petsc4py.PETSc.c:66076:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
src/petsc4py.PETSc.c:66083:7: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
       __pyx_t_6 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 34, __pyx_L1_error)
       ^~~~~~~~~
src/petsc4py.PETSc.c:66083:7: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
src/petsc4py.PETSc.c:66105:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
         __pyx_t_6 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 35, __pyx_L1_error)
         ^~~~~~~~~
src/petsc4py.PETSc.c:66105:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
src/petsc4py.PETSc.c:66112:7: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
       __pyx_t_6 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 35, __pyx_L1_error)
       ^~~~~~~~~
src/petsc4py.PETSc.c:66112:7: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
src/petsc4py.PETSc.c:66142:7: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
       __pyx_t_3 = __Pyx_PyBool_FromLong((__pyx_v_comm1 == __pyx_v_comm2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 37, __pyx_L1_error)
       ^~~~~~~~~
src/petsc4py.PETSc.c:66142:7: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
src/petsc4py.PETSc.c:66158:7: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
       __pyx_t_3 = __Pyx_PyBool_FromLong((__pyx_v_comm1 != __pyx_v_comm2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 38, __pyx_L1_error)
       ^~~~~~~~~
src/petsc4py.PETSc.c:66158:7: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
src/petsc4py.PETSc.c: In function '__pyx_pf_8petsc4py_5PETSc_6Object_4__richcmp__':
src/petsc4py.PETSc.c:67489:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
     __pyx_t_3 = __Pyx_PyBool_FromLong(((__pyx_v_s->obj[0]) == (__pyx_v_o->obj[0]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 19, __pyx_L1_error)
     ^~~~~~~~~
src/petsc4py.PETSc.c:67489:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
src/petsc4py.PETSc.c:67506:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
     __pyx_t_3 = __Pyx_PyBool_FromLong(((__pyx_v_s->obj[0]) != (__pyx_v_o->obj[0]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 20, __pyx_L1_error)
     ^~~~~~~~~
src/petsc4py.PETSc.c:67506:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c: In function '__pyx_pf_8petsc4py_5PETSc_5LGMap_4setType':
src/petsc4py.PETSc.c:86757:47: warning: implicit declaration of function 'ISLocalToGlobalMappingSetType'; did you mean 'ISLocalToGlobalMappingGetSize'? [-Wimplicit-function-declaration]
   __pyx_t_2 = __pyx_f_8petsc4py_5PETSc_CHKERR(ISLocalToGlobalMappingSetType(__pyx_v_self->lgm, __pyx_v_cval)); if (unlikely(__pyx_t_2 == -1)) __PYX_ERR(29, 374, __pyx_L1_error)
                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                               ISLocalToGlobalMappingGetSize
src/petsc4py.PETSc.c: In function '__pyx_pf_8petsc4py_5PETSc_5LGMap_6setFromOptions':
src/petsc4py.PETSc.c:86819:47: warning: implicit declaration of function 'ISLocalToGlobalMappingSetFromOptions'; did you mean 'ISLocalToGlobalMappingGetBlockSize'? [-Wimplicit-function-declaration]
   __pyx_t_1 = __pyx_f_8petsc4py_5PETSc_CHKERR(ISLocalToGlobalMappingSetFromOptions(__pyx_v_self->lgm)); if (unlikely(__pyx_t_1 == -1)) __PYX_ERR(29, 377, __pyx_L1_error)
                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                               ISLocalToGlobalMappingGetBlockSize
src/petsc4py.PETSc.c: In function '__pyx_pf_8petsc4py_5PETSc_5LGMap_36applyInverse':
src/petsc4py.PETSc.c:89212:3: error: unknown type name 'ISGlobalToLocalMappingMode'; did you mean 'ISGlobalToLocalMappingType'?
   ISGlobalToLocalMappingMode __pyx_v_cmode;
   ^~~~~~~~~~~~~~~~~~~~~~~~~~
   ISGlobalToLocalMappingType
src/petsc4py.PETSc.c:89222:3: error: unknown type name 'ISGlobalToLocalMappingMode'; did you mean 'ISGlobalToLocalMappingType'?
   ISGlobalToLocalMappingMode __pyx_t_3;
   ^~~~~~~~~~~~~~~~~~~~~~~~~~
   ISGlobalToLocalMappingType
src/petsc4py.PETSc.c:89248:19: error: 'ISGlobalToLocalMappingMode' undeclared (first use in this function); did you mean 'ISGlobalToLocalMappingType'?
     __pyx_t_3 = ((ISGlobalToLocalMappingMode)__Pyx_PyInt_As_ISGlobalToLocalMappingMode(__pyx_v_mode)); if (unlikely(PyErr_Occurred())) __PYX_ERR(29, 517, __pyx_L1_error)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
                   ISGlobalToLocalMappingType
src/petsc4py.PETSc.c:89248:19: note: each undeclared identifier is reported only once for each function it appears in
src/petsc4py.PETSc.c:89248:46: error: expected ')' before '__Pyx_PyInt_As_ISGlobalToLocalMappingMode'
     __pyx_t_3 = ((ISGlobalToLocalMappingMode)__Pyx_PyInt_As_ISGlobalToLocalMappingMode(__pyx_v_mode)); if (unlikely(PyErr_Occurred())) __PYX_ERR(29, 517, __pyx_L1_error)
                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/petsc4py.PETSc.c: In function '__pyx_pf_8petsc4py_5PETSc_5LGMap_38applyBlockInverse':
src/petsc4py.PETSc.c:89441:3: error: unknown type name 'ISGlobalToLocalMappingMode'; did you mean 'ISGlobalToLocalMappingType'?
   ISGlobalToLocalMappingMode __pyx_v_cmode;
   ^~~~~~~~~~~~~~~~~~~~~~~~~~
   ISGlobalToLocalMappingType
src/petsc4py.PETSc.c:89451:3: error: unknown type name 'ISGlobalToLocalMappingMode'; did you mean 'ISGlobalToLocalMappingType'?
   ISGlobalToLocalMappingMode __pyx_t_3;
   ^~~~~~~~~~~~~~~~~~~~~~~~~~
   ISGlobalToLocalMappingType
src/petsc4py.PETSc.c:89477:19: error: 'ISGlobalToLocalMappingMode' undeclared (first use in this function); did you mean 'ISGlobalToLocalMappingType'?
     __pyx_t_3 = ((ISGlobalToLocalMappingMode)__Pyx_PyInt_As_ISGlobalToLocalMappingMode(__pyx_v_mode)); if (unlikely(PyErr_Occurred())) __PYX_ERR(29, 531, __pyx_L1_error)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
                   ISGlobalToLocalMappingType
src/petsc4py.PETSc.c:89477:46: error: expected ')' before '__Pyx_PyInt_As_ISGlobalToLocalMappingMode'
     __pyx_t_3 = ((ISGlobalToLocalMappingMode)__Pyx_PyInt_As_ISGlobalToLocalMappingMode(__pyx_v_mode)); if (unlikely(PyErr_Occurred())) __PYX_ERR(29, 531, __pyx_L1_error)
                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/petsc4py.PETSc.c: In function '__pyx_pf_8petsc4py_5PETSc_3Mat_70createLRC':
src/petsc4py.PETSc.c:119510:88: warning: passing argument 3 of 'MatCreateLRC' from incompatible pointer type [-Wincompatible-pointer-types]
   __pyx_t_5 = __pyx_f_8petsc4py_5PETSc_CHKERR(MatCreateLRC(__pyx_v_Amat, __pyx_v_Umat, __pyx_v_cvec, __pyx_v_Vmat, (&__pyx_v_newmat))); if (unlikely(__pyx_t_5 == -1)) __PYX_ERR(33, 431, __pyx_L1_error)
                                                                                        ^~~~~~~~~~~~
In file included from /usr/include/openmpi-x86_64/petsc/petscdm.h:6:0,
                 from /usr/include/openmpi-x86_64/petsc/petscdmda.h:4,
                 from /usr/include/openmpi-x86_64/petsc/petsc.h:13,
                 from src/petsc4py.PETSc.c:432,
                 from src/PETSc.c:3:
/usr/include/openmpi-x86_64/petsc/petscmat.h:226:29: note: expected 'Mat {aka struct _p_Mat *}' but argument is of type 'Vec {aka struct _p_Vec *}'
 PETSC_EXTERN PetscErrorCode MatCreateLRC(Mat,Mat,Mat,Mat*);
                             ^~~~~~~~~~~~
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:119510:102: warning: passing argument 4 of 'MatCreateLRC' from incompatible pointer type [-Wincompatible-pointer-types]
   __pyx_t_5 = __pyx_f_8petsc4py_5PETSc_CHKERR(MatCreateLRC(__pyx_v_Amat, __pyx_v_Umat, __pyx_v_cvec, __pyx_v_Vmat, (&__pyx_v_newmat))); if (unlikely(__pyx_t_5 == -1)) __PYX_ERR(33, 431, __pyx_L1_error)
                                                                                                      ^~~~~~~~~~~~
In file included from /usr/include/openmpi-x86_64/petsc/petscdm.h:6:0,
                 from /usr/include/openmpi-x86_64/petsc/petscdmda.h:4,
                 from /usr/include/openmpi-x86_64/petsc/petsc.h:13,
                 from src/petsc4py.PETSc.c:432,
                 from src/PETSc.c:3:
/usr/include/openmpi-x86_64/petsc/petscmat.h:226:29: note: expected 'struct _p_Mat **' but argument is of type 'Mat {aka struct _p_Mat *}'
 PETSC_EXTERN PetscErrorCode MatCreateLRC(Mat,Mat,Mat,Mat*);
                             ^~~~~~~~~~~~
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:119510:47: error: too many arguments to function 'MatCreateLRC'
   __pyx_t_5 = __pyx_f_8petsc4py_5PETSc_CHKERR(MatCreateLRC(__pyx_v_Amat, __pyx_v_Umat, __pyx_v_cvec, __pyx_v_Vmat, (&__pyx_v_newmat))); if (unlikely(__pyx_t_5 == -1)) __PYX_ERR(33, 431, __pyx_L1_error)
                                               ^~~~~~~~~~~~
In file included from /usr/include/openmpi-x86_64/petsc/petscdm.h:6:0,
                 from /usr/include/openmpi-x86_64/petsc/petscdmda.h:4,
                 from /usr/include/openmpi-x86_64/petsc/petsc.h:13,
                 from src/petsc4py.PETSc.c:432,
                 from src/PETSc.c:3:
/usr/include/openmpi-x86_64/petsc/petscmat.h:226:29: note: declared here
 PETSC_EXTERN PetscErrorCode MatCreateLRC(Mat,Mat,Mat,Mat*);
                             ^~~~~~~~~~~~
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c: In function '__pyx_pf_8petsc4py_5PETSc_3Mat_72createSubMatrixVirtual':
src/petsc4py.PETSc.c:119678:47: warning: implicit declaration of function 'MatCreateSubMatrixVirtual'; did you mean 'MatCreateSubMatrix'? [-Wimplicit-function-declaration]
   __pyx_t_3 = __pyx_f_8petsc4py_5PETSc_CHKERR(MatCreateSubMatrixVirtual(__pyx_v_A->mat, __pyx_v_isrow->iset, __pyx_v_iscol->iset, (&__pyx_v_newmat))); if (unlikely(__pyx_t_3 == -1)) __PYX_ERR(33, 438, __pyx_L1_error)
                                               ^~~~~~~~~~~~~~~~~~~~~~~~~
                                               MatCreateSubMatrix
src/petsc4py.PETSc.c: In function '__pyx_pf_8petsc4py_5PETSc_3Mat_278createSubMatrix':
src/petsc4py.PETSc.c:134445:122: error: incompatible type for argument 4 of 'MatCreateSubMatrix'
   __pyx_t_5 = __pyx_f_8petsc4py_5PETSc_CHKERR(MatCreateSubMatrix(__pyx_v_self->mat, __pyx_v_isrow->iset, __pyx_v_ciscol, __pyx_v_reuse, (&__pyx_v_submat->mat))); if (unlikely(__pyx_t_5 == -1)) __PYX_ERR(33, 1145, __pyx_L1_error)
                                                                                                                          ^~~~~~~~~~~~~
In file included from /usr/include/openmpi-x86_64/petsc/petscdm.h:6:0,
                 from /usr/include/openmpi-x86_64/petsc/petscdmda.h:4,
                 from /usr/include/openmpi-x86_64/petsc/petsc.h:13,
                 from src/petsc4py.PETSc.c:432,
                 from src/PETSc.c:3:
/usr/include/openmpi-x86_64/petsc/petscmat.h:251:29: note: expected 'struct _p_Mat **' but argument is of type 'MatReuse {aka enum <anonymous>}'
 PETSC_EXTERN PetscErrorCode MatCreateSubMatrix(Mat,IS,IS,Mat*);
                             ^~~~~~~~~~~~~~~~~~
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:134445:47: error: too many arguments to function 'MatCreateSubMatrix'
   __pyx_t_5 = __pyx_f_8petsc4py_5PETSc_CHKERR(MatCreateSubMatrix(__pyx_v_self->mat, __pyx_v_isrow->iset, __pyx_v_ciscol, __pyx_v_reuse, (&__pyx_v_submat->mat))); if (unlikely(__pyx_t_5 == -1)) __PYX_ERR(33, 1145, __pyx_L1_error)
                                               ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/openmpi-x86_64/petsc/petscdm.h:6:0,
                 from /usr/include/openmpi-x86_64/petsc/petscdmda.h:4,
                 from /usr/include/openmpi-x86_64/petsc/petsc.h:13,
                 from src/petsc4py.PETSc.c:432,
                 from src/PETSc.c:3:
/usr/include/openmpi-x86_64/petsc/petscmat.h:251:29: note: declared here
 PETSC_EXTERN PetscErrorCode MatCreateSubMatrix(Mat,IS,IS,Mat*);
                             ^~~~~~~~~~~~~~~~~~
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c: In function '__pyx_pf_8petsc4py_5PETSc_3Mat_280createSubMatrices':
src/petsc4py.PETSc.c:134869:47: warning: implicit declaration of function 'MatCreateSubMatrices'; did you mean 'MatCreateSubMatrix'? [-Wimplicit-function-declaration]
   __pyx_t_8 = __pyx_f_8petsc4py_5PETSc_CHKERR(MatCreateSubMatrices(__pyx_v_self->mat, ((PetscInt)__pyx_v_n), __pyx_v_cisrows, __pyx_v_ciscols, __pyx_v_reuse, (&__pyx_v_cmats))); if (unlikely(__pyx_t_8 == -1)) __PYX_ERR(33, 1171, __pyx_L1_error)
                                               ^~~~~~~~~~~~~~~~~~~~
                                               MatCreateSubMatrix
src/petsc4py.PETSc.c: In function '__pyx_pf_8petsc4py_5PETSc_3Mat_338getLRCMats':
src/petsc4py.PETSc.c:139161:47: warning: implicit declaration of function 'MatLRCGetMats'; did you mean 'PetscCDGetMat'? [-Wimplicit-function-declaration]
   __pyx_t_2 = __pyx_f_8petsc4py_5PETSc_CHKERR(MatLRCGetMats(__pyx_v_self->mat, (&__pyx_v_A->mat), (&__pyx_v_U->mat), (&__pyx_v_c->vec), (&__pyx_v_V->mat))); if (unlikely(__pyx_t_2 == -1)) __PYX_ERR(33, 1351, __pyx_L1_error)
                                               ^~~~~~~~~~~~~
                                               PetscCDGetMat
src/petsc4py.PETSc.c: In function '__pyx_pf_8petsc4py_5PETSc_4SNES_204getNASMSNES':
src/petsc4py.PETSc.c:177904:47: warning: implicit declaration of function 'SNESNASMGetSNES'; did you mean 'SNESNASMGetType'? [-Wimplicit-function-declaration]
   __pyx_t_3 = __pyx_f_8petsc4py_5PETSc_CHKERR(SNESNASMGetSNES(__pyx_v_self->snes, __pyx_v_cn, (&__pyx_v_snes->snes))); if (unlikely(__pyx_t_3 == -1)) __PYX_ERR(36, 727, __pyx_L1_error)
                                               ^~~~~~~~~~~~~~~
                                               SNESNASMGetType
src/petsc4py.PETSc.c: In function '__pyx_pf_8petsc4py_5PETSc_4SNES_206getNASMNumber':
src/petsc4py.PETSc.c:177996:47: warning: implicit declaration of function 'SNESNASMGetNumber'; did you mean 'SNESNASMGetType'? [-Wimplicit-function-declaration]
   __pyx_t_1 = __pyx_f_8petsc4py_5PETSc_CHKERR(SNESNASMGetNumber(__pyx_v_self->snes, (&__pyx_v_cn))); if (unlikely(__pyx_t_1 == -1)) __PYX_ERR(36, 733, __pyx_L1_error)
                                               ^~~~~~~~~~~~~~~~~
                                               SNESNASMGetType
src/petsc4py.PETSc.c: In function '__pyx_pf_8petsc4py_5PETSc_2TS_102setStepNumber':
src/petsc4py.PETSc.c:188083:47: warning: implicit declaration of function 'TSSetStepNumber'; did you mean 'TSGetTimeStepNumber'? [-Wimplicit-function-declaration]
   __pyx_t_2 = __pyx_f_8petsc4py_5PETSc_CHKERR(TSSetStepNumber(__pyx_v_self->ts, __pyx_v_ival)); if (unlikely(__pyx_t_2 == -1)) __PYX_ERR(37, 415, __pyx_L1_error)
                                               ^~~~~~~~~~~~~~~
                                               TSGetTimeStepNumber
src/petsc4py.PETSc.c: In function '__pyx_pf_8petsc4py_5PETSc_2TS_104getStepNumber':
src/petsc4py.PETSc.c:188154:47: warning: implicit declaration of function 'TSGetStepNumber'; did you mean 'TSGetTimeStepNumber'? [-Wimplicit-function-declaration]
   __pyx_t_1 = __pyx_f_8petsc4py_5PETSc_CHKERR(TSGetStepNumber(__pyx_v_self->ts, (&__pyx_v_ival))); if (unlikely(__pyx_t_1 == -1)) __PYX_ERR(37, 419, __pyx_L1_error)
                                               ^~~~~~~~~~~~~~~
                                               TSGetTimeStepNumber
src/petsc4py.PETSc.c: In function '__pyx_pf_8petsc4py_5PETSc_2TS_106setMaxTime':
src/petsc4py.PETSc.c:188272:47: warning: implicit declaration of function 'TSSetMaxTime'; did you mean 'TSSetTime'? [-Wimplicit-function-declaration]
   __pyx_t_2 = __pyx_f_8petsc4py_5PETSc_CHKERR(TSSetMaxTime(__pyx_v_self->ts, __pyx_v_rval)); if (unlikely(__pyx_t_2 == -1)) __PYX_ERR(37, 424, __pyx_L1_error)
                                               ^~~~~~~~~~~~
                                               TSSetTime
src/petsc4py.PETSc.c: In function '__pyx_pf_8petsc4py_5PETSc_2TS_108getMaxTime':
src/petsc4py.PETSc.c:188343:47: warning: implicit declaration of function 'TSGetMaxTime'; did you mean 'TSGetCFLTime'? [-Wimplicit-function-declaration]
   __pyx_t_1 = __pyx_f_8petsc4py_5PETSc_CHKERR(TSGetMaxTime(__pyx_v_self->ts, (&__pyx_v_rval))); if (unlikely(__pyx_t_1 == -1)) __PYX_ERR(37, 428, __pyx_L1_error)
                                               ^~~~~~~~~~~~
                                               TSGetCFLTime
src/petsc4py.PETSc.c: In function '__pyx_pf_8petsc4py_5PETSc_2TS_110setMaxSteps':
src/petsc4py.PETSc.c:188461:47: warning: implicit declaration of function 'TSSetMaxSteps'; did you mean 'TSSetPreStep'? [-Wimplicit-function-declaration]
   __pyx_t_2 = __pyx_f_8petsc4py_5PETSc_CHKERR(TSSetMaxSteps(__pyx_v_self->ts, __pyx_v_ival)); if (unlikely(__pyx_t_2 == -1)) __PYX_ERR(37, 433, __pyx_L1_error)
                                               ^~~~~~~~~~~~~
                                               TSSetPreStep
src/petsc4py.PETSc.c: In function '__pyx_pf_8petsc4py_5PETSc_2TS_112getMaxSteps':
src/petsc4py.PETSc.c:188532:47: warning: implicit declaration of function 'TSGetMaxSteps'; did you mean 'TSGetTotalSteps'? [-Wimplicit-function-declaration]
   __pyx_t_1 = __pyx_f_8petsc4py_5PETSc_CHKERR(TSGetMaxSteps(__pyx_v_self->ts, (&__pyx_v_ival))); if (unlikely(__pyx_t_1 == -1)) __PYX_ERR(37, 437, __pyx_L1_error)
                                               ^~~~~~~~~~~~~
                                               TSGetTotalSteps
src/petsc4py.PETSc.c: In function '__pyx_pf_8petsc4py_5PETSc_2DM_90adaptLabel':
src/petsc4py.PETSc.c:212522:47: warning: implicit declaration of function 'DMAdaptLabel'; did you mean 'DMAddLabel'? [-Wimplicit-function-declaration]
   __pyx_t_2 = __pyx_f_8petsc4py_5PETSc_CHKERR(DMAdaptLabel(__pyx_v_self->dm, __pyx_v_clbl, (&__pyx_v_newdm->dm))); if (unlikely(__pyx_t_2 == -1)) __PYX_ERR(40, 298, __pyx_L1_error)
                                               ^~~~~~~~~~~~
                                               DMAddLabel
src/petsc4py.PETSc.c: In function '__pyx_pf_8petsc4py_5PETSc_2DM_92adaptMetric':
src/petsc4py.PETSc.c:212714:47: warning: implicit declaration of function 'DMAdaptMetric'; did you mean 'TSAdaptDestroy'? [-Wimplicit-function-declaration]
   __pyx_t_3 = __pyx_f_8petsc4py_5PETSc_CHKERR(DMAdaptMetric(__pyx_v_self->dm, __pyx_v_metric->vec, __pyx_v_clbl, (&__pyx_v_newdm->dm))); if (unlikely(__pyx_t_3 == -1)) __PYX_ERR(40, 308, __pyx_L1_error)
                                               ^~~~~~~~~~~~~
                                               TSAdaptDestroy
src/petsc4py.PETSc.c: In function '__pyx_pf_8petsc4py_5PETSc_6DMPlex_4createBoxMesh':
src/petsc4py.PETSc.c:225073:115: error: incompatible type for argument 4 of 'DMPlexCreateBoxMesh'
   __pyx_t_4 = __pyx_f_8petsc4py_5PETSc_CHKERR(DMPlexCreateBoxMesh(__pyx_v_ccomm, __pyx_v_cdim, __pyx_v_cnumFaces, __pyx_v_interp, (&__pyx_v_newdm))); if (unlikely(__pyx_t_4 == -1)) __PYX_ERR(42, 50, __pyx_L1_error)
                                                                                                                   ^~~~~~~~~~~~~~
In file included from /usr/include/openmpi-x86_64/petsc/petsc.h:16:0,
                 from src/petsc4py.PETSc.c:432,
                 from src/PETSc.c:3:
/usr/include/openmpi-x86_64/petsc/petscdmplex.h:120:29: note: expected 'struct _p_DM **' but argument is of type 'PetscBool {aka enum <anonymous>}'
 PETSC_EXTERN PetscErrorCode DMPlexCreateBoxMesh(MPI_Comm, PetscInt, PetscBool, DM *);
                             ^~~~~~~~~~~~~~~~~~~
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:225073:47: error: too many arguments to function 'DMPlexCreateBoxMesh'
   __pyx_t_4 = __pyx_f_8petsc4py_5PETSc_CHKERR(DMPlexCreateBoxMesh(__pyx_v_ccomm, __pyx_v_cdim, __pyx_v_cnumFaces, __pyx_v_interp, (&__pyx_v_newdm))); if (unlikely(__pyx_t_4 == -1)) __PYX_ERR(42, 50, __pyx_L1_error)
                                               ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/openmpi-x86_64/petsc/petsc.h:16:0,
                 from src/petsc4py.PETSc.c:432,
                 from src/PETSc.c:3:
/usr/include/openmpi-x86_64/petsc/petscdmplex.h:120:29: note: declared here
 PETSC_EXTERN PetscErrorCode DMPlexCreateBoxMesh(MPI_Comm, PetscInt, PetscBool, DM *);
                             ^~~~~~~~~~~~~~~~~~~
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c: In function '__pyx_pf_8petsc4py_5PETSc_11DMComposite_10gather':
src/petsc4py.PETSc.c:238106:99: error: incompatible type for argument 2 of 'DMCompositeGatherArray'
   __pyx_t_2 = __pyx_f_8petsc4py_5PETSc_CHKERR(DMCompositeGatherArray(__pyx_v_self->__pyx_base.dm, __pyx_v_cimode, __pyx_v_gvec->vec, __pyx_v_clvecs)); if (unlikely(__pyx_t_2 == -1)) __PYX_ERR(43, 62, __pyx_L1_error)
                                                                                                   ^~~~~~~~~~~~~~
In file included from /usr/include/openmpi-x86_64/petsc/petsc.h:14:0,
                 from src/petsc4py.PETSc.c:432,
                 from src/PETSc.c:3:
/usr/include/openmpi-x86_64/petsc/petscdmcomposite.h:14:29: note: expected 'Vec {aka struct _p_Vec *}' but argument is of type 'InsertMode {aka enum <anonymous>}'
 PETSC_EXTERN PetscErrorCode DMCompositeGatherArray(DM,Vec,InsertMode,Vec*);
                             ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:238106:115: error: incompatible type for argument 3 of 'DMCompositeGatherArray'
   __pyx_t_2 = __pyx_f_8petsc4py_5PETSc_CHKERR(DMCompositeGatherArray(__pyx_v_self->__pyx_base.dm, __pyx_v_cimode, __pyx_v_gvec->vec, __pyx_v_clvecs)); if (unlikely(__pyx_t_2 == -1)) __PYX_ERR(43, 62, __pyx_L1_error)
                                                                                                                   ^~~~~~~~~~~~
In file included from /usr/include/openmpi-x86_64/petsc/petsc.h:14:0,
                 from src/petsc4py.PETSc.c:432,
                 from src/PETSc.c:3:
/usr/include/openmpi-x86_64/petsc/petscdmcomposite.h:14:29: note: expected 'InsertMode {aka enum <anonymous>}' but argument is of type 'Vec {aka struct _p_Vec *}'
 PETSC_EXTERN PetscErrorCode DMCompositeGatherArray(DM,Vec,InsertMode,Vec*);
                             ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c: In function '__pyx_pf_8petsc4py_5PETSc_7DMShell_38setCreateDomainDecomposition':
src/petsc4py.PETSc.c:242724:49: warning: implicit declaration of function 'DMShellSetCreateDomainDecomposition'; did you mean 'DMShellSetCreateFieldDecomposition'? [-Wimplicit-function-declaration]
     __pyx_t_4 = __pyx_f_8petsc4py_5PETSc_CHKERR(DMShellSetCreateDomainDecomposition(__pyx_v_self->__pyx_base.dm, __pyx_f_8petsc4py_5PETSc_DMSHELL_CreateDomainDecomposition)); if (unlikely(__pyx_t_4 == -1)) __PYX_ERR(44, 177, __pyx_L1_error)
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                 DMShellSetCreateFieldDecomposition
src/petsc4py.PETSc.c: In function '__pyx_pf_8petsc4py_5PETSc_7DMShell_40setCreateDomainDecompositionScatters':
src/petsc4py.PETSc.c:242944:49: warning: implicit declaration of function 'DMShellSetCreateDomainDecompositionScatters'; did you mean 'DMCreateDomainDecompositionScatters'? [-Wimplicit-function-declaration]
     __pyx_t_4 = __pyx_f_8petsc4py_5PETSc_CHKERR(DMShellSetCreateDomainDecompositionScatters(__pyx_v_self->__pyx_base.dm, __pyx_f_8petsc4py_5PETSc_DMSHELL_CreateDomainDecompositionScatters)); if (unlikely(__pyx_t_4 == -1)) __PYX_ERR(44, 187, __pyx_L1_error)
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                 DMCreateDomainDecompositionScatters
src/petsc4py.PETSc.c: In function 'initPETSc':
src/petsc4py.PETSc.c:263402:15: warning: implicit declaration of function '__Pyx_PyInt_From_ISGlobalToLocalMappingMode'; did you mean '__Pyx_PyInt_As_ISGlobalToLocalMappingMode'? [-Wimplicit-function-declaration]
   __pyx_t_8 = __Pyx_PyInt_From_ISGlobalToLocalMappingMode(IS_GTOLM_MASK); if (unlikely(!__pyx_t_8)) __PYX_ERR(29, 344, __pyx_L1_error)
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               __Pyx_PyInt_As_ISGlobalToLocalMappingMode
src/petsc4py.PETSc.c:263402:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
   __pyx_t_8 = __Pyx_PyInt_From_ISGlobalToLocalMappingMode(IS_GTOLM_MASK); if (unlikely(!__pyx_t_8)) __PYX_ERR(29, 344, __pyx_L1_error)
             ^
src/petsc4py.PETSc.c:263414:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
   __pyx_t_8 = __Pyx_PyInt_From_ISGlobalToLocalMappingMode(IS_GTOLM_DROP); if (unlikely(!__pyx_t_8)) __PYX_ERR(29, 345, __pyx_L1_error)
             ^
src/petsc4py.PETSc.c:263458:43: error: 'ISLOCALTOGLOBALMAPPINGBASIC' undeclared (first use in this function)
   __pyx_t_8 = __pyx_f_8petsc4py_5PETSc_S_(ISLOCALTOGLOBALMAPPINGBASIC); if (unlikely(!__pyx_t_8)) __PYX_ERR(29, 349, __pyx_L1_error)
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/petsc4py.PETSc.c:263470:43: error: 'ISLOCALTOGLOBALMAPPINGHASH' undeclared (first use in this function); did you mean 'ISLOCALTOGLOBALMAPPINGBASIC'?
   __pyx_t_8 = __pyx_f_8petsc4py_5PETSc_S_(ISLOCALTOGLOBALMAPPINGHASH); if (unlikely(!__pyx_t_8)) __PYX_ERR(29, 350, __pyx_L1_error)
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~
                                           ISLOCALTOGLOBALMAPPINGBASIC
src/petsc4py.PETSc.c:267415:43: error: 'KSPCGNASH' undeclared (first use in this function); did you mean 'KSPNASH'?
   __pyx_t_8 = __pyx_f_8petsc4py_5PETSc_S_(KSPCGNASH); if (unlikely(!__pyx_t_8)) __PYX_ERR(35, 11, __pyx_L1_error)
                                           ^~~~~~~~~
                                           KSPNASH
src/petsc4py.PETSc.c:267427:43: error: 'KSPCGSTCG' undeclared (first use in this function); did you mean 'KSPSTCG'?
   __pyx_t_8 = __pyx_f_8petsc4py_5PETSc_S_(KSPCGSTCG); if (unlikely(!__pyx_t_8)) __PYX_ERR(35, 12, __pyx_L1_error)
                                           ^~~~~~~~~
                                           KSPSTCG
src/petsc4py.PETSc.c:267439:43: error: 'KSPCGGLTR' undeclared (first use in this function); did you mean 'KSPGLTR'?
   __pyx_t_8 = __pyx_f_8petsc4py_5PETSc_S_(KSPCGGLTR); if (unlikely(!__pyx_t_8)) __PYX_ERR(35, 13, __pyx_L1_error)
                                           ^~~~~~~~~
                                           KSPGLTR
src/petsc4py.PETSc.c:267811:43: error: 'KSPFETIDP' undeclared (first use in this function)
   __pyx_t_8 = __pyx_f_8petsc4py_5PETSc_S_(KSPFETIDP); if (unlikely(!__pyx_t_8)) __PYX_ERR(35, 44, __pyx_L1_error)
                                           ^~~~~~~~~
src/petsc4py.PETSc.c:269301:43: error: 'TSGLLE' undeclared (first use in this function); did you mean 'TSGL'?
   __pyx_t_8 = __pyx_f_8petsc4py_5PETSc_S_(TSGLLE); if (unlikely(!__pyx_t_8)) __PYX_ERR(37, 15, __pyx_L1_error)
                                           ^~~~~~
                                           TSGL
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c: In function '__Pyx_PyInt_EqObjC':
src/petsc4py.PETSc.c:273122:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
         Py_RETURN_TRUE;
         ^~~~~~~~~~~~~~
src/petsc4py.PETSc.c:273129:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
             Py_RETURN_TRUE;
             ^~~~~~~~~~~~~~
src/petsc4py.PETSc.c:273131:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
             Py_RETURN_FALSE;
             ^~~~~~~~~~~~~~~
src/petsc4py.PETSc.c:273179:17: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
                 default: Py_RETURN_FALSE;
                 ^~~~~~~
src/petsc4py.PETSc.c:273184:17: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
                 Py_RETURN_TRUE;
                 ^~~~~~~~~~~~~~
src/petsc4py.PETSc.c:273186:17: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
                 Py_RETURN_FALSE;
                 ^~~~~~~~~~~~~~~
src/petsc4py.PETSc.c:273194:17: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
                 Py_RETURN_TRUE;
                 ^~~~~~~~~~~~~~
src/petsc4py.PETSc.c:273196:17: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
                 Py_RETURN_FALSE;
                 ^~~~~~~~~~~~~~~
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c: At top level:
src/petsc4py.PETSc.c:274884:94: error: unknown type name 'ISGlobalToLocalMappingMode'; did you mean 'ISGlobalToLocalMappingType'?
                   static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ISGlobalToLocalMappingMode(ISGlobalToLocalMappingMode value) {
                                                                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                                              ISGlobalToLocalMappingType
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:279910:40: error: unknown type name 'ISGlobalToLocalMappingMode'
                   static CYTHON_INLINE ISGlobalToLocalMappingMode __Pyx_PyInt_As_ISGlobalToLocalMappingMode(PyObject *x) {
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/petsc4py.PETSc.c: In function '__Pyx_PyInt_As_ISGlobalToLocalMappingMode':
src/petsc4py.PETSc.c:279911:11: error: unknown type name 'ISGlobalToLocalMappingMode'
     const ISGlobalToLocalMappingMode neg_one = (ISGlobalToLocalMappingMode) -1, const_zero = (ISGlobalToLocalMappingMode) 0;
           ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/petsc4py.PETSc.c:279911:49: error: 'ISGlobalToLocalMappingMode' undeclared (first use in this function); did you mean 'ISGlobalToLocalMappingType'?
     const ISGlobalToLocalMappingMode neg_one = (ISGlobalToLocalMappingMode) -1, const_zero = (ISGlobalToLocalMappingMode) 0;
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
                                                 ISGlobalToLocalMappingType
src/petsc4py.PETSc.c:279911:123: error: expected ',' or ';' before numeric constant
     const ISGlobalToLocalMappingMode neg_one = (ISGlobalToLocalMappingMode) -1, const_zero = (ISGlobalToLocalMappingMode) 0;
                                                                                                                           ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274684:61: error: expected ')' before 'value'
             if (unlikely(value != (func_type) (target_type) value)) {\
                                                             ^
src/petsc4py.PETSc.c:620:43: note: in definition of macro 'unlikely'
   #define unlikely(x) __builtin_expect(!!(x), 0)
                                           ^
src/petsc4py.PETSc.c:274677:5: note: in expansion of macro '__PYX__VERIFY_RETURN_INT'
     __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
     ^~~~~~~~~~~~~~~~~~~~~~~~
src/petsc4py.PETSc.c:279916:13: note: in expansion of macro '__PYX_VERIFY_RETURN_INT'
             __PYX_VERIFY_RETURN_INT(ISGlobalToLocalMappingMode, long, PyInt_AS_LONG(x))
             ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274694:30: error: expected ';' before 'value'
         return (target_type) value;\
                              ^
src/petsc4py.PETSc.c:274694:30: note: in definition of macro '__PYX__VERIFY_RETURN_INT'
         return (target_type) value;\
                              ^~~~~
src/petsc4py.PETSc.c:279916:13: note: in expansion of macro '__PYX_VERIFY_RETURN_INT'
             __PYX_VERIFY_RETURN_INT(ISGlobalToLocalMappingMode, long, PyInt_AS_LONG(x))
             ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:279922:49: error: expected ';' before 'val'
             return (ISGlobalToLocalMappingMode) val;
                                                 ^~~
src/petsc4py.PETSc.c:279931:62: error: expected ';' before numeric constant
                 case  0: return (ISGlobalToLocalMappingMode) 0;
                                                              ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274684:61: error: expected ')' before 'value'
             if (unlikely(value != (func_type) (target_type) value)) {\
                                                             ^
src/petsc4py.PETSc.c:620:43: note: in definition of macro 'unlikely'
   #define unlikely(x) __builtin_expect(!!(x), 0)
                                           ^
src/petsc4py.PETSc.c:274677:5: note: in expansion of macro '__PYX__VERIFY_RETURN_INT'
     __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
     ^~~~~~~~~~~~~~~~~~~~~~~~
src/petsc4py.PETSc.c:279932:26: note: in expansion of macro '__PYX_VERIFY_RETURN_INT'
                 case  1: __PYX_VERIFY_RETURN_INT(ISGlobalToLocalMappingMode, digit, digits[0])
                          ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274694:30: error: expected ';' before 'value'
         return (target_type) value;\
                              ^
src/petsc4py.PETSc.c:274694:30: note: in definition of macro '__PYX__VERIFY_RETURN_INT'
         return (target_type) value;\
                              ^~~~~
src/petsc4py.PETSc.c:279932:26: note: in expansion of macro '__PYX_VERIFY_RETURN_INT'
                 case  1: __PYX_VERIFY_RETURN_INT(ISGlobalToLocalMappingMode, digit, digits[0])
                          ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274684:61: error: expected ')' before 'value'
             if (unlikely(value != (func_type) (target_type) value)) {\
                                                             ^
src/petsc4py.PETSc.c:620:43: note: in definition of macro 'unlikely'
   #define unlikely(x) __builtin_expect(!!(x), 0)
                                           ^
src/petsc4py.PETSc.c:274677:5: note: in expansion of macro '__PYX__VERIFY_RETURN_INT'
     __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
     ^~~~~~~~~~~~~~~~~~~~~~~~
src/petsc4py.PETSc.c:279936:29: note: in expansion of macro '__PYX_VERIFY_RETURN_INT'
                             __PYX_VERIFY_RETURN_INT(ISGlobalToLocalMappingMode, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                             ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274694:30: error: expected ';' before 'value'
         return (target_type) value;\
                              ^
src/petsc4py.PETSc.c:274694:30: note: in definition of macro '__PYX__VERIFY_RETURN_INT'
         return (target_type) value;\
                              ^~~~~
src/petsc4py.PETSc.c:279936:29: note: in expansion of macro '__PYX_VERIFY_RETURN_INT'
                             __PYX_VERIFY_RETURN_INT(ISGlobalToLocalMappingMode, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                             ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:279938:97: error: expected ')' before 'digits'
                             return (ISGlobalToLocalMappingMode) (((((ISGlobalToLocalMappingMode)digits[1]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[0]));
                                                                                                 ^~~~~~
src/petsc4py.PETSc.c:279938:155: error: expected ')' before 'digits'
                             return (ISGlobalToLocalMappingMode) (((((ISGlobalToLocalMappingMode)digits[1]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[0]));
                                                                                                                                                           ^~~~~~
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274684:61: error: expected ')' before 'value'
             if (unlikely(value != (func_type) (target_type) value)) {\
                                                             ^
src/petsc4py.PETSc.c:620:43: note: in definition of macro 'unlikely'
   #define unlikely(x) __builtin_expect(!!(x), 0)
                                           ^
src/petsc4py.PETSc.c:274677:5: note: in expansion of macro '__PYX__VERIFY_RETURN_INT'
     __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
     ^~~~~~~~~~~~~~~~~~~~~~~~
src/petsc4py.PETSc.c:279945:29: note: in expansion of macro '__PYX_VERIFY_RETURN_INT'
                             __PYX_VERIFY_RETURN_INT(ISGlobalToLocalMappingMode, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                             ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274694:30: error: expected ';' before 'value'
         return (target_type) value;\
                              ^
src/petsc4py.PETSc.c:274694:30: note: in definition of macro '__PYX__VERIFY_RETURN_INT'
         return (target_type) value;\
                              ^~~~~
src/petsc4py.PETSc.c:279945:29: note: in expansion of macro '__PYX_VERIFY_RETURN_INT'
                             __PYX_VERIFY_RETURN_INT(ISGlobalToLocalMappingMode, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                             ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:279947:99: error: expected ')' before 'digits'
                             return (ISGlobalToLocalMappingMode) (((((((ISGlobalToLocalMappingMode)digits[2]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[1]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[0]));
                                                                                                   ^~~~~~
src/petsc4py.PETSc.c:279947:157: error: expected ')' before 'digits'
                             return (ISGlobalToLocalMappingMode) (((((((ISGlobalToLocalMappingMode)digits[2]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[1]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[0]));
                                                                                                                                                             ^~~~~~
src/petsc4py.PETSc.c:279947:215: error: expected ')' before 'digits'
                             return (ISGlobalToLocalMappingMode) (((((((ISGlobalToLocalMappingMode)digits[2]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[1]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[0]));
                                                                                                                                                                                                                       ^~~~~~
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274684:61: error: expected ')' before 'value'
             if (unlikely(value != (func_type) (target_type) value)) {\
                                                             ^
src/petsc4py.PETSc.c:620:43: note: in definition of macro 'unlikely'
   #define unlikely(x) __builtin_expect(!!(x), 0)
                                           ^
src/petsc4py.PETSc.c:274677:5: note: in expansion of macro '__PYX__VERIFY_RETURN_INT'
     __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
     ^~~~~~~~~~~~~~~~~~~~~~~~
src/petsc4py.PETSc.c:279954:29: note: in expansion of macro '__PYX_VERIFY_RETURN_INT'
                             __PYX_VERIFY_RETURN_INT(ISGlobalToLocalMappingMode, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                             ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274694:30: error: expected ';' before 'value'
         return (target_type) value;\
                              ^
src/petsc4py.PETSc.c:274694:30: note: in definition of macro '__PYX__VERIFY_RETURN_INT'
         return (target_type) value;\
                              ^~~~~
src/petsc4py.PETSc.c:279954:29: note: in expansion of macro '__PYX_VERIFY_RETURN_INT'
                             __PYX_VERIFY_RETURN_INT(ISGlobalToLocalMappingMode, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                             ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:279956:101: error: expected ')' before 'digits'
                             return (ISGlobalToLocalMappingMode) (((((((((ISGlobalToLocalMappingMode)digits[3]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[2]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[1]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[0]));
                                                                                                     ^~~~~~
src/petsc4py.PETSc.c:279956:159: error: expected ')' before 'digits'
                             return (ISGlobalToLocalMappingMode) (((((((((ISGlobalToLocalMappingMode)digits[3]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[2]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[1]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[0]));
                                                                                                                                                               ^~~~~~
src/petsc4py.PETSc.c:279956:217: error: expected ')' before 'digits'
                             return (ISGlobalToLocalMappingMode) (((((((((ISGlobalToLocalMappingMode)digits[3]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[2]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[1]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[0]));
                                                                                                                                                                                                                         ^~~~~~
src/petsc4py.PETSc.c:279956:275: error: expected ')' before 'digits'
                             return (ISGlobalToLocalMappingMode) (((((((((ISGlobalToLocalMappingMode)digits[3]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[2]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[1]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[0]));
                                                                                                                                                                                                                                                                                   ^~~~~~
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274684:61: error: expected ')' before 'value'
             if (unlikely(value != (func_type) (target_type) value)) {\
                                                             ^
src/petsc4py.PETSc.c:620:43: note: in definition of macro 'unlikely'
   #define unlikely(x) __builtin_expect(!!(x), 0)
                                           ^
src/petsc4py.PETSc.c:274679:5: note: in expansion of macro '__PYX__VERIFY_RETURN_INT'
     __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1)
     ^~~~~~~~~~~~~~~~~~~~~~~~
src/petsc4py.PETSc.c:279976:17: note: in expansion of macro '__PYX_VERIFY_RETURN_INT_EXC'
                 __PYX_VERIFY_RETURN_INT_EXC(ISGlobalToLocalMappingMode, unsigned long, PyLong_AsUnsignedLong(x))
                 ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274694:30: error: expected ';' before 'value'
         return (target_type) value;\
                              ^
src/petsc4py.PETSc.c:274694:30: note: in definition of macro '__PYX__VERIFY_RETURN_INT'
         return (target_type) value;\
                              ^~~~~
src/petsc4py.PETSc.c:279976:17: note: in expansion of macro '__PYX_VERIFY_RETURN_INT_EXC'
                 __PYX_VERIFY_RETURN_INT_EXC(ISGlobalToLocalMappingMode, unsigned long, PyLong_AsUnsignedLong(x))
                 ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274684:61: error: expected ')' before 'value'
             if (unlikely(value != (func_type) (target_type) value)) {\
                                                             ^
src/petsc4py.PETSc.c:620:43: note: in definition of macro 'unlikely'
   #define unlikely(x) __builtin_expect(!!(x), 0)
                                           ^
src/petsc4py.PETSc.c:274679:5: note: in expansion of macro '__PYX__VERIFY_RETURN_INT'
     __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1)
     ^~~~~~~~~~~~~~~~~~~~~~~~
src/petsc4py.PETSc.c:279979:17: note: in expansion of macro '__PYX_VERIFY_RETURN_INT_EXC'
                 __PYX_VERIFY_RETURN_INT_EXC(ISGlobalToLocalMappingMode, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
                 ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274694:30: error: expected ';' before 'value'
         return (target_type) value;\
                              ^
src/petsc4py.PETSc.c:274694:30: note: in definition of macro '__PYX__VERIFY_RETURN_INT'
         return (target_type) value;\
                              ^~~~~
src/petsc4py.PETSc.c:279979:17: note: in expansion of macro '__PYX_VERIFY_RETURN_INT_EXC'
                 __PYX_VERIFY_RETURN_INT_EXC(ISGlobalToLocalMappingMode, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
                 ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:279986:62: error: expected ';' before numeric constant
                 case  0: return (ISGlobalToLocalMappingMode) 0;
                                                              ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274684:61: error: expected ')' before 'value'
             if (unlikely(value != (func_type) (target_type) value)) {\
                                                             ^
src/petsc4py.PETSc.c:620:43: note: in definition of macro 'unlikely'
   #define unlikely(x) __builtin_expect(!!(x), 0)
                                           ^
src/petsc4py.PETSc.c:274677:5: note: in expansion of macro '__PYX__VERIFY_RETURN_INT'
     __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
     ^~~~~~~~~~~~~~~~~~~~~~~~
src/petsc4py.PETSc.c:279987:26: note: in expansion of macro '__PYX_VERIFY_RETURN_INT'
                 case -1: __PYX_VERIFY_RETURN_INT(ISGlobalToLocalMappingMode, sdigit, (sdigit) (-(sdigit)digits[0]))
                          ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274694:30: error: expected ';' before 'value'
         return (target_type) value;\
                              ^
src/petsc4py.PETSc.c:274694:30: note: in definition of macro '__PYX__VERIFY_RETURN_INT'
         return (target_type) value;\
                              ^~~~~
src/petsc4py.PETSc.c:279987:26: note: in expansion of macro '__PYX_VERIFY_RETURN_INT'
                 case -1: __PYX_VERIFY_RETURN_INT(ISGlobalToLocalMappingMode, sdigit, (sdigit) (-(sdigit)digits[0]))
                          ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274684:61: error: expected ')' before 'value'
             if (unlikely(value != (func_type) (target_type) value)) {\
                                                             ^
src/petsc4py.PETSc.c:620:43: note: in definition of macro 'unlikely'
   #define unlikely(x) __builtin_expect(!!(x), 0)
                                           ^
src/petsc4py.PETSc.c:274677:5: note: in expansion of macro '__PYX__VERIFY_RETURN_INT'
     __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
     ^~~~~~~~~~~~~~~~~~~~~~~~
src/petsc4py.PETSc.c:279988:26: note: in expansion of macro '__PYX_VERIFY_RETURN_INT'
                 case  1: __PYX_VERIFY_RETURN_INT(ISGlobalToLocalMappingMode,  digit, +digits[0])
                          ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274694:30: error: expected ';' before 'value'
         return (target_type) value;\
                              ^
src/petsc4py.PETSc.c:274694:30: note: in definition of macro '__PYX__VERIFY_RETURN_INT'
         return (target_type) value;\
                              ^~~~~
src/petsc4py.PETSc.c:279988:26: note: in expansion of macro '__PYX_VERIFY_RETURN_INT'
                 case  1: __PYX_VERIFY_RETURN_INT(ISGlobalToLocalMappingMode,  digit, +digits[0])
                          ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274684:61: error: expected ')' before 'value'
             if (unlikely(value != (func_type) (target_type) value)) {\
                                                             ^
src/petsc4py.PETSc.c:620:43: note: in definition of macro 'unlikely'
   #define unlikely(x) __builtin_expect(!!(x), 0)
                                           ^
src/petsc4py.PETSc.c:274677:5: note: in expansion of macro '__PYX__VERIFY_RETURN_INT'
     __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
     ^~~~~~~~~~~~~~~~~~~~~~~~
src/petsc4py.PETSc.c:279992:29: note: in expansion of macro '__PYX_VERIFY_RETURN_INT'
                             __PYX_VERIFY_RETURN_INT(ISGlobalToLocalMappingMode, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                             ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274694:30: error: expected ';' before 'value'
         return (target_type) value;\
                              ^
src/petsc4py.PETSc.c:274694:30: note: in definition of macro '__PYX__VERIFY_RETURN_INT'
         return (target_type) value;\
                              ^~~~~
src/petsc4py.PETSc.c:279992:29: note: in expansion of macro '__PYX_VERIFY_RETURN_INT'
                             __PYX_VERIFY_RETURN_INT(ISGlobalToLocalMappingMode, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                             ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:279994:131: error: expected ')' before 'digits'
                             return (ISGlobalToLocalMappingMode) (((ISGlobalToLocalMappingMode)-1)*(((((ISGlobalToLocalMappingMode)digits[1]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[0])));
                                                                                                                                   ^~~~~~
src/petsc4py.PETSc.c:279994:189: error: expected ')' before 'digits'
                             return (ISGlobalToLocalMappingMode) (((ISGlobalToLocalMappingMode)-1)*(((((ISGlobalToLocalMappingMode)digits[1]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[0])));
                                                                                                                                                                                             ^~~~~~
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274684:61: error: expected ')' before 'value'
             if (unlikely(value != (func_type) (target_type) value)) {\
                                                             ^
src/petsc4py.PETSc.c:620:43: note: in definition of macro 'unlikely'
   #define unlikely(x) __builtin_expect(!!(x), 0)
                                           ^
src/petsc4py.PETSc.c:274677:5: note: in expansion of macro '__PYX__VERIFY_RETURN_INT'
     __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
     ^~~~~~~~~~~~~~~~~~~~~~~~
src/petsc4py.PETSc.c:280001:29: note: in expansion of macro '__PYX_VERIFY_RETURN_INT'
                             __PYX_VERIFY_RETURN_INT(ISGlobalToLocalMappingMode, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                             ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274694:30: error: expected ';' before 'value'
         return (target_type) value;\
                              ^
src/petsc4py.PETSc.c:274694:30: note: in definition of macro '__PYX__VERIFY_RETURN_INT'
         return (target_type) value;\
                              ^~~~~
src/petsc4py.PETSc.c:280001:29: note: in expansion of macro '__PYX_VERIFY_RETURN_INT'
                             __PYX_VERIFY_RETURN_INT(ISGlobalToLocalMappingMode, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                             ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:280003:98: error: expected ')' before 'digits'
                             return (ISGlobalToLocalMappingMode) ((((((ISGlobalToLocalMappingMode)digits[1]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[0])));
                                                                                                  ^~~~~~
src/petsc4py.PETSc.c:280003:156: error: expected ')' before 'digits'
                             return (ISGlobalToLocalMappingMode) ((((((ISGlobalToLocalMappingMode)digits[1]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[0])));
                                                                                                                                                            ^~~~~~
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274684:61: error: expected ')' before 'value'
             if (unlikely(value != (func_type) (target_type) value)) {\
                                                             ^
src/petsc4py.PETSc.c:620:43: note: in definition of macro 'unlikely'
   #define unlikely(x) __builtin_expect(!!(x), 0)
                                           ^
src/petsc4py.PETSc.c:274677:5: note: in expansion of macro '__PYX__VERIFY_RETURN_INT'
     __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
     ^~~~~~~~~~~~~~~~~~~~~~~~
src/petsc4py.PETSc.c:280010:29: note: in expansion of macro '__PYX_VERIFY_RETURN_INT'
                             __PYX_VERIFY_RETURN_INT(ISGlobalToLocalMappingMode, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                             ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274694:30: error: expected ';' before 'value'
         return (target_type) value;\
                              ^
src/petsc4py.PETSc.c:274694:30: note: in definition of macro '__PYX__VERIFY_RETURN_INT'
         return (target_type) value;\
                              ^~~~~
src/petsc4py.PETSc.c:280010:29: note: in expansion of macro '__PYX_VERIFY_RETURN_INT'
                             __PYX_VERIFY_RETURN_INT(ISGlobalToLocalMappingMode, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                             ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:280012:133: error: expected ')' before 'digits'
                             return (ISGlobalToLocalMappingMode) (((ISGlobalToLocalMappingMode)-1)*(((((((ISGlobalToLocalMappingMode)digits[2]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[1]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[0])));
                                                                                                                                     ^~~~~~
src/petsc4py.PETSc.c:280012:191: error: expected ')' before 'digits'
                             return (ISGlobalToLocalMappingMode) (((ISGlobalToLocalMappingMode)-1)*(((((((ISGlobalToLocalMappingMode)digits[2]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[1]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[0])));
                                                                                                                                                                                               ^~~~~~
src/petsc4py.PETSc.c:280012:249: error: expected ')' before 'digits'
                             return (ISGlobalToLocalMappingMode) (((ISGlobalToLocalMappingMode)-1)*(((((((ISGlobalToLocalMappingMode)digits[2]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[1]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[0])));
                                                                                                                                                                                                                                                         ^~~~~~
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274684:61: error: expected ')' before 'value'
             if (unlikely(value != (func_type) (target_type) value)) {\
                                                             ^
src/petsc4py.PETSc.c:620:43: note: in definition of macro 'unlikely'
   #define unlikely(x) __builtin_expect(!!(x), 0)
                                           ^
src/petsc4py.PETSc.c:274677:5: note: in expansion of macro '__PYX__VERIFY_RETURN_INT'
     __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
     ^~~~~~~~~~~~~~~~~~~~~~~~
src/petsc4py.PETSc.c:280019:29: note: in expansion of macro '__PYX_VERIFY_RETURN_INT'
                             __PYX_VERIFY_RETURN_INT(ISGlobalToLocalMappingMode, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                             ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274694:30: error: expected ';' before 'value'
         return (target_type) value;\
                              ^
src/petsc4py.PETSc.c:274694:30: note: in definition of macro '__PYX__VERIFY_RETURN_INT'
         return (target_type) value;\
                              ^~~~~
src/petsc4py.PETSc.c:280019:29: note: in expansion of macro '__PYX_VERIFY_RETURN_INT'
                             __PYX_VERIFY_RETURN_INT(ISGlobalToLocalMappingMode, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                             ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:280021:100: error: expected ')' before 'digits'
                             return (ISGlobalToLocalMappingMode) ((((((((ISGlobalToLocalMappingMode)digits[2]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[1]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[0])));
                                                                                                    ^~~~~~
src/petsc4py.PETSc.c:280021:158: error: expected ')' before 'digits'
                             return (ISGlobalToLocalMappingMode) ((((((((ISGlobalToLocalMappingMode)digits[2]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[1]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[0])));
                                                                                                                                                              ^~~~~~
src/petsc4py.PETSc.c:280021:216: error: expected ')' before 'digits'
                             return (ISGlobalToLocalMappingMode) ((((((((ISGlobalToLocalMappingMode)digits[2]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[1]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[0])));
                                                                                                                                                                                                                        ^~~~~~
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274684:61: error: expected ')' before 'value'
             if (unlikely(value != (func_type) (target_type) value)) {\
                                                             ^
src/petsc4py.PETSc.c:620:43: note: in definition of macro 'unlikely'
   #define unlikely(x) __builtin_expect(!!(x), 0)
                                           ^
src/petsc4py.PETSc.c:274677:5: note: in expansion of macro '__PYX__VERIFY_RETURN_INT'
     __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
     ^~~~~~~~~~~~~~~~~~~~~~~~
src/petsc4py.PETSc.c:280028:29: note: in expansion of macro '__PYX_VERIFY_RETURN_INT'
                             __PYX_VERIFY_RETURN_INT(ISGlobalToLocalMappingMode, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                             ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274694:30: error: expected ';' before 'value'
         return (target_type) value;\
                              ^
src/petsc4py.PETSc.c:274694:30: note: in definition of macro '__PYX__VERIFY_RETURN_INT'
         return (target_type) value;\
                              ^~~~~
src/petsc4py.PETSc.c:280028:29: note: in expansion of macro '__PYX_VERIFY_RETURN_INT'
                             __PYX_VERIFY_RETURN_INT(ISGlobalToLocalMappingMode, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                             ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:280030:135: error: expected ')' before 'digits'
                             return (ISGlobalToLocalMappingMode) (((ISGlobalToLocalMappingMode)-1)*(((((((((ISGlobalToLocalMappingMode)digits[3]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[2]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[1]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[0])));
                                                                                                                                       ^~~~~~
src/petsc4py.PETSc.c:280030:193: error: expected ')' before 'digits'
                             return (ISGlobalToLocalMappingMode) (((ISGlobalToLocalMappingMode)-1)*(((((((((ISGlobalToLocalMappingMode)digits[3]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[2]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[1]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[0])));
                                                                                                                                                                                                 ^~~~~~
src/petsc4py.PETSc.c:280030:251: error: expected ')' before 'digits'
                             return (ISGlobalToLocalMappingMode) (((ISGlobalToLocalMappingMode)-1)*(((((((((ISGlobalToLocalMappingMode)digits[3]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[2]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[1]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[0])));
                                                                                                                                                                                                                                                           ^~~~~~
src/petsc4py.PETSc.c:280030:309: error: expected ')' before 'digits'
                             return (ISGlobalToLocalMappingMode) (((ISGlobalToLocalMappingMode)-1)*(((((((((ISGlobalToLocalMappingMode)digits[3]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[2]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[1]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[0])));
                                                                                                                                                                                                                                                                                                                     ^~~~~~
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274684:61: error: expected ')' before 'value'
             if (unlikely(value != (func_type) (target_type) value)) {\
                                                             ^
src/petsc4py.PETSc.c:620:43: note: in definition of macro 'unlikely'
   #define unlikely(x) __builtin_expect(!!(x), 0)
                                           ^
src/petsc4py.PETSc.c:274677:5: note: in expansion of macro '__PYX__VERIFY_RETURN_INT'
     __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
     ^~~~~~~~~~~~~~~~~~~~~~~~
src/petsc4py.PETSc.c:280037:29: note: in expansion of macro '__PYX_VERIFY_RETURN_INT'
                             __PYX_VERIFY_RETURN_INT(ISGlobalToLocalMappingMode, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                             ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274694:30: error: expected ';' before 'value'
         return (target_type) value;\
                              ^
src/petsc4py.PETSc.c:274694:30: note: in definition of macro '__PYX__VERIFY_RETURN_INT'
         return (target_type) value;\
                              ^~~~~
src/petsc4py.PETSc.c:280037:29: note: in expansion of macro '__PYX_VERIFY_RETURN_INT'
                             __PYX_VERIFY_RETURN_INT(ISGlobalToLocalMappingMode, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                             ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:280039:102: error: expected ')' before 'digits'
                             return (ISGlobalToLocalMappingMode) ((((((((((ISGlobalToLocalMappingMode)digits[3]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[2]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[1]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[0])));
                                                                                                      ^~~~~~
src/petsc4py.PETSc.c:280039:160: error: expected ')' before 'digits'
                             return (ISGlobalToLocalMappingMode) ((((((((((ISGlobalToLocalMappingMode)digits[3]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[2]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[1]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[0])));
                                                                                                                                                                ^~~~~~
src/petsc4py.PETSc.c:280039:218: error: expected ')' before 'digits'
                             return (ISGlobalToLocalMappingMode) ((((((((((ISGlobalToLocalMappingMode)digits[3]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[2]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[1]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[0])));
                                                                                                                                                                                                                          ^~~~~~
src/petsc4py.PETSc.c:280039:276: error: expected ')' before 'digits'
                             return (ISGlobalToLocalMappingMode) ((((((((((ISGlobalToLocalMappingMode)digits[3]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[2]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[1]) << PyLong_SHIFT) | (ISGlobalToLocalMappingMode)digits[0])));
                                                                                                                                                                                                                                                                                    ^~~~~~
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274684:61: error: expected ')' before 'value'
             if (unlikely(value != (func_type) (target_type) value)) {\
                                                             ^
src/petsc4py.PETSc.c:620:43: note: in definition of macro 'unlikely'
   #define unlikely(x) __builtin_expect(!!(x), 0)
                                           ^
src/petsc4py.PETSc.c:274679:5: note: in expansion of macro '__PYX__VERIFY_RETURN_INT'
     __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1)
     ^~~~~~~~~~~~~~~~~~~~~~~~
src/petsc4py.PETSc.c:280046:17: note: in expansion of macro '__PYX_VERIFY_RETURN_INT_EXC'
                 __PYX_VERIFY_RETURN_INT_EXC(ISGlobalToLocalMappingMode, long, PyLong_AsLong(x))
                 ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274694:30: error: expected ';' before 'value'
         return (target_type) value;\
                              ^
src/petsc4py.PETSc.c:274694:30: note: in definition of macro '__PYX__VERIFY_RETURN_INT'
         return (target_type) value;\
                              ^~~~~
src/petsc4py.PETSc.c:280046:17: note: in expansion of macro '__PYX_VERIFY_RETURN_INT_EXC'
                 __PYX_VERIFY_RETURN_INT_EXC(ISGlobalToLocalMappingMode, long, PyLong_AsLong(x))
                 ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274684:61: error: expected ')' before 'value'
             if (unlikely(value != (func_type) (target_type) value)) {\
                                                             ^
src/petsc4py.PETSc.c:620:43: note: in definition of macro 'unlikely'
   #define unlikely(x) __builtin_expect(!!(x), 0)
                                           ^
src/petsc4py.PETSc.c:274679:5: note: in expansion of macro '__PYX__VERIFY_RETURN_INT'
     __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1)
     ^~~~~~~~~~~~~~~~~~~~~~~~
src/petsc4py.PETSc.c:280049:17: note: in expansion of macro '__PYX_VERIFY_RETURN_INT_EXC'
                 __PYX_VERIFY_RETURN_INT_EXC(ISGlobalToLocalMappingMode, PY_LONG_LONG, PyLong_AsLongLong(x))
                 ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:274694:30: error: expected ';' before 'value'
         return (target_type) value;\
                              ^
src/petsc4py.PETSc.c:274694:30: note: in definition of macro '__PYX__VERIFY_RETURN_INT'
         return (target_type) value;\
                              ^~~~~
src/petsc4py.PETSc.c:280049:17: note: in expansion of macro '__PYX_VERIFY_RETURN_INT_EXC'
                 __PYX_VERIFY_RETURN_INT_EXC(ISGlobalToLocalMappingMode, PY_LONG_LONG, PyLong_AsLongLong(x))
                 ^
In file included from src/PETSc.c:3:0:
src/petsc4py.PETSc.c:280058:40: error: expected ';' before 'val'
             ISGlobalToLocalMappingMode val;
                                        ^~~
src/petsc4py.PETSc.c:280069:58: error: 'val' undeclared (first use in this function)
                 unsigned char *bytes = (unsigned char *)&val;
                                                          ^~~
src/petsc4py.PETSc.c:280081:36: error: expected ';' before 'val'
         ISGlobalToLocalMappingMode val;
                                    ^~~
error: command '/usr/lib64/openmpi/bin/mpicc' failed with exit status 1
error: Bad exit status from /var/tmp/rpm-tmp.R4Cw6p (%build)

Fedora 26 - x86_64

OpenMPI 2.0.2

PETSc 3.7.7

Numpy 1.12.1

Comments (3)

  1. Log in to comment