* installing *source* package ‘spNNGP’ ... ** package ‘spNNGP’ 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/spNNGP/src' g++-13 -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I/usr/local/include -fopenmp -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 PGLogit.cpp -o PGLogit.o In file included from PGLogit.cpp:12: PGLogit.cpp: In function 'SEXPREC* PGLogit(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)': PGLogit.cpp:76:29: error: 'allocMatrix' was not declared in this scope; did you mean 'Rf_allocMatrix'? 76 | PROTECT(betaSamples_r = allocMatrix(REALSXP, p, nSamples)); nProtect++; | ^~~~~~~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ PGLogit.cpp:115:75: error: 'error' was not declared in this scope; did you mean 'perror'? 115 | F77_NAME(dpotrf)(lower, &p, tmp_pp, &p, &info FCONE); if(info != 0){error("c++ error: dpotrf here failed\n");} | ^~~~~ | perror PGLogit.cpp:116:75: error: 'error' was not declared in this scope; did you mean 'perror'? 116 | F77_NAME(dpotri)(lower, &p, tmp_pp, &p, &info FCONE); if(info != 0){error("c++ error: dpotri here failed\n");} | ^~~~~ | perror PGLogit.cpp:118:75: error: 'error' was not declared in this scope; did you mean 'perror'? 118 | F77_NAME(dpotrf)(lower, &p, tmp_pp, &p, &info FCONE); if(info != 0){error("c++ error: dpotrf here failed\n");} | ^~~~~ | perror PGLogit.cpp:133:24: error: 'allocVector' was not declared in this scope; did you mean 'Rf_allocVector'? 133 | PROTECT(result_r = allocVector(VECSXP, nResultListObjs)); nProtect++; | ^~~~~~~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ PGLogit.cpp:137:37: error: 'mkChar' was not declared in this scope 137 | SET_VECTOR_ELT(resultName_r, 0, mkChar("p.beta.samples")); | ^~~~~~ PGLogit.cpp:139:5: error: 'namesgets' was not declared in this scope; did you mean 'Rf_namesgets'? 139 | namesgets(result_r, resultName_r); | ^~~~~~~~~ | Rf_namesgets PGLogit.cpp:27:18: warning: unused variable 'negOne' [-Wunused-variable] 27 | const double negOne = -1.0; | ^~~~~~ make[2]: *** [/data/gannet/ripley/R/R-devel/etc/Makeconf:202: PGLogit.o] Error 1 make[2]: Leaving directory '/data/gannet/ripley/R/packages/tests-noRemap/spNNGP/src' ERROR: compilation failed for package ‘spNNGP’ * removing ‘/data/gannet/ripley/R/packages/tests-noRemap/Libs/spNNGP-lib/spNNGP’ Command exited with non-zero status 1 Time 0:02.16, 1.70 + 0.26