[package - 142i386-default][math/R-cran-terra] Failed for R-cran-terra-1.8.54 in stage

From: <pkg-fallout_at_FreeBSD.org>
Date: Tue, 03 Jun 2025 03:44:52 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:     eduardo@FreeBSD.org
Log URL:        https://pkg-status.freebsd.org/beefy21/data/142i386-default/691901e18f0f/logs/R-cran-terra-1.8.54.log
Build URL:      https://pkg-status.freebsd.org/beefy21/build.html?mastername=142i386-default&build=691901e18f0f
Log:

=>> Building math/R-cran-terra
build started at Tue Jun  3 03:42:05 UTC 2025
port directory: /usr/ports/math/R-cran-terra
package name: R-cran-terra-1.8.54
building for: FreeBSD 142i386-default-job-20 14.2-RELEASE-p3 FreeBSD 14.2-RELEASE-p3 i386
maintained by: eduardo@FreeBSD.org
Makefile datestamp: -rw-r--r--  1 root wheel 576 Jun  3 01:01 /usr/ports/math/R-cran-terra/Makefile
Ports top last git commit: 691901e18f
Ports top unclean checkout: no
Port dir last git commit: 3343e114b6
Port dir unclean checkout: no
Poudriere version: poudriere-git-3.4.2-12-g74a54a88
Host OSVERSION: 1500035
Jail OSVERSION: 1402000
Job Id: 20

---Begin Environment---
SHELL=/bin/sh
BLOCKSIZE=K
MAIL=/var/mail/root
MM_CHARSET=UTF-8
LANG=C.UTF-8
OSVERSION=1402000
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
MAKE_OBJDIR_CHECK_WRITABLE=0
UNAME_m=i386
UNAME_p=i386
UNAME_r=14.2-RELEASE-p3
LOCALBASE=/usr/local
UNAME_v=FreeBSD 14.2-RELEASE-p3
USER=root
POUDRIERE_NAME=poudriere-git
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.4.2-12-g74a54a88
MASTERMNT=/usr/local/poudriere/data/.m/142i386-default/ref
LC_COLLATE=C
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=
OUTPUT_REDIRECTED_STDERR=4
OUTPUT_REDIRECTED=1
PWD=/usr/local/poudriere/data/.m/142i386-default/20/.p
OUTPUT_REDIRECTED_STDOUT=3
P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS
MASTERNAME=142i386-default
SCRIPTPREFIX=/usr/local/share/poudriere
SCRIPTNAME=bulk.sh
OLDPWD=/usr/local/poudriere/data/.m/142i386-default/ref/.p/pool
POUDRIERE_PKGNAME=poudriere-git-3.4.2-12-g74a54a88
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

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

---Begin OPTIONS List---
---End OPTIONS List---

--MAINTAINER--
eduardo@FreeBSD.org
--End MAINTAINER--

--CONFIGURE_ARGS--

--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
F77="gfortran13" F90="gfortran13" FC="gfortran13"	 FFLAGS="-O -Wl,-rpath=/usr/local/lib/gcc13" F90FLAGS="-O -Wl,-rpath=/usr/local/lib/gcc13" FCFLAGS="-Wl,-rpath=/usr/local/lib/gcc13" XDG_DATA_HOME=/wrkdirs/usr/ports/math/R-cran-terra/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/math/R-cran-terra/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/math/R-cran-terra/work/.cache  HOME=/wrkdirs/usr/ports/math/R-cran-terra/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/math/R-cran-terra/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/math/R-cran-terra/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh
--End CONFIGURE_ENV--

