* installing to library ‘/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages’
* installing *source* package ‘spNNGP’ ...
** package ‘spNNGP’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C++ compiler: ‘g++-14 (Debian 14.2.0-6) 14.2.0’
make[1]: Entering directory '/home/hornik/tmp/scratch/RtmpbNLr1k/R.INSTALL20379e462dd8f2/spNNGP/src'
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O2 -Wall -pedantic -mtune=native   -c PGLogit.cpp -o PGLogit.o
PGLogit.cpp: In function ‘SEXPREC* PGLogit(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)’:
PGLogit.cpp:31:18: warning: unused variable ‘negOne’ [-Wunused-variable]
   31 |     const double negOne = -1.0;
      |                  ^~~~~~
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O2 -Wall -pedantic -mtune=native   -c cNNGP.cpp -o cNNGP.o
cNNGP.cpp: In function ‘SEXPREC* cNNGP(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)’:
cNNGP.cpp:77:9: warning: unused variable ‘h’ [-Wunused-variable]
   77 |     int h, i, j, k, l, s, info, nProtect=0;
      |         ^
cNNGP.cpp:77:24: warning: unused variable ‘s’ [-Wunused-variable]
   77 |     int h, i, j, k, l, s, info, nProtect=0;
      |                        ^
cNNGP.cpp:80:18: warning: unused variable ‘negOne’ [-Wunused-variable]
   80 |     const double negOne = -1.0;
      |                  ^~~~~~
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O2 -Wall -pedantic -mtune=native   -c cSLGP.cpp -o cSLGP.o
cSLGP.cpp: In function ‘SEXPREC* cSLGP(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)’:
cSLGP.cpp:141:9: warning: unused variable ‘h’ [-Wunused-variable]
  141 |     int h, i, j, k, l, s, info, nProtect=0;
      |         ^
cSLGP.cpp:141:24: warning: unused variable ‘s’ [-Wunused-variable]
  141 |     int h, i, j, k, l, s, info, nProtect=0;
      |                        ^
cSLGP.cpp:144:18: warning: unused variable ‘negOne’ [-Wunused-variable]
  144 |     const double negOne = -1.0;
      |                  ^~~~~~
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O2 -Wall -pedantic -mtune=native   -c init.cpp -o init.o
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O2 -Wall -pedantic -mtune=native   -c nn.cpp -o nn.o
nn.cpp: In function ‘SEXPREC* mkUIndx(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)’:
nn.cpp:36:7: warning: unused variable ‘nIndx’ [-Wunused-variable]
   36 |   int nIndx = static_cast<int>(static_cast<double>(1+m)/2*m+(n-m-1)*m);
      |       ^~~~~
nn.cpp: In function ‘void fastNN(int, int, double*, int, double*, int*, int*, double*)’:
nn.cpp:138:11: warning: unused variable ‘k’ [-Wunused-variable]
  138 |   int i,j,k;
      |           ^
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O2 -Wall -pedantic -mtune=native   -c rNNGP.cpp -o rNNGP.o
rNNGP.cpp: In function ‘SEXPREC* rNNGP(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)’:
rNNGP.cpp:111:9: warning: unused variable ‘h’ [-Wunused-variable]
  111 |     int h, i, j, k, l, s, info, nProtect=0;
      |         ^
rNNGP.cpp:111:18: warning: unused variable ‘k’ [-Wunused-variable]
  111 |     int h, i, j, k, l, s, info, nProtect=0;
      |                  ^
rNNGP.cpp:111:21: warning: unused variable ‘l’ [-Wunused-variable]
  111 |     int h, i, j, k, l, s, info, nProtect=0;
      |                     ^
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O2 -Wall -pedantic -mtune=native   -c rNNGPPredict.cpp -o rNNGPPredict.o
rNNGPPredict.cpp: In function ‘SEXPREC* rNNGPPredict(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)’:
rNNGPPredict.cpp:28:9: warning: unused variable ‘h’ [-Wunused-variable]
   28 |     int h, i, j, k, l, s, info, nProtect=0;
      |         ^
rNNGPPredict.cpp:28:15: warning: unused variable ‘j’ [-Wunused-variable]
   28 |     int h, i, j, k, l, s, info, nProtect=0;
      |               ^
rNNGPPredict.cpp:31:18: warning: unused variable ‘negOne’ [-Wunused-variable]
   31 |     const double negOne = -1.0;
      |                  ^~~~~~
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O2 -Wall -pedantic -mtune=native   -c rNNGPReplicated.cpp -o rNNGPReplicated.o
rNNGPReplicated.cpp: In function ‘SEXPREC* rNNGPReplicated(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)’:
rNNGPReplicated.cpp:80:9: warning: unused variable ‘h’ [-Wunused-variable]
   80 |     int h, i, j, k, l, s, info, nProtect=0;
      |         ^
rNNGPReplicated.cpp:80:18: warning: unused variable ‘k’ [-Wunused-variable]
   80 |     int h, i, j, k, l, s, info, nProtect=0;
      |                  ^
rNNGPReplicated.cpp:80:21: warning: unused variable ‘l’ [-Wunused-variable]
   80 |     int h, i, j, k, l, s, info, nProtect=0;
      |                     ^
rNNGPReplicated.cpp:80:27: warning: unused variable ‘info’ [-Wunused-variable]
   80 |     int h, i, j, k, l, s, info, nProtect=0;
      |                           ^~~~
rNNGPReplicated.cpp:83:18: warning: unused variable ‘negOne’ [-Wunused-variable]
   83 |     const double negOne = -1.0;
      |                  ^~~~~~
