* installing to library ‘/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages’
* installing *source* package ‘nonneg.cg’ ...
** package ‘nonneg.cg’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C compiler: ‘gcc-14 (Debian 14.2.0-8) 14.2.0’
using C++ compiler: ‘g++-14 (Debian 14.2.0-8) 14.2.0’
make[1]: Entering directory '/home/hornik/tmp/scratch/Rtmpwe59wV/R.INSTALL18641c2c76c769/nonneg.cg/src'
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -D_FOR_R -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3  -fvisibility=hidden -fpic  -g -O2 -Wall -pedantic -mtune=native   -c RcppExports.cpp -o RcppExports.o
gcc-14 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -D_FOR_R -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native  -c nonnegcg.c -o nonnegcg.o
nonnegcg.c: In function ‘minimize_nonneg_cg’:
nonnegcg.c:223: warning: ignoring ‘#pragma omp parallel’ [-Wunknown-pragmas]
  223 |                 #pragma omp parallel for schedule(static) firstprivate(x, direction_curr, grad_curr) num_threads(nthreads)
nonnegcg.c:236: warning: ignoring ‘#pragma omp parallel’ [-Wunknown-pragmas]
  236 |                         #pragma omp parallel for schedule(static) firstprivate(x, direction_prev, grad_curr, grad_prev, n_szt) reduction(+:theta, beta) num_threads(nthreads)
nonnegcg.c:247: warning: ignoring ‘#pragma omp parallel’ [-Wunknown-pragmas]
  247 |                         #pragma omp parallel for schedule(static) firstprivate(x, direction_curr, direction_prev, grad_curr, grad_prev, n_szt, theta, beta) num_threads(nthreads)
nonnegcg.c:289: warning: ignoring ‘#pragma omp parallel’ [-Wunknown-pragmas]
  289 |                                 #pragma omp parallel for schedule(static) firstprivate(x, n_szt) num_threads(nthreads)
nonnegcg.c:328: warning: ignoring ‘#pragma omp parallel’ [-Wunknown-pragmas]
  328 |                                 #pragma omp parallel for schedule(static) firstprivate(x, n_szt) num_threads(nthreads)
nonnegcg.c:244:30: warning: ‘grad_prev_norm_sq’ may be used uninitialized [-Wmaybe-uninitialized]
  244 |                         beta /= grad_prev_norm_sq;
      |                         ~~~~~^~~~~~~~~~~~~~~~~~~~
nonnegcg.c:156:16: note: ‘grad_prev_norm_sq’ was declared here
  156 |         double grad_prev_norm_sq;
      |                ^~~~~~~~~~~~~~~~~
nonnegcg.c:240:90: warning: ‘direction_prev’ may be used uninitialized [-Wmaybe-uninitialized]
  240 |                                 theta += ( x[i] <= 0 )? 0 : grad_curr[i] * direction_prev[i];
      |                                                                            ~~~~~~~~~~~~~~^~~
nonnegcg.c:195:26: note: ‘direction_prev’ was declared here
  195 |         double *restrict direction_prev;
      |                          ^~~~~~~~~~~~~~
nonnegcg.c:241:100: warning: ‘grad_prev’ may be used uninitialized [-Wmaybe-uninitialized]
  241 |                                 beta += ( x[i] <= 0 )? 0 : grad_curr[i] * (grad_curr[i] - grad_prev[i]);
      |                                                                                           ~~~~~~~~~^~~
nonnegcg.c:196:26: note: ‘grad_prev’ was declared here
  196 |         double *restrict grad_prev;
      |                          ^~~~~~~~~
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -D_FOR_R -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3  -fvisibility=hidden -fpic  -g -O2 -Wall -pedantic -mtune=native   -c rwrapper.cpp -o rwrapper.o
g++-14 -std=gnu++17 -shared -L/home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib -Wl,-O1 -o nonneg.cg.so RcppExports.o nonnegcg.o rwrapper.o -L/home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib -lRblas -lgfortran -lm -lquadmath -L/home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib -lR
make[1]: Leaving directory '/home/hornik/tmp/scratch/Rtmpwe59wV/R.INSTALL18641c2c76c769/nonneg.cg/src'
make[1]: Entering directory '/home/hornik/tmp/scratch/Rtmpwe59wV/R.INSTALL18641c2c76c769/nonneg.cg/src'
make[1]: Leaving directory '/home/hornik/tmp/scratch/Rtmpwe59wV/R.INSTALL18641c2c76c769/nonneg.cg/src'
installing to /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/00LOCK-nonneg.cg/00new/nonneg.cg/libs
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
  converting help for package ‘nonneg.cg’
    finding HTML links ... done
    minimize.nonneg.cg                      html  
** 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 (nonneg.cg)