* installing *source* package ‘groc’ ... ** package ‘groc’ successfully unpacked and MD5 sums checked ** using staged installation ** libs using C compiler: ‘gcc-13 (GCC) 13.2.0’ using C++ compiler: ‘g++-13 (GCC) 13.2.0’ make[2]: Entering directory '/data/gannet/ripley/R/packages/tests-noRemap/groc/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 dcov.cpp -o dcov.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 gridalgo.cpp -o gridalgo.o gridalgo.cpp: In function 'SEXPREC* grid(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)': gridalgo.cpp:20:9: error: 'isFunction' was not declared in this scope; did you mean 'Rf_isFunction'? 20 | if(!isFunction(RD) & (RD != R_NilValue)) error("RD must be a function"); | ^~~~~~~~~~ | Rf_isFunction gridalgo.cpp:20:46: error: 'error' was not declared in this scope; did you mean 'perror'? 20 | if(!isFunction(RD) & (RD != R_NilValue)) error("RD must be a function"); | ^~~~~ | perror gridalgo.cpp:21:9: error: 'isEnvironment' was not declared in this scope; did you mean 'Rf_isEnvironment'? 21 | if(!isEnvironment(rho)) error("rho must be an environment"); | ^~~~~~~~~~~~~ | Rf_isEnvironment gridalgo.cpp:21:29: error: 'error' was not declared in this scope; did you mean 'perror'? 21 | if(!isEnvironment(rho)) error("rho must be an environment"); | ^~~~~ | perror gridalgo.cpp:23:17: error: 'length' was not declared in this scope 23 | R_len_t p = length(Rr), q = length(Rs), n = nrows(RU); | ^~~~~~ In file included from /data/gannet/ripley/R/R-devel/include/Rdefines.h:41, from gridalgo.cpp:11: gridalgo.cpp:35:29: error: 'coerceVector' was not declared in this scope; did you mean 'Rf_coerceVector'? 35 | PROTECT_WITH_INDEX(Rr = coerceVector(Rr, REALSXP), &ipr); | ^~~~~~~~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:380:52: note: in definition of macro 'PROTECT_WITH_INDEX' 380 | #define PROTECT_WITH_INDEX(x,i) R_ProtectWithIndex(x,i) | ^ gridalgo.cpp:56:23: error: 'n' was not declared in this scope 56 | ytmp = new double[n]; | ^ gridalgo.cpp:59:21: error: 'allocVector' was not declared in this scope; did you mean 'Rf_allocVector'? 59 | PROTECT(Rytmp = allocVector(REALSXP, n)); | ^~~~~~~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ gridalgo.cpp:66:33: error: 'mkChar' was not declared in this scope 66 | SET_STRING_ELT(chariter, 0, mkChar("failed")); | ^~~~~~ gridalgo.cpp:71:23: error: 'q' was not declared in this scope 71 | sold = new double[q]; | ^ In file included from gridalgo.cpp:153: Other/simplegrid.cpp: In function 'SEXPREC* simplegrid(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)': Other/simplegrid.cpp:16:17: error: 'length' was not declared in this scope 16 | R_len_t p = length(Rr), n = nrows(RU); | ^~~~~~ Other/simplegrid.cpp:18:9: error: 'isFunction' was not declared in this scope; did you mean 'Rf_isFunction'? 18 | if(!isFunction(RD) & (RD != R_NilValue)) error("RD must be a function"); | ^~~~~~~~~~ | Rf_isFunction Other/simplegrid.cpp:18:46: error: 'error' was not declared in this scope; did you mean 'perror'? 18 | if(!isFunction(RD) & (RD != R_NilValue)) error("RD must be a function"); | ^~~~~ | perror Other/simplegrid.cpp:19:9: error: 'isEnvironment' was not declared in this scope; did you mean 'Rf_isEnvironment'? 19 | if(!isEnvironment(rho)) error("rho must be an environment"); | ^~~~~~~~~~~~~ | Rf_isEnvironment Other/simplegrid.cpp:19:29: error: 'error' was not declared in this scope; did you mean 'perror'? 19 | if(!isEnvironment(rho)) error("rho must be an environment"); | ^~~~~ | perror Other/simplegrid.cpp:29:18: error: 'coerceVector' was not declared in this scope; did you mean 'Rf_coerceVector'? 29 | PROTECT(Rr = coerceVector(Rr, REALSXP)); | ^~~~~~~~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ Other/simplegrid.cpp:55:25: error: 'n' was not declared in this scope 55 | Uvect = new double [n]; | ^ Other/simplegrid.cpp:60:22: error: 'allocVector' was not declared in this scope; did you mean 'Rf_allocVector'? 60 | PROTECT(RUvect = allocVector(REALSXP, n)); | ^~~~~~~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ Other/simplegrid.cpp:81:32: error: 'lang3' was not declared in this scope 81 | PROTECT( R_fcall = lang3(RD, RUvect, RY) ); | ^~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ Other/simplegrid.cpp:82:19: error: 'eval' was not declared in this scope 82 | ans = eval(R_fcall, rho); | ^~~~ make[2]: *** [/data/gannet/ripley/R/R-devel/etc/Makeconf:202: gridalgo.o] Error 1 make[2]: Leaving directory '/data/gannet/ripley/R/packages/tests-noRemap/groc/src' ERROR: compilation failed for package ‘groc’ * removing ‘/data/gannet/ripley/R/packages/tests-noRemap/Libs/groc-lib/groc’ Command exited with non-zero status 1 Time 0:04.42, 3.64 + 0.42