* installing *source* package ‘glmtlp’ ... ** using staged installation ** libs using C++ compiler: ‘Debian clang version 18.1.8 (11)’ using C++17 clang++-18 -std=gnu++17 -I"/home/hornik/tmp/R-d-clang-18/include" -DNDEBUG -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -DSTRICT_R_HEADERS=1 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c algo.cc -o algo.o clang++-18 -std=gnu++17 -I"/home/hornik/tmp/R-d-clang-18/include" -DNDEBUG -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -DSTRICT_R_HEADERS=1 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c glmtlp_r_init.cc -o glmtlp_r_init.o glmtlp_r_init.cc:46:17: error: use of undeclared identifier 'nrows' 46 | int n = nrows(X_mat); | ^ glmtlp_r_init.cc:47:17: error: use of undeclared identifier 'ncols' 47 | int p = ncols(X_mat); | ^ glmtlp_r_init.cc:48:23: error: use of undeclared identifier 'length' 48 | int nlambda = length(lambda_vec); | ^ glmtlp_r_init.cc:51:34: error: use of undeclared identifier 'allocVector'; did you mean 'Rf_allocVector'? 51 | SEXP intercept = PROTECT(allocVector(REALSXP, nlambda)); | ^~~~~~~~~~~ | Rf_allocVector /home/hornik/tmp/R-d-clang-18/include/Rinternals.h:388:31: note: expanded from macro 'PROTECT' 388 | #define PROTECT(s) Rf_protect(s) | ^ /home/hornik/tmp/R-d-clang-18/include/Rinternals.h:1078:10: note: 'Rf_allocVector' declared here 1078 | SEXP Rf_allocVector(SEXPTYPE, R_xlen_t); | ^ glmtlp_r_init.cc:52:29: error: use of undeclared identifier 'allocVector'; did you mean 'Rf_allocVector'? 52 | SEXP beta = PROTECT(allocVector(REALSXP, p * nlambda)); | ^~~~~~~~~~~ | Rf_allocVector /home/hornik/tmp/R-d-clang-18/include/Rinternals.h:388:31: note: expanded from macro 'PROTECT' 388 | #define PROTECT(s) Rf_protect(s) | ^ /home/hornik/tmp/R-d-clang-18/include/Rinternals.h:1078:10: note: 'Rf_allocVector' declared here 1078 | SEXP Rf_allocVector(SEXPTYPE, R_xlen_t); | ^ glmtlp_r_init.cc:53:33: error: use of undeclared identifier 'allocVector'; did you mean 'Rf_allocVector'? 53 | SEXP deviance = PROTECT(allocVector(REALSXP, nlambda)); | ^~~~~~~~~~~ | Rf_allocVector /home/hornik/tmp/R-d-clang-18/include/Rinternals.h:388:31: note: expanded from macro 'PROTECT' 388 | #define PROTECT(s) Rf_protect(s) | ^ /home/hornik/tmp/R-d-clang-18/include/Rinternals.h:1078:10: note: 'Rf_allocVector' declared here 1078 | SEXP Rf_allocVector(SEXPTYPE, R_xlen_t); | ^ glmtlp_r_init.cc:93:31: error: use of undeclared identifier 'allocVector'; did you mean 'Rf_allocVector'? 93 | SEXP result = PROTECT(allocVector(VECSXP, 3)); | ^~~~~~~~~~~ | Rf_allocVector /home/hornik/tmp/R-d-clang-18/include/Rinternals.h:388:31: note: expanded from macro 'PROTECT' 388 | #define PROTECT(s) Rf_protect(s) | ^ /home/hornik/tmp/R-d-clang-18/include/Rinternals.h:1078:10: note: 'Rf_allocVector' declared here 1078 | SEXP Rf_allocVector(SEXPTYPE, R_xlen_t); | ^ glmtlp_r_init.cc:124:17: error: use of undeclared identifier 'nrows' 124 | int n = nrows(X_mat); | ^ glmtlp_r_init.cc:125:17: error: use of undeclared identifier 'ncols' 125 | int p = ncols(X_mat); | ^ glmtlp_r_init.cc:126:23: error: use of undeclared identifier 'length' 126 | int nlambda = length(lambda_vec); | ^ glmtlp_r_init.cc:129:34: error: use of undeclared identifier 'allocVector'; did you mean 'Rf_allocVector'? 129 | SEXP intercept = PROTECT(allocVector(REALSXP, nlambda)); | ^~~~~~~~~~~ | Rf_allocVector /home/hornik/tmp/R-d-clang-18/include/Rinternals.h:388:31: note: expanded from macro 'PROTECT' 388 | #define PROTECT(s) Rf_protect(s) | ^ /home/hornik/tmp/R-d-clang-18/include/Rinternals.h:1078:10: note: 'Rf_allocVector' declared here 1078 | SEXP Rf_allocVector(SEXPTYPE, R_xlen_t); | ^ glmtlp_r_init.cc:130:29: error: use of undeclared identifier 'allocVector'; did you mean 'Rf_allocVector'? 130 | SEXP beta = PROTECT(allocVector(REALSXP, p * nlambda)); | ^~~~~~~~~~~ | Rf_allocVector /home/hornik/tmp/R-d-clang-18/include/Rinternals.h:388:31: note: expanded from macro 'PROTECT' 388 | #define PROTECT(s) Rf_protect(s) | ^ /home/hornik/tmp/R-d-clang-18/include/Rinternals.h:1078:10: note: 'Rf_allocVector' declared here 1078 | SEXP Rf_allocVector(SEXPTYPE, R_xlen_t); | ^ glmtlp_r_init.cc:131:33: error: use of undeclared identifier 'allocVector'; did you mean 'Rf_allocVector'? 131 | SEXP deviance = PROTECT(allocVector(REALSXP, nlambda)); | ^~~~~~~~~~~ | Rf_allocVector /home/hornik/tmp/R-d-clang-18/include/Rinternals.h:388:31: note: expanded from macro 'PROTECT' 388 | #define PROTECT(s) Rf_protect(s) | ^ /home/hornik/tmp/R-d-clang-18/include/Rinternals.h:1078:10: note: 'Rf_allocVector' declared here 1078 | SEXP Rf_allocVector(SEXPTYPE, R_xlen_t); | ^ glmtlp_r_init.cc:174:31: error: use of undeclared identifier 'allocVector'; did you mean 'Rf_allocVector'? 174 | SEXP result = PROTECT(allocVector(VECSXP, 3)); | ^~~~~~~~~~~ | Rf_allocVector /home/hornik/tmp/R-d-clang-18/include/Rinternals.h:388:31: note: expanded from macro 'PROTECT' 388 | #define PROTECT(s) Rf_protect(s) | ^ /home/hornik/tmp/R-d-clang-18/include/Rinternals.h:1078:10: note: 'Rf_allocVector' declared here 1078 | SEXP Rf_allocVector(SEXPTYPE, R_xlen_t); | ^ glmtlp_r_init.cc:206:17: error: use of undeclared identifier 'nrows' 206 | int n = nrows(X_mat); | ^ glmtlp_r_init.cc:207:17: error: use of undeclared identifier 'ncols' 207 | int p = ncols(X_mat); | ^ glmtlp_r_init.cc:208:22: error: use of undeclared identifier 'length' 208 | int nkappa = length(kappa_vec); | ^ glmtlp_r_init.cc:209:23: error: use of undeclared identifier 'length' 209 | int nlambda = length(lambda_vec); | ^ glmtlp_r_init.cc:212:34: error: use of undeclared identifier 'allocVector'; did you mean 'Rf_allocVector'? 212 | SEXP intercept = PROTECT(allocVector(REALSXP, nkappa)); | ^~~~~~~~~~~ | Rf_allocVector /home/hornik/tmp/R-d-clang-18/include/Rinternals.h:388:31: note: expanded from macro 'PROTECT' 388 | #define PROTECT(s) Rf_protect(s) | ^ /home/hornik/tmp/R-d-clang-18/include/Rinternals.h:1078:10: note: 'Rf_allocVector' declared here 1078 | SEXP Rf_allocVector(SEXPTYPE, R_xlen_t); | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make: *** [/home/hornik/tmp/R-d-clang-18/etc/Makeconf:200: glmtlp_r_init.o] Error 1 ERROR: compilation failed for package ‘glmtlp’ * removing ‘/srv/hornik/tmp/CRAN_pretest/glmtlp.Rcheck/glmtlp’