[package - main-arm64-default][science/opensim-core] Failed for OpenSim-core-4.1_4 in configure

From: <pkg-fallout_at_FreeBSD.org>
Date: Fri, 07 Jan 2022 20:58:21 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:        http://ampere2.nyi.freebsd.org/data/main-arm64-default/p56861672cc15_sc82df0a0bf/logs/OpenSim-core-4.1_4.log
Build URL:      http://ampere2.nyi.freebsd.org/build.html?mastername=main-arm64-default&build=p56861672cc15_sc82df0a0bf
Log:

=>> Building science/opensim-core
build started at Fri Jan  7 20:57:31 UTC 2022
port directory: /usr/ports/science/opensim-core
package name: OpenSim-core-4.1_4
building for: FreeBSD main-arm64-default-job-12 14.0-CURRENT FreeBSD 14.0-CURRENT 1400046 arm64
maintained by: yuri@FreeBSD.org
Makefile ident: 
Poudriere version: 3.2.8-21-g883afb07
Host OSVERSION: 1400008
Jail OSVERSION: 1400046
Job Id: 12




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



---Begin Environment---
SHELL=/bin/sh
OSVERSION=1400046
UNAME_v=FreeBSD 14.0-CURRENT 1400046
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-21-g883afb07
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 OpenSim-core-4.1_4:
     DOCS=on: Build and/or install documentation
     JAVA=on: Java platform support
     PYTHON=on: Python bindings or support
===> Use 'make config' to modify these settings
---End OPTIONS List---

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

--CONFIGURE_ARGS--

--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
SIMBODY_HOME=/usr/local F77="gfortran10" FC="gfortran10" FFLAGS="-O -Wl,-rpath=/usr/local/lib/gcc10" FCFLAGS="-Wl,-rpath=/usr/local/lib/gcc10" PYTHON="/usr/local/bin/python3.8" XDG_DATA_HOME=/wrkdirs/usr/ports/science/opensim-core/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/science/opensim-core/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/science/opensim-core/work/.cache  HOME=/wrkdirs/usr/ports/science/opensim-core/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/science/opensim-core/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin SHELL=/bin/sh CONFIG_SHELL=/bin/sh
--End CONFIGURE_ENV--

--MAKE_ENV--
F77="gfortran10" FC="gfortran10" FFLAGS="-O -Wl,-rpath=/usr/local/lib/gcc10" FCFLAGS="-Wl,-rpath=/usr/local/lib/gcc10" XDG_DATA_HOME=/wrkdirs/usr/ports/science/opensim-core/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/science/opensim-core/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/science/opensim-core/work/.cache  HOME=/wrkdirs/usr/ports/science/opensim-core/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/science/opensim-core/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin NO_PIE=yes 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" OBJDUMP="/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  C
 C="cc" CFLAGS="-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing "  CPP="cpp" CPPFLAGS=""  LDFLAGS=" -L/usr/local/lib -Wl,-rpath=/usr/local/lib/gcc10  -L/usr/local/lib/gcc10 -B/usr/local/bin -fstack-protector-strong " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing  -I/usr/local/include/docopt "  MANPREFIX="/usr/local" 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--
PORTDOCS="" DOCS="" NO_DOCS="@comment " JAVA="" NO_JAVA="@comment " PYTHON="" NO_PYTHON="@comment " JAVASHAREDIR="share/java"  JAVAJARDIR="share/java/classes" CMAKE_BUILD_TYPE="release" PYTHON_INCLUDEDIR=include/python3.8  PYTHON_LIBDIR=lib/python3.8  PYTHON_PLATFORM=freebsd14  PYTHON_SITELIBDIR=lib/python3.8/site-packages  PYTHON_SUFFIX=38  PYTHON_EXT_SUFFIX=.cpython-38  PYTHON_VER=3.8  PYTHON_VERSION=python3.8 PYTHON2="@comment " PYTHON3="" OSREL=14.0 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/OpenSim"  EXAMPLESDIR="share/examples/OpenSim"  DATADIR="share/OpenSim"  WWWDIR="www/OpenSim"  ETCDIR="etc/OpenSim"
--End PLIST_SUB--

