* installing to library ‘/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages’
* installing *source* package ‘SpatMCA’ ...
** package ‘SpatMCA’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C++ compiler: ‘g++-14 (Debian 14.2.0-8) 14.2.0’
make[1]: Entering directory '/home/hornik/tmp/scratch/RtmpjxYSmj/R.INSTALL3874673476d721/SpatMCA/src'
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppParallel/include' -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O2 -Wall -pedantic -mtune=native   -c RcppExports.cpp -o RcppExports.o
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppParallel/include' -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O2 -Wall -pedantic -mtune=native   -c RcppSpatMCA.cpp -o RcppSpatMCA.o
RcppSpatMCA.cpp: In function ‘arma::mat cubicmatrix(arma::vec)’:
RcppSpatMCA.cpp:27:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
   27 |   for (unsigned j = 0; j < p - 2; ++j)
      |                        ~~^~~~~~~
RcppSpatMCA.cpp:34:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
   34 |   for (unsigned j = 0; j < p - 3; ++j)
      |                        ~~^~~~~~~
RcppSpatMCA.cpp: In member function ‘virtual void tpm::operator()(std::size_t, std::size_t)’:
RcppSpatMCA.cpp:51:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
   51 |       for (unsigned j = 0; j < p; j++)
      |                            ~~^~~
RcppSpatMCA.cpp:76:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
   76 |       for (unsigned k = 0; k < d; ++k)
      |                            ~~^~~
RcppSpatMCA.cpp: In function ‘arma::mat tpm2(arma::mat, arma::mat, arma::mat)’:
RcppSpatMCA.cpp:126:32: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  126 |   for (unsigned newi = 0; newi < pnew; newi++)
      |                           ~~~~~^~~~~~
RcppSpatMCA.cpp:128:28: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  128 |     for (unsigned i = 0; i < K; i++)
      |                          ~~^~~
RcppSpatMCA.cpp:131:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  131 |       for (unsigned j = 0; j < p; j++)
      |                            ~~^~~
RcppSpatMCA.cpp: In function ‘void spatmca_tau1(arma::mat&, arma::mat&, arma::mat&, arma::mat, int, int, double, int, double)’:
RcppSpatMCA.cpp:172:32: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘const int’ [-Wsign-compare]
  172 |   for (unsigned iter = 0; iter < maxit; iter++)
      |                           ~~~~~^~~~~~~
RcppSpatMCA.cpp: In function ‘void spatmca_tau2(arma::mat&, arma::mat&, arma::mat&, arma::mat&, arma::mat&, arma::mat, double, double, int, int, double, int, double)’:
RcppSpatMCA.cpp:207:32: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘const int’ [-Wsign-compare]
  207 |   for (unsigned iter = 0; iter < maxit; iter++)
      |                           ~~~~~^~~~~~~
RcppSpatMCA.cpp: In function ‘Rcpp::List spatmcacv_rcpp(Rcpp::NumericMatrix, Rcpp::NumericMatrix, Rcpp::NumericMatrix, Rcpp::NumericMatrix, int, int, Rcpp::NumericVector, Rcpp::NumericVector, Rcpp::NumericVector, Rcpp::NumericVector, Rcpp::NumericVector, int, double, Rcpp::NumericVector, Rcpp::NumericVector)’:
RcppSpatMCA.cpp:639:25: warning: comparison of integer expressions of different signedness: ‘arma::uword’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  639 |     for (uword m = 0; m < M; m++)
      |                       ~~^~~
RcppSpatMCA.cpp:700:25: warning: comparison of integer expressions of different signedness: ‘arma::uword’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  700 |     for (uword m = 0; m < M; m++)
      |                       ~~^~~
RcppSpatMCA.cpp: In function ‘Rcpp::List spatmcacvall_rcpp(Rcpp::NumericMatrix, Rcpp::NumericMatrix, Rcpp::NumericMatrix, Rcpp::NumericMatrix, int, int, Rcpp::NumericVector, Rcpp::NumericVector, Rcpp::NumericVector, Rcpp::NumericVector, Rcpp::NumericVector, int, double, Rcpp::NumericVector, Rcpp::NumericVector)’:
RcppSpatMCA.cpp:928:23: warning: comparison of integer expressions of different signedness: ‘arma::uword’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  928 |   for (uword m = 0; m < M; m++)
      |                     ~~^~~
In file included from /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppParallel/include/tbb/tbb.h:32,
                 from /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppParallel/include/RcppParallel/TBB.h:10,
                 from /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppParallel/include/RcppParallel.h:24,
                 from RcppSpatMCA.cpp:4:
