* installing *source* package ‘mdgc’ ...
** package ‘mdgc’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C compiler: ‘Apple clang version 13.0.0 (clang-1300.0.29.30)’
using Fortran compiler: ‘GNU Fortran (GCC) 12.2.0’
using C++ compiler: ‘Apple clang version 13.0.0 (clang-1300.0.29.30)’
using SDK: ‘MacOSX11.3.sdk’
clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/RcppArmadillo/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/testthat/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/BH/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/psqn/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c C_FORTRAN_interface.c -o C_FORTRAN_interface.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/RcppArmadillo/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/testthat/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/BH/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/psqn/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 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/RcppArmadillo/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/testthat/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/BH/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/psqn/include' -I/opt/R/arm64/include     -fPIC  -falign-functions=64 -Wall -g -O2  -c cpp-to-R.cpp -o cpp-to-R.o
In file included from cpp-to-R.cpp:15:
./openmp-exception_ptr.h:12:8: warning: private field 'is_set' is not used [-Wunused-private-field]
  bool is_set = false;
       ^
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.3/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/RcppArmadillo/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/testthat/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/BH/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/psqn/include' -I/opt/R/arm64/include     -fPIC  -falign-functions=64 -Wall -g -O2  -c logLik.cpp -o logLik.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/RcppArmadillo/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/testthat/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/BH/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/psqn/include' -I/opt/R/arm64/include     -fPIC  -falign-functions=64 -Wall -g -O2  -c multinomial-probit.cpp -o multinomial-probit.o
/opt/gfortran/bin/gfortran -arch arm64  -fPIC  -Wall -g -O2  -c mvt.f -o mvt.o
mvt.f:889:11:

  889 |       hs = sign( one, dh - r*dk )
      |           1
Warning: Possible change of value in conversion from REAL(8) to INTEGER(4) at (1) [-Wconversion]
mvt.f:890:11:

  890 |       ks = sign( one, dk - r*dh )
      |           1
Warning: Possible change of value in conversion from REAL(8) to INTEGER(4) at (1) [-Wconversion]
mvt.f:1183:16:

 1183 |             K = MOD( C(NP, MIN(NDIM-1,KLIM-1))*DBLE(K), DBLE(P(NP)) )
      |                1
Warning: Possible change of value in conversion from REAL(8) to INTEGER(4) at (1) [-Wconversion]
mvt.f:1243:17:

 1243 |             JP = 1 + J*R(J)
      |                 1
Warning: Possible change of value in conversion from REAL(8) to INTEGER(4) at (1) [-Wconversion]
mvt.f:90:33:

   90 |       SUBROUTINE MVSUBR( N, W, NF, F )
      |                                 1
Warning: Unused dummy argument ‘nf’ at (1) [-Wunused-dummy-argument]
mvt.f:1179:72:

 1179 |  10   VK(1) = ONE/P(NP)
      |                                                                        ^
Warning: ‘np’ may be used uninitialized [-Wmaybe-uninitialized]
mvt.f:1015:50:

 1015 |       INTEGER NDIM, NF, MINVLS, MAXVLS, INFORM, NP, PLIM, KLIM,
      |                                                  ^
note: ‘np’ was declared here
mvt.f:1204:72:

 1204 |       INTVLS = INTVLS + 2*SAMPLS*P(NP)
      |                                                                        ^
Warning: ‘sampls’ may be used uninitialized [-Wmaybe-uninitialized]
mvt.f:1016:32:

 1016 |      &        NLIM, FLIM, SAMPLS, I, K, INTVLS, MINSMP, KMX
      |                                ^
note: ‘sampls’ was declared here
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/RcppArmadillo/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/testthat/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/BH/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/psqn/include' -I/opt/R/arm64/include     -fPIC  -falign-functions=64 -Wall -g -O2  -c mvtnorm-wrapper.cpp -o mvtnorm-wrapper.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/RcppArmadillo/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/testthat/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/BH/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/psqn/include' -I/opt/R/arm64/include     -fPIC  -falign-functions=64 -Wall -g -O2  -c norm-cdf-approx.cpp -o norm-cdf-approx.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/RcppArmadillo/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/testthat/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/BH/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/psqn/include' -I/opt/R/arm64/include     -fPIC  -falign-functions=64 -Wall -g -O2  -c prof.cpp -o prof.o
clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/RcppArmadillo/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/testthat/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/BH/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/psqn/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c qnorm.c -o qnorm.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/RcppArmadillo/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/testthat/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/BH/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/psqn/include' -I/opt/R/arm64/include     -fPIC  -falign-functions=64 -Wall -g -O2  -c restrict-cdf.cpp -o restrict-cdf.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/RcppArmadillo/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/testthat/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/BH/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/psqn/include' -I/opt/R/arm64/include     -fPIC  -falign-functions=64 -Wall -g -O2  -c test-pmvnorm.cpp -o test-pmvnorm.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/RcppArmadillo/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/testthat/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/BH/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/psqn/include' -I/opt/R/arm64/include     -fPIC  -falign-functions=64 -Wall -g -O2  -c test-restrict-cdf.cpp -o test-restrict-cdf.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/RcppArmadillo/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/testthat/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/BH/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/psqn/include' -I/opt/R/arm64/include     -fPIC  -falign-functions=64 -Wall -g -O2  -c test-runner.cpp -o test-runner.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/RcppArmadillo/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/testthat/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/BH/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/psqn/include' -I/opt/R/arm64/include     -fPIC  -falign-functions=64 -Wall -g -O2  -c threat-safe-random.cpp -o threat-safe-random.o
clang++ -arch arm64 -std=gnu++17 -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 mdgc.so C_FORTRAN_interface.o RcppExports.o cpp-to-R.o logLik.o multinomial-probit.o mvt.o mvtnorm-wrapper.o norm-cdf-approx.o prof.o qnorm.o restrict-cdf.o test-pmvnorm.o test-restrict-cdf.o test-runner.o threat-safe-random.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 -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 _mvkrsv_: registers 72 and 73 not saved contiguously in frame
ld: warning: could not create compact unwind for _mvkbrv_: stack size is too large for frameless function
ld: warning: could not create compact unwind for _mvstdt_: register 75 saved somewhere other than in frame
ld: warning: could not create compact unwind for _mvbvtl_: registers 78 and 79 not saved contiguously in frame
ld: warning: could not create compact unwind for _mvbvu_: registers 72 and 73 not saved contiguously in frame
ld: warning: could not create compact unwind for _mvbvn_: registers 21 and 22 not saved contiguously in frame
ld: warning: could not create compact unwind for _mvbvt_: registers 21 and 22 not saved contiguously in frame
ld: warning: could not create compact unwind for _mvspcl_.part.0: register 73 saved somewhere other than in frame
ld: warning: could not create compact unwind for _mvbvtc_: register 73 saved somewhere other than in frame
installing to /Volumes/Builds/packages/big-sur-arm64/results/4.3/mdgc.Rcheck/00LOCK-mdgc/00new/mdgc/libs
** generating debug symbols (dSYM)
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** 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 (mdgc)