--SUB_LIST--
DOCS="" NO_DOCS="@comment " JAVA="" NO_JAVA="@comment " PYTHON="" NO_PYTHON="@comment " JAVASHAREDIR="/usr/local/share/java"  JAVAJARDIR="/usr/local/share/java/classes"  JAVALIBDIR="/usr/local/share/java/classes" PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/OpenSim DOCSDIR=/usr/local/share/doc/OpenSim EXAMPLESDIR=/usr/local/share/examples/OpenSim  WWWDIR=/usr/local/www/OpenSim ETCDIR=/usr/local/etc/OpenSim
--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 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303) Target: aarch64-unknown-freebsd14.0 Thread model: posix InstalledDir: /usr/bin
_ALTCCVERSION_921dbbb2=none
_CXXINTERNAL_acaad9ca=FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303) 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_b2657cc3=yes
CC_OUTPUT_921dbbb2_380987f7=yes
CC_OUTPUT_921dbbb2_160933ec=yes
CC_OUTPUT_921dbbb2_fb62803b=yes
_OBJC_CCVERSION_921dbbb2=FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303) 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=1400046
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 accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===>   OpenSim-core-4.1_4 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.17.5.pkg
[main-arm64-default-job-12] Installing pkg-1.17.5...
[main-arm64-default-job-12] Extracting pkg-1.17.5: .......... done
===>   OpenSim-core-4.1_4 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of OpenSim-core-4.1_4
===========================================================================
=======================<phase: fetch-depends  >============================
===========================================================================
=======================<phase: fetch          >============================
===>  License APACHE20 accepted by the user
===> Fetching all distfiles required by OpenSim-core-4.1_4 for building
===========================================================================
=======================<phase: checksum       >============================
===>  License APACHE20 accepted by the user
===> Fetching all distfiles required by OpenSim-core-4.1_4 for building
=> SHA256 Checksum OK for opensim-org-opensim-core-4.1_GH0.tar.gz.
===========================================================================
=======================<phase: extract-depends>============================
===========================================================================
=======================<phase: extract        >============================
===>  License APACHE20 accepted by the user
===> Fetching all distfiles required by OpenSim-core-4.1_4 for building
===>  Extracting for OpenSim-core-4.1_4
=> SHA256 Checksum OK for opensim-org-opensim-core-4.1_GH0.tar.gz.
===========================================================================
=======================<phase: patch-depends  >============================
===========================================================================
=======================<phase: patch          >============================
===>  Patching for OpenSim-core-4.1_4
===>  Applying FreeBSD patches for OpenSim-core-4.1_4 from /usr/ports/science/opensim-core/files
===========================================================================
=======================<phase: build-depends  >============================
===>   OpenSim-core-4.1_4 depends on executable: bash - not found
===>   Installing existing package /packages/All/bash-5.1.16.pkg
[main-arm64-default-job-12] Installing bash-5.1.16...
[main-arm64-default-job-12] `-- Installing gettext-runtime-0.21...
<snip>
===>   Installing existing package /packages/All/cmake-3.22.1.pkg
[main-arm64-default-job-12] Installing cmake-3.22.1...
[main-arm64-default-job-12] `-- Installing curl-7.80.0...
[main-arm64-default-job-12] |   `-- Installing ca_root_nss-3.71...
[main-arm64-default-job-12] |   `-- Extracting ca_root_nss-3.71: ........ done
[main-arm64-default-job-12] |   `-- Installing libnghttp2-1.46.0...
[main-arm64-default-job-12] |   `-- Extracting libnghttp2-1.46.0: .......... done
[main-arm64-default-job-12] |   `-- Installing libssh2-1.10.0,3...
[main-arm64-default-job-12] |   `-- Extracting libssh2-1.10.0,3: .......... done
[main-arm64-default-job-12] `-- Extracting curl-7.80.0: .......... done
[main-arm64-default-job-12] `-- Installing jsoncpp-1.9.5...
[main-arm64-default-job-12] `-- Extracting jsoncpp-1.9.5: .......... done
[main-arm64-default-job-12] `-- Installing libarchive-3.5.2,1...
[main-arm64-default-job-12] |   `-- Installing liblz4-1.9.3,1...
[main-arm64-default-job-12] |   `-- Extracting liblz4-1.9.3,1: .......... done
[main-arm64-default-job-12] |   `-- Installing zstd-1.5.0...
[main-arm64-default-job-12] |   `-- Extracting zstd-1.5.0: .......... done
[main-arm64-default-job-12] `-- Extracting libarchive-3.5.2,1: .......... done
[main-arm64-default-job-12] `-- Installing libuv-1.42.0...
[main-arm64-default-job-12] `-- Extracting libuv-1.42.0: .......... done
[main-arm64-default-job-12] `-- Installing rhash-1.4.2...
[main-arm64-default-job-12] `-- Extracting rhash-1.4.2: .......... done
[main-arm64-default-job-12] Extracting cmake-3.22.1: .......... done
=====
Message from ca_root_nss-3.71:

--
FreeBSD does not, and can not warrant that the certification authorities
whose certificates are included in this package have in any way been
audited for trustworthiness or RFC 3647 compliance.

Assessment and verification of trust is the complete responsibility of the
system administrator.


This package installs symlinks to support root certificates discovery by
default for software that uses OpenSSL.

This enables SSL Certificate Verification by client software without manual
intervention.

If you prefer to do this manually, replace the following symlinks with
either an empty file or your site-local certificate bundle.

  * /etc/ssl/cert.pem
  * /usr/local/etc/ssl/cert.pem
  * /usr/local/openssl/cert.pem
===>   OpenSim-core-4.1_4 depends on file: /usr/local/bin/cmake - found
===>   Returning to build of OpenSim-core-4.1_4
===>   OpenSim-core-4.1_4 depends on executable: gfortran10 - not found
===>   Installing existing package /packages/All/gcc10-10.3.0.pkg
[main-arm64-default-job-12] Installing gcc10-10.3.0...
[main-arm64-default-job-12] `-- Installing binutils-2.37_2,1...
[main-arm64-default-job-12] `-- Extracting binutils-2.37_2,1: .......... done
[main-arm64-default-job-12] `-- Installing gmp-6.2.1...
[main-arm64-default-job-12] `-- Extracting gmp-6.2.1: .......... done
[main-arm64-default-job-12] `-- Installing mpc-1.2.1...
[main-arm64-default-job-12] |   `-- Installing mpfr-4.1.0_1...
[main-arm64-default-job-12] |   `-- Extracting mpfr-4.1.0_1: .......... done
[main-arm64-default-job-12] `-- Extracting mpc-1.2.1: ......... done
[main-arm64-default-job-12] Extracting gcc10-10.3.0: .......... done
=====
Message from gcc10-10.3.0:

--
To ensure binaries built with this toolchain find appropriate versions
of the necessary run-time libraries, you may want to link using

  -Wl,-rpath=/usr/local/lib/gcc10

For ports leveraging USE_GCC, USES=compiler, or USES=fortran this happens
transparently.
===>   OpenSim-core-4.1_4 depends on executable: gfortran10 - found
===>   Returning to build of OpenSim-core-4.1_4
===>   OpenSim-core-4.1_4 depends on file: /usr/local/bin/python3.8 - not found
===>   Installing existing package /packages/All/python38-3.8.12_1.pkg
[main-arm64-default-job-12] Installing python38-3.8.12_1...
[main-arm64-default-job-12] `-- Installing libffi-3.3_1...
[main-arm64-default-job-12] `-- Extracting libffi-3.3_1: .......... done
[main-arm64-default-job-12] `-- Installing mpdecimal-2.5.1...
[main-arm64-default-job-12] `-- Extracting mpdecimal-2.5.1: .......... done
[main-arm64-default-job-12] Extracting python38-3.8.12_1: .......... done
=====
Message from python38-3.8.12_1:

--
Note that some standard Python modules are provided as separate ports
as they require additional dependencies. They are available as:

py38-gdbm       databases/py-gdbm@py38
py38-sqlite3    databases/py-sqlite3@py38
py38-tkinter    x11-toolkits/py-tkinter@py38
===>   OpenSim-core-4.1_4 depends on file: /usr/local/bin/python3.8 - found
===>   Returning to build of OpenSim-core-4.1_4
===>   OpenSim-core-4.1_4 depends on file: /usr/local/bin/as - found
===>   OpenSim-core-4.1_4 depends on package: xorgproto>=0 - found
===>   OpenSim-core-4.1_4 depends on package: xorgproto>=0 - found
===>   OpenSim-core-4.1_4 depends on file: /usr/local/libdata/pkgconfig/xi.pc - found
===>   OpenSim-core-4.1_4 depends on file: /usr/local/libdata/pkgconfig/xmu.pc - not found
===>   Installing existing package /packages/All/libXmu-1.1.3,1.pkg
[main-arm64-default-job-12] Installing libXmu-1.1.3,1...
[main-arm64-default-job-12] Extracting libXmu-1.1.3,1: .......... done
===>   OpenSim-core-4.1_4 depends on file: /usr/local/libdata/pkgconfig/xmu.pc - found
===>   Returning to build of OpenSim-core-4.1_4
===========================================================================
=======================<phase: lib-depends    >============================
===>   OpenSim-core-4.1_4 depends on shared library: libdocopt.so - not found
===>   Installing existing package /packages/All/docopt.cpp-0.6.3.pkg
[main-arm64-default-job-12] Installing docopt.cpp-0.6.3...
[main-arm64-default-job-12] Extracting docopt.cpp-0.6.3: .......... done
===>   OpenSim-core-4.1_4 depends on shared library: libdocopt.so - found (/usr/local/lib/libdocopt.so)
===>   Returning to build of OpenSim-core-4.1_4
===>   OpenSim-core-4.1_4 depends on shared library: libSimTKcommon.so - not found
===>   Installing existing package /packages/All/simbody-3.7_4.pkg
[main-arm64-default-job-12] Installing simbody-3.7_4...
[main-arm64-default-job-12] `-- Installing freeglut-3.2.1...
[main-arm64-default-job-12] |   `-- Installing libGLU-9.0.2_1...
[main-arm64-default-job-12] |   | `-- Installing libglvnd-1.4.0...
[main-arm64-default-job-12] |   | `-- Extracting libglvnd-1.4.0: .......... done
[main-arm64-default-job-12] |   `-- Extracting libGLU-9.0.2_1: ..... done
[main-arm64-default-job-12] |   `-- Installing libXrandr-1.5.2...
[main-arm64-default-job-12] |   `-- Extracting libXrandr-1.5.2: .......... done
[main-arm64-default-job-12] |   `-- Installing libXxf86vm-1.1.4_3...
[main-arm64-default-job-12] |   `-- Extracting libXxf86vm-1.1.4_3: .......... done
[main-arm64-default-job-12] `-- Extracting freeglut-3.2.1: .......... done
[main-arm64-default-job-12] `-- Installing openblas-0.3.18,1...
[main-arm64-default-job-12] `-- Extracting openblas-0.3.18,1: .......... done
[main-arm64-default-job-12] Extracting simbody-3.7_4: .......... done
=====
Message from freeglut-3.2.1:

--
Joystick support is untested and it is unknown if it works.

Do not hesitate to contact x11@FreeBSD.org if this causes issues.
===>   OpenSim-core-4.1_4 depends on shared library: libSimTKcommon.so - found (/usr/local/lib/libSimTKcommon.so)
===>   Returning to build of OpenSim-core-4.1_4
===>   OpenSim-core-4.1_4 depends on shared library: libopenblas.so - found (/usr/local/lib/libopenblas.so)
===>   OpenSim-core-4.1_4 depends on shared library: libGL.so - found (/usr/local/lib/libGL.so)
===>   OpenSim-core-4.1_4 depends on shared library: libGLU.so - found (/usr/local/lib/libGLU.so)
===>   OpenSim-core-4.1_4 depends on shared library: libglut.so - found (/usr/local/lib/libglut.so)
===========================================================================
=======================<phase: configure      >============================
===>  Configuring for OpenSim-core-4.1_4
===>  Performing out-of-source build
/bin/mkdir -p /wrkdirs/usr/ports/science/opensim-core/work/.build
-- The C compiler identification is Clang 13.0.0
-- The CXX compiler identification is Clang 13.0.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- NOTICE: Make sure all OpenSim dependencies are built with the same CMAKE_BUILD_TYPE (Linux) or CONFIGURATION (Xcode/MSVC) as OpenSim to avoid mysterious runtime errors.
-- Could NOT find Matlab (missing: Matlab_INCLUDE_DIRS Matlab_MEX_LIBRARY Matlab_MEX_EXTENSION Matlab_ROOT_DIR MAIN_PROGRAM) (found version "NOTFOUND")
CMake Warning at CMakeLists.txt:452 (message):
  BUILD_JAVA_WRAPPING is ON but OPENSIM_COPY_DEPENDENCIES is OFF.  Wrapping
  may not work correctly.  Consider switching the OPENSIM_COPY_DEPENDENCIES
  flag to ON.


-- Found PythonInterp: /usr/local/bin/python3.8 (found suitable version "3.8.12", minimum required is "3") 
-- Found PythonLibs: /usr/local/lib/libpython3.8.so (found suitable version "3.8.12", minimum required is "3") 
CMake Warning at CMakeLists.txt:510 (message):
  BUILD_PYTHON_WRAPPING is ON but OPENSIM_COPY_DEPENDENCIES is OFF.  Wrapping
  may not work correctly.  Consider switching the OPENSIM_COPY_DEPENDENCIES
  flag to ON.


-- Found SWIG: /usr/local/bin/swig (found suitable version "4.0.2", minimum required is "3.0.8")  
-- Discovering dependencies for SWIG module simbody.
-- Discovering dependencies for SWIG module common.
-- Discovering dependencies for SWIG module simulation.
-- Discovering dependencies for SWIG module actuators.
-- Discovering dependencies for SWIG module analyses.
-- Discovering dependencies for SWIG module tools.
-- Discovering dependencies for SWIG module examplecomponents.
-- Found JNI: /usr/local/openjdk8/jre/lib/amd64/libawt.so (Required is at least version "1.7") 
-- Discovering dependencies for SWIG module simbody.
-- Discovering dependencies for SWIG module common.
-- Discovering dependencies for SWIG module simulation.
-- Discovering dependencies for SWIG module actuators-analysis-tools.
-- Discovering dependencies for SWIG module examplecomponents.
CMake Error at /usr/local/share/cmake/Modules/FindJava.cmake:171 (message):
  Error executing java -version
Call Stack (most recent call first):
  Bindings/Java/CMakeLists.txt:71 (find_package)


-- Configuring incomplete, errors occurred!
See also "/wrkdirs/usr/ports/science/opensim-core/work/.build/CMakeFiles/CMakeOutput.log".
*** Error code 1

Stop.
make: stopped in /usr/ports/science/opensim-core