############################################################################## ############################################################################## ### ### Running command: ### ### /Library/Frameworks/R.framework/Resources/bin/R CMD build --keep-empty-dirs --no-resave-data SUITOR ### ############################################################################## ############################################################################## * checking for file ‘SUITOR/DESCRIPTION’ ... OK * preparing ‘SUITOR’: * checking DESCRIPTION meta-information ... OK * cleaning src * installing the package to build vignettes ----------------------------------- * installing *source* package ‘SUITOR’ ... ** this is package ‘SUITOR’ version ‘1.11.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 SUITOR_init.c -o SUITOR_init.o 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:166:28: error: unknown type name 'n' static double * dVec_alloc(n, initFlag, initVal) ^ source.c:166:31: error: unknown type name 'initFlag' static double * dVec_alloc(n, initFlag, initVal) ^ source.c:166:41: error: unknown type name 'initVal' static double * dVec_alloc(n, initFlag, initVal) ^ source.c:166:49: error: expected ';' after top level declarator static double * dVec_alloc(n, initFlag, initVal) ^ ; source.c:169:1: error: expected identifier or '(' { ^ source.c:185:25: error: unknown type name 'n' static int * iVec_alloc(n, initFlag, initVal) ^ source.c:185:28: error: unknown type name 'initFlag' static int * iVec_alloc(n, initFlag, initVal) ^ source.c:185:38: error: unknown type name 'initVal' static int * iVec_alloc(n, initFlag, initVal) ^ source.c:185:46: error: expected ';' after top level declarator static int * iVec_alloc(n, initFlag, initVal) ^ ; source.c:186:18: error: redefinition of 'initVal' with a different type: 'int' vs 'double' int n, initFlag, initVal; ^ source.c:168:8: note: previous definition is here double initVal; ^ source.c:187:1: error: expected identifier or '(' { ^ source.c:203:26: error: unknown type name 'n' static char * cVec_alloc(n, initFlag, initVal) ^ source.c:203:29: error: unknown type name 'initFlag' static char * cVec_alloc(n, initFlag, initVal) ^ source.c:203:39: error: unknown type name 'initVal' static char * cVec_alloc(n, initFlag, initVal) ^ source.c:203:47: error: expected ';' after top level declarator static char * cVec_alloc(n, initFlag, initVal) ^ ; source.c:205:6: error: redefinition of 'initVal' with a different type: 'char' vs 'double' char initVal; ^ source.c:168:8: note: previous definition is here double initVal; ^ source.c:206:1: error: expected identifier or '(' { ^ source.c:222:23: error: unknown type name 'v' static void copy_dVec(v, n, ret) ^ source.c:222:26: error: unknown type name 'n' static void copy_dVec(v, n, ret) ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make: *** [source.o] Error 1 ERROR: compilation failed for package ‘SUITOR’ * removing ‘/private/var/folders/r0/l4fjk6cj5xj0j3brt4bplpl40000gt/T/RtmpsOPpbM/Rinst4dcb3b8ea1e4/SUITOR’ ----------------------------------- ERROR: package installation failed