* installing *source* package ‘mets’ ...
** package ‘mets’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C compiler: ‘clang version 18.1.6’
using Fortran compiler: ‘flang-new version 18.1.6’
using C++ compiler: ‘clang version 18.1.6’
make[1]: Entering directory '/data/gannet/ripley/R/packages/tests-clang/mets/src'
/usr/local/clang18/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../inst/include -DNDEBUG -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -I'/data/gannet/ripley/R/test-clang/mvtnorm/include' -isystem /usr/local/clang18/include -I/usr/local/clang/include    -fpic  -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3   -c RcppExports.cpp -o RcppExports.o
/usr/local/clang18/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../inst/include -DNDEBUG -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -I'/data/gannet/ripley/R/test-clang/mvtnorm/include' -isystem /usr/local/clang18/include -I/usr/local/clang/include    -fpic  -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3   -c aalenfrailty.cpp -o aalenfrailty.o
/usr/local/clang18/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../inst/include -DNDEBUG -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -I'/data/gannet/ripley/R/test-clang/mvtnorm/include' -isystem /usr/local/clang18/include -I/usr/local/clang/include    -fpic  -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3   -c apply.cpp -o apply.o
/usr/local/clang18/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../inst/include -DNDEBUG -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -I'/data/gannet/ripley/R/test-clang/mvtnorm/include' -isystem /usr/local/clang18/include -I/usr/local/clang/include    -fpic  -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3   -c binomial-twostage.cpp -o binomial-twostage.o
/usr/local/clang18/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../inst/include -DNDEBUG -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -I'/data/gannet/ripley/R/test-clang/mvtnorm/include' -isystem /usr/local/clang18/include -I/usr/local/clang/include    -fpic  -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3   -c biprobit.cpp -o biprobit.o
/usr/local/clang18/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../inst/include -DNDEBUG -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -I'/data/gannet/ripley/R/test-clang/mvtnorm/include' -isystem /usr/local/clang18/include -I/usr/local/clang/include    -fpic  -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3   -c claytonoakes.cpp -o claytonoakes.o
/usr/local/clang18/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../inst/include -DNDEBUG -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -I'/data/gannet/ripley/R/test-clang/mvtnorm/include' -isystem /usr/local/clang18/include -I/usr/local/clang/include    -fpic  -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3   -c clusterindex.cpp -o clusterindex.o
/usr/local/clang18/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../inst/include -DNDEBUG -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -I'/data/gannet/ripley/R/test-clang/mvtnorm/include' -isystem /usr/local/clang18/include -I/usr/local/clang/include    -fpic  -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3   -c cor.cpp -o cor.o
/usr/local/clang18/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../inst/include -DNDEBUG -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -I'/data/gannet/ripley/R/test-clang/mvtnorm/include' -isystem /usr/local/clang18/include -I/usr/local/clang/include    -fpic  -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3   -c fastcox.cpp -o fastcox.o
/usr/local/clang18/bin/clang -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../inst/include -DNDEBUG -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -I'/data/gannet/ripley/R/test-clang/mvtnorm/include' -isystem /usr/local/clang18/include -I/usr/local/clang/include    -fpic  -O3 -Wall -pedantic -Wp,-D_FORTIFY_SOURCE=3  -c init.c -o init.o
/usr/local/clang18/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../inst/include -DNDEBUG -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -I'/data/gannet/ripley/R/test-clang/mvtnorm/include' -isystem /usr/local/clang18/include -I/usr/local/clang/include    -fpic  -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3   -c mvn.cpp -o mvn.o
/usr/local/clang18/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../inst/include -DNDEBUG -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -I'/data/gannet/ripley/R/test-clang/mvtnorm/include' -isystem /usr/local/clang18/include -I/usr/local/clang/include    -fpic  -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3   -c pch.cpp -o pch.o
/usr/local/clang18/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../inst/include -DNDEBUG -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -I'/data/gannet/ripley/R/test-clang/mvtnorm/include' -isystem /usr/local/clang18/include -I/usr/local/clang/include    -fpic  -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3   -c prop-odd.cpp -o prop-odd.o
fastcox.cpp:995:4: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
  995 |                         lagressum(i)=tmpsum(ss);
      |                         ^
fastcox.cpp:993:3: note: previous statement is here
  993 |                 if ((first>0.1) && (i>=1)&& (ss<nstrata) && (ss>=0))
      |                 ^
