* installing *source* package ‘divest’ ...
** package ‘divest’ 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 the compiler supports GNU C++... yes
checking whether clang++ -arch arm64 -std=gnu++14 accepts -g... yes
checking for clang++ -arch arm64 -std=gnu++14 option to enable C++11 features... none needed
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for fmemopen... yes
checking for library containing opj_version... no
checking for library containing jas_getversion... no
configure: creating ./config.status
config.status: creating src/Makevars
** libs
clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -DUSING_R -DmyDisableOpenJPEG -DHAVE_FMEMOPEN -I. -Idcm2niix -Iujpeg -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.2/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.2/RNifti/include' -I/opt/R/arm64/include   -fPIC  -falign-functions=64 -Wall -g -O2  -c main.cpp -o main.o
clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -DUSING_R -DmyDisableOpenJPEG -DHAVE_FMEMOPEN -I. -Idcm2niix -Iujpeg -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.2/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.2/RNifti/include' -I/opt/R/arm64/include   -fPIC  -falign-functions=64 -Wall -g -O2  -c dcm2niix/jpg_0XC3.cpp -o dcm2niix/jpg_0XC3.o
clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -DUSING_R -DmyDisableOpenJPEG -DHAVE_FMEMOPEN -I. -Idcm2niix -Iujpeg -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.2/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.2/RNifti/include' -I/opt/R/arm64/include   -fPIC  -falign-functions=64 -Wall -g -O2  -c dcm2niix/nifti1_io_core.cpp -o dcm2niix/nifti1_io_core.o
clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -DUSING_R -DmyDisableOpenJPEG -DHAVE_FMEMOPEN -I. -Idcm2niix -Iujpeg -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.2/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.2/RNifti/include' -I/opt/R/arm64/include   -fPIC  -falign-functions=64 -Wall -g -O2  -c dcm2niix/nii_dicom.cpp -o dcm2niix/nii_dicom.o
clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -DUSING_R -DmyDisableOpenJPEG -DHAVE_FMEMOPEN -I. -Idcm2niix -Iujpeg -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.2/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.2/RNifti/include' -I/opt/R/arm64/include   -fPIC  -falign-functions=64 -Wall -g -O2  -c dcm2niix/nii_dicom_batch.cpp -o dcm2niix/nii_dicom_batch.o
dcm2niix/nii_dicom_batch.cpp:2505:7: warning: variable 'isIsotropic' set but not used [-Wunused-but-set-variable]
        bool isIsotropic = false;
             ^
dcm2niix/nii_dicom_batch.cpp:6334:9: warning: unused variable 'pf' [-Wunused-variable]
                float pf = 1.0f; //partial fourier
                      ^
dcm2niix/nii_dicom_batch.cpp:6597:7: warning: variable 'isDirLabel' set but not used [-Wunused-but-set-variable]
        bool isDirLabel = false; //report phase encoding direction
             ^
dcm2niix/nii_dicom_batch.cpp:6768:6: warning: variable 'nVol' set but not used [-Wunused-but-set-variable]
        int nVol = 1;
            ^
dcm2niix/nii_dicom_batch.cpp:8022:10: warning: unused variable 'shearMat' [-Wunused-variable]
                        mat33 shearMat;
                              ^
5 warnings generated.
clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -DUSING_R -DmyDisableOpenJPEG -DHAVE_FMEMOPEN -I. -Idcm2niix -Iujpeg -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.2/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.2/RNifti/include' -I/opt/R/arm64/include   -fPIC  -falign-functions=64 -Wall -g -O2  -c dcm2niix/nii_ortho.cpp -o dcm2niix/nii_ortho.o
clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -DUSING_R -DmyDisableOpenJPEG -DHAVE_FMEMOPEN -I. -Idcm2niix -Iujpeg -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.2/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.2/RNifti/include' -I/opt/R/arm64/include   -fPIC  -falign-functions=64 -Wall -g -O2  -c ujpeg/ujpeg.cpp -o ujpeg/ujpeg.o
clang++ -arch arm64 -std=gnu++14 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/arm64/lib -o divest.so main.o dcm2niix/jpg_0XC3.o dcm2niix/nifti1_io_core.o dcm2niix/nii_dicom.o dcm2niix/nii_dicom_batch.o dcm2niix/nii_ortho.o ujpeg/ujpeg.o -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
installing to /Volumes/Builds/packages/big-sur-arm64/results/4.2/divest.Rcheck/00LOCK-divest/00new/divest/libs
** generating debug symbols (dSYM)
** R
** 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 (divest)