rNNGPReplicated.cpp:84:18: warning: unused variable ‘zero’ [-Wunused-variable]
   84 |     const double zero = 0.0;
      |                  ^~~~
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O2 -Wall -pedantic -mtune=native   -c rpg.cpp -o rpg.o
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O2 -Wall -pedantic -mtune=native   -c sNNGP.cpp -o sNNGP.o
sNNGP.cpp: In function ‘SEXPREC* sNNGP(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)’:
sNNGP.cpp:75:9: warning: unused variable ‘h’ [-Wunused-variable]
   75 |     int h, i, j, k, l, s, info, nProtect=0;
      |         ^
sNNGP.cpp:75:21: warning: unused variable ‘l’ [-Wunused-variable]
   75 |     int h, i, j, k, l, s, info, nProtect=0;
      |                     ^
sNNGP.cpp:78:18: warning: unused variable ‘negOne’ [-Wunused-variable]
   78 |     const double negOne = -1.0;
      |                  ^~~~~~
sNNGP.cpp:323:9: warning: ‘logDet’ may be used uninitialized [-Wmaybe-uninitialized]
  323 | #pragma omp parallel for private (e, j, b) reduction(+:a, logDet)
      |         ^~~
sNNGP.cpp:226:41: note: ‘logDet’ was declared here
  226 |     double logPostCand, logPostCurrent, logDet;
      |                                         ^~~~~~
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O2 -Wall -pedantic -mtune=native   -c sNNGPLogit.cpp -o sNNGPLogit.o
sNNGPLogit.cpp: In function ‘SEXPREC* sNNGPLogit(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)’:
sNNGPLogit.cpp:76:9: warning: unused variable ‘h’ [-Wunused-variable]
   76 |     int h, i, j, k, l, s, info, nProtect=0;
      |         ^
sNNGPLogit.cpp:76:21: warning: unused variable ‘l’ [-Wunused-variable]
   76 |     int h, i, j, k, l, s, info, nProtect=0;
      |                     ^
sNNGPLogit.cpp:79:18: warning: unused variable ‘negOne’ [-Wunused-variable]
   79 |     const double negOne = -1.0;
      |                  ^~~~~~
sNNGPLogit.cpp:335:9: warning: ‘logDet’ may be used uninitialized [-Wmaybe-uninitialized]
  335 | #pragma omp parallel for private (e, j, b) reduction(+:a, logDet)
      |         ^~~
sNNGPLogit.cpp:231:41: note: ‘logDet’ was declared here
  231 |     double logPostCand, logPostCurrent, logDet;
      |                                         ^~~~~~
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O2 -Wall -pedantic -mtune=native   -c sNNGPPredict.cpp -o sNNGPPredict.o
sNNGPPredict.cpp: In function ‘SEXPREC* sNNGPPredict(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)’:
sNNGPPredict.cpp:28:9: warning: unused variable ‘h’ [-Wunused-variable]
   28 |     int h, i, j, k, l, s, info, nProtect=0;
      |         ^
sNNGPPredict.cpp:28:15: warning: unused variable ‘j’ [-Wunused-variable]
   28 |     int h, i, j, k, l, s, info, nProtect=0;
      |               ^
sNNGPPredict.cpp:31:18: warning: unused variable ‘negOne’ [-Wunused-variable]
   31 |     const double negOne = -1.0;
      |                  ^~~~~~
sNNGPPredict.cpp:36:13: warning: unused variable ‘X’ [-Wunused-variable]
   36 |     double *X = REAL(X_r);
      |             ^
sNNGPPredict.cpp:37:13: warning: unused variable ‘y’ [-Wunused-variable]
   37 |     double *y = REAL(y_r);
      |             ^
sNNGPPredict.cpp:88:50: warning: ‘nuIndx’ may be used uninitialized [-Wmaybe-uninitialized]
   88 |     int nTheta, sigmaSqIndx, tauSqIndx, phiIndx, nuIndx;
      |                                                  ^~~~~~
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O2 -Wall -pedantic -mtune=native   -c util.cpp -o util.o
util.cpp: In function ‘void mvrnorm(double*, double*, double*, int)’:
util.cpp:33:10: warning: unused variable ‘zero’ [-Wunused-variable]
   33 |   double zero = 0.0;
      |          ^~~~
util.cpp: In function ‘void mkUIndx2(int, int, int*, int*, int*, int*)’:
util.cpp:117:10: warning: unused variable ‘j’ [-Wunused-variable]
  117 |   int i, j, k;
      |          ^
g++-14 -std=gnu++17 -shared -L/home/hornik/tmp/R.check/r-release-gcc/Work/build/lib -Wl,-O1 -o spNNGP.so PGLogit.o cNNGP.o cSLGP.o init.o nn.o rNNGP.o rNNGPPredict.o rNNGPReplicated.o rpg.o sNNGP.o sNNGPLogit.o sNNGPPredict.o util.o -llapack -L/home/hornik/tmp/R.check/r-release-gcc/Work/build/lib -lRblas -lgfortran -lm -lquadmath -fopenmp -L/home/hornik/tmp/R.check/r-release-gcc/Work/build/lib -lR
make[1]: Leaving directory '/home/hornik/tmp/scratch/RtmpbNLr1k/R.INSTALL20379e462dd8f2/spNNGP/src'
make[1]: Entering directory '/home/hornik/tmp/scratch/RtmpbNLr1k/R.INSTALL20379e462dd8f2/spNNGP/src'
make[1]: Leaving directory '/home/hornik/tmp/scratch/RtmpbNLr1k/R.INSTALL20379e462dd8f2/spNNGP/src'
installing to /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/00LOCK-spNNGP/00new/spNNGP/libs
** R
** data
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (spNNGP)