[exp - 140amd64-default-build-as-user][math/py-petsc4py] Failed for py39-petsc4py-3.20.4 in build

From: <pkg-fallout_at_FreeBSD.org>
Date: Thu, 04 Apr 2024 09:36:10 UTC
You are receiving this mail as a port that you maintain
is failing to build on the FreeBSD package build server.
Please investigate the failure and submit a PR to fix
build.

Maintainer:     yuri@FreeBSD.org
Log URL:        https://pkg-status.freebsd.org/package19/data/140amd64-default-build-as-user/dd015eeb653c/logs/py39-petsc4py-3.20.4.log
Build URL:      https://pkg-status.freebsd.org/package19/build.html?mastername=140amd64-default-build-as-user&build=dd015eeb653c
Log:

=>> Building math/py-petsc4py
build started at Thu Apr  4 09:34:18 UTC 2024
port directory: /usr/ports/math/py-petsc4py
package name: py39-petsc4py-3.20.4
building for: FreeBSD 140amd64-default-build-as-user-job-10 14.0-RELEASE-p6 FreeBSD 14.0-RELEASE-p6 amd64
maintained by: yuri@FreeBSD.org
Makefile datestamp: -rw-r--r--  1 root wheel 900 Feb  3 00:02 /usr/ports/math/py-petsc4py/Makefile
Ports top last git commit: dd015eeb653
Ports top unclean checkout: no
Port dir last git commit: ad8dfd6a692
Port dir unclean checkout: no
Poudriere version: poudriere-git-3.4.1-1-g1e9f97d6
Host OSVERSION: 1500006
Jail OSVERSION: 1400097
Job Id: 10

---Begin Environment---
SHELL=/bin/sh
OSVERSION=1400097
UNAME_v=FreeBSD 14.0-RELEASE-p6
UNAME_r=14.0-RELEASE-p6
BLOCKSIZE=K
MAIL=/var/mail/root
MM_CHARSET=UTF-8
LANG=C.UTF-8
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
MAKE_OBJDIR_CHECK_WRITABLE=0
LOCALBASE=/usr/local
USER=root
POUDRIERE_NAME=poudriere-git
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.4.1-1-g1e9f97d6
MASTERMNT=/poudriere/data/.m/140amd64-default-build-as-user/ref
LC_COLLATE=C
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=
GID=0
OUTPUT_REDIRECTED_STDERR=4
OUTPUT_REDIRECTED=1
UID=0
PWD=/poudriere/data/.m/140amd64-default-build-as-user/10/.p
OUTPUT_REDIRECTED_STDOUT=3
P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS
MASTERNAME=140amd64-default-build-as-user
SCRIPTPREFIX=/usr/local/share/poudriere
SCRIPTNAME=bulk.sh
OLDPWD=/poudriere/data/.m/140amd64-default-build-as-user/ref/.p/pool
POUDRIERE_PKGNAME=poudriere-git-3.4.1-1-g1e9f97d6
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=py39
MAKE_ARGS= FLAVOR=py39
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
===> The following configuration options are available for py39-petsc4py-3.20.4:
====> MPI (Message Passing Interface) support: you have to select exactly one of them
     MPICH=on: Parallel processing support via MPICH 3
     OPENMPI=off: Parallel processing support via Open MPI
===> Use 'make config' to modify these settings
---End OPTIONS List---

--MAINTAINER--
yuri@FreeBSD.org
--End MAINTAINER--

--CONFIGURE_ARGS--

--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
PYTHON="/usr/local/bin/python3.9" XDG_DATA_HOME=/wrkdirs/usr/ports/math/py-petsc4py/work-py39  XDG_CONFIG_HOME=/wrkdirs/usr/ports/math/py-petsc4py/work-py39  XDG_CACHE_HOME=/wrkdirs/usr/ports/math/py-petsc4py/work-py39/.cache  HOME=/wrkdirs/usr/ports/math/py-petsc4py/work-py39 TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/math/py-petsc4py/work-py39/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/math/py-petsc4py/work-py39/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh
--End CONFIGURE_ENV--

