* installing *source* package ‘hmmTMB’ ... ** 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))" using C++ compiler: ‘Apple clang version 14.0.0 (clang-1400.0.29.202)’ using SDK: ‘MacOSX11.3.sdk’ clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/TMB/include" -I"/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppEigen/include" -DTMB_EIGEN_DISABLE_WARNINGS -DTMB_LIB_INIT=R_init_hmmTMB -DCPPAD_FRAMEWORK -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/TMB/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/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:9: In file included from ./dist.hpp:7: ./dist_def.hpp:980:28: warning: variables 'i' and 'dim' used in loop condition not modified in loop body [-Wfor-loop-analysis] for(int i = j + 1; i < dim; j++) { ^ ~~~ ./dist_def.hpp:940:3: note: in instantiation of member function 'MultivariateNormal>::link' requested here MultivariateNormal() {}; ^ ./dist.hpp:34:44: note: in instantiation of member function 'MultivariateNormal>::MultivariateNormal' requested here return(std::unique_ptr>(new MultivariateNormal)); ^ ./hmmTMB.hpp:165:44: note: in instantiation of function template specialization 'dist_generator>' requested here std::unique_ptr> obsdist = dist_generator(distcode(var)); ^ /Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/TMB/include/tmb_core.hpp:1312:6: note: in instantiation of member function 'objective_function>::operator()' requested here 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/big-sur-arm64/Rlib/4.4/TMB/include/TMB.hpp:46: In file included from /Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/TMB/include/Rstream.hpp:10: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/iostream:37: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/ios:215: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/__locale:14: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/string:506: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/string_view:175: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/__string:57: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643: /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on 'Dist>' that is abstract but has non-virtual destructor [-Wdelete-abstract-non-virtual-dtor] delete __ptr; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete>>::operator()' requested here __ptr_.second()(__tmp); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr>>::reset' requested here ~unique_ptr() { reset(); } ^ ./hmmTMB.hpp:165:44: note: in instantiation of member function 'std::unique_ptr>>::~unique_ptr' requested here std::unique_ptr> obsdist = dist_generator(distcode(var)); ^ /Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/TMB/include/tmb_core.hpp:1312:6: note: in instantiation of member function 'objective_function>::operator()' requested here 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:980:28: warning: variables 'i' and 'dim' used in loop condition not modified in loop body [-Wfor-loop-analysis] for(int i = j + 1; i < dim; j++) { ^ ~~~ ./dist_def.hpp:940:3: note: in instantiation of member function 'MultivariateNormal::link' requested here MultivariateNormal() {}; ^ ./dist.hpp:34:44: note: in instantiation of member function 'MultivariateNormal::MultivariateNormal' requested here return(std::unique_ptr>(new MultivariateNormal)); ^ ./hmmTMB.hpp:165:44: note: in instantiation of function template specialization 'dist_generator' requested here std::unique_ptr> obsdist = dist_generator(distcode(var)); ^ /Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/TMB/include/tmb_core.hpp:2035:34: note: in instantiation of member function 'objective_function::operator()' requested here 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/big-sur-arm64/Rlib/4.4/TMB/include/TMB.hpp:46: In file included from /Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/TMB/include/Rstream.hpp:10: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/iostream:37: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/ios:215: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/__locale:14: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/string:506: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/string_view:175: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/__string:57: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643: /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on 'Dist' that is abstract but has non-virtual destructor [-Wdelete-abstract-non-virtual-dtor] delete __ptr; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete>::operator()' requested here __ptr_.second()(__tmp); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr>::reset' requested here ~unique_ptr() { reset(); } ^ ./hmmTMB.hpp:165:44: note: in instantiation of member function 'std::unique_ptr>::~unique_ptr' requested here std::unique_ptr> obsdist = dist_generator(distcode(var)); ^ /Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/TMB/include/tmb_core.hpp:2035:34: note: in instantiation of member function 'objective_function::operator()' requested here PROTECT( res = asSEXP( pf->operator()() ) ); ^ In file included from hmmTMB.cpp:2: In file included from ./hmmTMB.hpp:9: In file included from ./dist.hpp:7: ./dist_def.hpp:980:28: warning: variables 'i' and 'dim' used in loop condition not modified in loop body [-Wfor-loop-analysis] for(int i = j + 1; i < dim; j++) { ^ ~~~ ./dist_def.hpp:940:3: note: in instantiation of member function 'MultivariateNormal>>::link' requested here MultivariateNormal() {}; ^ ./dist.hpp:34:44: note: in instantiation of member function 'MultivariateNormal>>::MultivariateNormal' requested here return(std::unique_ptr>(new MultivariateNormal)); ^ ./hmmTMB.hpp:165:44: note: in instantiation of function template specialization 'dist_generator>>' requested here std::unique_ptr> obsdist = dist_generator(distcode(var)); ^ /Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/TMB/include/tmb_core.hpp:917:20: note: in instantiation of member function 'objective_function>>::operator()' requested here Type ans=this->operator()(); ^ /Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/TMB/include/tmb_core.hpp:2116:10: note: in instantiation of member function 'objective_function>>::evalUserTemplate' requested here y[0]=F.evalUserTemplate(); ^ In file included from hmmTMB.cpp:2: In file included from ./hmmTMB.hpp:4: In file included from /Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/TMB/include/TMB.hpp:46: In file included from /Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/TMB/include/Rstream.hpp:10: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/iostream:37: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/ios:215: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/__locale:14: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/string:506: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/string_view:175: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/__string:57: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643: /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on 'Dist>>' that is abstract but has non-virtual destructor [-Wdelete-abstract-non-virtual-dtor] delete __ptr; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete>>>::operator()' requested here __ptr_.second()(__tmp); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr>>>::reset' requested here ~unique_ptr() { reset(); } ^ ./hmmTMB.hpp:165:44: note: in instantiation of member function 'std::unique_ptr>>>::~unique_ptr' requested here std::unique_ptr> obsdist = dist_generator(distcode(var)); ^ /Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/TMB/include/tmb_core.hpp:917:20: note: in instantiation of member function 'objective_function>>::operator()' requested here Type ans=this->operator()(); ^ /Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/TMB/include/tmb_core.hpp:2116:10: note: in instantiation of member function 'objective_function>>::evalUserTemplate' requested here y[0]=F.evalUserTemplate(); ^ In file included from hmmTMB.cpp:2: In file included from ./hmmTMB.hpp:9: In file included from ./dist.hpp:7: ./dist_def.hpp:980:28: warning: variables 'i' and 'dim' used in loop condition not modified in loop body [-Wfor-loop-analysis] for(int i = j + 1; i < dim; j++) { ^ ~~~ ./dist_def.hpp:940:3: note: in instantiation of member function 'MultivariateNormal>>>::link' requested here MultivariateNormal() {}; ^ ./dist.hpp:34:44: note: in instantiation of member function 'MultivariateNormal>>>::MultivariateNormal' requested here return(std::unique_ptr>(new MultivariateNormal)); ^ ./hmmTMB.hpp:165:44: note: in instantiation of function template specialization 'dist_generator>>>' requested here std::unique_ptr> obsdist = dist_generator(distcode(var)); ^ /Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/TMB/include/tmb_core.hpp:917:20: note: in instantiation of member function 'objective_function>>>::operator()' requested here Type ans=this->operator()(); ^ /Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/TMB/include/tmb_core.hpp:2365:12: note: in instantiation of member function 'objective_function>>>::evalUserTemplate' requested here y[0] = F.evalUserTemplate(); ^ In file included from hmmTMB.cpp:2: In file included from ./hmmTMB.hpp:4: In file included from /Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/TMB/include/TMB.hpp:46: In file included from /Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/TMB/include/Rstream.hpp:10: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/iostream:37: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/ios:215: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/__locale:14: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/string:506: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/string_view:175: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/__string:57: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643: /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on 'Dist>>>' that is abstract but has non-virtual destructor [-Wdelete-abstract-non-virtual-dtor] delete __ptr; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete>>>>::operator()' requested here __ptr_.second()(__tmp); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr>>>>::reset' requested here ~unique_ptr() { reset(); } ^ ./hmmTMB.hpp:165:44: note: in instantiation of member function 'std::unique_ptr>>>>::~unique_ptr' requested here std::unique_ptr> obsdist = dist_generator(distcode(var)); ^ /Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/TMB/include/tmb_core.hpp:917:20: note: in instantiation of member function 'objective_function>>>::operator()' requested here Type ans=this->operator()(); ^ /Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/TMB/include/tmb_core.hpp:2365:12: note: in instantiation of member function 'objective_function>>>::evalUserTemplate' requested here y[0] = F.evalUserTemplate(); ^ 8 warnings generated. clang++ -arch arm64 -std=gnu++17 -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 -Wl,-framework -Wl,CoreFoundation installing to /Volumes/Builds/packages/big-sur-arm64/results/4.4/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)