* installing *source* package ‘morf’ ... ** package ‘morf’ successfully unpacked and MD5 sums checked ** using staged installation ** preparing to configure package 'morf' ... Checking if R knows a CXX20 compiler... clang++ ** finished configure for package 'morf' ** libs using C++ compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’ using C++20 using SDK: ‘MacOSX13.3.sdk’ clang++ -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppEigen/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -mmacosx-version-min=12.0 -c AAA_check_cpp11.cpp -o AAA_check_cpp11.o clang++ -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppEigen/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -mmacosx-version-min=12.0 -c Data.cpp -o Data.o clang++ -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppEigen/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -mmacosx-version-min=12.0 -c DataSparse.cpp -o DataSparse.o In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/R-devel/include/R.h:71: /Users/ripley/R/R-devel/include/R_ext/Complex.h:60:5: warning: anonymous structs are a GNU extension [-Wgnu-anonymous-struct] struct { ^ /Users/ripley/R/R-devel/include/R_ext/Complex.h:64:12: warning: '_Complex' is a C99 extension [-Wc99-extensions] double _Complex private_data_c; ^ In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:1: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Core:367: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: error: no type named 'result_of' in namespace 'std' typedef typename std::result_of::type type1; ~~~~~~~~~~~~~~^~~~~~~~~ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:34: error: expected member name or ';' after declaration specifiers typedef typename std::result_of::type type1; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/Meta.h:321:31: error: use of undeclared identifier 'type1' typedef typename remove_all::type type; ^ In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:1: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Core:540: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:2: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/LU:47: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:3: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Cholesky:12: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Jacobi:29: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:3: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Cholesky:43: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:4: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/QR:15: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Householder:27: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:4: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/QR:48: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:5: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SVD:48: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:6: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Geometry:58: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:7: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Eigenvalues:58: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:26: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseCore:61: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseCore/TriangularSolver.h:273:13: warning: variable 'count' set but not used [-Wunused-but-set-variable] Index count = 0; ^ In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:26: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseCore:66: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:27: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/OrderingMethods:71: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseCholesky:43: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseLU:33: /Users/ripley/R/Library/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] Index nsuper_et_post = 0; // Number of relaxed snodes in postordered etree ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:79:9: warning: variable 'nsuper_et' set but not used [-Wunused-but-set-variable] Index nsuper_et = 0; // Number of relaxed snodes in the original etree ^ In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:32: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseQR:34: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:33: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/IterativeLinearSolvers:46: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:32: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/CholmodSupport:45: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:35: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/KroneckerProduct:34: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:39: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/Polynomials:135: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:40: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/SparseExtra:42: /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/src/SparseExtra/RandomSetter.h:257:26: warning: implicit conversion loses integer precision: 'Eigen::Index' (aka 'long') to 'Eigen::DenseCoeffsBase, 1>::Scalar' (aka 'int') [-Wshorten-64-to-32] positions[j] = count; ~ ^~~~~ In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:40: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/SparseExtra:44: /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/src/SparseExtra/MarketIO.h:239:7: warning: variable 'count' set but not used [-Wunused-but-set-variable] int count = 0; ^ In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:40: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/SparseExtra:51: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:52: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:602:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] return i; ~~~~~~ ^ In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/SubMatrix.h:38:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] nc( col_range_.size() ), ~ ~~~~~~~~~~~^~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/SubMatrix.h:39:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] nr( row_range_.size() ) ~ ~~~~~~~~~~~^~~~~~ In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:49: /Users/ripley/R/Library/Rcpp/include/Rcpp/Language.h:186:81: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] unary_call( Language call_, R_xlen_t index ) : call(call_), proxy(call_,index){} ~~~~~ ^~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/Language.h:207:101: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] binary_call( Language call_, R_xlen_t index1, R_xlen_t index2 ) : call(call_), proxy1(call_,index1), proxy2(call_,index2){} ~~~~~~ ^~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/Language.h:207:123: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] binary_call( Language call_, R_xlen_t index1, R_xlen_t index2 ) : call(call_), proxy1(call_,index1), proxy2(call_,index2){} ~~~~~~ ^~~~~~ In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:57: /Users/ripley/R/Library/Rcpp/include/Rcpp/DataFrame.h:140:32: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] max_rows = Rf_xlength(*it); ~ ^~~~~~~~~~~~~~~ In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:78: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/sugar.h:31: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/functions.h:42: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/sapply.h:36:19: error: no template named 'result_of' in namespace 'std'; did you mean 'traits::result_of'? typedef typename ::std::result_of::type type; ^~~~~~~~~~~~~~~~ traits::result_of /Users/ripley/R/Library/Rcpp/include/Rcpp/traits/result_of.h:30:8: note: 'traits::result_of' declared here struct result_of{ ^ In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:78: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/sugar.h:31: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/functions.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/head.h:34:68: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] Head( const VEC_TYPE& object_, R_xlen_t n_ ) : object(object_), n(n_) { ~^~ In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:39:32: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'typename storage_type<13>::type' (aka 'int') [-Wshorten-64-to-32] dd[0] = dd[1] = f->n; ~ ~~~^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:48:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'typename storage_type<13>::type' (aka 'int') [-Wshorten-64-to-32] tt[4] = f->maxcsize; tt[5] = f->maxesize; ~ ~~~^~~~~~~~ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:48:49: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'typename storage_type<13>::type' (aka 'int') [-Wshorten-64-to-32] tt[4] = f->maxcsize; tt[5] = f->maxesize; ~ ~~~^~~~~~~~ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:101:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] d[0] = m; ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:102:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] d[1] = n; ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:169:71: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] Eigen_Matrix_Exporter(SEXP x) : vec(x), d_ncol(1), d_nrow(Rf_xlength(x)) { ~^~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:264:58: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] Exporter(SEXP x) : vec(x), d_ncol(1), d_nrow(Rf_xlength(x)) { ~^~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:284:58: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] Exporter(SEXP x) : vec(x), d_ncol(1), d_nrow(Rf_xlength(x)) { ~^~~~~~~~~~~~~ In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:1: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Core:462: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:905:102: warning: bitwise operation between different enumeration types ('Eigen::PlainObjectBase>::(unnamed enum at /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:102:5)' and 'Eigen::StorageOptions') is deprecated [-Wdeprecated-anon-enum-enum-conversion] EIGEN_STATIC_ASSERT((EIGEN_IMPLIES(MaxRowsAtCompileTime==1 && MaxColsAtCompileTime!=1, (Options&RowMajor)==RowMajor) ~~~~~~~^~~~~~~~~ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/Macros.h:954:38: note: expanded from macro 'EIGEN_IMPLIES' #define EIGEN_IMPLIES(a,b) (!(a) || (b)) ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/StaticAssert.h:33:54: note: expanded from macro 'EIGEN_STATIC_ASSERT' #define EIGEN_STATIC_ASSERT(X,MSG) static_assert(X,#MSG); ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/Map.h:145:30: note: in instantiation of member function 'Eigen::PlainObjectBase>::_check_template_params' requested here PlainObjectType::Base::_check_template_params(); ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseCore/SparseCompressedBase.h:51:73: note: in instantiation of member function 'Eigen::Map, 0>::Map' requested here const Eigen::Map innerNonZeros() const { return Eigen::Map(innerNonZeroPtr(), isCompressed()?0:derived().outerSize()); } ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseCore/SparseCompressedBase.h:65:16: note: in instantiation of member function 'Eigen::SparseCompressedBase>::innerNonZeros' requested here return innerNonZeros().sum(); ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseCore/SparseMatrix.h:1139:8: note: in instantiation of member function 'Eigen::SparseCompressedBase>::nonZeros' requested here if(nonZeros()==0) ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseCore/SparseMatrix.h:217:16: note: in instantiation of member function 'Eigen::SparseMatrix::insert' requested here return insert(row,col); ^ ./DataSparse.h:44:7: note: in instantiation of member function 'Eigen::SparseMatrix::coeffRef' requested here x.coeffRef(row, col) = value; ^ In file included from DataSparse.cpp:1: In file included from ./DataSparse.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:1: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Core:462: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:906:102: warning: bitwise operation between different enumeration types ('Eigen::PlainObjectBase>::(unnamed enum at /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:102:5)' and 'Eigen::StorageOptions') is deprecated [-Wdeprecated-anon-enum-enum-conversion] && EIGEN_IMPLIES(MaxColsAtCompileTime==1 && MaxRowsAtCompileTime!=1, (Options&RowMajor)==0) ~~~~~~~^~~~~~~~~ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/Macros.h:954:38: note: expanded from macro 'EIGEN_IMPLIES' #define EIGEN_IMPLIES(a,b) (!(a) || (b)) ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/StaticAssert.h:33:54: note: expanded from macro 'EIGEN_STATIC_ASSERT' #define EIGEN_STATIC_ASSERT(X,MSG) static_assert(X,#MSG); ^ 43 warnings and 4 errors generated. make[2]: *** [DataSparse.o] Error 1 clang++ -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppEigen/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -mmacosx-version-min=12.0 -c Forest.cpp -o Forest.o In file included from Forest.cpp:14: ./DataChar.h:26:12: warning: unused variable 'col_permuted' [-Wunused-variable] size_t col_permuted = col; ^ ./DataChar.h:46:31: warning: implicit conversion turns floating-point number into integer: 'double' to 'std::vector::value_type' (aka 'char') [-Wfloat-conversion] x[col * num_rows + row] = value; ~ ^~~~~ ./DataChar.h:50:31: warning: implicit conversion turns floating-point number into integer: 'double' to 'std::vector::value_type' (aka 'char') [-Wfloat-conversion] y[col * num_rows + row] = value; ~ ^~~~~ In file included from Forest.cpp:15: ./DataDouble.h:26:12: warning: unused variable 'col_permuted' [-Wunused-variable] size_t col_permuted = col; ^ In file included from Forest.cpp:16: ./DataFloat.h:26:12: warning: unused variable 'col_permuted' [-Wunused-variable] size_t col_permuted = col; ^ ./DataFloat.h:46:31: warning: implicit conversion loses floating-point precision: 'double' to 'std::vector::value_type' (aka 'float') [-Wimplicit-float-conversion] x[col * num_rows + row] = value; ~ ^~~~~ ./DataFloat.h:50:31: warning: implicit conversion loses floating-point precision: 'double' to 'std::vector::value_type' (aka 'float') [-Wimplicit-float-conversion] y[col * num_rows + row] = value; ~ ^~~~~ Forest.cpp:398:67: warning: implicit conversion loses integer precision: 'std::vector::size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] unsigned int num_dependent_variables = dependent_variable_names.size(); ~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ Forest.cpp:432:42: warning: implicit conversion loses integer precision: 'unsigned long' to 'unsigned int' [-Wshorten-64-to-32] equalSplit(thread_ranges, 0, num_trees - 1, num_threads); ~~~~~~~~~~ ~~~~~~~~~~^~~ Forest.cpp:446:27: warning: implicit conversion loses integer precision: 'unsigned long' to 'unsigned int' [-Wshorten-64-to-32] tree_seed = (i + 1) * seed; ~ ~~~~~~~~^~~~~~ Forest.cpp:825:45: warning: implicit conversion loses integer precision: 'unsigned long' to 'unsigned int' [-Wshorten-64-to-32] equalSplit(predict_ranges, 0, num_samples - 1, num_threads); ~~~~~~~~~~ ~~~~~~~~~~~~^~~ Forest.cpp:907:42: warning: implicit conversion loses integer precision: 'unsigned long' to 'unsigned int' [-Wshorten-64-to-32] equalSplit(thread_ranges, 0, num_trees - 1, num_threads); ~~~~~~~~~~ ~~~~~~~~~~^~~ Forest.cpp:1079:65: warning: implicit conversion turns floating-point number into integer: 'double' to 'unsigned int' [-Wfloat-conversion] unsigned int remaining_time = (1 / relative_progress - 1) * time_from_start.count(); ~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ 13 warnings generated. clang++ -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppEigen/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -mmacosx-version-min=12.0 -c ForestOrdered.cpp -o ForestOrdered.o ForestOrdered.cpp:27:42: warning: implicit conversion loses integer precision: 'unsigned long' to 'unsigned int' [-Wshorten-64-to-32] equalSplit(thread_ranges, 0, num_trees - 1, num_threads); ~~~~~~~~~~ ~~~~~~~~~~^~~ ForestOrdered.cpp:33:26: warning: implicit conversion turns floating-point number into integer: 'double' to 'unsigned long' [-Wfloat-conversion] unsigned long temp = sqrt((double) num_independent_variables); ~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ForestOrdered.cpp:34:12: warning: implicit conversion loses integer precision: 'const unsigned long' to 'unsigned int' [-Wshorten-64-to-32] mtry = std::max((unsigned long) 1, temp); ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. clang++ -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppEigen/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -mmacosx-version-min=12.0 -c RcppExports.cpp -o RcppExports.o In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/R-devel/include/R.h:71: /Users/ripley/R/R-devel/include/R_ext/Complex.h:60:5: warning: anonymous structs are a GNU extension [-Wgnu-anonymous-struct] struct { ^ /Users/ripley/R/R-devel/include/R_ext/Complex.h:64:12: warning: '_Complex' is a C99 extension [-Wc99-extensions] double _Complex private_data_c; ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:1: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Core:367: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: error: no type named 'result_of' in namespace 'std' typedef typename std::result_of::type type1; ~~~~~~~~~~~~~~^~~~~~~~~ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:34: error: expected member name or ';' after declaration specifiers typedef typename std::result_of::type type1; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/Meta.h:321:31: error: use of undeclared identifier 'type1' typedef typename remove_all::type type; ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:1: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Core:540: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:2: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/LU:47: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:3: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Cholesky:12: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Jacobi:29: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:3: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Cholesky:43: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:4: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/QR:15: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Householder:27: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:4: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/QR:48: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:5: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SVD:48: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:6: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Geometry:58: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:7: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Eigenvalues:58: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:26: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseCore:61: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseCore/TriangularSolver.h:273:13: warning: variable 'count' set but not used [-Wunused-but-set-variable] Index count = 0; ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:26: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseCore:66: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:27: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/OrderingMethods:71: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseCholesky:43: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseLU:33: /Users/ripley/R/Library/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] Index nsuper_et_post = 0; // Number of relaxed snodes in postordered etree ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:79:9: warning: variable 'nsuper_et' set but not used [-Wunused-but-set-variable] Index nsuper_et = 0; // Number of relaxed snodes in the original etree ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:32: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseQR:34: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:33: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/IterativeLinearSolvers:46: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:32: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/CholmodSupport:45: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:35: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/KroneckerProduct:34: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:39: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/Polynomials:135: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:40: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/SparseExtra:42: /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/src/SparseExtra/RandomSetter.h:257:26: warning: implicit conversion loses integer precision: 'Eigen::Index' (aka 'long') to 'Eigen::DenseCoeffsBase, 1>::Scalar' (aka 'int') [-Wshorten-64-to-32] positions[j] = count; ~ ^~~~~ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:40: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/SparseExtra:44: /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/src/SparseExtra/MarketIO.h:239:7: warning: variable 'count' set but not used [-Wunused-but-set-variable] int count = 0; ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:40: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/SparseExtra:51: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:52: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:602:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] return i; ~~~~~~ ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/SubMatrix.h:38:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] nc( col_range_.size() ), ~ ~~~~~~~~~~~^~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/SubMatrix.h:39:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] nr( row_range_.size() ) ~ ~~~~~~~~~~~^~~~~~ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:49: /Users/ripley/R/Library/Rcpp/include/Rcpp/Language.h:186:81: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] unary_call( Language call_, R_xlen_t index ) : call(call_), proxy(call_,index){} ~~~~~ ^~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/Language.h:207:101: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] binary_call( Language call_, R_xlen_t index1, R_xlen_t index2 ) : call(call_), proxy1(call_,index1), proxy2(call_,index2){} ~~~~~~ ^~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/Language.h:207:123: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] binary_call( Language call_, R_xlen_t index1, R_xlen_t index2 ) : call(call_), proxy1(call_,index1), proxy2(call_,index2){} ~~~~~~ ^~~~~~ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:57: /Users/ripley/R/Library/Rcpp/include/Rcpp/DataFrame.h:140:32: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] max_rows = Rf_xlength(*it); ~ ^~~~~~~~~~~~~~~ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:78: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/sugar.h:31: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/functions.h:42: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/sapply.h:36:19: error: no template named 'result_of' in namespace 'std'; did you mean 'traits::result_of'? typedef typename ::std::result_of::type type; ^~~~~~~~~~~~~~~~ traits::result_of /Users/ripley/R/Library/Rcpp/include/Rcpp/traits/result_of.h:30:8: note: 'traits::result_of' declared here struct result_of{ ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:78: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/sugar.h:31: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/functions.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/head.h:34:68: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] Head( const VEC_TYPE& object_, R_xlen_t n_ ) : object(object_), n(n_) { ~^~ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:39:32: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'typename storage_type<13>::type' (aka 'int') [-Wshorten-64-to-32] dd[0] = dd[1] = f->n; ~ ~~~^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:48:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'typename storage_type<13>::type' (aka 'int') [-Wshorten-64-to-32] tt[4] = f->maxcsize; tt[5] = f->maxesize; ~ ~~~^~~~~~~~ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:48:49: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'typename storage_type<13>::type' (aka 'int') [-Wshorten-64-to-32] tt[4] = f->maxcsize; tt[5] = f->maxesize; ~ ~~~^~~~~~~~ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:101:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] d[0] = m; ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:102:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] d[1] = n; ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:169:71: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] Eigen_Matrix_Exporter(SEXP x) : vec(x), d_ncol(1), d_nrow(Rf_xlength(x)) { ~^~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:264:58: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] Exporter(SEXP x) : vec(x), d_ncol(1), d_nrow(Rf_xlength(x)) { ~^~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:284:58: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] Exporter(SEXP x) : vec(x), d_ncol(1), d_nrow(Rf_xlength(x)) { ~^~~~~~~~~~~~~ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:177: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/Proxy_Iterator.h:110:23: warning: implicit conversion loses integer precision: 'long' to 'Rcpp::internal::Proxy_Iterator>::difference_type' (aka 'int') [-Wshorten-64-to-32] return proxy.index - other.proxy.index ; ~~~~~~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/algo.h:41:94: note: in instantiation of member function 'Rcpp::internal::Proxy_Iterator>::operator-' requested here typename std::iterator_traits::difference_type __trip_count = (__last - __first) >> 2; ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algo.h:90:9: note: in instantiation of function template specialization 'Rcpp::__any>, const char *>' requested here return __any( first, last, value, typename std::iterator_traits::iterator_category() ) ; ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/api/meat/S4.h:35:20: note: in instantiation of function template specialization 'Rcpp::any>, const char *>' requested here return any( res.begin(), res.end(), clazz.c_str() ) ; ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:421:26: note: in instantiation of member function 'Rcpp::S4_Impl::is' requested here if (!d_x.is("dgCMatrix")) ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/as.h:87:41: note: in instantiation of member function 'Rcpp::traits::Exporter>::Exporter' requested here ::Rcpp::traits::Exporter exporter(x); ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/as.h:152:26: note: in instantiation of function template specialization 'Rcpp::internal::as>' requested here return internal::as(x, typename traits::r_type_traits::r_category()); ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/InputParameter.h:46:49: note: in instantiation of function template specialization 'Rcpp::as>' requested here ReferenceInputParameter(SEXP x_) : obj( as(x_) ){} ^ RcppExports.cpp:113:73: note: in instantiation of member function 'Rcpp::ReferenceInputParameter>::ReferenceInputParameter' requested here Rcpp::traits::input_parameter< Eigen::SparseMatrix& >::type sparse_x(sparse_xSEXP); ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:1: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Core:462: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:905:102: warning: bitwise operation between different enumeration types ('Eigen::PlainObjectBase>::(unnamed enum at /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:102:5)' and 'Eigen::StorageOptions') is deprecated [-Wdeprecated-anon-enum-enum-conversion] EIGEN_STATIC_ASSERT((EIGEN_IMPLIES(MaxRowsAtCompileTime==1 && MaxColsAtCompileTime!=1, (Options&RowMajor)==RowMajor) ~~~~~~~^~~~~~~~~ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/Macros.h:954:38: note: expanded from macro 'EIGEN_IMPLIES' #define EIGEN_IMPLIES(a,b) (!(a) || (b)) ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/StaticAssert.h:33:54: note: expanded from macro 'EIGEN_STATIC_ASSERT' #define EIGEN_STATIC_ASSERT(X,MSG) static_assert(X,#MSG); ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/Map.h:145:30: note: in instantiation of member function 'Eigen::PlainObjectBase>::_check_template_params' requested here PlainObjectType::Base::_check_template_params(); ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseCore/SparseCompressedBase.h:51:73: note: in instantiation of member function 'Eigen::Map, 0>::Map' requested here const Eigen::Map innerNonZeros() const { return Eigen::Map(innerNonZeroPtr(), isCompressed()?0:derived().outerSize()); } ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseCore/SparseCompressedBase.h:65:16: note: in instantiation of member function 'Eigen::SparseCompressedBase>::innerNonZeros' requested here return innerNonZeros().sum(); ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseCore/SparseCompressedBase.h:163:21: note: in instantiation of member function 'Eigen::SparseCompressedBase>::nonZeros' requested here m_end = mat.nonZeros(); ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseCore/SparseAssign.h:90:53: note: in instantiation of member function 'Eigen::SparseCompressedBase>::InnerIterator::InnerIterator' requested here for (typename SrcEvaluatorType::InnerIterator it(srcEvaluator, j); it; ++it) ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseCore/SparseAssign.h:132:5: note: (skipping 6 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) assign_sparse_to_sparse(dst.derived(), src.derived()); ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:432:24: note: in instantiation of member function 'Eigen::SparseMatrix::SparseMatrix' requested here return ans; ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/as.h:89:29: note: in instantiation of member function 'Rcpp::traits::Exporter>::get' requested here return exporter.get(); ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/as.h:152:26: note: in instantiation of function template specialization 'Rcpp::internal::as>' requested here return internal::as(x, typename traits::r_type_traits::r_category()); ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/InputParameter.h:46:49: note: in instantiation of function template specialization 'Rcpp::as>' requested here ReferenceInputParameter(SEXP x_) : obj( as(x_) ){} ^ RcppExports.cpp:113:73: note: in instantiation of member function 'Rcpp::ReferenceInputParameter>::ReferenceInputParameter' requested here Rcpp::traits::input_parameter< Eigen::SparseMatrix& >::type sparse_x(sparse_xSEXP); ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:1: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Core:462: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:906:102: warning: bitwise operation between different enumeration types ('Eigen::PlainObjectBase>::(unnamed enum at /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:102:5)' and 'Eigen::StorageOptions') is deprecated [-Wdeprecated-anon-enum-enum-conversion] && EIGEN_IMPLIES(MaxColsAtCompileTime==1 && MaxRowsAtCompileTime!=1, (Options&RowMajor)==0) ~~~~~~~^~~~~~~~~ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/Macros.h:954:38: note: expanded from macro 'EIGEN_IMPLIES' #define EIGEN_IMPLIES(a,b) (!(a) || (b)) ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/StaticAssert.h:33:54: note: expanded from macro 'EIGEN_STATIC_ASSERT' #define EIGEN_STATIC_ASSERT(X,MSG) static_assert(X,#MSG); ^ 44 warnings and 4 errors generated. make[2]: *** [RcppExports.o] Error 1 clang++ -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppEigen/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -mmacosx-version-min=12.0 -c Tree.cpp -o Tree.o Tree.cpp:178:40: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] size_t factorID = floor(value) - 1; ~~~~~~~~ ~~~~~~~~~~~~~^~~ Tree.cpp:179:26: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] size_t splitID = floor(split_values[nodeID]); ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Tree.cpp:336:38: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] size_t factorID = floor(level) - 1; ~~~~~~~~ ~~~~~~~~~~~~~^~~ Tree.cpp:337:24: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] size_t splitID = floor(split_value); ~~~~~~~ ^~~~~~~~~~~~~~~~~~ Tree.cpp:390:38: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] size_t factorID = floor(value) - 1; ~~~~~~~~ ~~~~~~~~~~~~~^~~ Tree.cpp:391:24: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] size_t splitID = floor(split_values[nodeID]); ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Tree.cpp:418:51: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] size_t num_samples_inbag = (size_t) num_samples * (*sample_fraction)[0]; ~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ Tree.cpp:422:37: warning: implicit conversion turns floating-point number into integer: 'double' to 'std::vector::size_type' (aka 'unsigned long') [-Wfloat-conversion] oob_sampleIDs.reserve(num_samples * (exp(-(*sample_fraction)[0]) + 0.1)); ~~~~~~~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Tree.cpp:453:51: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] size_t num_samples_inbag = (size_t) num_samples * (*sample_fraction)[0]; ~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ Tree.cpp:457:37: warning: implicit conversion turns floating-point number into integer: 'double' to 'std::vector::size_type' (aka 'unsigned long') [-Wfloat-conversion] oob_sampleIDs.reserve(num_samples * (exp(-(*sample_fraction)[0]) + 0.1)); ~~~~~~~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Tree.cpp:496:51: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] size_t num_samples_inbag = (size_t) num_samples * (*sample_fraction)[0]; ~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ Tree.cpp:512:51: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] size_t num_samples_inbag = (size_t) num_samples * (*sample_fraction)[0]; ~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ 12 warnings generated. clang++ -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppEigen/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -mmacosx-version-min=12.0 -c TreeOrdered.cpp -o TreeOrdered.o TreeOrdered.cpp:435:40: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] size_t factorID = floor(level) - 1; ~~~~~~~~ ~~~~~~~~~~~~~^~~ TreeOrdered.cpp:453:38: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] size_t factorID = floor(value) - 1; ~~~~~~~~ ~~~~~~~~~~~~~^~~ TreeOrdered.cpp:508:10: warning: unused variable 'num_samples_node' [-Wunused-variable] size_t num_samples_node = end_pos[nodeID] - start_pos[nodeID]; ^ 3 warnings generated. clang++ -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppEigen/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -mmacosx-version-min=12.0 -c forest_weights_fitted_cpp.cpp -o forest_weights_fitted_cpp.o In file included from forest_weights_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/R-devel/include/R.h:71: /Users/ripley/R/R-devel/include/R_ext/Complex.h:60:5: warning: anonymous structs are a GNU extension [-Wgnu-anonymous-struct] struct { ^ /Users/ripley/R/R-devel/include/R_ext/Complex.h:64:12: warning: '_Complex' is a C99 extension [-Wc99-extensions] double _Complex private_data_c; ^ In file included from forest_weights_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:78: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/sugar.h:31: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/functions.h:42: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/sapply.h:36:19: error: no template named 'result_of' in namespace 'std'; did you mean 'traits::result_of'? typedef typename ::std::result_of::type type; ^~~~~~~~~~~~~~~~ traits::result_of /Users/ripley/R/Library/Rcpp/include/Rcpp/traits/result_of.h:30:8: note: 'traits::result_of' declared here struct result_of{ ^ In file included from forest_weights_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:78: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/sugar.h:31: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/functions.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/head.h:34:68: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] Head( const VEC_TYPE& object_, R_xlen_t n_ ) : object(object_), n(n_) { ~^~ forest_weights_fitted_cpp.cpp:16:35: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] int nlist = leaf_IDs_train_list.size(); // Number of trees. ~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~~~~ forest_weights_fitted_cpp.cpp:21:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] int nf_rows = f_rows.size(); // Number of rows of training data. ~~~~~~~ ~~~~~~~^~~~~~ forest_weights_fitted_cpp.cpp:22:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] int nf_cols = f_cols.size(); // Number of rows of honest data. ~~~~~~~ ~~~~~~~^~~~~~ forest_weights_fitted_cpp.cpp:34:43: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] int n_leaf_IDs_train = leaf_IDs_train.size(); // How many different leaves in this tree using training units. ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~^~~~~~ forest_weights_fitted_cpp.cpp:35:45: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] int n_leaf_IDs_honest = leaf_IDs_honest.size(); // How many different leaves in this tree using honest units. ~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~^~~~~~ In file included from forest_weights_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:58: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:138:76: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] return static_cast< Vector* >( this )->operator[]( offset( i, j ) ) ; ~~~~~~ ^ forest_weights_fitted_cpp.cpp:44:23: note: in instantiation of member function 'Rcpp::Matrix<14>::operator()' requested here tree_out_train(i,j) = leaf_IDs_train[i] == leaf_IDs_honest[j]; // TRUE if this i-th training unit falls in same leaf as j-th honest unit. ^ In file included from forest_weights_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:58: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:138:73: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] return static_cast< Vector* >( this )->operator[]( offset( i, j ) ) ; ~~~~~~ ^ In file included from forest_weights_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:60: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:72:16: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' TARGET[FUN(i)] = SOURCE[i] ; i++ ; \ ~~~ ^ forest_weights_fitted_cpp.cpp:91:46: note: in instantiation of member function 'Rcpp::MatrixRow<14>::operator=' requested here forest_out_all(row_idleaf_IDs_train,_) = forest_out_honest(row_idleaf_IDs_train,_); ^ In file included from forest_weights_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:60: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:72:29: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' TARGET[FUN(i)] = SOURCE[i] ; i++ ; \ ~~~~~~ ^ In file included from forest_weights_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:60: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:73:16: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' TARGET[FUN(i)] = SOURCE[i] ; i++ ; \ ~~~ ^ In file included from forest_weights_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:60: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:73:29: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' TARGET[FUN(i)] = SOURCE[i] ; i++ ; \ ~~~~~~ ^ In file included from forest_weights_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:60: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:74:16: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' TARGET[FUN(i)] = SOURCE[i] ; i++ ; \ ~~~ ^ In file included from forest_weights_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:60: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:74:29: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' TARGET[FUN(i)] = SOURCE[i] ; i++ ; \ ~~~~~~ ^ In file included from forest_weights_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:60: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:75:16: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' TARGET[FUN(i)] = SOURCE[i] ; i++ ; \ ~~~ ^ In file included from forest_weights_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:60: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:75:29: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' TARGET[FUN(i)] = SOURCE[i] ; i++ ; \ ~~~~~~ ^ In file included from forest_weights_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:60: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:79:18: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' TARGET[FUN(i)] = SOURCE[i] ; i++ ; /* fallthrough */ \ ~~~ ^ In file included from forest_weights_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:60: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:79:31: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' TARGET[FUN(i)] = SOURCE[i] ; i++ ; /* fallthrough */ \ ~~~~~~ ^ In file included from forest_weights_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:60: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:81:18: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' TARGET[FUN(i)] = SOURCE[i] ; i++ ; /* fallthrough */ \ ~~~ ^ In file included from forest_weights_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:60: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:81:31: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' TARGET[FUN(i)] = SOURCE[i] ; i++ ; /* fallthrough */ \ ~~~~~~ ^ In file included from forest_weights_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:60: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:83:18: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' TARGET[FUN(i)] = SOURCE[i] ; i++ ; /* fallthrough */ \ ~~~ ^ In file included from forest_weights_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:60: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:83:31: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' TARGET[FUN(i)] = SOURCE[i] ; i++ ; /* fallthrough */ \ ~~~~~~ ^ 24 warnings and 1 error generated. make[2]: *** [forest_weights_fitted_cpp.o] Error 1 clang++ -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppEigen/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -mmacosx-version-min=12.0 -c forest_weights_predicted_cpp.cpp -o forest_weights_predicted_cpp.o In file included from forest_weights_predicted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/R-devel/include/R.h:71: /Users/ripley/R/R-devel/include/R_ext/Complex.h:60:5: warning: anonymous structs are a GNU extension [-Wgnu-anonymous-struct] struct { ^ /Users/ripley/R/R-devel/include/R_ext/Complex.h:64:12: warning: '_Complex' is a C99 extension [-Wc99-extensions] double _Complex private_data_c; ^ In file included from forest_weights_predicted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:78: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/sugar.h:31: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/functions.h:42: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/sapply.h:36:19: error: no template named 'result_of' in namespace 'std'; did you mean 'traits::result_of'? typedef typename ::std::result_of::type type; ^~~~~~~~~~~~~~~~ traits::result_of /Users/ripley/R/Library/Rcpp/include/Rcpp/traits/result_of.h:30:8: note: 'traits::result_of' declared here struct result_of{ ^ In file included from forest_weights_predicted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:78: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/sugar.h:31: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/functions.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/head.h:34:68: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] Head( const VEC_TYPE& object_, R_xlen_t n_ ) : object(object_), n(n_) { ~^~ forest_weights_predicted_cpp.cpp:17:34: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] int nlist = leaf_IDs_test_list.size(); ~~~~~ ~~~~~~~~~~~~~~~~~~~^~~~~~ forest_weights_predicted_cpp.cpp:22:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] int nf_rows = f_rows.size(); ~~~~~~~ ~~~~~~~^~~~~~ forest_weights_predicted_cpp.cpp:23:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] int nf_cols = f_cols.size(); ~~~~~~~ ~~~~~~~^~~~~~ forest_weights_predicted_cpp.cpp:33:41: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] int n_leaf_IDs_pred = leaf_IDs_pred.size(); ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~^~~~~~ forest_weights_predicted_cpp.cpp:34:38: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] int n_leaf_IDs = leaf_IDs_honest.size(); ~~~~~~~~~~ ~~~~~~~~~~~~~~~~^~~~~~ In file included from forest_weights_predicted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:58: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:138:76: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] return static_cast< Vector* >( this )->operator[]( offset( i, j ) ) ; ~~~~~~ ^ forest_weights_predicted_cpp.cpp:40:17: note: in instantiation of member function 'Rcpp::Matrix<14>::operator()' requested here tree_out(i,j) = leaf_IDs_pred[i] == leaf_IDs_honest[j]; ^ In file included from forest_weights_predicted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:58: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:138:73: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] return static_cast< Vector* >( this )->operator[]( offset( i, j ) ) ; ~~~~~~ ^ In file included from forest_weights_predicted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:52: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1084:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL(start,other) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:51:28: note: expanded from macro 'RCPP_LOOP_UNROLL' TARGET[i] = SOURCE[i] ; i++ ; \ ~~~~~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1070:9: note: in instantiation of function template specialization 'Rcpp::Vector<14>::import_expression>' requested here import_expression( other.get_ref() , n ) ; ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:164:9: note: in instantiation of function template specialization 'Rcpp::Vector<14>::import_sugar_expression>' requested here import_sugar_expression( other, typename traits::same_type::type() ) ; ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:35:24: note: in instantiation of function template specialization 'Rcpp::Vector<14>::Vector>' requested here VECTOR input = object; ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/Lazy.h:31:69: note: in instantiation of member function 'Rcpp::sugar::Mean<14, true, Rcpp::MatrixColumn<14>>::get' requested here inline operator T() const { return static_cast(*this).get() ; } ^ forest_weights_predicted_cpp.cpp:64:31: note: in instantiation of member function 'Rcpp::sugar::Lazy>>::operator double' requested here forest_out_mean(0, i) = mean(forest_out(_, i)); ^ In file included from forest_weights_predicted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:52: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1084:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL(start,other) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:52:28: note: expanded from macro 'RCPP_LOOP_UNROLL' TARGET[i] = SOURCE[i] ; i++ ; \ ~~~~~~ ^ In file included from forest_weights_predicted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:52: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1084:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL(start,other) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:53:28: note: expanded from macro 'RCPP_LOOP_UNROLL' TARGET[i] = SOURCE[i] ; i++ ; \ ~~~~~~ ^ In file included from forest_weights_predicted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:52: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1084:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL(start,other) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:54:28: note: expanded from macro 'RCPP_LOOP_UNROLL' TARGET[i] = SOURCE[i] ; i++ ; \ ~~~~~~ ^ In file included from forest_weights_predicted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:52: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1084:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL(start,other) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:58:26: note: expanded from macro 'RCPP_LOOP_UNROLL' TARGET[i] = SOURCE[i] ; i++ ; /* fallthrough */ \ ~~~~~~ ^ In file included from forest_weights_predicted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:52: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1084:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL(start,other) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:60:26: note: expanded from macro 'RCPP_LOOP_UNROLL' TARGET[i] = SOURCE[i] ; i++ ; /* fallthrough */ \ ~~~~~~ ^ In file included from forest_weights_predicted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:52: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1084:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL(start,other) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:62:26: note: expanded from macro 'RCPP_LOOP_UNROLL' TARGET[i] = SOURCE[i] ; i++ ; /* fallthrough */ \ ~~~~~~ ^ 17 warnings and 1 error generated. make[2]: *** [forest_weights_predicted_cpp.o] Error 1 clang++ -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppEigen/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -mmacosx-version-min=12.0 -c honest_fitted_cpp.cpp -o honest_fitted_cpp.o In file included from honest_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/R-devel/include/R.h:71: /Users/ripley/R/R-devel/include/R_ext/Complex.h:60:5: warning: anonymous structs are a GNU extension [-Wgnu-anonymous-struct] struct { ^ /Users/ripley/R/R-devel/include/R_ext/Complex.h:64:12: warning: '_Complex' is a C99 extension [-Wc99-extensions] double _Complex private_data_c; ^ In file included from honest_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:78: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/sugar.h:31: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/functions.h:42: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/sapply.h:36:19: error: no template named 'result_of' in namespace 'std'; did you mean 'traits::result_of'? typedef typename ::std::result_of::type type; ^~~~~~~~~~~~~~~~ traits::result_of /Users/ripley/R/Library/Rcpp/include/Rcpp/traits/result_of.h:30:8: note: 'traits::result_of' declared here struct result_of{ ^ In file included from honest_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:78: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/sugar.h:31: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/functions.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/head.h:34:68: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] Head( const VEC_TYPE& object_, R_xlen_t n_ ) : object(object_), n(n_) { ~^~ honest_fitted_cpp.cpp:49:17: warning: implicit conversion turns floating-point number into integer: 'typename storage_type<14>::type' (aka 'double') to 'int' [-Wfloat-conversion] leaf_ID = leaves[leaf_idx]; ~ ^~~~~~~~~~~~~~~~ honest_fitted_cpp.cpp:20:53: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] int n_unique_leaves_honest = unique_leaves_honest.size(); ~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~ honest_fitted_cpp.cpp:44:27: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] int n_leaves = leaves.size(); ~~~~~~~~ ~~~~~~~^~~~~~ In file included from honest_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:58: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:138:76: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] return static_cast< Vector* >( this )->operator[]( offset( i, j ) ) ; ~~~~~~ ^ honest_fitted_cpp.cpp:53:51: note: in instantiation of member function 'Rcpp::Matrix<14>::operator()' requested here obs_same_all_train[row_idx] = train_leaves(row_idx, i) == leaf_ID; // True if the row_idx-th training unit falls into this leaf in this tree. ^ In file included from honest_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:58: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:138:73: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] return static_cast< Vector* >( this )->operator[]( offset( i, j ) ) ; ~~~~~~ ^ In file included from honest_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:60: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:72:16: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' TARGET[FUN(i)] = SOURCE[i] ; i++ ; \ ~~~ ^ honest_fitted_cpp.cpp:114:27: note: in instantiation of member function 'Rcpp::MatrixRow<14>::operator=' requested here all_pred(row_idx,_) = honest_pred(row_idx,_); ^ In file included from honest_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:60: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:72:29: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' TARGET[FUN(i)] = SOURCE[i] ; i++ ; \ ~~~~~~ ^ In file included from honest_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:60: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:73:16: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' TARGET[FUN(i)] = SOURCE[i] ; i++ ; \ ~~~ ^ In file included from honest_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:60: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:73:29: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' TARGET[FUN(i)] = SOURCE[i] ; i++ ; \ ~~~~~~ ^ In file included from honest_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:60: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:74:16: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' TARGET[FUN(i)] = SOURCE[i] ; i++ ; \ ~~~ ^ In file included from honest_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:60: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:74:29: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' TARGET[FUN(i)] = SOURCE[i] ; i++ ; \ ~~~~~~ ^ In file included from honest_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:60: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:75:16: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' TARGET[FUN(i)] = SOURCE[i] ; i++ ; \ ~~~ ^ In file included from honest_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:60: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:75:29: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' TARGET[FUN(i)] = SOURCE[i] ; i++ ; \ ~~~~~~ ^ In file included from honest_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:60: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:79:18: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' TARGET[FUN(i)] = SOURCE[i] ; i++ ; /* fallthrough */ \ ~~~ ^ In file included from honest_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:60: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:79:31: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' TARGET[FUN(i)] = SOURCE[i] ; i++ ; /* fallthrough */ \ ~~~~~~ ^ In file included from honest_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:60: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:81:18: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' TARGET[FUN(i)] = SOURCE[i] ; i++ ; /* fallthrough */ \ ~~~ ^ In file included from honest_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:60: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:81:31: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' TARGET[FUN(i)] = SOURCE[i] ; i++ ; /* fallthrough */ \ ~~~~~~ ^ In file included from honest_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:60: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:83:18: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' TARGET[FUN(i)] = SOURCE[i] ; i++ ; /* fallthrough */ \ ~~~ ^ In file included from honest_fitted_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:60: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:83:31: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' TARGET[FUN(i)] = SOURCE[i] ; i++ ; /* fallthrough */ \ ~~~~~~ ^ 22 warnings and 1 error generated. make[2]: *** [honest_fitted_cpp.o] Error 1 clang++ -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppEigen/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -mmacosx-version-min=12.0 -c honest_predictions_cpp.cpp -o honest_predictions_cpp.o In file included from honest_predictions_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/R-devel/include/R.h:71: /Users/ripley/R/R-devel/include/R_ext/Complex.h:60:5: warning: anonymous structs are a GNU extension [-Wgnu-anonymous-struct] struct { ^ /Users/ripley/R/R-devel/include/R_ext/Complex.h:64:12: warning: '_Complex' is a C99 extension [-Wc99-extensions] double _Complex private_data_c; ^ In file included from honest_predictions_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:78: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/sugar.h:31: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/functions.h:42: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/sapply.h:36:19: error: no template named 'result_of' in namespace 'std'; did you mean 'traits::result_of'? typedef typename ::std::result_of::type type; ^~~~~~~~~~~~~~~~ traits::result_of /Users/ripley/R/Library/Rcpp/include/Rcpp/traits/result_of.h:30:8: note: 'traits::result_of' declared here struct result_of{ ^ In file included from honest_predictions_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:78: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/sugar.h:31: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/functions.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/head.h:34:68: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] Head( const VEC_TYPE& object_, R_xlen_t n_ ) : object(object_), n(n_) { ~^~ honest_predictions_cpp.cpp:47:17: warning: implicit conversion turns floating-point number into integer: 'typename storage_type<14>::type' (aka 'double') to 'int' [-Wfloat-conversion] leaf_ID = leaves[leaf_idx]; ~ ^~~~~~~~~~~~~~~~ honest_predictions_cpp.cpp:21:53: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] int n_unique_leaves_honest = unique_leaves_honest.size(); ~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~ honest_predictions_cpp.cpp:42:27: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] int n_leaves = leaves.size(); ~~~~~~~~ ~~~~~~~^~~~~~ In file included from honest_predictions_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:58: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:138:76: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] return static_cast< Vector* >( this )->operator[]( offset( i, j ) ) ; ~~~~~~ ^ honest_predictions_cpp.cpp:51:53: note: in instantiation of member function 'Rcpp::Matrix<14>::operator()' requested here obs_same_all_honest[row_idx] = honest_leaves(row_idx, i) == leaf_ID; // True if the row_idx-th honest unit falls into this leaf in this tree. ^ In file included from honest_predictions_cpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:58: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:138:73: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] return static_cast< Vector* >( this )->operator[]( offset( i, j ) ) ; ~~~~~~ ^ 8 warnings and 1 error generated. make[2]: *** [honest_predictions_cpp.o] Error 1 clang++ -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppEigen/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -mmacosx-version-min=12.0 -c morfCpp.cpp -o morfCpp.o In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/R-devel/include/R.h:71: /Users/ripley/R/R-devel/include/R_ext/Complex.h:60:5: warning: anonymous structs are a GNU extension [-Wgnu-anonymous-struct] struct { ^ /Users/ripley/R/R-devel/include/R_ext/Complex.h:64:12: warning: '_Complex' is a C99 extension [-Wc99-extensions] double _Complex private_data_c; ^ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:1: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Core:367: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: error: no type named 'result_of' in namespace 'std' typedef typename std::result_of::type type1; ~~~~~~~~~~~~~~^~~~~~~~~ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:34: error: expected member name or ';' after declaration specifiers typedef typename std::result_of::type type1; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/Meta.h:321:31: error: use of undeclared identifier 'type1' typedef typename remove_all::type type; ^ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:1: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Core:540: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:2: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/LU:47: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:3: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Cholesky:12: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Jacobi:29: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:3: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Cholesky:43: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:4: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/QR:15: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Householder:27: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:4: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/QR:48: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:5: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SVD:48: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:6: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Geometry:58: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:7: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Eigenvalues:58: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:26: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseCore:61: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseCore/TriangularSolver.h:273:13: warning: variable 'count' set but not used [-Wunused-but-set-variable] Index count = 0; ^ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:26: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseCore:66: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:27: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/OrderingMethods:71: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseCholesky:43: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseLU:33: /Users/ripley/R/Library/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] Index nsuper_et_post = 0; // Number of relaxed snodes in postordered etree ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:79:9: warning: variable 'nsuper_et' set but not used [-Wunused-but-set-variable] Index nsuper_et = 0; // Number of relaxed snodes in the original etree ^ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:32: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseQR:34: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:33: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/IterativeLinearSolvers:46: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:32: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/CholmodSupport:45: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:35: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/KroneckerProduct:34: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:39: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/Polynomials:135: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:40: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/SparseExtra:42: /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/src/SparseExtra/RandomSetter.h:257:26: warning: implicit conversion loses integer precision: 'Eigen::Index' (aka 'long') to 'Eigen::DenseCoeffsBase, 1>::Scalar' (aka 'int') [-Wshorten-64-to-32] positions[j] = count; ~ ^~~~~ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:40: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/SparseExtra:44: /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/src/SparseExtra/MarketIO.h:239:7: warning: variable 'count' set but not used [-Wunused-but-set-variable] int count = 0; ^ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:40: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/SparseExtra:51: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:52: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:602:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] return i; ~~~~~~ ^ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/SubMatrix.h:38:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] nc( col_range_.size() ), ~ ~~~~~~~~~~~^~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/SubMatrix.h:39:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] nr( row_range_.size() ) ~ ~~~~~~~~~~~^~~~~~ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:49: /Users/ripley/R/Library/Rcpp/include/Rcpp/Language.h:186:81: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] unary_call( Language call_, R_xlen_t index ) : call(call_), proxy(call_,index){} ~~~~~ ^~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/Language.h:207:101: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] binary_call( Language call_, R_xlen_t index1, R_xlen_t index2 ) : call(call_), proxy1(call_,index1), proxy2(call_,index2){} ~~~~~~ ^~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/Language.h:207:123: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] binary_call( Language call_, R_xlen_t index1, R_xlen_t index2 ) : call(call_), proxy1(call_,index1), proxy2(call_,index2){} ~~~~~~ ^~~~~~ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:57: /Users/ripley/R/Library/Rcpp/include/Rcpp/DataFrame.h:140:32: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] max_rows = Rf_xlength(*it); ~ ^~~~~~~~~~~~~~~ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:78: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/sugar.h:31: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/functions.h:42: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/sapply.h:36:19: error: no template named 'result_of' in namespace 'std'; did you mean 'traits::result_of'? typedef typename ::std::result_of::type type; ^~~~~~~~~~~~~~~~ traits::result_of /Users/ripley/R/Library/Rcpp/include/Rcpp/traits/result_of.h:30:8: note: 'traits::result_of' declared here struct result_of{ ^ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:78: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/sugar.h:31: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/functions.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/head.h:34:68: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] Head( const VEC_TYPE& object_, R_xlen_t n_ ) : object(object_), n(n_) { ~^~ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:39:32: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'typename storage_type<13>::type' (aka 'int') [-Wshorten-64-to-32] dd[0] = dd[1] = f->n; ~ ~~~^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:48:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'typename storage_type<13>::type' (aka 'int') [-Wshorten-64-to-32] tt[4] = f->maxcsize; tt[5] = f->maxesize; ~ ~~~^~~~~~~~ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:48:49: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'typename storage_type<13>::type' (aka 'int') [-Wshorten-64-to-32] tt[4] = f->maxcsize; tt[5] = f->maxesize; ~ ~~~^~~~~~~~ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:101:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] d[0] = m; ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:102:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] d[1] = n; ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:169:71: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] Eigen_Matrix_Exporter(SEXP x) : vec(x), d_ncol(1), d_nrow(Rf_xlength(x)) { ~^~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:264:58: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] Exporter(SEXP x) : vec(x), d_ncol(1), d_nrow(Rf_xlength(x)) { ~^~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:284:58: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] Exporter(SEXP x) : vec(x), d_ncol(1), d_nrow(Rf_xlength(x)) { ~^~~~~~~~~~~~~ In file included from morfCpp.cpp:11: ./DataChar.h:26:12: warning: unused variable 'col_permuted' [-Wunused-variable] size_t col_permuted = col; ^ ./DataChar.h:46:31: warning: implicit conversion turns floating-point number into integer: 'double' to 'std::vector::value_type' (aka 'char') [-Wfloat-conversion] x[col * num_rows + row] = value; ~ ^~~~~ ./DataChar.h:50:31: warning: implicit conversion turns floating-point number into integer: 'double' to 'std::vector::value_type' (aka 'char') [-Wfloat-conversion] y[col * num_rows + row] = value; ~ ^~~~~ In file included from morfCpp.cpp:12: ./DataRcpp.h:31:12: warning: unused variable 'col_permuted' [-Wunused-variable] size_t col_permuted = col; ^ In file included from morfCpp.cpp:13: ./DataFloat.h:26:12: warning: unused variable 'col_permuted' [-Wunused-variable] size_t col_permuted = col; ^ ./DataFloat.h:46:31: warning: implicit conversion loses floating-point precision: 'double' to 'std::vector::value_type' (aka 'float') [-Wimplicit-float-conversion] x[col * num_rows + row] = value; ~ ^~~~~ ./DataFloat.h:50:31: warning: implicit conversion loses floating-point precision: 'double' to 'std::vector::value_type' (aka 'float') [-Wimplicit-float-conversion] y[col * num_rows + row] = value; ~ ^~~~~ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:58: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:141:83: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] return static_cast< const Vector* >( this )->operator[]( offset( i, j ) ) ; ~~~~~~ ^ ./DataRcpp.h:37:13: note: in instantiation of member function 'Rcpp::Matrix<14>::operator()' requested here return x(row, col); ^ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:58: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:141:80: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] return static_cast< const Vector* >( this )->operator[]( offset( i, j ) ) ; ~~~~~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:138:76: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] return static_cast< Vector* >( this )->operator[]( offset( i, j ) ) ; ~~~~~~ ^ ./DataRcpp.h:50:6: note: in instantiation of member function 'Rcpp::Matrix<14>::operator()' requested here x(row, col) = value; ^ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:58: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:138:73: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] return static_cast< Vector* >( this )->operator[]( offset( i, j ) ) ; ~~~~~~ ^ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:1: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Core:462: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:905:102: warning: bitwise operation between different enumeration types ('Eigen::PlainObjectBase>::(unnamed enum at /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:102:5)' and 'Eigen::StorageOptions') is deprecated [-Wdeprecated-anon-enum-enum-conversion] EIGEN_STATIC_ASSERT((EIGEN_IMPLIES(MaxRowsAtCompileTime==1 && MaxColsAtCompileTime!=1, (Options&RowMajor)==RowMajor) ~~~~~~~^~~~~~~~~ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/Macros.h:954:38: note: expanded from macro 'EIGEN_IMPLIES' #define EIGEN_IMPLIES(a,b) (!(a) || (b)) ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/StaticAssert.h:33:54: note: expanded from macro 'EIGEN_STATIC_ASSERT' #define EIGEN_STATIC_ASSERT(X,MSG) static_assert(X,#MSG); ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/Map.h:145:30: note: in instantiation of member function 'Eigen::PlainObjectBase>::_check_template_params' requested here PlainObjectType::Base::_check_template_params(); ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseCore/SparseCompressedBase.h:51:73: note: in instantiation of member function 'Eigen::Map, 0>::Map' requested here const Eigen::Map innerNonZeros() const { return Eigen::Map(innerNonZeroPtr(), isCompressed()?0:derived().outerSize()); } ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseCore/SparseCompressedBase.h:65:16: note: in instantiation of member function 'Eigen::SparseCompressedBase>::innerNonZeros' requested here return innerNonZeros().sum(); ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseCore/SparseMatrix.h:1139:8: note: in instantiation of member function 'Eigen::SparseCompressedBase>::nonZeros' requested here if(nonZeros()==0) ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseCore/SparseMatrix.h:217:16: note: in instantiation of member function 'Eigen::SparseMatrix::insert' requested here return insert(row,col); ^ ./DataSparse.h:44:7: note: in instantiation of member function 'Eigen::SparseMatrix::coeffRef' requested here x.coeffRef(row, col) = value; ^ In file included from morfCpp.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:1: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Core:462: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:906:102: warning: bitwise operation between different enumeration types ('Eigen::PlainObjectBase>::(unnamed enum at /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:102:5)' and 'Eigen::StorageOptions') is deprecated [-Wdeprecated-anon-enum-enum-conversion] && EIGEN_IMPLIES(MaxColsAtCompileTime==1 && MaxRowsAtCompileTime!=1, (Options&RowMajor)==0) ~~~~~~~^~~~~~~~~ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/Macros.h:954:38: note: expanded from macro 'EIGEN_IMPLIES' #define EIGEN_IMPLIES(a,b) (!(a) || (b)) ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/StaticAssert.h:33:54: note: expanded from macro 'EIGEN_STATIC_ASSERT' #define EIGEN_STATIC_ASSERT(X,MSG) static_assert(X,#MSG); ^ 54 warnings and 4 errors generated. make[2]: *** [morfCpp.o] Error 1 clang++ -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppEigen/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -mmacosx-version-min=12.0 -c utility.cpp -o utility.o utility.cpp:154:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] size_t j = i + distribution(random_number_generator) * (max - i); ~ ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utility.cpp:176:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] size_t j = i + distribution(random_number_generator) * (max - skip.size() - i); ~ ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utility.cpp:350:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] + uintToString(max_level_count) + " levels allowed on this system."; ~~~~~~~~~~~~ ^~~~~~~~~~~~~~~ 3 warnings generated. clang++ -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppEigen/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -mmacosx-version-min=12.0 -c utilityRcpp.cpp -o utilityRcpp.o In file included from utilityRcpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/R-devel/include/R.h:71: /Users/ripley/R/R-devel/include/R_ext/Complex.h:60:5: warning: anonymous structs are a GNU extension [-Wgnu-anonymous-struct] struct { ^ /Users/ripley/R/R-devel/include/R_ext/Complex.h:64:12: warning: '_Complex' is a C99 extension [-Wc99-extensions] double _Complex private_data_c; ^ In file included from utilityRcpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:78: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/sugar.h:31: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/functions.h:42: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/sapply.h:36:19: error: no template named 'result_of' in namespace 'std'; did you mean 'traits::result_of'? typedef typename ::std::result_of::type type; ^~~~~~~~~~~~~~~~ traits::result_of /Users/ripley/R/Library/Rcpp/include/Rcpp/traits/result_of.h:30:8: note: 'traits::result_of' declared here struct result_of{ ^ In file included from utilityRcpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:78: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/sugar.h:31: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/functions.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/head.h:34:68: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] Head( const VEC_TYPE& object_, R_xlen_t n_ ) : object(object_), n(n_) { ~^~ utilityRcpp.cpp:9:81: warning: implicit conversion loses integer precision: 'long' to 'typename storage_type<13>::type' (aka 'int') [-Wshorten-64-to-32] result[i] = std::lower_bound(reference.begin(), reference.end(), values[i]) - reference.begin(); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ utilityRcpp.cpp:51:42: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] rnd = j - 1 + Rcpp::sample(k - j, 1, false)[0]; ~~~~ ~~^~~ In file included from utilityRcpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:58: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:138:76: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] return static_cast< Vector* >( this )->operator[]( offset( i, j ) ) ; ~~~~~~ ^ utilityRcpp.cpp:22:13: note: in instantiation of member function 'Rcpp::Matrix<14>::operator()' requested here result(j, i) = NA_REAL; ^ In file included from utilityRcpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:58: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:138:73: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] return static_cast< Vector* >( this )->operator[]( offset( i, j ) ) ; ~~~~~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:138:76: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] return static_cast< Vector* >( this )->operator[]( offset( i, j ) ) ; ~~~~~~ ^ utilityRcpp.cpp:28:87: note: in instantiation of member function 'Rcpp::Matrix<13>::operator()' requested here std::sort(std::begin(idx), std::end(idx), [&](size_t j1, size_t j2) {return groups(j1, i) < groups(j2, i);}); ^ In file included from utilityRcpp.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:58: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:138:73: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] return static_cast< Vector* >( this )->operator[]( offset( i, j ) ) ; ~~~~~~ ^ 9 warnings and 1 error generated. make[2]: *** [utilityRcpp.o] Error 1 make[2]: Target `all' not remade because of errors. ERROR: compilation failed for package ‘morf’ * removing ‘/Users/ripley/R/packages/tests-devel/morf.Rcheck/morf’