/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppParallel/include/tbb/atomic.h: In instantiation of ‘tbb::atomic<T>& tbb::internal::as_atomic(T&) [with T = long unsigned int]’:
/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppParallel/include/tbb/tbb_thread.h:251:29:   required from here
  251 |             return as_atomic(location.my_id).compare_and_swap(value.my_id, comparand.my_id);
      |                    ~~~~~~~~~^~~~~~~~~~~~~~~~
/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppParallel/include/tbb/atomic.h:544:12: warning: casting ‘long unsigned int’ to ‘tbb::atomic<long unsigned int>&’ does not use ‘constexpr tbb::atomic<long unsigned int>::atomic(long unsigned int)’ [-Wcast-user-defined]
  544 |     return (atomic<T>&)t;
      |            ^~~~~~~~~~~~~
/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppParallel/include/tbb/atomic.h: In instantiation of ‘tbb::atomic<T>& tbb::internal::as_atomic(T&) [with T = tbb::interface5::internal::hash_map_base::bucket*]’:
/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppParallel/include/tbb/concurrent_hash_map.h:291:31:   required from here
  291 |                   && as_atomic(my_table[new_seg]).compare_and_swap(is_allocating, NULL) == NULL )
      |                      ~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppParallel/include/tbb/atomic.h:544:12: warning: casting ‘tbb::interface5::internal::hash_map_base::bucket*’ to ‘tbb::atomic<tbb::interface5::internal::hash_map_base::bucket*>&’ does not use ‘constexpr tbb::atomic<T*>::atomic(T*) [with T = tbb::interface5::internal::hash_map_base::bucket]’ [-Wcast-user-defined]
  544 |     return (atomic<T>&)t;
      |            ^~~~~~~~~~~~~
In file included from /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include/armadillo:669,
                 from /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:58,
                 from /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include/RcppArmadillo.h:29,
                 from RcppSpatMCA.cpp:5:
In member function ‘arma::Mat<eT>& arma::Mat<eT>::operator=(eT) [with eT = double]’,
    inlined from ‘Rcpp::List spatmcacv_rcpp(Rcpp::NumericMatrix, Rcpp::NumericMatrix, Rcpp::NumericMatrix, Rcpp::NumericMatrix, int, int, Rcpp::NumericVector, Rcpp::NumericVector, Rcpp::NumericVector, Rcpp::NumericVector, Rcpp::NumericVector, int, double, Rcpp::NumericVector, Rcpp::NumericVector)’ at RcppSpatMCA.cpp:690:12:
/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include/armadillo_bits/Mat_meat.hpp:816:22: warning: ‘tempout’ may be used uninitialized [-Wmaybe-uninitialized]
  816 |   access::rw(mem[0]) = val;
      |   ~~~~~~~~~~~~~~~~~~~^~~~~
RcppSpatMCA.cpp: In function ‘Rcpp::List spatmcacv_rcpp(Rcpp::NumericMatrix, Rcpp::NumericMatrix, Rcpp::NumericMatrix, Rcpp::NumericMatrix, int, int, Rcpp::NumericVector, Rcpp::NumericVector, Rcpp::NumericVector, Rcpp::NumericVector, Rcpp::NumericVector, int, double, Rcpp::NumericVector, Rcpp::NumericVector)’:
RcppSpatMCA.cpp:583:46: note: ‘tempout’ was declared here
  583 |   double cvtau1u, cvtau1v, cvtau2u, cvtau2v, tempout;
      |                                              ^~~~~~~
g++-14 -std=gnu++17 -shared -L/home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib -Wl,-O1 -o SpatMCA.so RcppExports.o RcppSpatMCA.o -fopenmp -llapack -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/RtmpjxYSmj/R.INSTALL3874673476d721/SpatMCA/src'
make[1]: Entering directory '/home/hornik/tmp/scratch/RtmpjxYSmj/R.INSTALL3874673476d721/SpatMCA/src'
make[1]: Leaving directory '/home/hornik/tmp/scratch/RtmpjxYSmj/R.INSTALL3874673476d721/SpatMCA/src'
installing to /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/00LOCK-SpatMCA/00new/SpatMCA/libs
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
  converting help for package ‘SpatMCA’
    finding HTML links ... done
    SpatMCA-package                         html  
    checkInputData                          html  
    detrend                                 html  
    plot.spatmca                            html  
    plot_cv_field                           html  
    plot_sequentially                       html  
    setCores                                html  
    spatmca                                 html  
    spatmcacv_rcpp                          html  
    spatmcacvall_rcpp                       html  
    tpm2                                    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 (SpatMCA)