mvn.cpp:297:20: warning: unused variable 'logdetS' [-Wunused-variable]
  297 |   double logdetS0, logdetS, sign;
      |                    ^~~~~~~
mvn.cpp:297:29: warning: unused variable 'sign' [-Wunused-variable]
  297 |   double logdetS0, logdetS, sign;
      |                             ^~~~
/usr/local/clang18/bin/clang -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../inst/include -DNDEBUG -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -I'/data/gannet/ripley/R/test-clang/mvtnorm/include' -isystem /usr/local/clang18/include -I/usr/local/clang/include    -fpic  -O3 -Wall -pedantic -Wp,-D_FORTIFY_SOURCE=3  -c randomF77.c -o randomF77.o
/usr/local/clang18/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../inst/include -DNDEBUG -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -I'/data/gannet/ripley/R/test-clang/mvtnorm/include' -isystem /usr/local/clang18/include -I/usr/local/clang/include    -fpic  -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3   -c sim-tools.cpp -o sim-tools.o
/usr/local/clang18/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../inst/include -DNDEBUG -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -I'/data/gannet/ripley/R/test-clang/mvtnorm/include' -isystem /usr/local/clang18/include -I/usr/local/clang/include    -fpic  -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3   -c survival-twostage.cpp -o survival-twostage.o
2 warnings generated.
sim-tools.cpp:60:14: warning: unused variable 'delta' [-Wunused-variable]
   60 |       double delta = curtime-time(cur);
      |              ^~~~~
sim-tools.cpp:64:12: warning: unused variable 'tau2' [-Wunused-variable]
   64 |     double tau2 = tn-input2(N-2,0);
      |            ^~~~
sim-tools.cpp:195:6: warning: unused label 'arma' [-Wunused-label]
  195 |      arma:mat basei=dcum; 
      |      ^~~~~
sim-tools.cpp:241:5: warning: unused label 'arma' [-Wunused-label]
  241 |     arma:mat basei=St; 
      |     ^~~~~
/usr/local/clang18/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../inst/include -DNDEBUG -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -I'/data/gannet/ripley/R/test-clang/mvtnorm/include' -isystem /usr/local/clang18/include -I/usr/local/clang/include    -fpic  -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3   -c tools.cpp -o tools.o
1 warning generated.
/usr/local/clang18/bin/flang-new  -fpic  -O2 -pedantic  -c tvpack.f -o tvpack.o
4 warnings generated.
survival-twostage.cpp:2077:57: warning: variable 'sdj' set but not used [-Wunused-but-set-variable]
 2077 |  double dl1,dl2,ll1,ll2,ll=1,Li,Lk,diff=0,loglikecont=0,sdj=0;
      |                                                         ^
survival-twostage.cpp:2762:21: warning: variable 'thetak' set but not used [-Wunused-but-set-variable]
 2762 |  double llt=1,ssf=0,thetak=0; 
      |                     ^
2 warnings generated.
/usr/local/clang18/bin/clang++ -std=gnu++17 -shared -L/usr/local/clang/lib64 -L/usr/local/clang18/lib -L/usr/local/clang18/lib/x86_64-unknown-linux-gnu -L/usr/local/gcc13/lib64 -L/usr/local/lib64 -o mets.so RcppExports.o aalenfrailty.o apply.o binomial-twostage.o biprobit.o claytonoakes.o clusterindex.o cor.o fastcox.o init.o mvn.o pch.o prop-odd.o randomF77.o sim-tools.o survival-twostage.o tools.o tvpack.o -L/data/gannet/ripley/R/R-clang/lib -lRlapack -L/data/gannet/ripley/R/R-clang/lib -lRblas -lFortran_main -lFortranRuntime -lFortranDecimal -lm -lFortran_main -lFortranRuntime -lFortranDecimal -lm
make[1]: Leaving directory '/data/gannet/ripley/R/packages/tests-clang/mets/src'
make[1]: Entering directory '/data/gannet/ripley/R/packages/tests-clang/mets/src'
make[1]: Leaving directory '/data/gannet/ripley/R/packages/tests-clang/mets/src'
installing to /data/gannet/ripley/R/packages/tests-clang/mets.Rcheck/00LOCK-mets/00new/mets/libs
** R
** data
** demo
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** 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 (mets)