############################################################################## ############################################################################## ### ### Running command: ### ### /Library/Frameworks/R.framework/Resources/bin/R CMD INSTALL genoCN ### ############################################################################## ############################################################################## * installing to library ‘/Library/Frameworks/R.framework/Versions/4.5-x86_64/Resources/library’ * installing *source* package ‘genoCN’ ... ** using staged installation ** libs using C compiler: ‘Apple clang version 14.0.0 (clang-1400.0.29.202)’ using SDK: ‘MacOSX11.3.sdk’ clang -arch x86_64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c tnorm_mle.c -o tnorm_mle.o clang -arch x86_64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c utility.c -o utility.o clang -arch x86_64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c xCNV.c -o xCNV.o 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:317:16: warning: unused variable 'K' [-Wunused-variable] int L, N, M, K, i, z, k, nGtp, contam=*contamR, CNA=*CNAR; ^ xCNV.c:449:25: error: implicit declaration of function 'Calloc' is invalid in C99 [-Werror,-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: implicit declaration of function 'Free' is invalid in C99 [-Werror,-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: implicit declaration of function 'Calloc' is invalid in C99 [-Werror,-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: implicit declaration of function 'Free' is invalid in C99 [-Werror,-Wimplicit-function-declaration] Free(v); ^ xCNV.c:652:19: error: implicit declaration of function 'Calloc' is invalid in C99 [-Werror,-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: implicit declaration of function 'Free' is invalid in C99 [-Werror,-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 ‘/Library/Frameworks/R.framework/Versions/4.5-x86_64/Resources/library/genoCN’