##############################################################################
##############################################################################
###
### Running command:
###
###   /Library/Frameworks/R.framework/Resources/bin/R CMD build --keep-empty-dirs --no-resave-data genoCN
###
##############################################################################
##############################################################################


* checking for file ‘genoCN/DESCRIPTION’ ... OK
* preparing ‘genoCN’:
* checking DESCRIPTION meta-information ... OK
* cleaning src
* installing the package to build vignettes
      -----------------------------------
* installing *source* package ‘genoCN’ ...
** this is package ‘genoCN’ version ‘1.59.0’
** using staged installation
** libs
using C compiler: ‘Apple clang version 15.0.0 (clang-1500.1.0.2.5)’
using SDK: ‘MacOSX11.3.sdk’
clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c tnorm_mle.c -o tnorm_mle.o
clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c utility.c -o utility.o
clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c xCNV.c -o xCNV.o
xCNV.c:317:16: warning: unused variable 'K' [-Wunused-variable]
  int L, N, M, K, i, z, k, nGtp, contam=*contamR, CNA=*CNAR;
               ^
xCNV.c:317:25: warning: unused variable 'k' [-Wunused-variable]
  int L, N, M, K, i, z, k, nGtp, contam=*contamR, CNA=*CNAR;
                        ^
xCNV.c:449:25: error: call to undeclared function 'Calloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    trans1 = (double**) Calloc(N, double*);
                        ^
xCNV.c:449:35: error: expected expression
    trans1 = (double**) Calloc(N, double*);
                                  ^
xCNV.c:450:39: error: expected expression
    trans1[0] = (double*) Calloc(N*N, double);
                                      ^
xCNV.c:455:33: error: expected expression
    v_old = (double *)Calloc(N, double);
                                ^
xCNV.c:456:33: error: expected expression
    v_new = (double *)Calloc(N, double);
                                ^
xCNV.c:458:32: error: expected expression
    path_m = (int**) Calloc(L, int*);
                               ^
xCNV.c:459:36: error: expected expression
    path_m[0] = (int*) Calloc(L*N, int);
                                   ^
xCNV.c:464:31: error: expected expression
    tmp = (double *)Calloc(N, double);
                              ^
xCNV.c:532:5: error: call to undeclared function 'Free'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    Free(v_old);
    ^
xCNV.c:532:5: note: did you mean 'free'?
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/malloc/_malloc.h:42:7: note: 'free' declared here
void     free(void *);
         ^
xCNV.c:579:19: error: call to undeclared function 'Calloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    v = (double *)Calloc(N, double);
                  ^
xCNV.c:579:29: error: expected expression
    v = (double *)Calloc(N, double);
                            ^
xCNV.c:581:35: error: expected expression
    trans1 = (double**) Calloc(N, double*);
                                  ^
xCNV.c:582:39: error: expected expression
    trans1[0] = (double*) Calloc(N*N, double);
                                      ^
xCNV.c:613:5: error: call to undeclared function 'Free'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    Free(v);
    ^
xCNV.c:652:19: error: call to undeclared function 'Calloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    v = (double *)Calloc(N, double);
                  ^
xCNV.c:652:29: error: expected expression
    v = (double *)Calloc(N, double);
                            ^
xCNV.c:654:35: error: expected expression
    trans1 = (double**) Calloc(N, double*);
                                  ^
xCNV.c:655:39: error: expected expression
    trans1[0] = (double*) Calloc(N*N, double);
                                      ^
xCNV.c:683:3: error: call to undeclared function 'Free'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  Free(v);
  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 warnings and 20 errors generated.
make: *** [xCNV.o] Error 1
ERROR: compilation failed for package ‘genoCN’
* removing ‘/private/var/folders/r0/l4fjk6cj5xj0j3brt4bplpl40000gt/T/RtmpPJjBJH/Rinste56f4f5fe5f8/genoCN’
      -----------------------------------
ERROR: package installation failed