* installing *source* package ‘CRF’ ... ** package ‘CRF’ 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/CRF/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 BP.cpp -o BP.o In file included from CRF.h:4, from BP.cpp:1: misc.h: In function 'void SetValues(SEXP, T*, T)': misc.h:24:23: error: there are no arguments to 'length' that depend on a template parameter, so a declaration of 'length' must be available [-fpermissive] 24 | for (int i = 0; i < length(r); i++) | ^~~~~~ misc.h:24:23: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) misc.h: In function 'SEXPREC* GetVar(SEXP, const char*)': misc.h:32:18: error: 'install' was not declared in this scope 32 | return findVar(install(name), env); | ^~~~~~~ misc.h:32:10: error: 'findVar' was not declared in this scope; did you mean 'Rf_findVar'? 32 | return findVar(install(name), env); | ^~~~~~~ | Rf_findVar misc.h: In function 'void SetVar(SEXP, const char*, SEXP)': misc.h:66:13: error: 'install' was not declared in this scope 66 | defineVar(install(name), var, env); | ^~~~~~~ misc.h:66:3: error: 'defineVar' was not declared in this scope; did you mean 'Rf_defineVar'? 66 | defineVar(install(name), var, env); | ^~~~~~~~~ | Rf_defineVar misc.h: In function 'SEXPREC* GetListElement(SEXP, int)': misc.h:73:21: error: 'length' was not declared in this scope 73 | if (i >= 0 && i < length(list)) return VECTOR_ELT(list, i); | ^~~~~~ misc.h: In function 'SEXPREC* GetListElement(SEXP, const char*)': misc.h:81:36: error: 'getAttrib' was not declared in this scope; did you mean 'Rf_getAttrib'? 81 | SEXP value = R_NilValue, names = getAttrib(list, R_NamesSymbol); | ^~~~~~~~~ | Rf_getAttrib misc.h:82:23: error: 'length' was not declared in this scope 82 | for (int i = 0; i < length(list); i++) | ^~~~~~ misc.h:82:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 82 | for (int i = 0; i < length(list); i++) | ^~~ misc.h:88:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 88 | return value; | ^~~~~~ misc.h: In function 'void SetListElement(SEXP, int, const char*, SEXP)': misc.h:95:17: error: 'getAttrib' was not declared in this scope; did you mean 'Rf_getAttrib'? 95 | SEXP _names = getAttrib(list, R_NamesSymbol); | ^~~~~~~~~ | Rf_getAttrib In file included from /data/gannet/ripley/R/R-devel/include/Rdefines.h:41, from CRF.h:2: misc.h:98:33: error: 'length' was not declared in this scope 98 | PROTECT(_names = NEW_STRING(length(list))); | ^~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ /data/gannet/ripley/R/R-devel/include/Rdefines.h:90:33: note: in expansion of macro 'NEW_CHARACTER' 90 | #define NEW_STRING(n) NEW_CHARACTER(n) | ^~~~~~~~~~~~~ misc.h:98:22: note: in expansion of macro 'NEW_STRING' 98 | PROTECT(_names = NEW_STRING(length(list))); | ^~~~~~~~~~ misc.h:99:31: error: 'mkChar' was not declared in this scope 99 | SET_STRING_ELT(_names, i, mkChar(tag)); | ^~~~~~ misc.h:100:5: error: 'setAttrib' was not declared in this scope; did you mean 'Rf_setAttrib'? 100 | setAttrib(list, R_NamesSymbol, _names); | ^~~~~~~~~ | Rf_setAttrib misc.h:104:31: error: 'mkChar' was not declared in this scope 104 | SET_STRING_ELT(_names, i, mkChar(tag)); | ^~~~~~ make[2]: *** [/data/gannet/ripley/R/R-devel/etc/Makeconf:202: BP.o] Error 1 make[2]: Leaving directory '/data/gannet/ripley/R/packages/tests-noRemap/CRF/src' ERROR: compilation failed for package ‘CRF’ * removing ‘/data/gannet/ripley/R/packages/tests-noRemap/Libs/CRF-lib/CRF’ Command exited with non-zero status 1 Time 0:01.60, 1.17 + 0.21