* installing *source* package ‘mapfit’ ... ** package ‘mapfit’ successfully unpacked and MD5 sums checked ** using staged installation ** libs using C++ compiler: ‘g++-13 (GCC) 13.2.0’ make[1]: Entering directory '/data/gannet/ripley/R/packages/tests-devel/mapfit/src' g++-13 -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I/usr/local/include -fpic -g -O2 -Wall -pedantic -mtune=native -Wno-ignored-attributes -Wno-parentheses -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -c gamma.cpp -o gamma.o In file included from gamma.cpp:2: gamma.h:11:15: warning: 'gam::LOG_PI' defined but not used [-Wunused-variable] 11 | static double LOG_PI = 1.14472988584940017; // log(pi) | ^~~~~~ g++-13 -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I/usr/local/include -fpic -g -O2 -Wall -pedantic -mtune=native -Wno-ignored-attributes -Wno-parentheses -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -c phase_dist.cpp -o phase_dist.o g++-13 -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I/usr/local/include -fpic -g -O2 -Wall -pedantic -mtune=native -Wno-ignored-attributes -Wno-parentheses -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -c emfit_phase_gen.cpp -o emfit_phase_gen.o g++-13 -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I/usr/local/include -fpic -g -O2 -Wall -pedantic -mtune=native -Wno-ignored-attributes -Wno-parentheses -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -c emfit_phase_cf1.cpp -o emfit_phase_cf1.o g++-13 -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I/usr/local/include -fpic -g -O2 -Wall -pedantic -mtune=native -Wno-ignored-attributes -Wno-parentheses -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -c emfit_phase_herlang.cpp -o emfit_phase_herlang.o In file included from phase_gen.h:9, from phase_dist.cpp:4: unif.h: In instantiation of 'double _unif_::unif(T1&, double, CSCMatrixT) [with T1 = S4matrix]': unif.h:154:22: required from 'double unif(T1&, double) [with T1 = S4matrix]' phase_dist.cpp:28:19: required from here unif.h:77:13: warning: unused variable 'm' [-Wunused-variable] 77 | const int m = traits1::nrow(A); | ^ unif.h:85:7: warning: variable 'maxi' set but not used [-Wunused-but-set-variable] 85 | int maxi = 0; | ^~~~ In file included from phase_gen.h:7: gamma.h:24:15: warning: 'gam::B16' defined but not used [-Wunused-variable] 24 | static double B16 = (-3617.0 / 510.0); | ^~~ gamma.h:23:15: warning: 'gam::B14' defined but not used [-Wunused-variable] 23 | static double B14 = ( 7.0 / 6.0); | ^~~ gamma.h:22:15: warning: 'gam::B12' defined but not used [-Wunused-variable] 22 | static double B12 = (-691.0 / 2730.0); | ^~~ gamma.h:21:15: warning: 'gam::B10' defined but not used [-Wunused-variable] 21 | static double B10 = ( 5.0 / 66.0); | ^~~ gamma.h:20:15: warning: 'gam::B8' defined but not used [-Wunused-variable] 20 | static double B8 = (-1.0 / 30.0); | ^~ gamma.h:19:15: warning: 'gam::B6' defined but not used [-Wunused-variable] 19 | static double B6 = ( 1.0 / 42.0); | ^~ gamma.h:18:15: warning: 'gam::B4' defined but not used [-Wunused-variable] 18 | static double B4 = (-1.0 / 30.0); | ^~ gamma.h:17:15: warning: 'gam::B2' defined but not used [-Wunused-variable] 17 | static double B2 = ( 1.0 / 6.0); | ^~ gamma.h:14:12: warning: 'gam::N' defined but not used [-Wunused-variable] 14 | static int N = 8; | ^ gamma.h:11:15: warning: 'gam::LOG_PI' defined but not used [-Wunused-variable] 11 | static double LOG_PI = 1.14472988584940017; // log(pi) | ^~~~~~ gamma.h:10:15: warning: 'gam::LOG_2PI' defined but not used [-Wunused-variable] 10 | static double LOG_2PI = 1.83787706640934548; | ^~~~~~~ gamma.h:9:15: warning: 'gam::PI' defined but not used [-Wunused-variable] 9 | static double PI = 3.14159265358979324; // pi | ^~ In file included from phase_gen.h:9, from phase_cf1.h:5, from emfit_phase_cf1.cpp:4: unif.h: In instantiation of 'void _diag_::diag(const T1&, T2&, CSCMatrixT) [with T1 = S4matrix; T2 = Rcpp::Vector<13>]': unif.h:287:15: required from 'void diag(const T1&, T2&) [with T1 = S4matrix; T2 = Rcpp::Vector<13>]' emfit_phase_cf1.cpp:30:7: required from here unif.h:236:13: warning: unused variable 'm' [-Wunused-variable] 236 | const int m = traits1::nrow(A); | ^ phase_gen.h: In instantiation of 'double estep(const GPH&, const PHGroupSample&, GPHEres&, OptionT&, WorkSpace&) [with T0 = Rcpp::Vector<13>; T1 = Rcpp::Vector<14, Rcpp::PreserveStorage>; T2 = S4matrix; T4 = Rcpp::Vector<14, Rcpp::PreserveStorage>; T5 = Rcpp::Vector<13>; T6 = Rcpp::Vector<13>; T7 = std::vector; T8 = S4matrix; OptionT = EMOptions; WorkSpace = GPHWorkSpace2]': phase_cf1.h:121:15: required from 'double estep(const CF1&, const DataT&, EresT&, OptionT&, WorkSpace&) [with T1 = Rcpp::Vector<14, Rcpp::PreserveStorage>; GPHT = GPH, S4matrix, Rcpp::Vector<13> >; DataT = PHGroupSample, Rcpp::Vector<13>, Rcpp::Vector<13> >; EresT = GPHEres, S4matrix >; OptionT = EMOptions; WorkSpace = GPHWorkSpace2]' emfit.h:56:19: required from 'void emfit(ModelT&, const DataT&, OptionT&, ET&, WorkSpace&) [with ModelT = CF1, GPH, S4matrix, Rcpp::Vector<13> > >; DataT = PHGroupSample, Rcpp::Vector<13>, Rcpp::Vector<13> >; OptionT = EMOptions; ET = GPHEres, S4matrix >; WorkSpace = GPHWorkSpace2]' emfit_phase_cf1.cpp:131:8: required from here phase_gen.h:230:10: warning: unused variable 'scale' [-Wunused-variable] 230 | double scale; | ^~~~~ phase_gen.h:232:10: warning: unused variable 'tllf' [-Wunused-variable] 232 | double tllf = 0.0; | ^~~~ phase_gen.h: In instantiation of 'double estep(const GPHPoi >&, const PHGroupSample&, GPHEres&, OptionT&, WorkSpace&) [with T0 = Rcpp::Vector<13>; T1 = Rcpp::Vector<14, Rcpp::PreserveStorage>; T2 = S4matrix; T4 = Rcpp::Vector<14, Rcpp::PreserveStorage>; T5 = Rcpp::Vector<13>; T6 = Rcpp::Vector<13>; T7 = std::vector; T8 = S4matrix; OptionT = EMOptions; WorkSpace = GPHWorkSpace2]': phase_cf1.h:121:15: required from 'double estep(const CF1&, const DataT&, EresT&, OptionT&, WorkSpace&) [with T1 = Rcpp::Vector<14, Rcpp::PreserveStorage>; GPHT = GPHPoi, S4matrix, Rcpp::Vector<13> > >; DataT = PHGroupSample, Rcpp::Vector<13>, Rcpp::Vector<13> >; EresT = GPHEres, S4matrix >; OptionT = EMOptions; WorkSpace = GPHWorkSpace2]' emfit.h:56:19: required from 'void emfit(ModelT&, const DataT&, OptionT&, ET&, WorkSpace&) [with ModelT = CF1, GPHPoi, S4matrix, Rcpp::Vector<13> > > >; DataT = PHGroupSample, Rcpp::Vector<13>, Rcpp::Vector<13> >; OptionT = EMOptions; ET = GPHEres, S4matrix >; WorkSpace = GPHWorkSpace2]' emfit_phase_cf1.cpp:202:8: required from here phase_gen.h:443:10: warning: unused variable 'scale' [-Wunused-variable] 443 | double scale; | ^~~~~ phase_gen.h:445:10: warning: unused variable 'tllf' [-Wunused-variable] 445 | double tllf = 0.0; | ^~~~ In file included from phase_gen.h:8: blas.h: In instantiation of 'void _mcopy_::mcopy(const T1&, T2&, CSCMatrixT, DenseMatrixT) [with T1 = S4matrix; T2 = Rcpp::Matrix<14>]': blas.h:165:17: required from 'void mcopy(const T1&, T2&) [with T1 = S4matrix; T2 = Rcpp::Matrix<14>]' blas.h:1374:8: required from 'int _gesv_::gesv(TRANS, double, const T1&, const T2&, T3&, CSCMatrixT) [with T1 = S4matrix; T2 = Rcpp::Vector<14, Rcpp::PreserveStorage>; T3 = std::vector]' blas.h:1403:22: required from 'int gesv(const T0&, double, const T1&, const T2&, T3&) [with T1 = S4matrix; T2 = Rcpp::Vector<14, Rcpp::PreserveStorage>; T3 = std::vector; T0 = TRANS]' phase_gen.h:209:7: required from 'double estep(const GPH&, const PHGroupSample&, GPHEres&, OptionT&, WorkSpace&) [with T0 = Rcpp::Vector<13>; T1 = Rcpp::Vector<14, Rcpp::PreserveStorage>; T2 = S4matrix; T4 = Rcpp::Vector<14, Rcpp::PreserveStorage>; T5 = Rcpp::Vector<13>; T6 = Rcpp::Vector<13>; T7 = std::vector; T8 = S4matrix; OptionT = EMOptions; WorkSpace = GPHWorkSpace2]' phase_cf1.h:121:15: required from 'double estep(const CF1&, const DataT&, EresT&, OptionT&, WorkSpace&) [with T1 = Rcpp::Vector<14, Rcpp::PreserveStorage>; GPHT = GPH, S4matrix, Rcpp::Vector<13> >; DataT = PHGroupSample, Rcpp::Vector<13>, Rcpp::Vector<13> >; EresT = GPHEres, S4matrix >; OptionT = EMOptions; WorkSpace = GPHWorkSpace2]' emfit.h:56:19: required from 'void emfit(ModelT&, const DataT&, OptionT&, ET&, WorkSpace&) [with ModelT = CF1, GPH, S4matrix, Rcpp::Vector<13> > >; DataT = PHGroupSample, Rcpp::Vector<13>, Rcpp::Vector<13> >; OptionT = EMOptions; ET = GPHEres, S4matrix >; WorkSpace = GPHWorkSpace2]' emfit_phase_cf1.cpp:131:8: required from here blas.h:116:13: warning: unused variable 'm' [-Wunused-variable] 116 | const int m = traits1::nrow(A); | ^ In file included from phase_gen.h:7: gamma.h:24:15: warning: 'gam::B16' defined but not used [-Wunused-variable] 24 | static double B16 = (-3617.0 / 510.0); | ^~~ gamma.h:23:15: warning: 'gam::B14' defined but not used [-Wunused-variable] 23 | static double B14 = ( 7.0 / 6.0); | ^~~ gamma.h:22:15: warning: 'gam::B12' defined but not used [-Wunused-variable] 22 | static double B12 = (-691.0 / 2730.0); | ^~~ gamma.h:21:15: warning: 'gam::B10' defined but not used [-Wunused-variable] 21 | static double B10 = ( 5.0 / 66.0); | ^~~ gamma.h:20:15: warning: 'gam::B8' defined but not used [-Wunused-variable] 20 | static double B8 = (-1.0 / 30.0); | ^~ gamma.h:19:15: warning: 'gam::B6' defined but not used [-Wunused-variable] 19 | static double B6 = ( 1.0 / 42.0); | ^~ gamma.h:18:15: warning: 'gam::B4' defined but not used [-Wunused-variable] 18 | static double B4 = (-1.0 / 30.0); | ^~ gamma.h:17:15: warning: 'gam::B2' defined but not used [-Wunused-variable] 17 | static double B2 = ( 1.0 / 6.0); | ^~ gamma.h:14:12: warning: 'gam::N' defined but not used [-Wunused-variable] 14 | static int N = 8; | ^ gamma.h:11:15: warning: 'gam::LOG_PI' defined but not used [-Wunused-variable] 11 | static double LOG_PI = 1.14472988584940017; // log(pi) | ^~~~~~ gamma.h:10:15: warning: 'gam::LOG_2PI' defined but not used [-Wunused-variable] 10 | static double LOG_2PI = 1.83787706640934548; | ^~~~~~~ gamma.h:9:15: warning: 'gam::PI' defined but not used [-Wunused-variable] 9 | static double PI = 3.14159265358979324; // pi | ^~ In file included from phase_gen.h:9, from emfit_phase_gen.cpp:4: unif.h: In instantiation of 'void _diag_::diag(const T1&, T2&, CSCMatrixT) [with T1 = S4matrix; T2 = Rcpp::Vector<13>]': unif.h:287:15: required from 'void diag(const T1&, T2&) [with T1 = S4matrix; T2 = Rcpp::Vector<13>]' emfit_phase_gen.cpp:30:7: required from here unif.h:236:13: warning: unused variable 'm' [-Wunused-variable] 236 | const int m = traits1::nrow(A); | ^ phase_gen.h: In instantiation of 'double estep(const GPH&, const PHGroupSample&, GPHEres&, OptionT&, WorkSpace&) [with T0 = Rcpp::Vector<13>; T1 = Rcpp::Vector<14, Rcpp::PreserveStorage>; T2 = S4matrix; T4 = Rcpp::Vector<14, Rcpp::PreserveStorage>; T5 = Rcpp::Vector<13>; T6 = Rcpp::Vector<13>; T7 = std::vector; T8 = S4matrix; OptionT = EMOptions; WorkSpace = GPHWorkSpace2]': emfit.h:56:19: required from 'void emfit(ModelT&, const DataT&, OptionT&, ET&, WorkSpace&) [with ModelT = GPH, S4matrix, Rcpp::Vector<13> >; DataT = PHGroupSample, Rcpp::Vector<13>, Rcpp::Vector<13> >; OptionT = EMOptions; ET = GPHEres, S4matrix >; WorkSpace = GPHWorkSpace2]' emfit_phase_gen.cpp:122:8: required from here phase_gen.h:230:10: warning: unused variable 'scale' [-Wunused-variable] 230 | double scale; | ^~~~~ phase_gen.h:232:10: warning: unused variable 'tllf' [-Wunused-variable] 232 | double tllf = 0.0; | ^~~~ phase_gen.h: In instantiation of 'double estep(const GPHPoi >&, const PHGroupSample&, GPHEres&, OptionT&, WorkSpace&) [with T0 = Rcpp::Vector<13>; T1 = Rcpp::Vector<14, Rcpp::PreserveStorage>; T2 = S4matrix; T4 = Rcpp::Vector<14, Rcpp::PreserveStorage>; T5 = Rcpp::Vector<13>; T6 = Rcpp::Vector<13>; T7 = std::vector; T8 = S4matrix; OptionT = EMOptions; WorkSpace = GPHWorkSpace2]': emfit.h:56:19: required from 'void emfit(ModelT&, const DataT&, OptionT&, ET&, WorkSpace&) [with ModelT = GPHPoi, S4matrix, Rcpp::Vector<13> > >; DataT = PHGroupSample, Rcpp::Vector<13>, Rcpp::Vector<13> >; OptionT = EMOptions; ET = GPHEres, S4matrix >; WorkSpace = GPHWorkSpace2]' emfit_phase_gen.cpp:189:8: required from here phase_gen.h:443:10: warning: unused variable 'scale' [-Wunused-variable] 443 | double scale; | ^~~~~ phase_gen.h:445:10: warning: unused variable 'tllf' [-Wunused-variable] 445 | double tllf = 0.0; | ^~~~ In file included from phase_gen.h:8: blas.h: In instantiation of 'void _mcopy_::mcopy(const T1&, T2&, CSCMatrixT, DenseMatrixT) [with T1 = S4matrix; T2 = Rcpp::Matrix<14>]': blas.h:165:17: required from 'void mcopy(const T1&, T2&) [with T1 = S4matrix; T2 = Rcpp::Matrix<14>]' blas.h:1374:8: required from 'int _gesv_::gesv(TRANS, double, const T1&, const T2&, T3&, CSCMatrixT) [with T1 = S4matrix; T2 = Rcpp::Vector<14, Rcpp::PreserveStorage>; T3 = std::vector]' blas.h:1403:22: required from 'int gesv(const T0&, double, const T1&, const T2&, T3&) [with T1 = S4matrix; T2 = Rcpp::Vector<14, Rcpp::PreserveStorage>; T3 = std::vector; T0 = TRANS]' phase_gen.h:209:7: required from 'double estep(const GPH&, const PHGroupSample&, GPHEres&, OptionT&, WorkSpace&) [with T0 = Rcpp::Vector<13>; T1 = Rcpp::Vector<14, Rcpp::PreserveStorage>; T2 = S4matrix; T4 = Rcpp::Vector<14, Rcpp::PreserveStorage>; T5 = Rcpp::Vector<13>; T6 = Rcpp::Vector<13>; T7 = std::vector; T8 = S4matrix; OptionT = EMOptions; WorkSpace = GPHWorkSpace2]' emfit.h:56:19: required from 'void emfit(ModelT&, const DataT&, OptionT&, ET&, WorkSpace&) [with ModelT = GPH, S4matrix, Rcpp::Vector<13> >; DataT = PHGroupSample, Rcpp::Vector<13>, Rcpp::Vector<13> >; OptionT = EMOptions; ET = GPHEres, S4matrix >; WorkSpace = GPHWorkSpace2]' emfit_phase_gen.cpp:122:8: required from here blas.h:116:13: warning: unused variable 'm' [-Wunused-variable] 116 | const int m = traits1::nrow(A); | ^ g++-13 -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I/usr/local/include -fpic -g -O2 -Wall -pedantic -mtune=native -Wno-ignored-attributes -Wno-parentheses -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -c emfit_map_gen.cpp -o emfit_map_gen.o In file included from phase_gen.h:7: gamma.h:24:15: warning: 'gam::B16' defined but not used [-Wunused-variable] 24 | static double B16 = (-3617.0 / 510.0); | ^~~ gamma.h:23:15: warning: 'gam::B14' defined but not used [-Wunused-variable] 23 | static double B14 = ( 7.0 / 6.0); | ^~~ gamma.h:22:15: warning: 'gam::B12' defined but not used [-Wunused-variable] 22 | static double B12 = (-691.0 / 2730.0); | ^~~ gamma.h:21:15: warning: 'gam::B10' defined but not used [-Wunused-variable] 21 | static double B10 = ( 5.0 / 66.0); | ^~~ gamma.h:20:15: warning: 'gam::B8' defined but not used [-Wunused-variable] 20 | static double B8 = (-1.0 / 30.0); | ^~ gamma.h:19:15: warning: 'gam::B6' defined but not used [-Wunused-variable] 19 | static double B6 = ( 1.0 / 42.0); | ^~ gamma.h:18:15: warning: 'gam::B4' defined but not used [-Wunused-variable] 18 | static double B4 = (-1.0 / 30.0); | ^~ gamma.h:17:15: warning: 'gam::B2' defined but not used [-Wunused-variable] 17 | static double B2 = ( 1.0 / 6.0); | ^~ gamma.h:14:12: warning: 'gam::N' defined but not used [-Wunused-variable] 14 | static int N = 8; | ^ gamma.h:11:15: warning: 'gam::LOG_PI' defined but not used [-Wunused-variable] 11 | static double LOG_PI = 1.14472988584940017; // log(pi) | ^~~~~~ gamma.h:10:15: warning: 'gam::LOG_2PI' defined but not used [-Wunused-variable] 10 | static double LOG_2PI = 1.83787706640934548; | ^~~~~~~ gamma.h:9:15: warning: 'gam::PI' defined but not used [-Wunused-variable] 9 | static double PI = 3.14159265358979324; // pi | ^~ In file included from emfit_phase_herlang.cpp:4: phase_herlang.h: In instantiation of 'void mstep(const HErlangEres&, HErlang&, OptionT) [with V = Rcpp::Vector<14, Rcpp::PreserveStorage>; I = Rcpp::Vector<13>; V2 = std::vector; OptionT = EMOptions]': emfit.h:60:8: required from 'void emfit(ModelT&, const DataT&, OptionT&, ET&, WorkSpace&) [with ModelT = HErlang, Rcpp::Vector<13> >; DataT = PHWeightSample, Rcpp::Vector<14, Rcpp::PreserveStorage> >; OptionT = EMOptions; ET = HErlangEres >; WorkSpace = HErlangWorkSpace1]' emfit_phase_herlang.cpp:37:8: required from here phase_herlang.h:356:11: warning: unused variable 'alpha' [-Wunused-variable] 356 | double* alpha = trait2::value(model.alpha); | ^~~~~ phase_herlang.h: In instantiation of 'void mstep(const HErlangEres&, HErlangPoi&, OptionT) [with V = Rcpp::Vector<14, Rcpp::PreserveStorage>; I = Rcpp::Vector<13>; V2 = std::vector; OptionT = EMOptions]': emfit.h:60:8: required from 'void emfit(ModelT&, const DataT&, OptionT&, ET&, WorkSpace&) [with ModelT = HErlangPoi, Rcpp::Vector<13> >; DataT = PHGroupSample, Rcpp::Vector<13>, Rcpp::Vector<13> >; OptionT = EMOptions; ET = HErlangEres >; WorkSpace = HErlangWorkSpace2]' emfit_phase_herlang.cpp:126:8: required from here phase_herlang.h:378:11: warning: unused variable 'alpha' [-Wunused-variable] 378 | double* alpha = trait2::value(model.alpha); | ^~~~~ g++-13 -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I/usr/local/include -fpic -g -O2 -Wall -pedantic -mtune=native -Wno-ignored-attributes -Wno-parentheses -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -c emfit_map_erhmm.cpp -o emfit_map_erhmm.o In file included from phase_herlang.h:6: gamma.h:24:15: warning: 'gam::B16' defined but not used [-Wunused-variable] 24 | static double B16 = (-3617.0 / 510.0); | ^~~ gamma.h:23:15: warning: 'gam::B14' defined but not used [-Wunused-variable] 23 | static double B14 = ( 7.0 / 6.0); | ^~~ gamma.h:22:15: warning: 'gam::B12' defined but not used [-Wunused-variable] 22 | static double B12 = (-691.0 / 2730.0); | ^~~ gamma.h:21:15: warning: 'gam::B10' defined but not used [-Wunused-variable] 21 | static double B10 = ( 5.0 / 66.0); | ^~~ gamma.h:20:15: warning: 'gam::B8' defined but not used [-Wunused-variable] 20 | static double B8 = (-1.0 / 30.0); | ^~ gamma.h:19:15: warning: 'gam::B6' defined but not used [-Wunused-variable] 19 | static double B6 = ( 1.0 / 42.0); | ^~ gamma.h:18:15: warning: 'gam::B4' defined but not used [-Wunused-variable] 18 | static double B4 = (-1.0 / 30.0); | ^~ gamma.h:17:15: warning: 'gam::B2' defined but not used [-Wunused-variable] 17 | static double B2 = ( 1.0 / 6.0); | ^~ gamma.h:14:12: warning: 'gam::N' defined but not used [-Wunused-variable] 14 | static int N = 8; | ^ gamma.h:11:15: warning: 'gam::LOG_PI' defined but not used [-Wunused-variable] 11 | static double LOG_PI = 1.14472988584940017; // log(pi) | ^~~~~~ gamma.h:10:15: warning: 'gam::LOG_2PI' defined but not used [-Wunused-variable] 10 | static double LOG_2PI = 1.83787706640934548; | ^~~~~~~ gamma.h:9:15: warning: 'gam::PI' defined but not used [-Wunused-variable] 9 | static double PI = 3.14159265358979324; // pi | ^~ In file included from map_gen.h:10, from emfit_map_gen.cpp:4: unif.h: In instantiation of 'void _diag_::diag(const T1&, T2&, DenseMatrixT) [with T1 = S4matrix; T2 = Rcpp::Vector<13>]': unif.h:287:15: required from 'void diag(const T1&, T2&) [with T1 = S4matrix; T2 = Rcpp::Vector<13>]' emfit_map_gen.cpp:42:7: required from here unif.h:193:13: warning: unused variable 'm' [-Wunused-variable] 193 | const int m = traits1::nrow(A); | ^ map_gen.h: In instantiation of 'void _mstep_::mstep(const MAPEres&, MAP&, OptionT&, DenseMatrixT) [with Ev = Rcpp::Vector<14, Rcpp::PreserveStorage>; Em = S4matrix; Mv = Rcpp::Vector<14, Rcpp::PreserveStorage>; Mm = S4matrix; Mi = Rcpp::Vector<13>; OptionT = EMOptions]': map_gen.h:428:17: required from 'void mstep(const MAPEres&, MAP&, OptionT&) [with Ev = Rcpp::Vector<14, Rcpp::PreserveStorage>; Em = S4matrix; Mv = Rcpp::Vector<14, Rcpp::PreserveStorage>; Mm = S4matrix; Mi = Rcpp::Vector<13>; OptionT = EMOptions]' emfit.h:60:8: required from 'void emfit(ModelT&, const DataT&, OptionT&, ET&, WorkSpace&) [with ModelT = MAP, S4matrix, Rcpp::Vector<13> >; DataT = MAPGroupSample, Rcpp::Vector<13>, Rcpp::Vector<13> >; OptionT = EMOptions; ET = MAPEres, S4matrix >; WorkSpace = MAPWorkSpace1 >]' emfit_map_gen.cpp:73:8: required from here map_gen.h:256:17: warning: unused variable 'eb' [-Wunused-variable] 256 | const double* eb = stride_vector_traits::value(eres.eb); | ^~ map_gen.h:262:11: warning: unused variable 'alpha' [-Wunused-variable] 262 | double* alpha = stride_vector_traits::value(model.alpha); | ^~~~~ In file included from map_gen.h:7: gamma.h:24:15: warning: 'gam::B16' defined but not used [-Wunused-variable] 24 | static double B16 = (-3617.0 / 510.0); | ^~~ gamma.h:23:15: warning: 'gam::B14' defined but not used [-Wunused-variable] 23 | static double B14 = ( 7.0 / 6.0); | ^~~ gamma.h:22:15: warning: 'gam::B12' defined but not used [-Wunused-variable] 22 | static double B12 = (-691.0 / 2730.0); | ^~~ gamma.h:21:15: warning: 'gam::B10' defined but not used [-Wunused-variable] 21 | static double B10 = ( 5.0 / 66.0); | ^~~ gamma.h:20:15: warning: 'gam::B8' defined but not used [-Wunused-variable] 20 | static double B8 = (-1.0 / 30.0); | ^~ gamma.h:19:15: warning: 'gam::B6' defined but not used [-Wunused-variable] 19 | static double B6 = ( 1.0 / 42.0); | ^~ gamma.h:18:15: warning: 'gam::B4' defined but not used [-Wunused-variable] 18 | static double B4 = (-1.0 / 30.0); | ^~ gamma.h:17:15: warning: 'gam::B2' defined but not used [-Wunused-variable] 17 | static double B2 = ( 1.0 / 6.0); | ^~ gamma.h:14:12: warning: 'gam::N' defined but not used [-Wunused-variable] 14 | static int N = 8; | ^ gamma.h:11:15: warning: 'gam::LOG_PI' defined but not used [-Wunused-variable] 11 | static double LOG_PI = 1.14472988584940017; // log(pi) | ^~~~~~ gamma.h:10:15: warning: 'gam::LOG_2PI' defined but not used [-Wunused-variable] 10 | static double LOG_2PI = 1.83787706640934548; | ^~~~~~~ gamma.h:9:15: warning: 'gam::PI' defined but not used [-Wunused-variable] 9 | static double PI = 3.14159265358979324; // pi | ^~ g++-13 -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I/usr/local/include -fpic -g -O2 -Wall -pedantic -mtune=native -Wno-ignored-attributes -Wno-parentheses -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -c emfit_map_gmmpp.cpp -o emfit_map_gmmpp.o g++-13 -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I/usr/local/include -fpic -g -O2 -Wall -pedantic -mtune=native -Wno-ignored-attributes -Wno-parentheses -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -c gth.cpp -o gth.o g++-13 -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I/usr/local/include -fpic -g -O2 -Wall -pedantic -mtune=native -Wno-ignored-attributes -Wno-parentheses -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -c RcppExports.cpp -o RcppExports.o In file included from emfit_map_erhmm.cpp:4: map_erhmm.h: In instantiation of 'void _mstep_::mstep(const ErlangHMMEres&, ErlangHMM&, OptionT, DenseMatrixT) [with Ev = Rcpp::Vector<14, Rcpp::PreserveStorage>; Em = S4matrix; Tv = Rcpp::Vector<14, Rcpp::PreserveStorage>; Ti = Rcpp::Vector<13>; Tm = S4matrix; OptionT = EMOptions]': map_erhmm.h:150:17: required from 'void mstep(const ErlangHMMEres&, ErlangHMM&, OptionT&) [with Ev = Rcpp::Vector<14, Rcpp::PreserveStorage>; Em = S4matrix; Tv = Rcpp::Vector<14, Rcpp::PreserveStorage>; Ti = Rcpp::Vector<13>; Tm = S4matrix; OptionT = EMOptions]' emfit.h:60:8: required from 'void emfit(ModelT&, const DataT&, OptionT&, ET&, WorkSpace&) [with ModelT = ErlangHMM, Rcpp::Vector<13>, S4matrix >; DataT = MAPTimeSample >; OptionT = EMOptions; ET = ErlangHMMEres, S4matrix >; WorkSpace = ErlangHMMWorkSpace1 >]' emfit_map_erhmm.cpp:51:8: required from here map_erhmm.h:114:17: warning: unused variable 'eb' [-Wunused-variable] 114 | const double* eb = stride_vector_traits::value(eres.eb); | ^~ In file included from map_erhmm.h:8: gamma.h:24:15: warning: 'gam::B16' defined but not used [-Wunused-variable] 24 | static double B16 = (-3617.0 / 510.0); | ^~~ gamma.h:23:15: warning: 'gam::B14' defined but not used [-Wunused-variable] 23 | static double B14 = ( 7.0 / 6.0); | ^~~ gamma.h:22:15: warning: 'gam::B12' defined but not used [-Wunused-variable] 22 | static double B12 = (-691.0 / 2730.0); | ^~~ gamma.h:21:15: warning: 'gam::B10' defined but not used [-Wunused-variable] 21 | static double B10 = ( 5.0 / 66.0); | ^~~ gamma.h:20:15: warning: 'gam::B8' defined but not used [-Wunused-variable] 20 | static double B8 = (-1.0 / 30.0); | ^~ gamma.h:19:15: warning: 'gam::B6' defined but not used [-Wunused-variable] 19 | static double B6 = ( 1.0 / 42.0); | ^~ gamma.h:18:15: warning: 'gam::B4' defined but not used [-Wunused-variable] 18 | static double B4 = (-1.0 / 30.0); | ^~ gamma.h:17:15: warning: 'gam::B2' defined but not used [-Wunused-variable] 17 | static double B2 = ( 1.0 / 6.0); | ^~ gamma.h:14:12: warning: 'gam::N' defined but not used [-Wunused-variable] 14 | static int N = 8; | ^ gamma.h:11:15: warning: 'gam::LOG_PI' defined but not used [-Wunused-variable] 11 | static double LOG_PI = 1.14472988584940017; // log(pi) | ^~~~~~ gamma.h:10:15: warning: 'gam::LOG_2PI' defined but not used [-Wunused-variable] 10 | static double LOG_2PI = 1.83787706640934548; | ^~~~~~~ gamma.h:9:15: warning: 'gam::PI' defined but not used [-Wunused-variable] 9 | static double PI = 3.14159265358979324; // pi | ^~ In file included from gth.h:6, from gth.cpp:4: blas.h: In instantiation of 'void _mcopy_::mcopy(const T1&, T2&, CSCMatrixT, DenseMatrixT) [with T1 = S4matrix; T2 = Rcpp::Matrix<14>]': blas.h:165:17: required from 'void mcopy(const T1&, T2&) [with T1 = S4matrix; T2 = Rcpp::Matrix<14>]' gth.h:56:8: required from 'void markov_gth(const Tm&, Tv&) [with Tm = S4matrix; Tv = Rcpp::Vector<14, Rcpp::PreserveStorage>]' gth.cpp:16:13: required from here blas.h:116:13: warning: unused variable 'm' [-Wunused-variable] 116 | const int m = traits1::nrow(A); | ^ emfit_map_gmmpp.cpp: In function 'Rcpp::List emfit_gmmpp_group(Rcpp::NumericVector, Rcpp::NumericVector, Rcpp::S4, Rcpp::S4, Rcpp::List, Rcpp::List, Rcpp::S4, Rcpp::S4, Rcpp::S4, Rcpp::S4, Rcpp::S4, Rcpp::S4, Rcpp::S4, Rcpp::S4, Rcpp::S4, Rcpp::S4)': emfit_map_gmmpp.cpp:63:8: warning: unused variable 'm' [-Wunused-variable] 63 | auto m = tdat.length(); | ^ In file included from map_gmmpp.h:8, from emfit_map_gmmpp.cpp:4: unif.h: In instantiation of 'void _diag_::diag(const T1&, T2&, DenseMatrixT) [with T1 = S4matrix; T2 = Rcpp::Vector<13>]': unif.h:287:15: required from 'void diag(const T1&, T2&) [with T1 = S4matrix; T2 = Rcpp::Vector<13>]' emfit_map_gmmpp.cpp:50:7: required from here unif.h:193:13: warning: unused variable 'm' [-Wunused-variable] 193 | const int m = traits1::nrow(A); | ^ map_gmmpp.h: In instantiation of 'double estep(const GMMPP >&, const MAPGroupSample&, MAPEres&, OptionT&, WorkSpace&) [with Mv = Rcpp::Vector<14, Rcpp::PreserveStorage>; Mm = S4matrix; Mi = Rcpp::Vector<13>; Gt = Rcpp::Vector<14, Rcpp::PreserveStorage>; Gc = Rcpp::Vector<13>; Gi = Rcpp::Vector<13>; Ev = Rcpp::Vector<14, Rcpp::PreserveStorage>; Em = S4matrix; OptionT = EMOptions; WorkSpace = GMMPPWorkSpace >]': emfit.h:56:19: required from 'void emfit(ModelT&, const DataT&, OptionT&, ET&, WorkSpace&) [with ModelT = GMMPP, S4matrix, Rcpp::Vector<13> > >; DataT = MAPGroupSample, Rcpp::Vector<13>, Rcpp::Vector<13> >; OptionT = EMOptions; ET = MAPEres, S4matrix >; WorkSpace = GMMPPWorkSpace >]' emfit_map_gmmpp.cpp:82:8: required from here map_gmmpp.h:174:16: warning: unused variable 'tmax' [-Wunused-variable] 174 | const double tmax = data.maxtime; | ^~~~ map_gmmpp.h: In instantiation of 'void makeG(int, double, const MatT&, const MatT&, MatT&, const Tv&, const Tv&, Tv&, Tv&) [with MatT = S4matrix; Tv = std::vector]': map_gmmpp.h:217:10: required from 'double estep(const GMMPP >&, const MAPGroupSample&, MAPEres&, OptionT&, WorkSpace&) [with Mv = Rcpp::Vector<14, Rcpp::PreserveStorage>; Mm = S4matrix; Mi = Rcpp::Vector<13>; Gt = Rcpp::Vector<14, Rcpp::PreserveStorage>; Gc = Rcpp::Vector<13>; Gi = Rcpp::Vector<13>; Ev = Rcpp::Vector<14, Rcpp::PreserveStorage>; Em = S4matrix; OptionT = EMOptions; WorkSpace = GMMPPWorkSpace >]' emfit.h:56:19: required from 'void emfit(ModelT&, const DataT&, OptionT&, ET&, WorkSpace&) [with ModelT = GMMPP, S4matrix, Rcpp::Vector<13> > >; DataT = MAPGroupSample, Rcpp::Vector<13>, Rcpp::Vector<13> >; OptionT = EMOptions; ET = MAPEres, S4matrix >; WorkSpace = GMMPPWorkSpace >]' emfit_map_gmmpp.cpp:82:8: required from here map_gmmpp.h:56:15: warning: variable 'dji' set but not used [-Wunused-but-set-variable] 56 | double dij, dji; | ^~~ In file included from map_gmmpp.h:12: map_gen.h: In instantiation of 'void _mstep_::mstep(const MAPEres&, MAP&, OptionT&, DenseMatrixT) [with Ev = Rcpp::Vector<14, Rcpp::PreserveStorage>; Em = S4matrix; Mv = Rcpp::Vector<14, Rcpp::PreserveStorage>; Mm = S4matrix; Mi = Rcpp::Vector<13>; OptionT = EMOptions]': map_gen.h:428:17: required from 'void mstep(const MAPEres&, MAP&, OptionT&) [with Ev = Rcpp::Vector<14, Rcpp::PreserveStorage>; Em = S4matrix; Mv = Rcpp::Vector<14, Rcpp::PreserveStorage>; Mm = S4matrix; Mi = Rcpp::Vector<13>; OptionT = EMOptions]' map_gmmpp.h:285:8: required from 'void mstep(const MAPEres&, GMMPP&, OptionT&) [with Ev = Rcpp::Vector<14, Rcpp::PreserveStorage>; Em = S4matrix; MAPT = MAP, S4matrix, Rcpp::Vector<13> >; OptionT = EMOptions]' emfit.h:60:8: required from 'void emfit(ModelT&, const DataT&, OptionT&, ET&, WorkSpace&) [with ModelT = GMMPP, S4matrix, Rcpp::Vector<13> > >; DataT = MAPGroupSample, Rcpp::Vector<13>, Rcpp::Vector<13> >; OptionT = EMOptions; ET = MAPEres, S4matrix >; WorkSpace = GMMPPWorkSpace >]' emfit_map_gmmpp.cpp:82:8: required from here map_gen.h:256:17: warning: unused variable 'eb' [-Wunused-variable] 256 | const double* eb = stride_vector_traits::value(eres.eb); | ^~ map_gen.h:262:11: warning: unused variable 'alpha' [-Wunused-variable] 262 | double* alpha = stride_vector_traits::value(model.alpha); | ^~~~~ In file included from map_gmmpp.h:6: gamma.h: At global scope: gamma.h:24:15: warning: 'gam::B16' defined but not used [-Wunused-variable] 24 | static double B16 = (-3617.0 / 510.0); | ^~~ gamma.h:23:15: warning: 'gam::B14' defined but not used [-Wunused-variable] 23 | static double B14 = ( 7.0 / 6.0); | ^~~ gamma.h:22:15: warning: 'gam::B12' defined but not used [-Wunused-variable] 22 | static double B12 = (-691.0 / 2730.0); | ^~~ gamma.h:21:15: warning: 'gam::B10' defined but not used [-Wunused-variable] 21 | static double B10 = ( 5.0 / 66.0); | ^~~ gamma.h:20:15: warning: 'gam::B8' defined but not used [-Wunused-variable] 20 | static double B8 = (-1.0 / 30.0); | ^~ gamma.h:19:15: warning: 'gam::B6' defined but not used [-Wunused-variable] 19 | static double B6 = ( 1.0 / 42.0); | ^~ gamma.h:18:15: warning: 'gam::B4' defined but not used [-Wunused-variable] 18 | static double B4 = (-1.0 / 30.0); | ^~ gamma.h:17:15: warning: 'gam::B2' defined but not used [-Wunused-variable] 17 | static double B2 = ( 1.0 / 6.0); | ^~ gamma.h:14:12: warning: 'gam::N' defined but not used [-Wunused-variable] 14 | static int N = 8; | ^ gamma.h:11:15: warning: 'gam::LOG_PI' defined but not used [-Wunused-variable] 11 | static double LOG_PI = 1.14472988584940017; // log(pi) | ^~~~~~ gamma.h:10:15: warning: 'gam::LOG_2PI' defined but not used [-Wunused-variable] 10 | static double LOG_2PI = 1.83787706640934548; | ^~~~~~~ gamma.h:9:15: warning: 'gam::PI' defined but not used [-Wunused-variable] 9 | static double PI = 3.14159265358979324; // pi | ^~ g++-13 -std=gnu++17 -shared -L/usr/local/gcc13/lib64 -L/usr/local/lib64 -L/usr/local/clang18/lib/x86_64-unknown-linux-gnu -o mapfit.so gamma.o phase_dist.o emfit_phase_gen.o emfit_phase_cf1.o emfit_phase_herlang.o emfit_map_gen.o emfit_map_erhmm.o emfit_map_gmmpp.o gth.o RcppExports.o -llapack -L/data/gannet/ripley/R/R-devel/lib -lRblas -lgfortran -lm -lquadmath make[1]: Leaving directory '/data/gannet/ripley/R/packages/tests-devel/mapfit/src' make[1]: Entering directory '/data/gannet/ripley/R/packages/tests-devel/mapfit/src' make[1]: Leaving directory '/data/gannet/ripley/R/packages/tests-devel/mapfit/src' installing to /data/gannet/ripley/R/packages/tests-devel/mapfit.Rcheck/00LOCK-mapfit/00new/mapfit/libs ** R ** data ** byte-compile and prepare package for lazy loading ** help *** installing help indices *** copying figures ** building package indices ** 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 (mapfit)