* installing *source* package ‘hmmTMB’ ...
** this is package ‘hmmTMB’ version ‘2.0.0’
** package ‘hmmTMB’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
/Library/Frameworks/R.framework/Resources/bin/Rscript --vanilla -e "invisible(TMB::compile('hmmTMB.cpp', safebounds = FALSE, safeunload = FALSE, framework = Sys.getenv('HMMTMB_AD_FRAMEWORK', 'TMBad')))"
using C++ compiler: ‘Apple clang version 17.0.0 (clang-1700.3.19.1)’
using SDK: ‘MacOSX14.5.sdk’
clang++ -arch arm64 -std=gnu++20 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"/Volumes/Builds/packages/sonoma-arm64/Rlib/4.6/TMB/include" -I"/Volumes/Builds/packages/sonoma-arm64/Rlib/4.6/RcppEigen/include" -DTMB_EIGEN_DISABLE_WARNINGS -DTMB_LIB_INIT=R_init_hmmTMB -DTMBAD_FRAMEWORK -I'/Volumes/Builds/packages/sonoma-arm64/Rlib/4.6/TMB/include' -I'/Volumes/Builds/packages/sonoma-arm64/Rlib/4.6/RcppEigen/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c hmmTMB.cpp -o hmmTMB.o
In file included from hmmTMB.cpp:2:
In file included from ./hmmTMB.hpp:4:
In file included from /Volumes/Builds/packages/sonoma-arm64/Rlib/4.6/TMB/include/TMB.hpp:96:
In file included from /Volumes/Builds/packages/sonoma-arm64/Rlib/4.6/RcppEigen/include/Eigen/Sparse:26:
In file included from /Volumes/Builds/packages/sonoma-arm64/Rlib/4.6/RcppEigen/include/Eigen/SparseCore:61:
/Volumes/Builds/packages/sonoma-arm64/Rlib/4.6/RcppEigen/include/Eigen/src/SparseCore/TriangularSolver.h:273:13: warning: variable 'count' set but not used [-Wunused-but-set-variable]
273 | Index count = 0;
| ^
In file included from hmmTMB.cpp:2:
In file included from ./hmmTMB.hpp:4:
In file included from /Volumes/Builds/packages/sonoma-arm64/Rlib/4.6/TMB/include/TMB.hpp:96:
In file included from /Volumes/Builds/packages/sonoma-arm64/Rlib/4.6/RcppEigen/include/Eigen/Sparse:29:
In file included from /Volumes/Builds/packages/sonoma-arm64/Rlib/4.6/RcppEigen/include/Eigen/SparseLU:35:
/Volumes/Builds/packages/sonoma-arm64/Rlib/4.6/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:78:9: warning: variable 'nsuper_et_post' set but not used [-Wunused-but-set-variable]
78 | Index nsuper_et_post = 0; // Number of relaxed snodes in postordered etree
| ^
/Volumes/Builds/packages/sonoma-arm64/Rlib/4.6/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:79:9: warning: variable 'nsuper_et' set but not used [-Wunused-but-set-variable]
79 | Index nsuper_et = 0; // Number of relaxed snodes in the original etree
| ^
In file included from hmmTMB.cpp:2:
In file included from ./hmmTMB.hpp:9:
In file included from ./dist.hpp:7:
./dist_def.hpp:1072:28: warning: variables 'i' and 'dim' used in loop condition not modified in loop body [-Wfor-loop-analysis]
1072 | for(int i = j + 1; i < dim; j++) {
| ^ ~~~
./dist_def.hpp:1032:3: note: in instantiation of member function 'MultivariateNormal<TMBad::global::ad_aug>::link' requested here
1032 | MultivariateNormal() {};
| ^
./dist.hpp:36:44: note: in instantiation of member function 'MultivariateNormal<TMBad::global::ad_aug>::MultivariateNormal' requested here
36 | return(std::unique_ptr<Dist<Type>>(new MultivariateNormal<Type>));
| ^
./hmmTMB.hpp:187:44: note: in instantiation of function template specialization 'dist_generator<TMBad::global::ad_aug>' requested here
187 | std::unique_ptr<Dist<Type>> obsdist = dist_generator<Type>(distcode(var));
| ^
/Volumes/Builds/packages/sonoma-arm64/Rlib/4.6/TMB/include/tmb_core.hpp:1291:6: note: in instantiation of member function 'objective_function<TMBad::global::ad_aug>::operator()' requested here
1291 | F(); // Run through user template (modifies reportvector)
| ^
In file included from hmmTMB.cpp:2:
In file included from ./hmmTMB.hpp:4:
In file included from /Volumes/Builds/packages/sonoma-arm64/Rlib/4.6/TMB/include/TMB.hpp:46:
In file included from /Volumes/Builds/packages/sonoma-arm64/Rlib/4.6/TMB/include/Rstream.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/iostream:43:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/ios:222:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__locale:15:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__memory/shared_ptr.h:31:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__memory/unique_ptr.h:68:5: warning: delete called on 'Dist<TMBad::global::ad_aug>' that is abstract but has non-virtual destructor [-Wdelete-abstract-non-virtual-dtor]
68 | delete __ptr;
| ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__memory/unique_ptr.h:300:7: note: in instantiation of member function 'std::default_delete<Dist<TMBad::global::ad_aug>>::operator()' requested here
300 | __ptr_.second()(__tmp);
| ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__memory/unique_ptr.h:266:75: note: in instantiation of member function 'std::unique_ptr<Dist<TMBad::global::ad_aug>>::reset' requested here
266 | _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX23 ~unique_ptr() { reset(); }
| ^
./hmmTMB.hpp:187:44: note: in instantiation of member function 'std::unique_ptr<Dist<TMBad::global::ad_aug>>::~unique_ptr' requested here
187 | std::unique_ptr<Dist<Type>> obsdist = dist_generator<Type>(distcode(var));
| ^
/Volumes/Builds/packages/sonoma-arm64/Rlib/4.6/TMB/include/tmb_core.hpp:1291:6: note: in instantiation of member function 'objective_function<TMBad::global::ad_aug>::operator()' requested here
1291 | F(); // Run through user template (modifies reportvector)
| ^
In file included from hmmTMB.cpp:2:
In file included from ./hmmTMB.hpp:9:
In file included from ./dist.hpp:7:
./dist_def.hpp:1072:28: warning: variables 'i' and 'dim' used in loop condition not modified in loop body [-Wfor-loop-analysis]
1072 | for(int i = j + 1; i < dim; j++) {
| ^ ~~~
./dist_def.hpp:1032:3: note: in instantiation of member function 'MultivariateNormal<double>::link' requested here
1032 | MultivariateNormal() {};
| ^
./dist.hpp:36:44: note: in instantiation of member function 'MultivariateNormal<double>::MultivariateNormal' requested here
36 | return(std::unique_ptr<Dist<Type>>(new MultivariateNormal<Type>));
| ^
./hmmTMB.hpp:187:44: note: in instantiation of function template specialization 'dist_generator<double>' requested here
187 | std::unique_ptr<Dist<Type>> obsdist = dist_generator<Type>(distcode(var));
| ^
/Volumes/Builds/packages/sonoma-arm64/Rlib/4.6/TMB/include/tmb_core.hpp:2045:34: note: in instantiation of member function 'objective_function<double>::operator()' requested here
2045 | PROTECT( res = asSEXP( pf->operator()() ) );
| ^
In file included from hmmTMB.cpp:2:
In file included from ./hmmTMB.hpp:4:
In file included from /Volumes/Builds/packages/sonoma-arm64/Rlib/4.6/TMB/include/TMB.hpp:46:
In file included from /Volumes/Builds/packages/sonoma-arm64/Rlib/4.6/TMB/include/Rstream.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/iostream:43:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/ios:222:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__locale:15:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__memory/shared_ptr.h:31:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__memory/unique_ptr.h:68:5: warning: delete called on 'Dist<double>' that is abstract but has non-virtual destructor [-Wdelete-abstract-non-virtual-dtor]
68 | delete __ptr;
| ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__memory/unique_ptr.h:300:7: note: in instantiation of member function 'std::default_delete<Dist<double>>::operator()' requested here
300 | __ptr_.second()(__tmp);
| ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__memory/unique_ptr.h:266:75: note: in instantiation of member function 'std::unique_ptr<Dist<double>>::reset' requested here
266 | _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX23 ~unique_ptr() { reset(); }
| ^
./hmmTMB.hpp:187:44: note: in instantiation of member function 'std::unique_ptr<Dist<double>>::~unique_ptr' requested here
187 | std::unique_ptr<Dist<Type>> obsdist = dist_generator<Type>(distcode(var));
| ^
/Volumes/Builds/packages/sonoma-arm64/Rlib/4.6/TMB/include/tmb_core.hpp:2045:34: note: in instantiation of member function 'objective_function<double>::operator()' requested here
2045 | PROTECT( res = asSEXP( pf->operator()() ) );
| ^
7 warnings generated.
clang++ -arch arm64 -std=gnu++20 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/arm64/lib -o hmmTMB.so hmmTMB.o -F/Library/Frameworks/R.framework/.. -framework R
installing to /Volumes/Builds/packages/sonoma-arm64/results/4.6/hmmTMB.Rcheck/00LOCK-hmmTMB/00new/hmmTMB/libs
** generating debug symbols (dSYM)
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (hmmTMB)