* installing to library ‘/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages’
* installing *source* package ‘PTT’ ...
** this is package ‘PTT’ version ‘1.0.1’
** package ‘PTT’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C++ compiler: ‘g++-16 (Debian 16.1.0-2) 16.1.0’
make[1]: Entering directory '/home/hornik/tmp/scratch/Rtmp5naufb/R.INSTALL23f82422d58c85/PTT/src'
g++-16 -std=gnu++20 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 -fpic -g -O2 -Wall -pedantic -mtune=native -c RcppExports.cpp -o RcppExports.o
g++-16 -std=gnu++20 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 -fpic -g -O2 -Wall -pedantic -mtune=native -c cgbt.cpp -o cgbt.o
cgbt.cpp: In member function ‘void CondGBT::init(arma::Mat<unsigned int>, arma::Mat<unsigned int>)’:
cgbt.cpp:49:15: warning: comparison of integer expressions of different signedness: ‘long long unsigned int’ and ‘int’ [-Wsign-compare]
49 | for (i=0; i <= k; i++) {
| ~~^~~~
cgbt.cpp:67:15: warning: comparison of integer expressions of different signedness: ‘long long unsigned int’ and ‘int’ [-Wsign-compare]
67 | for (i=0; i < nobs; i++) { //since we do it only once, do this for now
| ~~^~~~~~
cgbt.cpp: In member function ‘int CondGBT::update_node(double*, int, INDEX_TYPE)’:
cgbt.cpp:398:10: warning: ‘phi[0]’ may be used uninitialized [-Wmaybe-uninitialized]
398 | double phi[2]; // phi is a vector of length n_s_x, that stores log phi(A,s,x) for the current node A for s=0,1,2,...,n_s_x
| ^~~
g++-16 -std=gnu++20 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 -fpic -g -O2 -Wall -pedantic -mtune=native -c gbt.cpp -o gbt.o
gbt.cpp: In member function ‘void GBT::init(arma::Mat<unsigned int>)’:
gbt.cpp:803:17: warning: comparison of integer expressions of different signedness: ‘long long unsigned int’ and ‘int’ [-Wsign-compare]
803 | for (i=0; i <= k; i++) {
| ~~^~~~
gbt.cpp:820:17: warning: comparison of integer expressions of different signedness: ‘long long unsigned int’ and ‘int’ [-Wsign-compare]
820 | for (i=0; i < nobs; i++) { //since we do it only once, do this for now
| ~~^~~~~~
gbt.cpp: In member function ‘double GBT::get_root_logphi()’:
gbt.cpp:886:16: warning: ‘log_root_phi’ may be used uninitialized [-Wmaybe-uninitialized]
886 | log_root_phi -= log(n_s);
| ~~~~~~~~~~~~~^~~~~~~~~~~
gbt.cpp:881:10: note: ‘log_root_phi’ was declared here
881 | double log_root_phi;
| ^~~~~~~~~~~~
gbt.cpp: In member function ‘double GBT::get_node_logphi(std::vector<double>&)’:
gbt.cpp:900:16: warning: ‘log_node_phi’ may be used uninitialized [-Wmaybe-uninitialized]
900 | log_node_phi -= log(n_s);
| ~~~~~~~~~~~~~^~~~~~~~~~~
gbt.cpp:895:10: note: ‘log_node_phi’ was declared here
895 | double log_node_phi;
| ^~~~~~~~~~~~
gbt.cpp: In member function ‘void GBT::sample_subtree(INDEX_TYPE&, int, int, double)’:
gbt.cpp:456:55: warning: ‘nu’ may be used uninitialized [-Wmaybe-uninitialized]
456 | theta = R::rbeta(theta0 * nu + n0, (1 - theta0) * nu + n1);
| ~~~~~~~~~~~~~^~~~
gbt.cpp:382:12: note: ‘nu’ was declared here
382 | double nu,log_Ma;
| ^~
g++-16 -std=gnu++20 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 -fpic -g -O2 -Wall -pedantic -mtune=native -c helpers.cpp -o helpers.o
g++-16 -std=gnu++20 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 -fpic -g -O2 -Wall -pedantic -mtune=native -c main.cpp -o main.o
g++-16 -std=gnu++20 -shared -L/home/hornik/tmp/R.check/r-release-gcc/Work/build/lib -Wl,-O1 -o PTT.so RcppExports.o cgbt.o gbt.o helpers.o main.o -llapack -L/home/hornik/tmp/R.check/r-release-gcc/Work/build/lib -lRblas -lgfortran -lm -latomic_asneeded -lquadmath -L/home/hornik/tmp/R.check/r-release-gcc/Work/build/lib -lR
make[1]: Leaving directory '/home/hornik/tmp/scratch/Rtmp5naufb/R.INSTALL23f82422d58c85/PTT/src'
make[1]: Entering directory '/home/hornik/tmp/scratch/Rtmp5naufb/R.INSTALL23f82422d58c85/PTT/src'
make[1]: Leaving directory '/home/hornik/tmp/scratch/Rtmp5naufb/R.INSTALL23f82422d58c85/PTT/src'
installing to /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/00LOCK-PTT/00new/PTT/libs
** R
** demo
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** 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 (PTT)