* installing *source* package ‘glmtlp’ ... ** package ‘glmtlp’ successfully unpacked and MD5 sums checked ** using staged installation ** libs using C++ compiler: ‘g++-13 (GCC) 13.2.0’ make[2]: Entering directory '/data/gannet/ripley/R/packages/tests-noRemap/glmtlp/src' g++-13 -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I/usr/local/include -fpic -g -O2 -Wall -pedantic -mtune=native -Wno-ignored-attributes -Wno-parentheses -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -DR_NO_REMAP -c algo.cc -o algo.o g++-13 -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I/usr/local/include -fpic -g -O2 -Wall -pedantic -mtune=native -Wno-ignored-attributes -Wno-parentheses -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -DR_NO_REMAP -c glmtlp_r_init.cc -o glmtlp_r_init.o glmtlp_r_init.cc: In function 'SEXPREC* gaussian_l1(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)': glmtlp_r_init.cc:46:17: error: 'nrows' was not declared in this scope 46 | int n = nrows(X_mat); | ^~~~~ glmtlp_r_init.cc:47:17: error: 'ncols' was not declared in this scope 47 | int p = ncols(X_mat); | ^~~~~ glmtlp_r_init.cc:48:23: error: 'length' was not declared in this scope 48 | int nlambda = length(lambda_vec); | ^~~~~~ In file included from glmtlp_r_init.cc:22: glmtlp_r_init.cc:51:34: error: 'allocVector' was not declared in this scope; did you mean 'Rf_allocVector'? 51 | SEXP intercept = PROTECT(allocVector(REALSXP, nlambda)); | ^~~~~~~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ glmtlp_r_init.cc: In function 'SEXPREC* gaussian_tlp(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)': glmtlp_r_init.cc:124:17: error: 'nrows' was not declared in this scope 124 | int n = nrows(X_mat); | ^~~~~ glmtlp_r_init.cc:125:17: error: 'ncols' was not declared in this scope 125 | int p = ncols(X_mat); | ^~~~~ glmtlp_r_init.cc:126:23: error: 'length' was not declared in this scope 126 | int nlambda = length(lambda_vec); | ^~~~~~ glmtlp_r_init.cc:129:34: error: 'allocVector' was not declared in this scope; did you mean 'Rf_allocVector'? 129 | SEXP intercept = PROTECT(allocVector(REALSXP, nlambda)); | ^~~~~~~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ glmtlp_r_init.cc: In function 'SEXPREC* gaussian_l0(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)': glmtlp_r_init.cc:206:17: error: 'nrows' was not declared in this scope 206 | int n = nrows(X_mat); | ^~~~~ glmtlp_r_init.cc:207:17: error: 'ncols' was not declared in this scope 207 | int p = ncols(X_mat); | ^~~~~ glmtlp_r_init.cc:208:22: error: 'length' was not declared in this scope 208 | int nkappa = length(kappa_vec); | ^~~~~~ glmtlp_r_init.cc:212:34: error: 'allocVector' was not declared in this scope; did you mean 'Rf_allocVector'? 212 | SEXP intercept = PROTECT(allocVector(REALSXP, nkappa)); | ^~~~~~~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ glmtlp_r_init.cc: In function 'SEXPREC* logistic_l1(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)': glmtlp_r_init.cc:288:17: error: 'nrows' was not declared in this scope 288 | int n = nrows(X_mat); | ^~~~~ glmtlp_r_init.cc:289:17: error: 'ncols' was not declared in this scope 289 | int p = ncols(X_mat); | ^~~~~ glmtlp_r_init.cc:290:23: error: 'length' was not declared in this scope 290 | int nlambda = length(lambda_vec); | ^~~~~~ glmtlp_r_init.cc:293:34: error: 'allocVector' was not declared in this scope; did you mean 'Rf_allocVector'? 293 | SEXP intercept = PROTECT(allocVector(REALSXP, nlambda)); | ^~~~~~~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ glmtlp_r_init.cc: In function 'SEXPREC* logistic_tlp(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)': glmtlp_r_init.cc:369:17: error: 'nrows' was not declared in this scope 369 | int n = nrows(X_mat); | ^~~~~ glmtlp_r_init.cc:370:17: error: 'ncols' was not declared in this scope 370 | int p = ncols(X_mat); | ^~~~~ glmtlp_r_init.cc:371:23: error: 'length' was not declared in this scope 371 | int nlambda = length(lambda_vec); | ^~~~~~ glmtlp_r_init.cc:374:34: error: 'allocVector' was not declared in this scope; did you mean 'Rf_allocVector'? 374 | SEXP intercept = PROTECT(allocVector(REALSXP, nlambda)); | ^~~~~~~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ glmtlp_r_init.cc: In function 'SEXPREC* logistic_l0(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)': glmtlp_r_init.cc:455:17: error: 'nrows' was not declared in this scope 455 | int n = nrows(X_mat); | ^~~~~ glmtlp_r_init.cc:456:17: error: 'ncols' was not declared in this scope 456 | int p = ncols(X_mat); | ^~~~~ glmtlp_r_init.cc:457:22: error: 'length' was not declared in this scope 457 | int nkappa = length(kappa_vec); | ^~~~~~ glmtlp_r_init.cc:461:34: error: 'allocVector' was not declared in this scope; did you mean 'Rf_allocVector'? 461 | SEXP intercept = PROTECT(allocVector(REALSXP, nkappa)); | ^~~~~~~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ make[2]: *** [/data/gannet/ripley/R/R-devel/etc/Makeconf:200: glmtlp_r_init.o] Error 1 make[2]: Leaving directory '/data/gannet/ripley/R/packages/tests-noRemap/glmtlp/src' ERROR: compilation failed for package ‘glmtlp’ * removing ‘/data/gannet/ripley/R/packages/tests-noRemap/Libs/glmtlp-lib/glmtlp’ Command exited with non-zero status 1 Time 0:04.51, 3.50 + 0.40