* installing *source* package ‘bWGR’ ... ** using staged installation ** libs using C++ compiler: ‘Debian clang version 17.0.6 (5)’ clang++-17 -std=gnu++17 -I"/home/hornik/tmp/R-d-clang-17/include" -DNDEBUG -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include' -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppEigen/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c Rcpp20230423.cpp -o Rcpp20230423.o In file included from Rcpp20230423.cpp:1: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include/Rcpp.h:27: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include/RcppCommon.h:30: /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include/Rcpp/r/headers.h:26:9: warning: 'R_NO_REMAP' macro redefined [-Wmacro-redefined] 26 | #define R_NO_REMAP | ^ :4:9: note: previous definition is here 4 | #define R_NO_REMAP 1 | ^ Rcpp20230423.cpp:1881:39: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 1881 | if( (i>j) && (blk[i]==blk[j]) && (abs(row[i]-row[j])<=rN) && (abs(col[i]-col[j])<=cN) ){ | ^ Rcpp20230423.cpp:1881:39: note: use function 'std::abs' instead 1881 | if( (i>j) && (blk[i]==blk[j]) && (abs(row[i]-row[j])<=rN) && (abs(col[i]-col[j])<=cN) ){ | ^~~ | std::abs Rcpp20230423.cpp:1881:67: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 1881 | if( (i>j) && (blk[i]==blk[j]) && (abs(row[i]-row[j])<=rN) && (abs(col[i]-col[j])<=cN) ){ | ^ Rcpp20230423.cpp:1881:67: note: use function 'std::abs' instead 1881 | if( (i>j) && (blk[i]==blk[j]) && (abs(row[i]-row[j])<=rN) && (abs(col[i]-col[j])<=cN) ){ | ^~~ | std::abs 3 warnings generated. clang++-17 -std=gnu++17 -I"/home/hornik/tmp/R-d-clang-17/include" -DNDEBUG -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include' -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppEigen/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c RcppEigen20230423.cpp -o RcppEigen20230423.o In file included from RcppEigen20230423.cpp:3: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppEigen/include/RcppEigen.h:25: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppEigen/include/RcppEigenForward.h:26: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include/RcppCommon.h:30: /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include/Rcpp/r/headers.h:26:9: warning: 'R_NO_REMAP' macro redefined [-Wmacro-redefined] 26 | #define R_NO_REMAP | ^ :4:9: note: previous definition is here 4 | #define R_NO_REMAP 1 | ^ In file included from RcppEigen20230423.cpp:3: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppEigen/include/RcppEigen.h:25: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppEigen/include/RcppEigenForward.h:29: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppEigen/include/Eigen/Sparse:26: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppEigen/include/Eigen/SparseCore:61: /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppEigen/include/Eigen/src/SparseCore/TriangularSolver.h:273:13: warning: variable 'count' set but not used [-Wunused-but-set-variable] 273 | Index count = 0; | ^ In file included from RcppEigen20230423.cpp:3: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppEigen/include/RcppEigen.h:25: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppEigen/include/RcppEigenForward.h:29: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppEigen/include/Eigen/Sparse:29: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppEigen/include/Eigen/SparseLU:35: /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/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] 78 | Index nsuper_et_post = 0; // Number of relaxed snodes in postordered etree | ^ /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:79:9: warning: variable 'nsuper_et' set but not used [-Wunused-but-set-variable] 79 | Index nsuper_et = 0; // Number of relaxed snodes in the original etree | ^ In file included from RcppEigen20230423.cpp:3: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppEigen/include/RcppEigen.h:25: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppEigen/include/RcppEigenForward.h:31: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppEigen/include/unsupported/Eigen/IterativeSolvers:46: /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppEigen/include/unsupported/Eigen/src/IterativeSolvers/IDRS.h:72:10: warning: variable 'replacements' set but not used [-Wunused-but-set-variable] 72 | Index replacements = 0; | ^ In file included from RcppEigen20230423.cpp:3: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppEigen/include/RcppEigen.h:25: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppEigen/include/RcppEigenForward.h:37: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppEigen/include/unsupported/Eigen/SparseExtra:45: /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppEigen/include/unsupported/Eigen/src/SparseExtra/MarketIO.h:246:7: warning: variable 'count' set but not used [-Wunused-but-set-variable] 246 | int count = 0; | ^ RcppEigen20230423.cpp:1593:65: warning: unused variable 'h2' [-Wunused-variable] 1593 | double ve = vy*0.5, vb1=(vy*0.5)/(MSx1), vb2=(vy*0.5)/(MSx2), h2=0.5; | ^~ RcppEigen20230423.cpp:1801:64: warning: unused variable 'h2' [-Wunused-variable] 1801 | float ve = vy*0.5, vb1=(vy*0.5)/(MSx1), vb2=(vy*0.5)/(MSx2), h2=0.5; | ^~ RcppEigen20230423.cpp:1961:20: warning: unused variable 'n' [-Wunused-variable] 1961 | int maxit = 100, n = X.rows(), p = X.cols(), numit = 0, J; | ^ RcppEigen20230423.cpp:2006:18: error: use of undeclared identifier 'k' 2006 | for(int i=0; i