--MAKE_ENV--
PETSC_DIR=/usr/local XDG_DATA_HOME=/wrkdirs/usr/ports/math/py-petsc4py/work-py39  XDG_CONFIG_HOME=/wrkdirs/usr/ports/math/py-petsc4py/work-py39  XDG_CACHE_HOME=/wrkdirs/usr/ports/math/py-petsc4py/work-py39/.cache  HOME=/wrkdirs/usr/ports/math/py-petsc4py/work-py39 TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/math/py-petsc4py/work-py39/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/math/py-petsc4py/work-py39/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES LDSHARED="cc -shared" PYTHONDONTWRITEBYTECODE= PYTHONOPTIMIZE= PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing "  CPP="cpp" CPPFLAGS=""  LDFLAGS=" -fstack-protector-strong " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing  " BSD_INSTALL_PROGRAM="install  -s -m 
555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
 PYTHON_INCLUDEDIR=include/python3.9  PYTHON_LIBDIR=lib/python3.9  PYTHON_PLATFORM=freebsd14  PYTHON_SITELIBDIR=lib/python3.9/site-packages  PYTHON_SUFFIX=39  PYTHON_EXT_SUFFIX=.cpython-39  PYTHON_VER=3.9  PYTHON_VERSION=python3.9 PYTHON2="@comment " PYTHON3="" OSREL=14.0 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/petsc4py"  EXAMPLESDIR="share/examples/petsc4py"  DATADIR="share/petsc4py"  WWWDIR="www/petsc4py"  ETCDIR="etc/petsc4py"
--End PLIST_SUB--

--SUB_LIST--
 PYTHON_INCLUDEDIR=/usr/local/include/python3.9  PYTHON_LIBDIR=/usr/local/lib/python3.9  PYTHON_PLATFORM=freebsd14  PYTHON_SITELIBDIR=/usr/local/lib/python3.9/site-packages  PYTHON_SUFFIX=39  PYTHON_EXT_SUFFIX=.cpython-39  PYTHON_VER=3.9  PYTHON_VERSION=python3.9 PYTHON2="@comment " PYTHON3="" PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/petsc4py DOCSDIR=/usr/local/share/doc/petsc4py EXAMPLESDIR=/usr/local/share/examples/petsc4py  WWWDIR=/usr/local/www/petsc4py ETCDIR=/usr/local/etc/petsc4py
--End SUB_LIST--

