* installing *source* package ‘TTR.PGM’ ...
** this is package ‘TTR.PGM’ version ‘1.0.0’
** package ‘TTR.PGM’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C++ compiler: ‘Apple clang version 14.0.0 (clang-1400.0.29.202)’
using C++17
using SDK: ‘MacOSX11.3.sdk’
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I../inst/include/ -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/RcppArmadillo/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2   -c RcppExports.cpp -o RcppExports.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I../inst/include/ -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/RcppArmadillo/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2   -c make_swc.cpp -o make_swc.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I../inst/include/ -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/RcppArmadillo/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2   -c run_ttr.cpp -o run_ttr.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I../inst/include/ -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/RcppArmadillo/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2   -c thorn_photo.cpp -o thorn_photo.o
In file included from thorn_photo.cpp:2:
In file included from ../inst/include/photosynthesis_functions.hpp:6:
../inst/include/definitions.hpp:23:44: error: implicit instantiation of undefined template 'std::array<const char *, 4>'
inline constexpr EnumNames<AlphaParameter> enum_names<AlphaParameter>{
                                           ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/__tuple:219:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
                                                               ^
In file included from thorn_photo.cpp:2:
In file included from ../inst/include/photosynthesis_functions.hpp:6:
../inst/include/definitions.hpp:84:43: error: implicit instantiation of undefined template 'std::array<const char *, 47>'
inline constexpr EnumNames<BetaParameter> enum_names<BetaParameter>{
                                          ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/__tuple:219:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
                                                               ^
In file included from thorn_photo.cpp:2:
In file included from ../inst/include/photosynthesis_functions.hpp:6:
../inst/include/definitions.hpp:159:40: error: implicit instantiation of undefined template 'std::array<const char *, 11>'
inline constexpr EnumNames<TimeSeries> enum_names<TimeSeries>{
                                       ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/__tuple:219:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
                                                               ^
In file included from thorn_photo.cpp:2:
In file included from ../inst/include/photosynthesis_functions.hpp:6:
../inst/include/definitions.hpp:182:43: error: implicit instantiation of undefined template 'std::array<const char *, 3>'
inline constexpr EnumNames<TimeInvariant> enum_names<TimeInvariant>{
                                          ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/__tuple:219:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
                                                               ^
In file included from thorn_photo.cpp:2:
In file included from ../inst/include/photosynthesis_functions.hpp:6:
../inst/include/definitions.hpp:207:36: error: implicit instantiation of undefined template 'std::array<const char *, 13>'
inline constexpr EnumNames<Global> enum_names<Global>{
                                   ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/__tuple:219:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
                                                               ^
In file included from thorn_photo.cpp:2:
In file included from ../inst/include/photosynthesis_functions.hpp:6:
../inst/include/definitions.hpp:235:35: error: implicit instantiation of undefined template 'std::array<const char *, 6>'
inline constexpr EnumNames<State> enum_names<State>{
                                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/__tuple:219:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
                                                               ^
In file included from thorn_photo.cpp:2:
In file included from ../inst/include/photosynthesis_functions.hpp:6:
../inst/include/definitions.hpp:269:36: error: implicit instantiation of undefined template 'std::array<const char *, 18>'
inline constexpr EnumNames<Biotic> enum_names<Biotic>{
                                   ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/__tuple:219:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
                                                               ^
In file included from thorn_photo.cpp:2:
In file included from ../inst/include/photosynthesis_functions.hpp:6:
../inst/include/definitions.hpp:301:40: error: implicit instantiation of undefined template 'std::array<const char *, 4>'
inline constexpr EnumNames<TTRVariant> enum_names<TTRVariant>{
                                       ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/__tuple:219:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
                                                               ^
In file included from thorn_photo.cpp:2:
In file included from ../inst/include/photosynthesis_functions.hpp:6:
../inst/include/definitions.hpp:316:39: error: implicit instantiation of undefined template 'std::array<const char *, 2>'
inline constexpr EnumNames<PhotoType> enum_names<PhotoType>{
                                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/__tuple:219:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
                                                               ^
In file included from thorn_photo.cpp:2:
In file included from ../inst/include/photosynthesis_functions.hpp:6:
../inst/include/definitions.hpp:368:32: error: implicit instantiation of undefined template 'std::array<const char *, 42>'
inline constexpr EnumNames<p4> enum_names<p4>{
                               ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/__tuple:219:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
                                                               ^
In file included from thorn_photo.cpp:2:
In file included from ../inst/include/photosynthesis_functions.hpp:6:
../inst/include/definitions.hpp:450:32: error: implicit instantiation of undefined template 'std::array<const char *, 32>'
inline constexpr EnumNames<p3> enum_names<p3>{
                               ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/__tuple:219:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
                                                               ^
11 errors generated.
make: *** [thorn_photo.o] Error 1
ERROR: compilation failed for package ‘TTR.PGM’
* removing ‘/Volumes/Builds/packages/big-sur-arm64/results/4.5/TTR.PGM.Rcheck/TTR.PGM’