[package - main-arm64-default][databases/mongodb70] Failed for mongodb70-7.0.0.r2 in build

From: <pkg-fallout_at_FreeBSD.org>
Date: Tue, 13 Jun 2023 15:54:34 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:     ronald@FreeBSD.org
Log URL:        https://pkg-status.freebsd.org/ampere2/data/main-arm64-default/p18ee3527a17a_s653738e895/logs/mongodb70-7.0.0.r2.log
Build URL:      https://pkg-status.freebsd.org/ampere2/build.html?mastername=main-arm64-default&build=p18ee3527a17a_s653738e895
Log:

=>> Building databases/mongodb70
build started at Tue Jun 13 15:50:06 UTC 2023
port directory: /usr/ports/databases/mongodb70
package name: mongodb70-7.0.0.r2
building for: FreeBSD main-arm64-default-job-11 14.0-CURRENT FreeBSD 14.0-CURRENT 1400090 arm64
maintained by: ronald@FreeBSD.org
Makefile ident: 
Poudriere version: 3.2.8-23-ga7f8d188
Host OSVERSION: 1400089
Jail OSVERSION: 1400090
Job Id: 11




!!! Jail is newer than host. (Jail: 1400090, Host: 1400089) !!!
!!! This is not supported. !!!
!!! Host kernel must be same or newer than jail. !!!
!!! Expect build failures. !!!



---Begin Environment---
SHELL=/bin/sh
OSVERSION=1400090
UNAME_v=FreeBSD 14.0-CURRENT 1400090
UNAME_r=14.0-CURRENT
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
LOCALBASE=/usr/local
USER=root
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.2.8-23-ga7f8d188
MASTERMNT=/usr/local/poudriere/data/.m/main-arm64-default/ref
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=
PWD=/usr/local/poudriere/data/.m/main-arm64-default/ref/.p/pool
P_PORTS_FEATURES=FLAVORS SELECTED_OPTIONS
MASTERNAME=main-arm64-default
SCRIPTPREFIX=/usr/local/share/poudriere
OLDPWD=/usr/local/poudriere/data/.m/main-arm64-default/ref/.p
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

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

---Begin OPTIONS List---
===> The following configuration options are available for mongodb70-7.0.0.r2:
     LTO=on: Use Link-Time Optimization
     NOAVX=off: "Disable AVX instructions on amd64 (Sandybridge+)"
     SASL=on: SASL authentication support
     SSL=on: SSL protocol support
===> Use 'make config' to modify these settings
---End OPTIONS List---

--MAINTAINER--
ronald@FreeBSD.org
--End MAINTAINER--

--CONFIGURE_ARGS--