---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
FORCE_PACKAGE=yes
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
####  ####
# Build ALLOW_MAKE_JOBS_PACKAGES with 3 jobs
MAKE_JOBS_NUMBER=3
#### Misc Poudriere ####
.include "/etc/make.conf.ports_env"
---End make.conf---
--Resource limits--
cpu time               (seconds, -t)  unlimited
file size           (512-blocks, -f)  unlimited
data seg size           (kbytes, -d)  33554432
stack size              (kbytes, -s)  524288
core file size      (512-blocks, -c)  unlimited
max memory size         (kbytes, -m)  unlimited
locked memory           (kbytes, -l)  unlimited
max user processes              (-u)  89999
open files                      (-n)  8192
virtual mem size        (kbytes, -v)  unlimited
swap limit              (kbytes, -w)  unlimited
socket buffer size       (bytes, -b)  unlimited
pseudo-terminals                (-p)  unlimited
kqueues                         (-k)  unlimited
umtx shared locks               (-o)  unlimited
--End resource limits--
=======================<phase: check-sanity   >============================
===== env: NO_DEPENDS=yes USER=nobody UID=65534 GID=65534
===>  License BSD2CLAUSE accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   py39-petsc4py-3.20.4 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.21.0.pkg
[140amd64-default-build-as-user-job-10] Installing pkg-1.21.0...
[140amd64-default-build-as-user-job-10] Extracting pkg-1.21.0: .......... done
===>   py39-petsc4py-3.20.4 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of py39-petsc4py-3.20.4
===========================================================================
=======================<phase: fetch-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: fetch          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License BSD2CLAUSE accepted by the user
===> Fetching all distfiles required by py39-petsc4py-3.20.4 for building
===========================================================================
=======================<phase: checksum       >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License BSD2CLAUSE accepted by the user
===> Fetching all distfiles required by py39-petsc4py-3.20.4 for building
=> SHA256 Checksum OK for petsc4py-3.20.4.tar.gz.
===========================================================================
=======================<phase: extract-depends>============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: extract        >============================
===== env: NO_DEPENDS=yes USER=nobody UID=65534 GID=65534
===>  License BSD2CLAUSE accepted by the user
===> Fetching all distfiles required by py39-petsc4py-3.20.4 for building
===>  Extracting for py39-petsc4py-3.20.4
=> SHA256 Checksum OK for petsc4py-3.20.4.tar.gz.
===========================================================================
=======================<phase: patch-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: patch          >============================
===== env: NO_DEPENDS=yes USER=nobody UID=65534 GID=65534
===>  Patching for py39-petsc4py-3.20.4
===========================================================================
=======================<phase: build-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   py39-petsc4py-3.20.4 depends on package: py39-numpy>=1.16,1<1.26,1 - not found
===>   Installing existing package /packages/All/py39-numpy-1.25.0_6,1.pkg
[140amd64-default-build-as-user-job-10] Installing py39-numpy-1.25.0_6,1...
[140amd64-default-build-as-user-job-10] `-- Installing gcc13-13.2.0_4...
[140amd64-default-build-as-user-job-10] |   `-- Installing binutils-2.40_5,1...
[140amd64-default-build-as-user-job-10] |   | `-- Installing gettext-runtime-0.22.5...
[140amd64-default-build-as-user-job-10] |   |   `-- Installing indexinfo-0.3.1...
[140amd64-default-build-as-user-job-10] |   |   `-- Extracting indexinfo-0.3.1: .... done
[140amd64-default-build-as-user-job-10] |   | `-- Extracting gettext-runtime-0.22.5: .......... done
[140amd64-default-build-as-user-job-10] |   | `-- Installing zstd-1.5.6...
[140amd64-default-build-as-user-job-10] |   |   `-- Installing liblz4-1.9.4_1,1...
[140amd64-default-build-as-user-job-10] |   |   `-- Extracting liblz4-1.9.4_1,1: .......... done
[140amd64-default-build-as-user-job-10] |   | `-- Extracting zstd-1.5.6: .......... done
[140amd64-default-build-as-user-job-10] |   `-- Extracting binutils-2.40_5,1: .......... done
[140amd64-default-build-as-user-job-10] |   `-- Installing gmp-6.3.0...
[140amd64-default-build-as-user-job-10] |   `-- Extracting gmp-6.3.0: .......... done
[140amd64-default-build-as-user-job-10] |   `-- Installing mpc-1.3.1_1...
[140amd64-default-build-as-user-job-10] |   | `-- Installing mpfr-4.2.1,1...
[140amd64-default-build-as-user-job-10] |   | `-- Extracting mpfr-4.2.1,1: .......... done
[140amd64-default-build-as-user-job-10] |   `-- Extracting mpc-1.3.1_1: ......... done
[140amd64-default-build-as-user-job-10] `-- Extracting gcc13-13.2.0_4: .......... done
[140amd64-default-build-as-user-job-10] `-- Installing openblas-0.3.25,2...
[140amd64-default-build-as-user-job-10] `-- Extracting openblas-0.3.25,2: .......... done
[140amd64-default-build-as-user-job-10] `-- Installing py39-setuptools-63.1.0_1...
[140amd64-default-build-as-user-job-10] |   `-- Installing python39-3.9.18_2...
[140amd64-default-build-as-user-job-10] |   | `-- Installing libffi-3.4.4_1...
<snip>
===== env: NO_DEPENDS=yes USER=nobody UID=65534 GID=65534
===>  Building for py39-petsc4py-3.20.4
running build
running build_src
using Cython 3.0.10
cythonizing 'petsc4py/PETSc.pyx' -> 'petsc4py/PETSc.c'
running build_py
creating build
creating build/lib.freebsd-14.0-RELEASE-p6-amd64-cpython-39
creating build/lib.freebsd-14.0-RELEASE-p6-amd64-cpython-39/petsc4py
copying src/petsc4py/__main__.py -> build/lib.freebsd-14.0-RELEASE-p6-amd64-cpython-39/petsc4py
copying src/petsc4py/__init__.py -> build/lib.freebsd-14.0-RELEASE-p6-amd64-cpython-39/petsc4py
copying src/petsc4py/PETSc.py -> build/lib.freebsd-14.0-RELEASE-p6-amd64-cpython-39/petsc4py
copying src/petsc4py/typing.py -> build/lib.freebsd-14.0-RELEASE-p6-amd64-cpython-39/petsc4py
creating build/lib.freebsd-14.0-RELEASE-p6-amd64-cpython-39/petsc4py/lib
copying src/petsc4py/lib/__init__.py -> build/lib.freebsd-14.0-RELEASE-p6-amd64-cpython-39/petsc4py/lib
copying src/petsc4py/PETSc.pxd -> build/lib.freebsd-14.0-RELEASE-p6-amd64-cpython-39/petsc4py
copying src/petsc4py/PETSc_api.h -> build/lib.freebsd-14.0-RELEASE-p6-amd64-cpython-39/petsc4py
copying src/petsc4py/PETSc.h -> build/lib.freebsd-14.0-RELEASE-p6-amd64-cpython-39/petsc4py
creating build/lib.freebsd-14.0-RELEASE-p6-amd64-cpython-39/petsc4py/include
creating build/lib.freebsd-14.0-RELEASE-p6-amd64-cpython-39/petsc4py/include/petsc4py
copying src/petsc4py/include/petsc4py/numpy.h -> build/lib.freebsd-14.0-RELEASE-p6-amd64-cpython-39/petsc4py/include/petsc4py
copying src/petsc4py/include/petsc4py/pyscalar.h -> build/lib.freebsd-14.0-RELEASE-p6-amd64-cpython-39/petsc4py/include/petsc4py
copying src/petsc4py/include/petsc4py/petsc4py.h -> build/lib.freebsd-14.0-RELEASE-p6-amd64-cpython-39/petsc4py/include/petsc4py
copying src/petsc4py/include/petsc4py/pybuffer.h -> build/lib.freebsd-14.0-RELEASE-p6-amd64-cpython-39/petsc4py/include/petsc4py
copying src/petsc4py/include/petsc4py/petsc4py.i -> build/lib.freebsd-14.0-RELEASE-p6-amd64-cpython-39/petsc4py/include/petsc4py
copying src/petsc4py/py.typed -> build/lib.freebsd-14.0-RELEASE-p6-amd64-cpython-39/petsc4py
copying src/petsc4py/__main__.pyi -> build/lib.freebsd-14.0-RELEASE-p6-amd64-cpython-39/petsc4py
copying src/petsc4py/__init__.pyi -> build/lib.freebsd-14.0-RELEASE-p6-amd64-cpython-39/petsc4py
copying src/petsc4py/lib/__init__.pyi -> build/lib.freebsd-14.0-RELEASE-p6-amd64-cpython-39/petsc4py/lib
copying src/petsc4py/lib/petsc.cfg -> build/lib.freebsd-14.0-RELEASE-p6-amd64-cpython-39/petsc4py/lib
running build_ext
PETSC_DIR:    /usr/local
PETSC_ARCH:   
version:      3.21.0 release
integer-size: 64-bit
scalar-type:  real
precision:    double
language:     CONLY
compiler:     mpicc
linker:       mpicc
building 'PETSc' extension
creating build/temp.freebsd-14.0-RELEASE-p6-amd64-cpython-39
creating build/temp.freebsd-14.0-RELEASE-p6-amd64-cpython-39/src
creating build/temp.freebsd-14.0-RELEASE-p6-amd64-cpython-39/src/petsc4py
mpicc -pthread -fPIC -Wall -Wwrite-strings -Wno-unknown-pragmas -fstack-protector -Qunused-arguments -g3 -O0 -fPIC -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DMPICH_SKIP_MPICXX=1 -DOMPI_SKIP_MPICXX=1 -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -Isrc -Isrc/petsc4py/include -I/usr/local/lib/python3.9/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/include/python3.9 -c src/petsc4py/PETSc.c -o build/temp.freebsd-14.0-RELEASE-p6-amd64-cpython-39/src/petsc4py/PETSc.o
src/petsc4py/PETSc.c:5065:74: error: unknown type name 'DMPlexReorderDefaultFlag'; did you mean 'DMReorderDefaultFlag'?
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_DMPlexReorderDefaultFlag(DMPlexReorderDefaultFlag value);
                                                                         ^~~~~~~~~~~~~~~~~~~~~~~~
                                                                         DMReorderDefaultFlag
/usr/local/include/petscdmtypes.h:294:3: note: 'DMReorderDefaultFlag' declared here
} DMReorderDefaultFlag;
  ^
src/petsc4py/PETSc.c:5290:22: error: unknown type name 'DMPlexReorderDefaultFlag'; did you mean 'DMReorderDefaultFlag'?
static CYTHON_INLINE DMPlexReorderDefaultFlag __Pyx_PyInt_As_DMPlexReorderDefaultFlag(PyObject *);
                     ^~~~~~~~~~~~~~~~~~~~~~~~
                     DMReorderDefaultFlag
/usr/local/include/petscdmtypes.h:294:3: note: 'DMReorderDefaultFlag' declared here
} DMReorderDefaultFlag;
  ^
src/petsc4py/PETSc.c:133345:26: error: use of undeclared identifier 'PETSC_STREAM_DEFAULT_BLOCKING'; did you mean 'PETSC_STREAM_NONBLOCKING'?
  __pyx_v_cstream_type = PETSC_STREAM_DEFAULT_BLOCKING;
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                         PETSC_STREAM_NONBLOCKING
/usr/local/include/petscdevicetypes.h:321:3: note: 'PETSC_STREAM_NONBLOCKING' declared here
  PETSC_STREAM_NONBLOCKING,
  ^
src/petsc4py/PETSc.c:134470:26: error: use of undeclared identifier 'PETSC_STREAM_DEFAULT_BLOCKING'; did you mean 'PETSC_STREAM_NONBLOCKING'?
  __pyx_v_cstream_type = PETSC_STREAM_DEFAULT_BLOCKING;
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                         PETSC_STREAM_NONBLOCKING
/usr/local/include/petscdevicetypes.h:321:3: note: 'PETSC_STREAM_NONBLOCKING' declared here
  PETSC_STREAM_NONBLOCKING,
  ^
src/petsc4py/PETSc.c:200863:160: error: too few arguments to function call, expected 6, have 5
  __pyx_t_2 = __pyx_f_8petsc4py_5PETSc_CHKERR(PetscSectionCreateGlobalSection(__pyx_v_self->sec, __pyx_v_sf->sf, PETSC_FALSE, PETSC_FALSE, (&__pyx_v_gsec->sec))); if (unlikely(__pyx_t_2 == ((PetscErrorCode)PETSC_ERR_PYTHON))) __PYX_ERR(45, 884, __pyx_L1_error)
                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                  ^
/usr/local/include/petscsection.h:68:29: note: 'PetscSectionCreateGlobalSection' declared here
PETSC_EXTERN PetscErrorCode PetscSectionCreateGlobalSection(PetscSection, PetscSF, PetscBool, PetscBool, PetscBool, PetscSection *);
                            ^
src/petsc4py/PETSc.c:353375:49: warning: 'TaoSetMonitor' is deprecated: Use "TaoMonitorSet()" (since version 3.21.0) instead. Silence this warning (as well as all others for this version) by defining PETSC_SILENCE_DEPRECATION_WARNINGS_3_21_0. [-Wdeprecated-declarations]
    __pyx_t_3 = __pyx_f_8petsc4py_5PETSc_CHKERR(TaoSetMonitor(__pyx_v_self->tao, __pyx_f_8petsc4py_5PETSc_TAO_Monitor, NULL, NULL)); if (unlikely(__pyx_t_3 == ((PetscErrorCode)PETSC_ERR_PYTHON))) __PYX_ERR(52, 1193, __pyx_L1_error)
                                                ^
/usr/local/include/petsctao_deprecations.h:42:1: note: 'TaoSetMonitor' has been explicitly marked deprecated here
PETSC_DEPRECATED_FUNCTION(3, 21, 0, "TaoMonitorSet()", ) static inline PetscErrorCode TaoSetMonitor(Tao tao, PetscErrorCode (*monitor)(Tao, void *), void *ctx, PetscErrorCode (*destroy)(void **))
^
/usr/local/include/petscmacros.h:1282:105: note: expanded from macro 'PETSC_DEPRECATED_FUNCTION'
#define PETSC_DEPRECATED_FUNCTION(major, minor, subminor, replacement, ...) PETSC_DEPRECATED_IDENTIFIER(PETSC_DEPRECATED_FUNCTION_BASE, major, minor, subminor, replacement, __VA_ARGS__)
                                                                                                        ^
src/petsc4py/PETSc.c:353621:47: warning: 'TaoCancelMonitors' is deprecated: Use "TaoMonitorCancel()" (since version 3.21.0) instead. Silence this warning (as well as all others for this version) by defining PETSC_SILENCE_DEPRECATION_WARNINGS_3_21_0. [-Wdeprecated-declarations]
  __pyx_t_1 = __pyx_f_8petsc4py_5PETSc_CHKERR(TaoCancelMonitors(__pyx_v_self->tao)); if (unlikely(__pyx_t_1 == ((PetscErrorCode)PETSC_ERR_PYTHON))) __PYX_ERR(52, 1220, __pyx_L1_error)
                                              ^
/usr/local/include/petsctao_deprecations.h:46:1: note: 'TaoCancelMonitors' has been explicitly marked deprecated here
PETSC_DEPRECATED_FUNCTION(3, 21, 0, "TaoMonitorCancel()", ) static inline PetscErrorCode TaoCancelMonitors(Tao tao)
^
/usr/local/include/petscmacros.h:1282:105: note: expanded from macro 'PETSC_DEPRECATED_FUNCTION'
#define PETSC_DEPRECATED_FUNCTION(major, minor, subminor, replacement, ...) PETSC_DEPRECATED_IDENTIFIER(PETSC_DEPRECATED_FUNCTION_BASE, major, minor, subminor, replacement, __VA_ARGS__)
                                                                                                        ^
src/petsc4py/PETSc.c:374018:47: warning: call to undeclared function 'DMProjectCoordinates'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  __pyx_t_1 = __pyx_f_8petsc4py_5PETSc_CHKERR(DMProjectCoordinates(__pyx_v_self->dm, __pyx_v_disc->fe)); if (unlikely(__pyx_t_1 == ((PetscErrorCode)PETSC_ERR_PYTHON))) __PYX_ERR(54, 1089, __pyx_L1_error)
                                              ^
src/petsc4py/PETSc.c:413616:3: error: unknown type name 'DMPlexReorderDefaultFlag'; did you mean 'DMReorderDefaultFlag'?
  DMPlexReorderDefaultFlag __pyx_v_reorder;
  ^~~~~~~~~~~~~~~~~~~~~~~~
  DMReorderDefaultFlag
/usr/local/include/petscdmtypes.h:294:3: note: 'DMReorderDefaultFlag' declared here
} DMReorderDefaultFlag;
  ^
src/petsc4py/PETSc.c:413633:21: error: use of undeclared identifier 'DMPLEX_REORDER_DEFAULT_NOTSET'; did you mean 'DM_REORDER_DEFAULT_NOTSET'?
  __pyx_v_reorder = DMPLEX_REORDER_DEFAULT_NOTSET;
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                    DM_REORDER_DEFAULT_NOTSET
/usr/local/include/petscdmtypes.h:291:3: note: 'DM_REORDER_DEFAULT_NOTSET' declared here
  DM_REORDER_DEFAULT_NOTSET = -1,
  ^
src/petsc4py/PETSc.c:413782:3: error: unknown type name 'DMPlexReorderDefaultFlag'; did you mean 'DMReorderDefaultFlag'?
  DMPlexReorderDefaultFlag __pyx_v_reorder;
  ^~~~~~~~~~~~~~~~~~~~~~~~
  DMReorderDefaultFlag
/usr/local/include/petscdmtypes.h:294:3: note: 'DMReorderDefaultFlag' declared here
} DMReorderDefaultFlag;
  ^
src/petsc4py/PETSc.c:413785:3: error: unknown type name 'DMPlexReorderDefaultFlag'; did you mean 'DMReorderDefaultFlag'?
  DMPlexReorderDefaultFlag __pyx_t_1;
  ^~~~~~~~~~~~~~~~~~~~~~~~
  DMReorderDefaultFlag
/usr/local/include/petscdmtypes.h:294:3: note: 'DMReorderDefaultFlag' declared here
} DMReorderDefaultFlag;
  ^
src/petsc4py/PETSc.c:413799:17: error: use of undeclared identifier 'DMPlexReorderDefaultFlag'; did you mean 'DMPlexReorderSetDefault'?
  __pyx_t_1 = ((DMPlexReorderDefaultFlag)__Pyx_PyInt_As_DMPlexReorderDefaultFlag(__pyx_v_flag)); if (unlikely(PyErr_Occurred())) __PYX_ERR(57, 2171, __pyx_L1_error)
                ^~~~~~~~~~~~~~~~~~~~~~~~
                DMPlexReorderSetDefault
/usr/local/include/petscdmplex.h:260:29: note: 'DMPlexReorderSetDefault' declared here
PETSC_EXTERN PetscErrorCode DMPlexReorderSetDefault(DM, DMReorderDefaultFlag);
                            ^
src/petsc4py/PETSc.c:413799:42: error: expected ')'
  __pyx_t_1 = ((DMPlexReorderDefaultFlag)__Pyx_PyInt_As_DMPlexReorderDefaultFlag(__pyx_v_flag)); if (unlikely(PyErr_Occurred())) __PYX_ERR(57, 2171, __pyx_L1_error)
                                         ^
src/petsc4py/PETSc.c:413799:15: note: to match this '('
  __pyx_t_1 = ((DMPlexReorderDefaultFlag)__Pyx_PyInt_As_DMPlexReorderDefaultFlag(__pyx_v_flag)); if (unlikely(PyErr_Occurred())) __PYX_ERR(57, 2171, __pyx_L1_error)
              ^
src/petsc4py/PETSc.c:413799:13: error: incompatible pointer to integer conversion assigning to 'DMReorderDefaultFlag' from 'PetscErrorCode (DM, DMReorderDefaultFlag)' (aka 'int (struct _p_DM *, DMReorderDefaultFlag)') [-Wint-conversion]
  __pyx_t_1 = ((DMPlexReorderDefaultFlag)__Pyx_PyInt_As_DMPlexReorderDefaultFlag(__pyx_v_flag)); if (unlikely(PyErr_Occurred())) __PYX_ERR(57, 2171, __pyx_L1_error)
            ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~
src/petsc4py/PETSc.c:451814:169: error: too few arguments to function call, expected 6, have 5
  __pyx_t_7 = __pyx_f_8petsc4py_5PETSc_CHKERR(DMSwarmProjectFields(__pyx_v_self->__pyx_base.dm, __pyx_v_cnfields, __pyx_v_cfieldnames, __pyx_v_cfieldvecs, __pyx_v_cmode)); if (unlikely(__pyx_t_7 == ((PetscErrorCode)PETSC_ERR_PYTHON))) __PYX_ERR(62, 832, __pyx_L1_error)
                                              ~~~~~~~~~~~~~~~~~~~~                                                                                                      ^
/usr/local/include/petscksp.h:1126:29: note: 'DMSwarmProjectFields' declared here
PETSC_EXTERN PetscErrorCode DMSwarmProjectFields(DM, DM, PetscInt, const char **, Vec[], ScatterMode mode);
                            ^
src/petsc4py/PETSc.c:525065:49: error: use of undeclared identifier 'PETSC_STREAM_GLOBAL_BLOCKING'; did you mean 'PETSC_STREAM_NONBLOCKING'?
  __pyx_t_11 = __Pyx_PyInt_From_PetscStreamType(PETSC_STREAM_GLOBAL_BLOCKING); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 47, __pyx_L1_error)
                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                PETSC_STREAM_NONBLOCKING
/usr/local/include/petscdevicetypes.h:321:3: note: 'PETSC_STREAM_NONBLOCKING' declared here
  PETSC_STREAM_NONBLOCKING,
  ^
src/petsc4py/PETSc.c:525083:49: error: use of undeclared identifier 'PETSC_STREAM_DEFAULT_BLOCKING'; did you mean 'PETSC_STREAM_NONBLOCKING'?
  __pyx_t_11 = __Pyx_PyInt_From_PetscStreamType(PETSC_STREAM_DEFAULT_BLOCKING); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 48, __pyx_L1_error)
                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                PETSC_STREAM_NONBLOCKING
/usr/local/include/petscdevicetypes.h:321:3: note: 'PETSC_STREAM_NONBLOCKING' declared here
  PETSC_STREAM_NONBLOCKING,
  ^
src/petsc4py/PETSc.c:525101:49: error: use of undeclared identifier 'PETSC_STREAM_GLOBAL_NONBLOCKING'; did you mean 'PETSC_STREAM_NONBLOCKING'?
  __pyx_t_11 = __Pyx_PyInt_From_PetscStreamType(PETSC_STREAM_GLOBAL_NONBLOCKING); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 49, __pyx_L1_error)
                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                PETSC_STREAM_NONBLOCKING
/usr/local/include/petscdevicetypes.h:321:3: note: 'PETSC_STREAM_NONBLOCKING' declared here
  PETSC_STREAM_NONBLOCKING,
  ^
src/petsc4py/PETSc.c:537735:58: error: use of undeclared identifier 'DMPLEX_REORDER_DEFAULT_NOTSET'; did you mean 'DM_REORDER_DEFAULT_NOTSET'?
  __pyx_t_11 = __Pyx_PyInt_From_DMPlexReorderDefaultFlag(DMPLEX_REORDER_DEFAULT_NOTSET); if (unlikely(!__pyx_t_11)) __PYX_ERR(57, 4, __pyx_L1_error)
                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                         DM_REORDER_DEFAULT_NOTSET
/usr/local/include/petscdmtypes.h:291:3: note: 'DM_REORDER_DEFAULT_NOTSET' declared here
  DM_REORDER_DEFAULT_NOTSET = -1,
  ^
src/petsc4py/PETSc.c:537747:58: error: use of undeclared identifier 'DMPLEX_REORDER_DEFAULT_FALSE'; did you mean 'DM_REORDER_DEFAULT_FALSE'?
  __pyx_t_11 = __Pyx_PyInt_From_DMPlexReorderDefaultFlag(DMPLEX_REORDER_DEFAULT_FALSE); if (unlikely(!__pyx_t_11)) __PYX_ERR(57, 5, __pyx_L1_error)
                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                         DM_REORDER_DEFAULT_FALSE
/usr/local/include/petscdmtypes.h:292:3: note: 'DM_REORDER_DEFAULT_FALSE' declared here
  DM_REORDER_DEFAULT_FALSE  = 0,
  ^
src/petsc4py/PETSc.c:537759:58: error: use of undeclared identifier 'DMPLEX_REORDER_DEFAULT_TRUE'; did you mean 'DM_REORDER_DEFAULT_TRUE'?
  __pyx_t_11 = __Pyx_PyInt_From_DMPlexReorderDefaultFlag(DMPLEX_REORDER_DEFAULT_TRUE); if (unlikely(!__pyx_t_11)) __PYX_ERR(57, 6, __pyx_L1_error)
                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                         DM_REORDER_DEFAULT_TRUE
/usr/local/include/petscdmtypes.h:293:3: note: 'DM_REORDER_DEFAULT_TRUE' declared here
  DM_REORDER_DEFAULT_TRUE
  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
3 warnings and 20 errors generated.
error: command '/usr/local/bin/mpicc' failed with exit code 1
*** Error code 1

Stop.
make: stopped in /usr/ports/math/py-petsc4py