--MAKE_ENV--
F77="gfortran13" F90="gfortran13" FC="gfortran13"	 FFLAGS="-O -Wl,-rpath=/usr/local/lib/gcc13" F90FLAGS="-O -Wl,-rpath=/usr/local/lib/gcc13" FCFLAGS="-Wl,-rpath=/usr/local/lib/gcc13" XDG_DATA_HOME=/wrkdirs/usr/ports/math/R-cran-terra/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/math/R-cran-terra/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/math/R-cran-terra/work/.cache  HOME=/wrkdirs/usr/ports/math/R-cran-terra/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/math/R-cran-terra/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/math/R-cran-terra/work/.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 ADDR2LINE="/usr/local/bin/addr2line" AR="/usr/local/bin/ar" AS="/usr/local/bin/as" CPPFILT="/usr/local/bin/c++filt" GPROF="/usr/local/bin/gprof" LD="/usr/local/bin/ld" NM="/usr/local/bin/nm" OBJCOPY="/usr/local/bin/objcopy" OB
JDUMP="/usr/local/bin/objdump" RANLIB="/usr/local/bin/ranlib" READELF="/usr/local/bin/readelf" SIZE="/usr/local/bin/size" STRINGS="/usr/local/bin/strings" PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing "  CPP="cpp" CPPFLAGS=""  LDFLAGS=" -Wl,-rpath=/usr/local/lib/gcc13  -L/usr/local/lib/gcc13 -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--
R_MOD_DIR=lib/R/library/terra OSREL=14.2 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/terra"  EXAMPLESDIR="share/examples/terra"  DATADIR="share/terra"  WWWDIR="www/terra"  ETCDIR="etc/terra"
--End PLIST_SUB--

--SUB_LIST--
PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/terra DOCSDIR=/usr/local/share/doc/terra EXAMPLESDIR=/usr/local/share/examples/terra  WWWDIR=/usr/local/www/terra ETCDIR=/usr/local/etc/terra
--End SUB_LIST--

