* installing *source* package ‘unityForest’ ...
** this is package ‘unityForest’ version ‘0.1.0’
** package ‘unityForest’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
specified C++17
using C++ compiler: ‘g++ (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)’
using C++17
make[1]: Entering directory '/data/gannet/ripley/R/packages/tests-devel/unityForest/src'
g++ -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -DR_BUILD -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I'/data/gannet/ripley/R/test-dev/RcppEigen/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 AAA_check_cpp11.cpp -o AAA_check_cpp11.o
g++ -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -DR_BUILD -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I'/data/gannet/ripley/R/test-dev/RcppEigen/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 Data.cpp -o Data.o
g++ -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -DR_BUILD -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I'/data/gannet/ripley/R/test-dev/RcppEigen/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 DataChar.cpp -o DataChar.o
g++ -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -DR_BUILD -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I'/data/gannet/ripley/R/test-dev/RcppEigen/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 DataFloat.cpp -o DataFloat.o
g++ -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -DR_BUILD -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I'/data/gannet/ripley/R/test-dev/RcppEigen/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 DataSparse.cpp -o DataSparse.o
In file included from DataSparse.cpp:29:
DataSparse.h: In member function ‘virtual double unityForest::DataSparse::get(size_t, size_t) const’:
DataSparse.h:53:12: warning: unused variable ‘col_permuted’ [-Wunused-variable]
53 | size_t col_permuted = col;
| ^~~~~~~~~~~~
g++ -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -DR_BUILD -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I'/data/gannet/ripley/R/test-dev/RcppEigen/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 Forest.cpp -o Forest.o
g++ -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -DR_BUILD -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I'/data/gannet/ripley/R/test-dev/RcppEigen/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 ForestClassification.cpp -o ForestClassification.o
g++ -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -DR_BUILD -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I'/data/gannet/ripley/R/test-dev/RcppEigen/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 ForestProbability.cpp -o ForestProbability.o
g++ -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -DR_BUILD -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I'/data/gannet/ripley/R/test-dev/RcppEigen/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 ForestRegression.cpp -o ForestRegression.o
ForestRegression.cpp: In member function ‘virtual void unityForest::ForestRegression::computePredictionErrorInternal()’:
ForestRegression.cpp:128:35: warning: ‘value’ may be used uninitialized [-Wmaybe-uninitialized]
128 | predictions[0][0][sampleID] += value;
ForestRegression.cpp:123:14: note: ‘value’ was declared here
123 | double value;
| ^~~~~
g++ -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -DR_BUILD -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I'/data/gannet/ripley/R/test-dev/RcppEigen/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 Hungarian.cpp -o Hungarian.o
g++ -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -DR_BUILD -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I'/data/gannet/ripley/R/test-dev/RcppEigen/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
g++ -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -DR_BUILD -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I'/data/gannet/ripley/R/test-dev/RcppEigen/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 Tree.cpp -o Tree.o
In file included from Tree.cpp:20:
utility.h: In instantiation of ‘std::vector<T> unityForest::reorder(std::vector<T>&, const std::vector<long unsigned int>&) [with T = std::vector<long unsigned int>]’:
Tree.cpp:2159:41: required from here
2159 | sampled_split_multvarIDs = reorder(sampled_split_multvarIDs, randindices);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
utility.h:525:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<long unsigned int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
525 | for ( int s = 1, d; s < order.size(); ++ s ) {
| ~~^~~~~~~~~~~~~~
utility.h: In instantiation of ‘std::vector<T> unityForest::reorder(std::vector<T>&, const std::vector<long unsigned int>&) [with T = long unsigned int]’:
Tree.cpp:2160:36: required from here
2160 | sampled_split_types = reorder(sampled_split_types, randindices);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
utility.h:525:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<long unsigned int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
525 | for ( int s = 1, d; s < order.size(); ++ s ) {
| ~~^~~~~~~~~~~~~~
utility.h: In instantiation of ‘std::vector<T> unityForest::reorder(std::vector<T>&, const std::vector<long unsigned int>&) [with T = std::vector<std::vector<bool> >]’:
Tree.cpp:2161:38: required from here
2161 | sampled_split_directs = reorder(sampled_split_directs, randindices);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
utility.h:525:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<long unsigned int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
525 | for ( int s = 1, d; s < order.size(); ++ s ) {
| ~~^~~~~~~~~~~~~~
utility.h: In instantiation of ‘std::vector<T> unityForest::reorder(std::vector<T>&, const std::vector<long unsigned int>&) [with T = std::vector<std::vector<double> >]’:
Tree.cpp:2162:41: required from here
2162 | sampled_split_multvalues = reorder(sampled_split_multvalues, randindices);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
utility.h:525:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<long unsigned int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
525 | for ( int s = 1, d; s < order.size(); ++ s ) {
| ~~^~~~~~~~~~~~~~
In file included from /usr/include/c++/15/string:53,
from /usr/include/c++/15/bits/locale_classes.h:42,
from /usr/include/c++/15/bits/ios_base.h:43,
from /usr/include/c++/15/streambuf:45,
from /usr/include/c++/15/bits/streambuf_iterator.h:37,
from /usr/include/c++/15/iterator:68,
from Tree.cpp:14:
In function ‘constexpr const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = long unsigned int]’,
inlined from ‘void unityForest::Tree::drawSplitsUnivariate(size_t, size_t, std::vector<std::pair<long unsigned int, double> >&)’ at Tree.cpp:1703:29:
/usr/include/c++/15/bits/stl_algobase.h:239:7: warning: ‘n_triedsplitscandidate’ may be used uninitialized [-Wmaybe-uninitialized]
239 | if (__b < __a)
| ^~
Tree.cpp: In member function ‘void unityForest::Tree::drawSplitsUnivariate(size_t, size_t, std::vector<std::pair<long unsigned int, double> >&)’:
Tree.cpp:1678:12: note: ‘n_triedsplitscandidate’ was declared here
1678 | size_t n_triedsplitscandidate;
| ^~~~~~~~~~~~~~~~~~~~~~
g++ -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -DR_BUILD -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I'/data/gannet/ripley/R/test-dev/RcppEigen/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 TreeClassification.cpp -o TreeClassification.o
g++ -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -DR_BUILD -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I'/data/gannet/ripley/R/test-dev/RcppEigen/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 TreeProbability.cpp -o TreeProbability.o
TreeClassification.cpp: In member function ‘virtual double unityForest::TreeClassification::calculateSplitCriterionDiffOOB(size_t, std::vector<long unsigned int>)’:
TreeClassification.cpp:673:30: warning: unused variable ‘class_weights_ref’ [-Wunused-variable]
673 | const std::vector<double>& class_weights_ref = *class_weights;
| ^~~~~~~~~~~~~~~~~
TreeClassification.cpp: In member function ‘void unityForest::TreeClassification::splitNodeMuwMuwInternal(size_t, std::vector<std::vector<double> >, std::vector<long unsigned int>)’:
TreeClassification.cpp:1252:15: warning: unused variable ‘split_criterion_unweighted’ [-Wunused-variable]
1252 | double split_criterion_unweighted = HungAlgo.Solve(class_proportions, assignment);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
TreeProbability.cpp: In member function ‘void unityForest::TreeProbability::splitNodeMuwMuwInternal(size_t, std::vector<std::vector<double> >, std::vector<long unsigned int>)’:
TreeProbability.cpp:1017:15: warning: unused variable ‘split_criterion_unweighted’ [-Wunused-variable]
1017 | double split_criterion_unweighted = HungAlgo.Solve(class_proportions, assignment);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
TreeProbability.cpp: In member function ‘virtual double unityForest::TreeProbability::calculateSplitCriterionDiffOOB(size_t, std::vector<long unsigned int>)’:
TreeProbability.cpp:1200:30: warning: unused variable ‘class_weights_ref’ [-Wunused-variable]
1200 | const std::vector<double>& class_weights_ref = *class_weights;
| ^~~~~~~~~~~~~~~~~
TreeClassification.cpp: In member function ‘virtual double unityForest::TreeClassification::computePredictionAccuracyInternal()’:
TreeClassification.cpp:2261:5: warning: ‘predicted_value’ may be used uninitialized [-Wmaybe-uninitialized]
2261 | if (predicted_value != real_value) {
| ^~
TreeClassification.cpp:2250:12: note: ‘predicted_value’ was declared here
2250 | double predicted_value;
| ^~~~~~~~~~~~~~~
TreeClassification.cpp: In member function ‘double unityForest::TreeClassification::computeImportanceNode(size_t, std::vector<long unsigned int>, size_t)’:
TreeClassification.cpp:1912:10: warning: ‘split_criterion_value’ may be used uninitialized [-Wmaybe-uninitialized]
1912 | return split_criterion_value;
| ^~~~~~~~~~~~~~~~~~~~~
TreeClassification.cpp:1898:10: note: ‘split_criterion_value’ was declared here
1898 | double split_criterion_value;
| ^~~~~~~~~~~~~~~~~~~~~
TreeClassification.cpp: In member function ‘double unityForest::TreeClassification::computeImportanceNodePermuted(size_t, std::vector<long unsigned int>, std::vector<long unsigned int>, size_t)’:
TreeClassification.cpp:2085:10: warning: ‘split_criterion_value’ may be used uninitialized [-Wmaybe-uninitialized]
2085 | return split_criterion_value;
| ^~~~~~~~~~~~~~~~~~~~~
TreeClassification.cpp:2071:10: note: ‘split_criterion_value’ was declared here
2071 | double split_criterion_value;
| ^~~~~~~~~~~~~~~~~~~~~
TreeProbability.cpp: In member function ‘double unityForest::TreeProbability::computeImportanceNode(size_t, std::vector<long unsigned int>, size_t)’:
TreeProbability.cpp:1871:10: warning: ‘split_criterion_value’ may be used uninitialized [-Wmaybe-uninitialized]
1871 | return split_criterion_value;
| ^~~~~~~~~~~~~~~~~~~~~
TreeProbability.cpp:1857:10: note: ‘split_criterion_value’ was declared here
1857 | double split_criterion_value;
| ^~~~~~~~~~~~~~~~~~~~~
TreeProbability.cpp: In member function ‘double unityForest::TreeProbability::computeImportanceNodePermuted(size_t, std::vector<long unsigned int>, std::vector<long unsigned int>, size_t)’:
TreeProbability.cpp:2044:10: warning: ‘split_criterion_value’ may be used uninitialized [-Wmaybe-uninitialized]
2044 | return split_criterion_value;
| ^~~~~~~~~~~~~~~~~~~~~
TreeProbability.cpp:2030:10: note: ‘split_criterion_value’ was declared here
2030 | double split_criterion_value;
| ^~~~~~~~~~~~~~~~~~~~~
TreeClassification.cpp: In member function ‘bool unityForest::TreeClassification::findBestSplitMultivariate(size_t, std::vector<long unsigned int>, std::vector<std::vector<long unsigned int> >, std::vector<std::vector<std::vector<bool> > >, std::vector<std::vector<std::vector<double> > >)’:
TreeClassification.cpp:2504:23: warning: ‘best_split_type’ may be used uninitialized [-Wmaybe-uninitialized]
2504 | split_types[nodeID] = best_split_type;
TreeClassification.cpp:2425:10: note: ‘best_split_type’ was declared here
2425 | size_t best_split_type;
| ^~~~~~~~~~~~~~~
g++ -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -DR_BUILD -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I'/data/gannet/ripley/R/test-dev/RcppEigen/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 TreeRegression.cpp -o TreeRegression.o
TreeProbability.cpp: In member function ‘bool unityForest::TreeProbability::findBestSplitMultivariate(size_t, std::vector<long unsigned int>, std::vector<std::vector<long unsigned int> >, std::vector<std::vector<std::vector<bool> > >, std::vector<std::vector<std::vector<double> > >)’:
TreeProbability.cpp:2367:23: warning: ‘best_split_type’ may be used uninitialized [-Wmaybe-uninitialized]
2367 | split_types[nodeID] = best_split_type;
TreeProbability.cpp:2286:10: note: ‘best_split_type’ was declared here
2286 | size_t best_split_type;
| ^~~~~~~~~~~~~~~
g++ -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -DR_BUILD -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I'/data/gannet/ripley/R/test-dev/RcppEigen/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 divforCpp.cpp -o divforCpp.o
g++ -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -DR_BUILD -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I'/data/gannet/ripley/R/test-dev/RcppEigen/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 utility.cpp -o utility.o
TreeRegression.cpp: In member function ‘virtual double unityForest::TreeRegression::computePredictionAccuracyInternal()’:
TreeRegression.cpp:254:5: warning: ‘predicted_value’ may be used uninitialized [-Wmaybe-uninitialized]
254 | if (predicted_value != real_value) {
| ^~
TreeRegression.cpp:246:12: note: ‘predicted_value’ was declared here
246 | double predicted_value;
| ^~~~~~~~~~~~~~~
g++ -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -DR_BUILD -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I'/data/gannet/ripley/R/test-dev/RcppEigen/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 utilityRcpp.cpp -o utilityRcpp.o
TreeRegression.cpp: In member function ‘bool unityForest::TreeRegression::findBestSplitMultivariate(size_t, std::vector<long unsigned int>, std::vector<std::vector<long unsigned int> >, std::vector<std::vector<std::vector<bool> > >, std::vector<std::vector<std::vector<double> > >)’:
TreeRegression.cpp:483:23: warning: ‘best_split_type’ may be used uninitialized [-Wmaybe-uninitialized]
483 | split_types[nodeID] = best_split_type;
TreeRegression.cpp:404:10: note: ‘best_split_type’ was declared here
404 | size_t best_split_type;
| ^~~~~~~~~~~~~~~
In file included from divforCpp.cpp:43:
DataSparse.h: In member function ‘virtual double unityForest::DataSparse::get(size_t, size_t) const’:
DataSparse.h:53:12: warning: unused variable ‘col_permuted’ [-Wunused-variable]
53 | size_t col_permuted = col;
| ^~~~~~~~~~~~
g++ -std=gnu++17 -shared -L/usr/local/lib64 -o unityForest.so AAA_check_cpp11.o Data.o DataChar.o DataFloat.o DataSparse.o Forest.o ForestClassification.o ForestProbability.o ForestRegression.o Hungarian.o RcppExports.o Tree.o TreeClassification.o TreeProbability.o TreeRegression.o divforCpp.o utility.o utilityRcpp.o
make[1]: Leaving directory '/data/gannet/ripley/R/packages/tests-devel/unityForest/src'
make[1]: Entering directory '/data/gannet/ripley/R/packages/tests-devel/unityForest/src'
make[1]: Leaving directory '/data/gannet/ripley/R/packages/tests-devel/unityForest/src'
installing to /data/gannet/ripley/R/packages/tests-devel/unityForest.Rcheck/00LOCK-unityForest/00new/unityForest/libs
** R
** data
** 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 (unityForest)