* installing *source* package ‘spOccupancy’ ... ** using staged installation ** libs using C++ compiler: ‘Debian clang version 17.0.6 (5)’ clang++-17 -std=gnu++17 -I"/home/hornik/tmp/R-d-clang-17/include" -DNDEBUG -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c PGOcc.cpp -o PGOcc.o PGOcc.cpp:102:7: error: use of undeclared identifier 'warning' 102 | warning("n.omp.threads > 1, but source not compiled with OpenMP support."); | ^ PGOcc.cpp:170:29: error: use of undeclared identifier 'allocMatrix'; did you mean 'Rf_allocMatrix'? 170 | PROTECT(betaSamples_r = allocMatrix(REALSXP, pOcc, nPost)); nProtect++; | ^~~~~~~~~~~ | Rf_allocMatrix /home/hornik/tmp/R-d-clang-17/include/Rinternals.h:371:31: note: expanded from macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ /home/hornik/tmp/R-d-clang-17/include/Rinternals.h:486:6: note: 'Rf_allocMatrix' declared here 486 | SEXP Rf_allocMatrix(SEXPTYPE, int, int); | ^ PGOcc.cpp:173:30: error: use of undeclared identifier 'allocMatrix'; did you mean 'Rf_allocMatrix'? 173 | PROTECT(alphaSamples_r = allocMatrix(REALSXP, pDet, nPost)); nProtect++; | ^~~~~~~~~~~ | Rf_allocMatrix /home/hornik/tmp/R-d-clang-17/include/Rinternals.h:371:31: note: expanded from macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ /home/hornik/tmp/R-d-clang-17/include/Rinternals.h:486:6: note: 'Rf_allocMatrix' declared here 486 | SEXP Rf_allocMatrix(SEXPTYPE, int, int); | ^ PGOcc.cpp:176:26: error: use of undeclared identifier 'allocMatrix'; did you mean 'Rf_allocMatrix'? 176 | PROTECT(zSamples_r = allocMatrix(REALSXP, J, nPost)); nProtect++; | ^~~~~~~~~~~ | Rf_allocMatrix /home/hornik/tmp/R-d-clang-17/include/Rinternals.h:371:31: note: expanded from macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ /home/hornik/tmp/R-d-clang-17/include/Rinternals.h:486:6: note: 'Rf_allocMatrix' declared here 486 | SEXP Rf_allocMatrix(SEXPTYPE, int, int); | ^ PGOcc.cpp:179:28: error: use of undeclared identifier 'allocMatrix'; did you mean 'Rf_allocMatrix'? 179 | PROTECT(psiSamples_r = allocMatrix(REALSXP, J, nPost)); nProtect++; | ^~~~~~~~~~~ | Rf_allocMatrix /home/hornik/tmp/R-d-clang-17/include/Rinternals.h:371:31: note: expanded from macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ /home/hornik/tmp/R-d-clang-17/include/Rinternals.h:486:6: note: 'Rf_allocMatrix' declared here 486 | SEXP Rf_allocMatrix(SEXPTYPE, int, int); | ^ PGOcc.cpp:185:35: error: use of undeclared identifier 'allocMatrix'; did you mean 'Rf_allocMatrix'? 185 | PROTECT(sigmaSqPSamples_r = allocMatrix(REALSXP, pDetRE, nPost)); nProtect++; | ^~~~~~~~~~~ | Rf_allocMatrix /home/hornik/tmp/R-d-clang-17/include/Rinternals.h:371:31: note: expanded from macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ /home/hornik/tmp/R-d-clang-17/include/Rinternals.h:486:6: note: 'Rf_allocMatrix' declared here 486 | SEXP Rf_allocMatrix(SEXPTYPE, int, int); | ^ PGOcc.cpp:187:36: error: use of undeclared identifier 'allocMatrix'; did you mean 'Rf_allocMatrix'? 187 | PROTECT(alphaStarSamples_r = allocMatrix(REALSXP, nDetRE, nPost)); nProtect++; | ^~~~~~~~~~~ | Rf_allocMatrix /home/hornik/tmp/R-d-clang-17/include/Rinternals.h:371:31: note: expanded from macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ /home/hornik/tmp/R-d-clang-17/include/Rinternals.h:486:6: note: 'Rf_allocMatrix' declared here 486 | SEXP Rf_allocMatrix(SEXPTYPE, int, int); | ^ PGOcc.cpp:194:37: error: use of undeclared identifier 'allocMatrix'; did you mean 'Rf_allocMatrix'? 194 | PROTECT(sigmaSqPsiSamples_r = allocMatrix(REALSXP, pOccRE, nPost)); nProtect++; | ^~~~~~~~~~~ | Rf_allocMatrix /home/hornik/tmp/R-d-clang-17/include/Rinternals.h:371:31: note: expanded from macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ /home/hornik/tmp/R-d-clang-17/include/Rinternals.h:486:6: note: 'Rf_allocMatrix' declared here 486 | SEXP Rf_allocMatrix(SEXPTYPE, int, int); | ^ PGOcc.cpp:196:35: error: use of undeclared identifier 'allocMatrix'; did you mean 'Rf_allocMatrix'? 196 | PROTECT(betaStarSamples_r = allocMatrix(REALSXP, nOccRE, nPost)); nProtect++; | ^~~~~~~~~~~ | Rf_allocMatrix /home/hornik/tmp/R-d-clang-17/include/Rinternals.h:371:31: note: expanded from macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ /home/hornik/tmp/R-d-clang-17/include/Rinternals.h:486:6: note: 'Rf_allocMatrix' declared here 486 | SEXP Rf_allocMatrix(SEXPTYPE, int, int); | ^ PGOcc.cpp:201:29: error: use of undeclared identifier 'allocMatrix'; did you mean 'Rf_allocMatrix'? 201 | PROTECT(likeSamples_r = allocMatrix(REALSXP, J, nPost)); nProtect++; | ^~~~~~~~~~~ | Rf_allocMatrix /home/hornik/tmp/R-d-clang-17/include/Rinternals.h:371:31: note: expanded from macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ /home/hornik/tmp/R-d-clang-17/include/Rinternals.h:486:6: note: 'Rf_allocMatrix' declared here 486 | SEXP Rf_allocMatrix(SEXPTYPE, int, int); | ^ PGOcc.cpp:243:19: error: use of undeclared identifier 'error' 243 | if(info != 0){error("c++ error: dpotrf SigmaBetaInv failed\n");} | ^ PGOcc.cpp:245:19: error: use of undeclared identifier 'error' 245 | if(info != 0){error("c++ error: dpotri SigmaBetaInv failed\n");} | ^ PGOcc.cpp:251:19: error: use of undeclared identifier 'error' 251 | if(info != 0){error("c++ error: dpotrf SigmaAlphaInv failed\n");} | ^ PGOcc.cpp:253:19: error: use of undeclared identifier 'error' 253 | if(info != 0){error("c++ error: dpotri SigmaAlphaInv failed\n");} | ^ PGOcc.cpp:357:21: error: use of undeclared identifier 'error' 357 | if(info != 0){error("c++ error: dpotrf here failed\n");} | ^ PGOcc.cpp:359:21: error: use of undeclared identifier 'error' 359 | if(info != 0){error("c++ error: dpotri here failed\n");} | ^ PGOcc.cpp:362:21: error: use of undeclared identifier 'error' 362 | if(info != 0){error("c++ error: dpotrf here failed\n");} | ^ PGOcc.cpp:406:21: error: use of undeclared identifier 'error' 406 | if(info != 0){error("c++ error: dpotrf A.alpha failed\n");} | ^ PGOcc.cpp:408:21: error: use of undeclared identifier 'error' 408 | if(info != 0){error("c++ error: dpotri A.alpha failed\n");} | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make: *** [/home/hornik/tmp/R-d-clang-17/etc/Makeconf:202: PGOcc.o] Error 1 ERROR: compilation failed for package ‘spOccupancy’ * removing ‘/srv/hornik/tmp/CRAN/spOccupancy.Rcheck/spOccupancy’