---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
MACHINE=i386
MACHINE_ARCH=i386
ARCH=${MACHINE_ARCH}
####  ####
# XXX: We really need this but cannot use it while 'make checksum' does not
# try the next mirror on checksum failure.  It currently retries the same
# failed mirror and then fails rather then trying another.  It *does*
# try the next if the size is mismatched though.
#MASTER_SITE_FREEBSD=yes
# Build ALLOW_MAKE_JOBS_PACKAGES with 3 jobs
MAKE_JOBS_NUMBER=3
#### Misc Poudriere ####
.include "/etc/make.conf.ports_env"
GID=0
UID=0
DISABLE_MAKE_JOBS=poudriere
---End make.conf---
--Resource limits--
cpu time               (seconds, -t)  unlimited
file size           (512-blocks, -f)  unlimited
data seg size           (kbytes, -d)  524288
stack size              (kbytes, -s)  65536
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
pipebuf                         (-y)  unlimited
--End resource limits--
=======================<phase: check-sanity   >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License GPLv3+ accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   R-cran-terra-1.8.54 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-2.1.4.pkg
[142i386-default-job-20] Installing pkg-2.1.4...
[142i386-default-job-20] Extracting pkg-2.1.4: .......... done
===>   R-cran-terra-1.8.54 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of R-cran-terra-1.8.54
===========================================================================
=======================<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 GPLv3+ accepted by the user
=> terra_1.8-54.tar.gz doesn't seem to exist in /portdistfiles/.
=> Attempting to fetch https://cloud.r-project.org/src/contrib/terra_1.8-54.tar.gz
terra_1.8-54.tar.gz                                   1020 kB   48 MBps    00s
===> Fetching all distfiles required by R-cran-terra-1.8.54 for building
===========================================================================
=======================<phase: checksum       >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License GPLv3+ accepted by the user
===> Fetching all distfiles required by R-cran-terra-1.8.54 for building
=> SHA256 Checksum OK for terra_1.8-54.tar.gz.
===========================================================================
=======================<phase: extract-depends>============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: extract        >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License GPLv3+ accepted by the user
===> Fetching all distfiles required by R-cran-terra-1.8.54 for building
===>  Extracting for R-cran-terra-1.8.54
=> SHA256 Checksum OK for terra_1.8-54.tar.gz.
===========================================================================
=======================<phase: patch-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: patch          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Patching for R-cran-terra-1.8.54
===========================================================================
=======================<phase: build-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   R-cran-terra-1.8.54 depends on package: R-cran-Rcpp>0 - not found
===>   Installing existing package /packages/All/R-cran-Rcpp-1.0.14.pkg
[142i386-default-job-20] Installing R-cran-Rcpp-1.0.14...
[142i386-default-job-20] `-- Installing R-4.5.0...
[142i386-default-job-20] |   `-- Installing cairo-1.18.2,3...
[142i386-default-job-20] |   | `-- Installing fontconfig-2.15.0_3,1...
[142i386-default-job-20] |   |   `-- Installing expat-2.7.1...
[142i386-default-job-20] |   |   `-- Extracting expat-2.7.1: .......... done
[142i386-default-job-20] |   |   `-- Installing freetype2-2.13.3...
[142i386-default-job-20] |   |   | `-- Installing brotli-1.1.0,1...
[142i386-default-job-20] |   |   | `-- Extracting brotli-1.1.0,1: .......... done
[142i386-default-job-20] |   |   | `-- Installing png-1.6.48...
[142i386-default-job-20] |   |   | `-- Extracting png-1.6.48: .......... done
[142i386-default-job-20] |   |   `-- Extracting freetype2-2.13.3: .......... done
[142i386-default-job-20] |   | `-- Extracting fontconfig-2.15.0_3,1: .......... done
[142i386-default-job-20] |   | `-- Installing gettext-runtime-0.23.1...
[142i386-default-job-20] |   |   `-- Installing indexinfo-0.3.1_1...
<snip>
[142i386-default-job-20] |   `-- Installing pkgconf-2.4.3,1...
[142i386-default-job-20] |   `-- Extracting pkgconf-2.4.3,1: .......... done
[142i386-default-job-20] `-- Extracting netcdf-4.9.3: .......... done
[142i386-default-job-20] `-- Installing poppler-25.04.0_1...
[142i386-default-job-20] |   `-- Installing gpgme-1.24.2...
[142i386-default-job-20] |   | `-- Installing gnupg-2.4.7...
[142i386-default-job-20] |   |   `-- Installing libassuan-3.0.2...
[142i386-default-job-20] |   |   | `-- Installing libgpg-error-1.55...
[142i386-default-job-20] |   |   | `-- Extracting libgpg-error-1.55: .......... done
[142i386-default-job-20] |   |   `-- Extracting libassuan-3.0.2: .......... done
[142i386-default-job-20] |   |   `-- Installing libgcrypt-1.11.1...
[142i386-default-job-20] |   |   `-- Extracting libgcrypt-1.11.1: .......... done
[142i386-default-job-20] |   |   `-- Installing libksba-1.6.7...
[142i386-default-job-20] |   |   `-- Extracting libksba-1.6.7: .......... done
[142i386-default-job-20] |   |   `-- Installing npth-1.8...
[142i386-default-job-20] |   |   `-- Extracting npth-1.8: ......... done
[142i386-default-job-20] |   |   `-- Installing pinentry-1.3.1_2...
[142i386-default-job-20] |   |   | `-- Installing pinentry-curses-1.3.1...
[142i386-default-job-20] |   |   | `-- Extracting pinentry-curses-1.3.1: .... done
[142i386-default-job-20] |   |   `-- Extracting pinentry-1.3.1_2: ..... done
[142i386-default-job-20] |   | `-- Extracting gnupg-2.4.7: .......... done
[142i386-default-job-20] |   `-- Extracting gpgme-1.24.2: .......... done
[142i386-default-job-20] |   `-- Installing gpgme-cpp-1.24.2...
[142i386-default-job-20] |   `-- Extracting gpgme-cpp-1.24.2: .......... done
[142i386-default-job-20] |   `-- Installing nspr-4.36...
[142i386-default-job-20] |   `-- Extracting nspr-4.36: .......... done
[142i386-default-job-20] |   `-- Installing nss-3.112...
[142i386-default-job-20] |   `-- Extracting nss-3.112: .......... done
[142i386-default-job-20] `-- Extracting poppler-25.04.0_1: .......... done
[142i386-default-job-20] `-- Installing postgresql17-client-17.5...
[142i386-default-job-20] `-- Extracting postgresql17-client-17.5: .......... done
[142i386-default-job-20] `-- Installing qhull-8.0.2_3,1...
[142i386-default-job-20] `-- Extracting qhull-8.0.2_3,1: .......... done
[142i386-default-job-20] `-- Installing sfcgal-2.1.0_1...
[142i386-default-job-20] `-- Extracting sfcgal-2.1.0_1: .......... done
[142i386-default-job-20] `-- Installing spatialite-5.1.0_3...
[142i386-default-job-20] |   `-- Installing librttopo-1.1.0...
[142i386-default-job-20] |   `-- Extracting librttopo-1.1.0: .......... done
[142i386-default-job-20] `-- Extracting spatialite-5.1.0_3: .......... done
[142i386-default-job-20] `-- Installing webp-1.5.0...
[142i386-default-job-20] `-- Extracting webp-1.5.0: .......... done
[142i386-default-job-20] `-- Installing xerces-c3-3.3.0...
[142i386-default-job-20] `-- Extracting xerces-c3-3.3.0: .......... done
[142i386-default-job-20] Extracting gdal-3.11.0: .......... done
=====
Message from boost-libs-1.88.0:

--
You have built the Boost library with thread support.

Don't forget to add -pthread to your linker options when
linking your code.
=====
Message from postgresql17-client-17.5:

--
The PostgreSQL port has a collection of "side orders":

postgresql-docs
  For all of the html documentation

p5-Pg
  A perl5 API for client access to PostgreSQL databases.

postgresql-tcltk
  If you want tcl/tk client support.

postgresql-jdbc
  For Java JDBC support.

postgresql-odbc
  For client access from unix applications using ODBC as access
  method. Not needed to access unix PostgreSQL servers from Win32
  using ODBC. See below.

ruby-postgres, py-psycopg
  For client access to PostgreSQL databases using the ruby & python
  languages.

postgresql-plperl, postgresql-pltcl & postgresql-plruby
  For using perl5, tcl & ruby as procedural languages.

postgresql-contrib
  Lots of contributed utilities, postgresql functions and
  datatypes. There you find pg_standby, pgcrypto and many other cool
  things.

etc...
===>   R-cran-terra-1.8.54 depends on shared library: libgdal.so - found (/usr/local/lib/libgdal.so)
===>   Returning to build of R-cran-terra-1.8.54
===>   R-cran-terra-1.8.54 depends on shared library: libgeos_c.so - found (/usr/local/lib/libgeos_c.so)
===>   R-cran-terra-1.8.54 depends on shared library: libproj.so - found (/usr/local/lib/libproj.so)
===>   R-cran-terra-1.8.54 depends on shared library: libsqlite3.so - found (/usr/local/lib/libsqlite3.so)
===========================================================================
=======================<phase: configure      >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Configuring for R-cran-terra-1.8.54
===========================================================================
=======================<phase: build          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===========================================================================
=======================<phase: run-depends    >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   R-cran-terra-1.8.54 depends on package: R-cran-Rcpp>0 - found
===>   R-cran-terra-1.8.54 depends on file: /usr/local/bin/R - found
===>   R-cran-terra-1.8.54 depends on executable: gfortran13 - found
===========================================================================
=======================<phase: stage          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Staging for R-cran-terra-1.8.54
===>   Generating temporary packing list
* installing *source* package 'terra' ...
** this is package 'terra' version '1.8-54'
** package 'terra' successfully unpacked and MD5 sums checked
** using staged installation
configure: CC: cc
configure: CXX: c++ -std=gnu++17
checking for gdal-config... /usr/local/bin/gdal-config
checking gdal-config usability... yes
configure: GDAL: 3.11.0
checking GDAL version >= 2.0.1... yes
checking for gcc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether cc accepts -g... yes
checking for cc option to enable C11 features... none needed
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for gdal.h... yes
checking GDAL: linking with --libs only... yes
checking GDAL: /usr/local/share/gdal/pcs.csv readable... no
checking GDAL: checking whether PROJ is available for linking:... yes
checking GDAL: checking whether PROJ is available for running:... yes
configure: GDAL: 3.11.0
configure: pkg-config proj exists, will use it
configure: using proj.h.
configure: PROJ: 9.6.0
checking PROJ: checking whether PROJ and sqlite3 are available for linking:... yes
checking for geos-config... /usr/local/bin/geos-config
checking geos-config usability... yes
configure: GEOS: 3.13.1
checking GEOS version >= 3.4.0... yes
checking for geos_c.h... yes
checking geos: linking with -L/usr/local/lib -lgeos_c... yes
checking Intel TBB exists:... no
configure: WARNING: to support parallel processing install TBB devel or update the PKG_CONFIG_PATH environment variable
configure: Package CPP flags:  -I/usr/local/include -DHAVE_PROJ_H -I/usr/local/include -I/usr/local/include 
configure: Package LIBS:  -L/usr/local/lib -lproj   -L/usr/local/lib -lgdal -L/usr/local/lib -lgeos_c
configure: creating ./config.status
config.status: creating src/Makevars
** libs
using C compiler: 'FreeBSD clang version 18.1.6 (https://github.com/llvm/llvm-project.git llvmorg-18.1.6-0-g1118c2e05e67)'
using C++ compiler: 'FreeBSD clang version 18.1.6 (https://github.com/llvm/llvm-project.git llvmorg-18.1.6-0-g1118c2e05e67)'
using C++17
c++ -std=gnu++17 -I"/usr/local/lib/R/include" -DNDEBUG -I/usr/local/include -DHAVE_PROJ_H -I/usr/local/include -I/usr/local/include  -I'/usr/local/lib/R/library/Rcpp/include' -DLIBICONV_PLUG -I/usr/local/include -isystem /usr/local/include    -fpic  -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -DLIBICONV_PLUG -isystem /usr/local/include    -c RcppExports.cpp -o RcppExports.o
c++ -std=gnu++17 -I"/usr/local/lib/R/include" -DNDEBUG -I/usr/local/include -DHAVE_PROJ_H -I/usr/local/include -I/usr/local/include  -I'/usr/local/lib/R/library/Rcpp/include' -DLIBICONV_PLUG -I/usr/local/include -isystem /usr/local/include    -fpic  -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -DLIBICONV_PLUG -isystem /usr/local/include    -c RcppFunctions.cpp -o RcppFunctions.o
c++ -std=gnu++17 -I"/usr/local/lib/R/include" -DNDEBUG -I/usr/local/include -DHAVE_PROJ_H -I/usr/local/include -I/usr/local/include  -I'/usr/local/lib/R/library/Rcpp/include' -DLIBICONV_PLUG -I/usr/local/include -isystem /usr/local/include    -fpic  -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -DLIBICONV_PLUG -isystem /usr/local/include    -c RcppModule.cpp -o RcppModule.o
c++ -std=gnu++17 -I"/usr/local/lib/R/include" -DNDEBUG -I/usr/local/include -DHAVE_PROJ_H -I/usr/local/include -I/usr/local/include  -I'/usr/local/lib/R/library/Rcpp/include' -DLIBICONV_PLUG -I/usr/local/include -isystem /usr/local/include    -fpic  -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -DLIBICONV_PLUG -isystem /usr/local/include    -c arith.cpp -o arith.o
c++ -std=gnu++17 -I"/usr/local/lib/R/include" -DNDEBUG -I/usr/local/include -DHAVE_PROJ_H -I/usr/local/include -I/usr/local/include  -I'/usr/local/lib/R/library/Rcpp/include' -DLIBICONV_PLUG -I/usr/local/include -isystem /usr/local/include    -fpic  -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -DLIBICONV_PLUG -isystem /usr/local/include    -c crs.cpp -o crs.o
c++ -std=gnu++17 -I"/usr/local/lib/R/include" -DNDEBUG -I/usr/local/include -DHAVE_PROJ_H -I/usr/local/include -I/usr/local/include  -I'/usr/local/lib/R/library/Rcpp/include' -DLIBICONV_PLUG -I/usr/local/include -isystem /usr/local/include    -fpic  -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -DLIBICONV_PLUG -isystem /usr/local/include    -c distRaster.cpp -o distRaster.o
c++ -std=gnu++17 -I"/usr/local/lib/R/include" -DNDEBUG -I/usr/local/include -DHAVE_PROJ_H -I/usr/local/include -I/usr/local/include  -I'/usr/local/lib/R/library/Rcpp/include' -DLIBICONV_PLUG -I/usr/local/include -isystem /usr/local/include    -fpic  -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -DLIBICONV_PLUG -isystem /usr/local/include    -c distValueRaster.cpp -o distValueRaster.o
c++ -std=gnu++17 -I"/usr/local/lib/R/include" -DNDEBUG -I/usr/local/include -DHAVE_PROJ_H -I/usr/local/include -I/usr/local/include  -I'/usr/local/lib/R/library/Rcpp/include' -DLIBICONV_PLUG -I/usr/local/include -isystem /usr/local/include    -fpic  -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -DLIBICONV_PLUG -isystem /usr/local/include    -c distVector.cpp -o distVector.o
c++ -std=gnu++17 -I"/usr/local/lib/R/include" -DNDEBUG -I/usr/local/include -DHAVE_PROJ_H -I/usr/local/include -I/usr/local/include  -I'/usr/local/lib/R/library/Rcpp/include' -DLIBICONV_PLUG -I/usr/local/include -isystem /usr/local/include    -fpic  -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -DLIBICONV_PLUG -isystem /usr/local/include    -c distance.cpp -o distance.o
c++ -std=gnu++17 -I"/usr/local/lib/R/include" -DNDEBUG -I/usr/local/include -DHAVE_PROJ_H -I/usr/local/include -I/usr/local/include  -I'/usr/local/lib/R/library/Rcpp/include' -DLIBICONV_PLUG -I/usr/local/include -isystem /usr/local/include    -fpic  -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -DLIBICONV_PLUG -isystem /usr/local/include    -c extract.cpp -o extract.o
c++ -std=gnu++17 -I"/usr/local/lib/R/include" -DNDEBUG -I/usr/local/include -DHAVE_PROJ_H -I/usr/local/include -I/usr/local/include  -I'/usr/local/lib/R/library/Rcpp/include' -DLIBICONV_PLUG -I/usr/local/include -isystem /usr/local/include    -fpic  -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -DLIBICONV_PLUG -isystem /usr/local/include    -c file_utils.cpp -o file_utils.o
c++ -std=gnu++17 -I"/usr/local/lib/R/include" -DNDEBUG -I/usr/local/include -DHAVE_PROJ_H -I/usr/local/include -I/usr/local/include  -I'/usr/local/lib/R/library/Rcpp/include' -DLIBICONV_PLUG -I/usr/local/include -isystem /usr/local/include    -fpic  -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -DLIBICONV_PLUG -isystem /usr/local/include    -c focal.cpp -o focal.o
c++ -std=gnu++17 -I"/usr/local/lib/R/include" -DNDEBUG -I/usr/local/include -DHAVE_PROJ_H -I/usr/local/include -I/usr/local/include  -I'/usr/local/lib/R/library/Rcpp/include' -DLIBICONV_PLUG -I/usr/local/include -isystem /usr/local/include    -fpic  -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -DLIBICONV_PLUG -isystem /usr/local/include    -c gcp.cpp -o gcp.o
c++ -std=gnu++17 -I"/usr/local/lib/R/include" -DNDEBUG -I/usr/local/include -DHAVE_PROJ_H -I/usr/local/include -I/usr/local/include  -I'/usr/local/lib/R/library/Rcpp/include' -DLIBICONV_PLUG -I/usr/local/include -isystem /usr/local/include    -fpic  -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -DLIBICONV_PLUG -isystem /usr/local/include    -c gdal_algs.cpp -o gdal_algs.o
c++ -std=gnu++17 -I"/usr/local/lib/R/include" -DNDEBUG -I/usr/local/include -DHAVE_PROJ_H -I/usr/local/include -I/usr/local/include  -I'/usr/local/lib/R/library/Rcpp/include' -DLIBICONV_PLUG -I/usr/local/include -isystem /usr/local/include    -fpic  -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -DLIBICONV_PLUG -isystem /usr/local/include    -c gdal_multidimensional.cpp -o gdal_multidimensional.o
gdal_multidimensional.cpp:581:52: error: cannot initialize a parameter of type 'const GInt64 *' (aka 'const long long *') with an rvalue of type 'value_type *' (aka 'int *')
  581 |                 source[src].m_array->Read(&offset[0], &count[0], &stride[0], NULL, dt, &data[insize], NULL, 0);
      |                                                                  ^~~~~~~~~~
/usr/local/include/gdal_priv.h:3810:24: note: passing argument to parameter 'arrayStep' here
 3810 |          const GInt64 *arrayStep,         // step in elements
      |                        ^
gdal_multidimensional.cpp:666:53: error: cannot initialize a parameter of type 'const GInt64 *' (aka 'const long long *') with an rvalue of type 'value_type *' (aka 'int *')
  666 |                         source[src].m_array->Read(&offset[0], &count[0], &stride[0], NULL, dt, &v[0], NULL, 0);
      |                                                                          ^~~~~~~~~~
/usr/local/include/gdal_priv.h:3810:24: note: passing argument to parameter 'arrayStep' here
 3810 |          const GInt64 *arrayStep,         // step in elements
      |                        ^
2 errors generated.
gmake: *** [/usr/local/lib/R/etc/Makeconf:209: gdal_multidimensional.o] Error 1
ERROR: compilation failed for package 'terra'
* removing '/wrkdirs/usr/ports/math/R-cran-terra/work/stage/usr/local/lib/R/library/terra'
*** Error code 1

Stop.
make: stopped in /usr/ports/math/R-cran-terra