############################################################################## ############################################################################## ### ### Running command: ### ### /Library/Frameworks/R.framework/Resources/bin/R CMD INSTALL iCARE ### ############################################################################## ############################################################################## * installing to library ‘/Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/library’ * installing *source* package ‘iCARE’ ... ** this is package ‘iCARE’ version ‘1.37.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 -std=gnu2x -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c source.c -o source.o source.c:45:21: error: unknown type name 'n' double * dVec_alloc(n, initFlag, initVal) ^ source.c:45:24: error: unknown type name 'initFlag' double * dVec_alloc(n, initFlag, initVal) ^ source.c:45:34: error: unknown type name 'initVal' double * dVec_alloc(n, initFlag, initVal) ^ source.c:45:42: error: expected ';' after top level declarator double * dVec_alloc(n, initFlag, initVal) ^ ; source.c:48:1: error: expected identifier or '(' { ^ source.c:64:18: error: unknown type name 'n' int * iVec_alloc(n, initFlag, initVal) ^ source.c:64:21: error: unknown type name 'initFlag' int * iVec_alloc(n, initFlag, initVal) ^ source.c:64:31: error: unknown type name 'initVal' int * iVec_alloc(n, initFlag, initVal) ^ source.c:64:39: error: expected ';' after top level declarator int * iVec_alloc(n, initFlag, initVal) ^ ; source.c:65:18: error: redefinition of 'initVal' with a different type: 'int' vs 'double' int n, initFlag, initVal; ^ source.c:47:8: note: previous definition is here double initVal; ^ source.c:66:1: error: expected identifier or '(' { ^ source.c:81:22: error: unknown type name 'nrow' double ** dMat_alloc(nrow, ncol, initFlag, initVal) ^ source.c:81:28: error: unknown type name 'ncol' double ** dMat_alloc(nrow, ncol, initFlag, initVal) ^ source.c:81:34: error: unknown type name 'initFlag' double ** dMat_alloc(nrow, ncol, initFlag, initVal) ^ source.c:81:44: error: unknown type name 'initVal' double ** dMat_alloc(nrow, ncol, initFlag, initVal) ^ source.c:81:52: error: expected ';' after top level declarator double ** dMat_alloc(nrow, ncol, initFlag, initVal) ^ ; source.c:84:1: error: expected identifier or '(' { ^ source.c:98:18: error: unknown type name 'x' void matrix_free(x, n) ^ source.c:98:21: error: unknown type name 'n' void matrix_free(x, n) ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make: *** [source.o] Error 1 ERROR: compilation failed for package ‘iCARE’ * removing ‘/Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/library/iCARE’