--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
PYTHON="/usr/local/bin/python3.9" MAKE=gmake PKG_CONFIG=pkgconf XDG_DATA_HOME=/wrkdirs/usr/ports/databases/mongodb70/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/databases/mongodb70/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/databases/mongodb70/work/.cache  HOME=/wrkdirs/usr/ports/databases/mongodb70/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/databases/mongodb70/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/databases/mongodb70/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--
OPENSSLBASE=/usr OPENSSLDIR=/etc/ssl OPENSSLINC=/usr/include OPENSSLLIB=/usr/lib XDG_DATA_HOME=/wrkdirs/usr/ports/databases/mongodb70/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/databases/mongodb70/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/databases/mongodb70/work/.cache  HOME=/wrkdirs/usr/ports/databases/mongodb70/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/databases/mongodb70/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/databases/mongodb70/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 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  "  MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="insta
ll  -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/mongodb"  EXAMPLESDIR="share/examples/mongodb"  DATADIR="share/mongodb"  WWWDIR="www/mongodb"  ETCDIR="etc/mongodb"
--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/mongodb DOCSDIR=/usr/local/share/doc/mongodb EXAMPLESDIR=/usr/local/share/examples/mongodb  WWWDIR=/usr/local/www/mongodb ETCDIR=/usr/local/etc/mongodb
--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
#### /usr/local/etc/poudriere.d/make.conf ####
# 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 2 jobs
MAKE_JOBS_NUMBER=2
#### /usr/ports/Mk/Scripts/ports_env.sh ####
_CCVERSION_921dbbb2=FreeBSD clang version 15.0.7 (https://github.com/llvm/llvm-project.git llvmorg-15.0.7-0-g8dfdcc7b7bf6) Target: aarch64-unknown-freebsd14.0 Thread model: posix InstalledDir: /usr/bin
_ALTCCVERSION_921dbbb2=none
_CXXINTERNAL_acaad9ca=FreeBSD clang version 15.0.7 (https://github.com/llvm/llvm-project.git llvmorg-15.0.7-0-g8dfdcc7b7bf6) Target: aarch64-unknown-freebsd14.0 Thread model: posix InstalledDir: /usr/bin "/usr/bin/ld" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld-elf.so.1" "--enable-new-dtags" "-o" "a.out" "/usr/lib/crt1.o" "/usr/lib/crti.o" "/usr/lib/crtbegin.o" "-L/usr/lib" "/dev/null" "-lc++" "-lm" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "/usr/lib/crtend.o" "/usr/lib/crtn.o"
CC_OUTPUT_921dbbb2_58173849=yes
CC_OUTPUT_921dbbb2_9bdba57c=yes
CC_OUTPUT_921dbbb2_6a4fe7f5=yes
CC_OUTPUT_921dbbb2_6bcac02b=yes
CC_OUTPUT_921dbbb2_67d20829=yes
CC_OUTPUT_921dbbb2_bfa62e83=yes
CC_OUTPUT_921dbbb2_f0b4d593=yes
CC_OUTPUT_921dbbb2_308abb44=yes
CC_OUTPUT_921dbbb2_f00456e5=yes
CC_OUTPUT_921dbbb2_65ad290d=yes
CC_OUTPUT_921dbbb2_f2776b26=yes
CC_OUTPUT_921dbbb2_53255a77=yes
CC_OUTPUT_921dbbb2_911cfe02=yes
CC_OUTPUT_921dbbb2_b2657cc3=yes
CC_OUTPUT_921dbbb2_380987f7=yes
CC_OUTPUT_921dbbb2_160933ec=yes
CC_OUTPUT_921dbbb2_fb62803b=yes
CC_OUTPUT_921dbbb2_af59ad06=yes
CC_OUTPUT_921dbbb2_a15f3fcf=yes
_OBJC_CCVERSION_921dbbb2=FreeBSD clang version 15.0.7 (https://github.com/llvm/llvm-project.git llvmorg-15.0.7-0-g8dfdcc7b7bf6) Target: aarch64-unknown-freebsd14.0 Thread model: posix InstalledDir: /usr/bin
_OBJC_ALTCCVERSION_921dbbb2=none
ARCH=aarch64
OPSYS=FreeBSD
_OSRELEASE=14.0-CURRENT
OSREL=14.0
OSVERSION=1400090
PYTHONBASE=/usr/local
CONFIGURE_MAX_CMD_LEN=524288
HAVE_PORTS_ENV=1
#### Misc Poudriere ####
GID=0
UID=0
---End make.conf---
--Resource limits--
cpu time               (seconds, -t)  unlimited
file size           (512-blocks, -f)  unlimited
data seg size           (kbytes, -d)  1048576
stack size              (kbytes, -s)  1048576
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)  1024
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   >============================
===>  License APACHE20 SSPLv1 accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===>   mongodb70-7.0.0.r2 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.19.1_1.pkg
[main-arm64-default-job-11] Installing pkg-1.19.1_1...
[main-arm64-default-job-11] Extracting pkg-1.19.1_1: .......... done
===>   mongodb70-7.0.0.r2 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of mongodb70-7.0.0.r2
===========================================================================
=======================<phase: fetch-depends  >============================
===========================================================================
=======================<phase: fetch          >============================
===>  License APACHE20 SSPLv1 accepted by the user
=> mongodb-mongo-r7.0.0-rc2_GH0.tar.gz doesn't seem to exist in /portdistfiles/.
=> Attempting to fetch https://codeload.github.com/mongodb/mongo/tar.gz/r7.0.0-rc2?dummy=/mongodb-mongo-r7.0.0-rc2_GH0.tar.gz
fetch: https://codeload.github.com/mongodb/mongo/tar.gz/r7.0.0-rc2?dummy=/mongodb-mongo-r7.0.0-rc2_GH0.tar.gz: size unknown
fetch: https://codeload.github.com/mongodb/mongo/tar.gz/r7.0.0-rc2?dummy=/mongodb-mongo-r7.0.0-rc2_GH0.tar.gz: size of remote file is not known
mongodb-mongo-r7.0.0-rc2_GH0.tar.gz                    108 MB 4803 kBps    23s
===> Fetching all distfiles required by mongodb70-7.0.0.r2 for building
===========================================================================
=======================<phase: checksum       >============================
===>  License APACHE20 SSPLv1 accepted by the user
===> Fetching all distfiles required by mongodb70-7.0.0.r2 for building
=> SHA256 Checksum OK for mongodb-mongo-r7.0.0-rc2_GH0.tar.gz.
=> SHA256 Checksum OK for mongodb-forks-spidermonkey-82aac6af18abcd5bf188afbc821779ccb0ca0902_GH0.tar.gz.
===========================================================================
=======================<phase: extract-depends>============================
===========================================================================
=======================<phase: extract        >============================
===>  License APACHE20 SSPLv1 accepted by the user
===> Fetching all distfiles required by mongodb70-7.0.0.r2 for building
===>  Extracting for mongodb70-7.0.0.r2
=> SHA256 Checksum OK for mongodb-mongo-r7.0.0-rc2_GH0.tar.gz.
=> SHA256 Checksum OK for mongodb-forks-spidermonkey-82aac6af18abcd5bf188afbc821779ccb0ca0902_GH0.tar.gz.
<snip>
/usr/include/c++/v1/__iterator/wrap_iter.h:163:6: note: candidate template ignored: could not match 'const __wrap_iter<_Iter1>' against 'const mongo::SSLX509Name::Entry'
bool operator==(const __wrap_iter<_Iter1>& __x, const __wrap_iter<_Iter2>& __y) _NOEXCEPT
     ^
/usr/include/c++/v1/__iterator/wrap_iter.h:163:6: note: candidate template ignored: could not match 'const __wrap_iter<_Iter1>' against 'const mongo::SSLX509Name::Entry'
src/mongo/base/status_with.h:203:6: note: candidate template ignored: could not match 'const StatusWith<T>' against 'const mongo::SSLX509Name::Entry'
bool operator==(const StatusWith<T>& sw, const T& val) {
     ^
src/mongo/base/status_with.h:203:6: note: candidate template ignored: could not match 'const StatusWith<T>' against 'const mongo::SSLX509Name::Entry'
src/mongo/base/status_with.h:208:6: note: candidate template ignored: could not match 'const StatusWith<T>' against 'const mongo::SSLX509Name::Entry'
bool operator==(const T& val, const StatusWith<T>& sw) {
     ^
src/mongo/base/status_with.h:208:6: note: candidate template ignored: could not match 'const StatusWith<T>' against 'const mongo::SSLX509Name::Entry'
src/mongo/base/status_with.h:227:6: note: candidate template ignored: could not match 'const StatusWith<T>' against 'const mongo::SSLX509Name::Entry'
bool operator==(const StatusWith<T>& sw, const Status& status) {
     ^
src/mongo/base/status_with.h:227:6: note: candidate template ignored: could not match 'const StatusWith<T>' against 'const mongo::SSLX509Name::Entry'
src/mongo/base/status_with.h:232:6: note: candidate template ignored: could not match 'const StatusWith<T>' against 'const mongo::SSLX509Name::Entry'
bool operator==(const Status& status, const StatusWith<T>& sw) {
     ^
src/mongo/base/status_with.h:232:6: note: candidate template ignored: could not match 'const StatusWith<T>' against 'const mongo::SSLX509Name::Entry'
src/mongo/base/status_with.h:251:6: note: candidate template ignored: could not match 'const StatusWith<T>' against 'const mongo::SSLX509Name::Entry'
bool operator==(const StatusWith<T>& sw, ErrorCodes::Error code) {
     ^
src/mongo/base/status_with.h:251:6: note: candidate template ignored: could not match 'const StatusWith<T>' against 'const mongo::SSLX509Name::Entry'
src/mongo/base/status_with.h:256:6: note: candidate template ignored: could not match 'const StatusWith<T>' against 'const mongo::SSLX509Name::Entry'
bool operator==(ErrorCodes::Error code, const StatusWith<T>& sw) {
     ^
src/mongo/base/status_with.h:256:6: note: candidate template ignored: could not match 'const StatusWith<T>' against 'const mongo::SSLX509Name::Entry'
src/mongo/util/duration.h:405:16: note: candidate template ignored: could not match 'const Duration<LhsPeriod>' against 'const mongo::SSLX509Name::Entry'
constexpr bool operator==(const Duration<LhsPeriod>& lhs, const Duration<RhsPeriod>& rhs) {
               ^
src/mongo/util/duration.h:405:16: note: candidate template ignored: could not match 'const Duration<LhsPeriod>' against 'const mongo::SSLX509Name::Entry'
src/mongo/util/functional.h:299:6: note: candidate template ignored: could not match 'const unique_function<Signature>' against 'const mongo::SSLX509Name::Entry'
bool operator==(const unique_function<Signature>& lhs, std::nullptr_t) noexcept {
     ^
src/mongo/util/functional.h:299:6: note: candidate template ignored: could not match 'const unique_function<Signature>' against 'const mongo::SSLX509Name::Entry'
src/mongo/util/functional.h:309:6: note: candidate template ignored: could not match 'const unique_function<Signature>' against 'const mongo::SSLX509Name::Entry'
bool operator==(std::nullptr_t, const unique_function<Signature>& rhs) noexcept {
     ^
src/mongo/util/functional.h:309:6: note: candidate template ignored: could not match 'const unique_function<Signature>' against 'const mongo::SSLX509Name::Entry'
In file included from src/mongo/scripting/mozjs/code.cpp:32:
In file included from src/mongo/scripting/mozjs/code.h:32:
In file included from src/mongo/scripting/mozjs/wraptype.h:33:
In file included from src/third_party/mozjs/include/js/ValueArray.h:17:
In file included from src/third_party/mozjs/include/js/CallArgs.h:73:
In file included from src/third_party/mozjs/include/js/RootingAPI.h:12:
In file included from src/third_party/mozjs/include/mozilla/EnumeratedArray.h:14:
In file included from src/third_party/mozjs/include/mozilla/Array.h:15:
In file included from /usr/include/c++/v1/ostream:168:
In file included from /usr/include/c++/v1/bitset:128:
In file included from /usr/include/c++/v1/string:551:
In file included from /usr/include/c++/v1/string_view:223:
In file included from /usr/include/c++/v1/functional:515:
In file included from /usr/include/c++/v1/__functional/boyer_moore_searcher.h:26:
/usr/include/c++/v1/vector:550:52: error: arithmetic on a pointer to an incomplete type 'mongo::Value'
        {return static_cast<size_type>(__end_cap() - this->__begin_);}
                                       ~~~~~~~~~~~ ^
/usr/include/c++/v1/vector:770:56: note: in instantiation of member function 'std::vector<mongo::Value>::capacity' requested here
      __annotate_contiguous_container(data(), data() + capacity(),
                                                       ^
/usr/include/c++/v1/vector:435:18: note: in instantiation of member function 'std::vector<mongo::Value>::__annotate_delete' requested here
          __vec_.__annotate_delete();
                 ^
/usr/include/c++/v1/vector:449:67: note: in instantiation of member function 'std::vector<mongo::Value>::__destroy_vector::operator()' requested here
  _LIBCPP_CONSTEXPR_AFTER_CXX17 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector(*this)(); }
                                                                  ^
src/mongo/db/exec/document_value/value_internal.h:54:5: note: in instantiation of member function 'std::vector<mongo::Value>::~vector' requested here
    RCVector() {}
    ^
src/mongo/util/safe_num.h:44:7: note: forward declaration of 'mongo::Value'
class Value;
      ^
In file included from src/mongo/scripting/mozjs/code.cpp:32:
In file included from src/mongo/scripting/mozjs/code.h:32:
In file included from src/mongo/scripting/mozjs/wraptype.h:33:
In file included from src/third_party/mozjs/include/js/ValueArray.h:17:
In file included from src/third_party/mozjs/include/js/CallArgs.h:73:
In file included from src/third_party/mozjs/include/js/RootingAPI.h:12:
In file included from src/third_party/mozjs/include/mozilla/EnumeratedArray.h:14:
In file included from src/third_party/mozjs/include/mozilla/Array.h:15:
In file included from /usr/include/c++/v1/ostream:168:
In file included from /usr/include/c++/v1/bitset:128:
In file included from /usr/include/c++/v1/string:551:
In file included from /usr/include/c++/v1/string_view:223:
In file included from /usr/include/c++/v1/functional:515:
In file included from /usr/include/c++/v1/__functional/boyer_moore_searcher.h:26:
/usr/include/c++/v1/vector:770:54: error: arithmetic on a pointer to an incomplete type 'const std::vector<mongo::Value>::value_type' (aka 'const mongo::Value')
      __annotate_contiguous_container(data(), data() + capacity(),
                                              ~~~~~~ ^
/usr/include/c++/v1/vector:435:18: note: in instantiation of member function 'std::vector<mongo::Value>::__annotate_delete' requested here
          __vec_.__annotate_delete();
                 ^
/usr/include/c++/v1/vector:449:67: note: in instantiation of member function 'std::vector<mongo::Value>::__destroy_vector::operator()' requested here
  _LIBCPP_CONSTEXPR_AFTER_CXX17 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector(*this)(); }
                                                                  ^
src/mongo/db/exec/document_value/value_internal.h:54:5: note: in instantiation of member function 'std::vector<mongo::Value>::~vector' requested here
    RCVector() {}
    ^
src/mongo/util/safe_num.h:44:7: note: forward declaration of 'mongo::Value'
class Value;
      ^
In file included from src/mongo/scripting/mozjs/code.cpp:32:
In file included from src/mongo/scripting/mozjs/code.h:32:
In file included from src/mongo/scripting/mozjs/wraptype.h:33:
In file included from src/third_party/mozjs/include/js/ValueArray.h:17:
In file included from src/third_party/mozjs/include/js/CallArgs.h:73:
In file included from src/third_party/mozjs/include/js/RootingAPI.h:12:
In file included from src/third_party/mozjs/include/mozilla/EnumeratedArray.h:14:
In file included from src/third_party/mozjs/include/mozilla/Array.h:15:
In file included from /usr/include/c++/v1/ostream:168:
In file included from /usr/include/c++/v1/bitset:128:
In file included from /usr/include/c++/v1/string:551:
In file included from /usr/include/c++/v1/string_view:223:
In file included from /usr/include/c++/v1/functional:515:
In file included from /usr/include/c++/v1/__functional/boyer_moore_searcher.h:26:
/usr/include/c++/v1/vector:843:64: error: arithmetic on a pointer to an incomplete type 'mongo::Value'
        __alloc_traits::destroy(__alloc(), _VSTD::__to_address(--__soon_to_be_end));
                                                               ^ ~~~~~~~~~~~~~~~~
/usr/include/c++/v1/vector:837:29: note: in instantiation of member function 'std::vector<mongo::Value>::__base_destruct_at_end' requested here
  void __clear() _NOEXCEPT {__base_destruct_at_end(this->__begin_);}
                            ^
/usr/include/c++/v1/vector:439:20: note: in instantiation of member function 'std::vector<mongo::Value>::__clear' requested here
            __vec_.__clear();
                   ^
/usr/include/c++/v1/vector:449:67: note: in instantiation of member function 'std::vector<mongo::Value>::__destroy_vector::operator()' requested here
  _LIBCPP_CONSTEXPR_AFTER_CXX17 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector(*this)(); }
                                                                  ^
src/mongo/db/exec/document_value/value_internal.h:54:5: note: in instantiation of member function 'std::vector<mongo::Value>::~vector' requested here
    RCVector() {}
    ^
src/mongo/util/safe_num.h:44:7: note: forward declaration of 'mongo::Value'
class Value;
      ^
In file included from src/mongo/scripting/mozjs/code.cpp:32:
In file included from src/mongo/scripting/mozjs/code.h:32:
In file included from src/mongo/scripting/mozjs/wraptype.h:33:
In file included from src/third_party/mozjs/include/js/ValueArray.h:17:
In file included from src/third_party/mozjs/include/js/CallArgs.h:73:
In file included from src/third_party/mozjs/include/js/RootingAPI.h:12:
In file included from src/third_party/mozjs/include/mozilla/EnumeratedArray.h:14:
In file included from src/third_party/mozjs/include/mozilla/Array.h:15:
In file included from /usr/include/c++/v1/ostream:168:
In file included from /usr/include/c++/v1/bitset:128:
In file included from /usr/include/c++/v1/string:549:
In file included from /usr/include/c++/v1/memory:848:
/usr/include/c++/v1/__memory/allocator.h:128:58: error: invalid application of 'sizeof' to an incomplete type 'mongo::Value'
            _VSTD::__libcpp_deallocate((void*)__p, __n * sizeof(_Tp), _LIBCPP_ALIGNOF(_Tp));
                                                         ^~~~~~~~~~~
/usr/include/c++/v1/__memory/allocator_traits.h:282:13: note: in instantiation of member function 'std::allocator<mongo::Value>::deallocate' requested here
        __a.deallocate(__p, __n);
            ^
/usr/include/c++/v1/vector:440:29: note: in instantiation of member function 'std::allocator_traits<std::allocator<mongo::Value>>::deallocate' requested here
            __alloc_traits::deallocate(__vec_.__alloc(), __vec_.__begin_, __vec_.capacity());
                            ^
/usr/include/c++/v1/vector:449:67: note: in instantiation of member function 'std::vector<mongo::Value>::__destroy_vector::operator()' requested here
  _LIBCPP_CONSTEXPR_AFTER_CXX17 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector(*this)(); }
                                                                  ^
src/mongo/db/exec/document_value/value_internal.h:54:5: note: in instantiation of member function 'std::vector<mongo::Value>::~vector' requested here
    RCVector() {}
    ^
src/mongo/util/safe_num.h:44:7: note: forward declaration of 'mongo::Value'
class Value;
      ^
In file included from src/mongo/scripting/mozjs/code.cpp:32:
In file included from src/mongo/scripting/mozjs/code.h:32:
In file included from src/mongo/scripting/mozjs/wraptype.h:33:
In file included from src/third_party/mozjs/include/js/ValueArray.h:17:
In file included from src/third_party/mozjs/include/js/CallArgs.h:73:
In file included from src/third_party/mozjs/include/js/RootingAPI.h:12:
In file included from src/third_party/mozjs/include/mozilla/EnumeratedArray.h:14:
In file included from src/third_party/mozjs/include/mozilla/Array.h:15:
In file included from /usr/include/c++/v1/ostream:168:
In file included from /usr/include/c++/v1/bitset:128:
In file included from /usr/include/c++/v1/string:551:
In file included from /usr/include/c++/v1/string_view:223:
In file included from /usr/include/c++/v1/functional:515:
In file included from /usr/include/c++/v1/__functional/boyer_moore_searcher.h:26:
/usr/include/c++/v1/vector:1573:35: error: too few arguments to function call, expected 2, have 1
    __swap_out_circular_buffer(__v);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~    ^
/usr/include/c++/v1/vector:1587:9: note: in instantiation of function template specialization 'std::vector<mongo::Value>::__push_back_slow_path<const mongo::Value &>' requested here
        __push_back_slow_path(__x);
        ^
src/mongo/db/exec/document_value/value.h:455:77: note: in instantiation of member function 'std::vector<mongo::Value>::push_back' requested here
            vec.begin(), vec.end(), ([&](const ImplicitValue& val) { values.push_back(val); }));
                                                                            ^
/usr/include/c++/v1/vector:719:43: note: '__swap_out_circular_buffer' declared here
    _LIBCPP_CONSTEXPR_AFTER_CXX17 pointer __swap_out_circular_buffer(__split_buffer<value_type, allocator_type&>& __v, pointer __p);
                                          ^
6 errors generated.
scons: *** [build/opt/mongo/scripting/mozjs/code.o] Error 1
6 errors generated.
scons: *** [build/opt/mongo/db/pipeline/change_stream_helpers_legacy.o] Error 1
scons: building terminated because of errors.
build/opt/mongo/scripting/mozjs/code.o failed: Error 1
build/opt/mongo/db/pipeline/change_stream_helpers_legacy.o failed: Error 1
*** Error code 2

Stop.
make: stopped in /usr/ports/databases/mongodb70