* installing *source* package ‘cpp11armadillotest’ ... ** using staged installation ** libs using C++ compiler: ‘Debian clang version 18.1.5 (2)’ clang++-18 -std=gnu++17 -I"/home/hornik/tmp/R/include" -DNDEBUG -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/cpp11/include' -I'/srv/hornik/tmp/CRAN/Library/cpp11armadillo/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c 01_eigen.cpp -o 01_eigen.o In file included from 01_eigen.cpp:1: In file included from ./00_main.h:1: In file included from /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo.hpp:29: In file included from /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/r_compatible_messages.hpp:1: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/cpp11/include/cpp11.hpp:3: /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/cpp11/include/cpp11/R.hpp:11:9: warning: 'R_NO_REMAP' macro redefined [-Wmacro-redefined] 11 | #define R_NO_REMAP | ^ :4:9: note: previous definition is here 4 | #define R_NO_REMAP 1 | ^ 1 warning generated. clang++-18 -std=gnu++17 -I"/home/hornik/tmp/R/include" -DNDEBUG -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/cpp11/include' -I'/srv/hornik/tmp/CRAN/Library/cpp11armadillo/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c 01_ols.cpp -o 01_ols.o In file included from 01_ols.cpp:1: In file included from ./00_main.h:1: In file included from /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo.hpp:29: In file included from /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/r_compatible_messages.hpp:1: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/cpp11/include/cpp11.hpp:3: /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/cpp11/include/cpp11/R.hpp:11:9: warning: 'R_NO_REMAP' macro redefined [-Wmacro-redefined] 11 | #define R_NO_REMAP | ^ :4:9: note: previous definition is here 4 | #define R_NO_REMAP 1 | ^ 1 warning generated. clang++-18 -std=gnu++17 -I"/home/hornik/tmp/R/include" -DNDEBUG -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/cpp11/include' -I'/srv/hornik/tmp/CRAN/Library/cpp11armadillo/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c 03_leontief.cpp -o 03_leontief.o In file included from 03_leontief.cpp:1: In file included from ./00_main.h:1: In file included from /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo.hpp:29: In file included from /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/r_compatible_messages.hpp:1: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/cpp11/include/cpp11.hpp:3: /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/cpp11/include/cpp11/R.hpp:11:9: warning: 'R_NO_REMAP' macro redefined [-Wmacro-redefined] 11 | #define R_NO_REMAP | ^ :4:9: note: previous definition is here 4 | #define R_NO_REMAP 1 | ^ 1 warning generated. clang++-18 -std=gnu++17 -I"/home/hornik/tmp/R/include" -DNDEBUG -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/cpp11/include' -I'/srv/hornik/tmp/CRAN/Library/cpp11armadillo/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c 04_capm.cpp -o 04_capm.o In file included from 04_capm.cpp:1: In file included from ./00_main.h:1: In file included from /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo.hpp:29: In file included from /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/r_compatible_messages.hpp:1: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/cpp11/include/cpp11.hpp:3: /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/cpp11/include/cpp11/R.hpp:11:9: warning: 'R_NO_REMAP' macro redefined [-Wmacro-redefined] 11 | #define R_NO_REMAP | ^ :4:9: note: previous definition is here 4 | #define R_NO_REMAP 1 | ^ 1 warning generated. clang++-18 -std=gnu++17 -I"/home/hornik/tmp/R/include" -DNDEBUG -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/cpp11/include' -I'/srv/hornik/tmp/CRAN/Library/cpp11armadillo/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c 05_chol.cpp -o 05_chol.o In file included from 05_chol.cpp:1: In file included from ./00_main.h:1: In file included from /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo.hpp:29: In file included from /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/r_compatible_messages.hpp:1: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/cpp11/include/cpp11.hpp:3: /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/cpp11/include/cpp11/R.hpp:11:9: warning: 'R_NO_REMAP' macro redefined [-Wmacro-redefined] 11 | #define R_NO_REMAP | ^ :4:9: note: previous definition is here 4 | #define R_NO_REMAP 1 | ^ 1 warning generated. clang++-18 -std=gnu++17 -I"/home/hornik/tmp/R/include" -DNDEBUG -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/cpp11/include' -I'/srv/hornik/tmp/CRAN/Library/cpp11armadillo/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c 06_qr.cpp -o 06_qr.o In file included from 06_qr.cpp:1: In file included from ./00_main.h:1: In file included from /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo.hpp:29: In file included from /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/r_compatible_messages.hpp:1: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/cpp11/include/cpp11.hpp:3: /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/cpp11/include/cpp11/R.hpp:11:9: warning: 'R_NO_REMAP' macro redefined [-Wmacro-redefined] 11 | #define R_NO_REMAP | ^ :4:9: note: previous definition is here 4 | #define R_NO_REMAP 1 | ^ 1 warning generated. clang++-18 -std=gnu++17 -I"/home/hornik/tmp/R/include" -DNDEBUG -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/cpp11/include' -I'/srv/hornik/tmp/CRAN/Library/cpp11armadillo/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c 07_typedefs.cpp -o 07_typedefs.o In file included from 07_typedefs.cpp:1: In file included from ./00_main.h:1: In file included from /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo.hpp:29: In file included from /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/r_compatible_messages.hpp:1: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/cpp11/include/cpp11.hpp:3: /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/cpp11/include/cpp11/R.hpp:11:9: warning: 'R_NO_REMAP' macro redefined [-Wmacro-redefined] 11 | #define R_NO_REMAP | ^ :4:9: note: previous definition is here 4 | #define R_NO_REMAP 1 | ^ 07_typedefs.cpp:16:12: error: use of undeclared identifier 'as_uvec'; did you mean 'sp_uvec'? 16 | uvec y = as_uvec(x); | ^ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/typedef_mat.hpp:100:22: note: 'sp_uvec' declared here 100 | typedef SpCol sp_uvec; | ^ 07_typedefs.cpp:17:10: error: no matching function for call to 'as_integers' 17 | return as_integers(y); | ^~~~~~~~~~~ /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/cpp11/include/cpp11/integers.hpp:152:17: note: candidate function not viable: no known conversion from 'uvec' (aka 'Col') to 'SEXP' (aka 'SEXPREC *') for 1st argument 152 | inline integers as_integers(SEXP x) { | ^ ~~~~~~ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/cpp11armadillo/vectors.hpp:65:17: note: candidate function not viable: no known conversion from 'Col' to 'const Col' for 1st argument 65 | inline integers as_integers(const Col& x) { | ^ ~~~~~~~~~~~~~~~~~ 07_typedefs.cpp:31:21: error: use of undeclared identifier 'as_SpMat'; did you mean 'as_Mat'? 31 | SpMat y = as_SpMat(x); | ^~~~~~~~ | as_Mat /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/cpp11armadillo/matrices.hpp:40:20: note: 'as_Mat' declared here 40 | inline Mat as_Mat(const doubles_matrix<>& x) { | ^ 07_typedefs.cpp:31:17: error: no viable conversion from 'Mat' to 'SpMat' 31 | SpMat y = as_SpMat(x); | ^ ~~~~~~~~~~~ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/SpMat_bones.hpp:88:10: note: candidate constructor not viable: no known conversion from 'Mat' to 'const char *' for 1st argument 88 | inline SpMat(const char* text); | ^ ~~~~~~~~~~~~~~~~ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/SpMat_bones.hpp:90:10: note: candidate constructor not viable: no known conversion from 'Mat' to 'const std::string &' (aka 'const basic_string &') for 1st argument 90 | inline SpMat(const std::string& text); | ^ ~~~~~~~~~~~~~~~~~~~~~~~ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/SpMat_bones.hpp:92:10: note: candidate constructor not viable: no known conversion from 'Mat' to 'const SpMat &' for 1st argument 92 | inline SpMat(const SpMat& x); | ^ ~~~~~~~~~~~~~~~~~~ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/SpMat_bones.hpp:94:10: note: candidate constructor not viable: no known conversion from 'Mat' to 'SpMat &&' for 1st argument 94 | inline SpMat(SpMat&& m); | ^ ~~~~~~~~~ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/SpMat_bones.hpp:170:10: note: candidate constructor not viable: no known conversion from 'Mat' to 'const SpSubview &' for 1st argument 170 | inline SpMat(const SpSubview& X); | ^ ~~~~~~~~~~~~~~~~~~~~~~ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/SpMat_bones.hpp:193:10: note: candidate constructor not viable: no known conversion from 'Mat' to 'const spdiagview &' for 1st argument 193 | inline SpMat(const spdiagview& X); | ^ ~~~~~~~~~~~~~~~~~~~~~~~ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/SpMat_bones.hpp:179:10: note: candidate template ignored: could not match 'SpSubview_col_list' against 'Mat' 179 | inline SpMat(const SpSubview_col_list& X); | ^ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/SpMat_bones.hpp:203:10: note: candidate template ignored: could not match 'SpOp' against 'Mat' 203 | inline SpMat(const SpOp& X); | ^ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/SpMat_bones.hpp:219:10: note: candidate template ignored: could not match 'SpGlue' against 'Mat' 219 | inline SpMat(const SpGlue& X); | ^ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/SpMat_bones.hpp:235:10: note: candidate template ignored: could not match 'mtSpOp' against 'Mat' 235 | inline SpMat(const mtSpOp& X); | ^ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/SpMat_bones.hpp:251:10: note: candidate template ignored: could not match 'mtSpGlue' against 'Mat' 251 | inline SpMat(const mtSpGlue& X); | ^ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/SpMat_bones.hpp:86:19: note: explicit constructor is not a candidate 86 | inline explicit SpMat(const SizeMat& s); | ^ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/SpMat_bones.hpp:97:19: note: explicit constructor is not a candidate 97 | inline explicit SpMat(const MapMat& x); | ^ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/SpMat_bones.hpp:133:19: note: explicit constructor is not a candidate 133 | inline explicit SpMat(const Base& m); | ^ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/SpMat_bones.hpp:148:19: note: explicit constructor is not a candidate 148 | inline explicit SpMat(const Op& expr); | ^ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/SpMat_bones.hpp:164:19: note: explicit constructor is not a candidate 164 | inline explicit SpMat(const SpToDOp& expr); | ^ 07_typedefs.cpp:32:10: error: no matching function for call to 'as_doubles_matrix' 32 | return as_doubles_matrix(y); | ^~~~~~~~~~~~~~~~~ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/cpp11armadillo/matrices.hpp:80:25: note: candidate function not viable: no known conversion from 'SpMat' to 'const Mat' for 1st argument 80 | inline doubles_matrix<> as_doubles_matrix(const Mat& A) { | ^ ~~~~~~~~~~~~~~~~~~~~ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/cpp11armadillo/vectors.hpp:90:25: note: candidate function not viable: no known conversion from 'SpMat' to 'const Col' for 1st argument 90 | inline doubles_matrix<> as_doubles_matrix(const Col& x) { | ^ ~~~~~~~~~~~~~~~~~~~~ 07_typedefs.cpp:36:18: error: use of undeclared identifier 'as_SpMat'; did you mean 'as_Mat'? 36 | SpMat y = as_SpMat(x); | ^~~~~~~~ | as_Mat /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/cpp11armadillo/matrices.hpp:44:17: note: 'as_Mat' declared here 44 | inline Mat as_Mat(const integers_matrix<>& x) { | ^ 07_typedefs.cpp:36:14: error: no viable conversion from 'Mat' to 'SpMat' 36 | SpMat y = as_SpMat(x); | ^ ~~~~~~~~~~~ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/SpMat_bones.hpp:88:10: note: candidate constructor not viable: no known conversion from 'Mat' to 'const char *' for 1st argument 88 | inline SpMat(const char* text); | ^ ~~~~~~~~~~~~~~~~ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/SpMat_bones.hpp:90:10: note: candidate constructor not viable: no known conversion from 'Mat' to 'const std::string &' (aka 'const basic_string &') for 1st argument 90 | inline SpMat(const std::string& text); | ^ ~~~~~~~~~~~~~~~~~~~~~~~ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/SpMat_bones.hpp:92:10: note: candidate constructor not viable: no known conversion from 'Mat' to 'const SpMat &' for 1st argument 92 | inline SpMat(const SpMat& x); | ^ ~~~~~~~~~~~~~~~~~~ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/SpMat_bones.hpp:94:10: note: candidate constructor not viable: no known conversion from 'Mat' to 'SpMat &&' for 1st argument 94 | inline SpMat(SpMat&& m); | ^ ~~~~~~~~~ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/SpMat_bones.hpp:170:10: note: candidate constructor not viable: no known conversion from 'Mat' to 'const SpSubview &' for 1st argument 170 | inline SpMat(const SpSubview& X); | ^ ~~~~~~~~~~~~~~~~~~~~~~ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/SpMat_bones.hpp:193:10: note: candidate constructor not viable: no known conversion from 'Mat' to 'const spdiagview &' for 1st argument 193 | inline SpMat(const spdiagview& X); | ^ ~~~~~~~~~~~~~~~~~~~~~~~ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/SpMat_bones.hpp:179:10: note: candidate template ignored: could not match 'SpSubview_col_list' against 'Mat' 179 | inline SpMat(const SpSubview_col_list& X); | ^ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/SpMat_bones.hpp:203:10: note: candidate template ignored: could not match 'SpOp' against 'Mat' 203 | inline SpMat(const SpOp& X); | ^ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/SpMat_bones.hpp:219:10: note: candidate template ignored: could not match 'SpGlue' against 'Mat' 219 | inline SpMat(const SpGlue& X); | ^ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/SpMat_bones.hpp:235:10: note: candidate template ignored: could not match 'mtSpOp' against 'Mat' 235 | inline SpMat(const mtSpOp& X); | ^ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/SpMat_bones.hpp:251:10: note: candidate template ignored: could not match 'mtSpGlue' against 'Mat' 251 | inline SpMat(const mtSpGlue& X); | ^ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/SpMat_bones.hpp:86:19: note: explicit constructor is not a candidate 86 | inline explicit SpMat(const SizeMat& s); | ^ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/SpMat_bones.hpp:97:19: note: explicit constructor is not a candidate 97 | inline explicit SpMat(const MapMat& x); | ^ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/SpMat_bones.hpp:133:19: note: explicit constructor is not a candidate 133 | inline explicit SpMat(const Base& m); | ^ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/SpMat_bones.hpp:148:19: note: explicit constructor is not a candidate 148 | inline explicit SpMat(const Op& expr); | ^ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/armadillo/SpMat_bones.hpp:164:19: note: explicit constructor is not a candidate 164 | inline explicit SpMat(const SpToDOp& expr); | ^ 07_typedefs.cpp:37:10: error: no matching function for call to 'as_integers_matrix' 37 | return as_integers_matrix(y); | ^~~~~~~~~~~~~~~~~~ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/cpp11armadillo/matrices.hpp:84:26: note: candidate function not viable: no known conversion from 'SpMat' to 'const Mat' for 1st argument 84 | inline integers_matrix<> as_integers_matrix(const Mat& A) { | ^ ~~~~~~~~~~~~~~~~~ /srv/hornik/tmp/CRAN/Library/cpp11armadillo/include/cpp11armadillo/vectors.hpp:94:26: note: candidate function not viable: no known conversion from 'SpMat' to 'const Col' for 1st argument 94 | inline integers_matrix<> as_integers_matrix(const Col& x) { | ^ ~~~~~~~~~~~~~~~~~ 1 warning and 8 errors generated. make: *** [/home/hornik/tmp/R/etc/Makeconf:202: 07_typedefs.o] Error 1 ERROR: compilation failed for package ‘cpp11armadillotest’ * removing ‘/srv/hornik/tmp/CRAN/cpp11armadillotest.Rcheck/cpp11armadillotest’