* installing *source* package ‘CPGLIB’ ...
** package ‘CPGLIB’ successfully unpacked and MD5 sums checked
** using staged installation
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether clang++ -arch arm64 -std=gnu++17 accepts -g... yes
checking how to run the C++ preprocessor... clang++ -arch arm64 -std=gnu++17 -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdint.h... (cached) yes
checking for inttypes.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking climits usability... yes
checking climits presence... yes
checking for climits... yes
Type unsigned long long is supported
uint16_t and unit8_t are available in stdint.h
uint16_t and unit8_t are available in inttypes.h
Found builtin CTZ method (for unsigned long)
Found builtin CTZ method (for unsigned long long)
checking for ffsl... yes
checking for ffsll... yes
Found builtin popcount method (for unsigned long)
Found builtin popcount method (for unsigned long long)
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for clang++ -arch arm64 -std=gnu++17 option to support OpenMP... unsupported
configure: creating ./config.status
config.status: creating src/Makevars
config.status: creating src/autoconfig.h
** libs
using C++ compiler: ‘Apple clang version 14.0.0 (clang-1400.0.29.202)’
using SDK: ‘MacOSX11.3.sdk’
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppArmadillo/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2   -c CPGLIB.cpp -o CPGLIB.o
CPGLIB.cpp:22:21: warning: unused variable 'LS_CONST_PARAMETER' [-Wunused-const-variable]
const static double LS_CONST_PARAMETER = 0.25;
                    ^
In file included from CPGLIB.cpp:12:
./CPGLIB.hpp:45:10: warning: private field 'mu_y' is not used [-Wunused-private-field]
  double mu_y;
         ^
./CPGLIB.hpp:46:10: warning: private field 'sd_y' is not used [-Wunused-private-field]
  double sd_y;
         ^
./CPGLIB.hpp:65:10: warning: private field 'Compute_Gradient_Step' is not used [-Wunused-private-field]
  void (*Compute_Gradient_Step)(arma::vec & grad_step, arma::vec & grad_vector);
         ^
./CPGLIB.hpp:68:10: warning: private field 'Proposal_Iteration' is not used [-Wunused-private-field]
  void (*Proposal_Iteration)(double & t_prev, double & t_next, 
         ^
5 warnings generated.
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppArmadillo/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2   -c CPGLIB_Main.cpp -o CPGLIB_Main.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppArmadillo/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2   -c CV_CPGLIB.cpp -o CV_CPGLIB.o
In file included from CV_CPGLIB.cpp:18:
./CV_CPGLIB.hpp:41:10: warning: private field 'mu_y' is not used [-Wunused-private-field]
  double mu_y;
         ^
1 warning generated.
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppArmadillo/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2   -c CV_CPGLIB_Main.cpp -o CV_CPGLIB_Main.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppArmadillo/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2   -c CV_ProxGrad.cpp -o CV_ProxGrad.o
In file included from CV_ProxGrad.cpp:17:
./CV_ProxGrad.hpp:27:15: warning: private field 'G' is not used [-Wunused-private-field]
  arma::uword G;
              ^
./CV_ProxGrad.hpp:41:10: warning: private field 'mu_y' is not used [-Wunused-private-field]
  double mu_y;
         ^
./CV_ProxGrad.hpp:52:10: warning: private field 'cv_opt_old' is not used [-Wunused-private-field]
  double cv_opt_old;
         ^
./CV_ProxGrad.hpp:58:15: warning: private field 'n_threads' is not used [-Wunused-private-field]
  arma::uword n_threads;
              ^
4 warnings generated.
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppArmadillo/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2   -c CV_ProxGrad_Main.cpp -o CV_ProxGrad_Main.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppArmadillo/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2   -c ProxGrad.cpp -o ProxGrad.o
ProxGrad.cpp:21:21: warning: unused variable 'LS_CONST_PARAMETER' [-Wunused-const-variable]
const static double LS_CONST_PARAMETER = 0.25;
                    ^
In file included from ProxGrad.cpp:12:
./ProxGrad.hpp:27:15: warning: private field 'G' is not used [-Wunused-private-field]
  arma::uword G;
              ^
./ProxGrad.hpp:60:10: warning: private field 'Compute_Gradient_Step' is not used [-Wunused-private-field]
  void (*Compute_Gradient_Step)(arma::vec & grad_step, arma::vec & grad_vector);
         ^
./ProxGrad.hpp:63:10: warning: private field 'Proposal_Iteration' is not used [-Wunused-private-field]
  void (*Proposal_Iteration)(double & t_prev, double & t_next, arma::vec & betas, arma::vec & new_betas, arma::vec & proposal);
         ^
4 warnings generated.
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppArmadillo/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2   -c ProxGrad_Main.cpp -o ProxGrad_Main.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppArmadillo/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2   -c RcppExports.cpp -o RcppExports.o
clang++ -arch arm64 -std=gnu++17 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/arm64/lib -o CPGLIB.so CPGLIB.o CPGLIB_Main.o CV_CPGLIB.o CV_CPGLIB_Main.o CV_ProxGrad.o CV_ProxGrad_Main.o ProxGrad.o ProxGrad_Main.o RcppExports.o -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/opt/gfortran/lib/gcc/aarch64-apple-darwin20.0/12.2.0 -L/opt/gfortran/lib -lgfortran -lemutls_w -lquadmath -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
ld: warning: could not create compact unwind for ___emutls_get_address: registers 23 and 24 not saved contiguously in frame
installing to /Volumes/Builds/packages/big-sur-arm64/results/4.4/CPGLIB.Rcheck/00LOCK-CPGLIB/00new/CPGLIB/libs
** generating debug symbols (dSYM)
** R
** 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 (CPGLIB)