############################################################################## ############################################################################## ### ### Running command: ### ### /Library/Frameworks/R.framework/Resources/bin/R CMD build --keep-empty-dirs --no-resave-data trigger ### ############################################################################## ############################################################################## * checking for file ‘trigger/DESCRIPTION’ ... OK * preparing ‘trigger’: * checking DESCRIPTION meta-information ... OK * cleaning src * installing the package to build vignettes ----------------------------------- * installing *source* package ‘trigger’ ... ** this is package ‘trigger’ version ‘1.53.0’ ** 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 trigger.c -o trigger.o trigger.c:25:20: warning: variable 'n3' set but not used [-Wunused-but-set-variable] int i1,i2,i3,n1,n2,n3; ^ trigger.c:54:8: error: implicit declaration of function 'Calloc' is invalid in C99 [-Werror,-Wimplicit-function-declaration] p = Calloc(*n, double*); ^ trigger.c:54:19: error: expected expression p = Calloc(*n, double*); ^ trigger.c:60:4: error: implicit declaration of function 'Free' is invalid in C99 [-Werror,-Wimplicit-function-declaration] Free(p); ^ trigger.c:60:4: 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 *); ^ trigger.c:89:6: error: implicit declaration of function 'Calloc' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ll = Calloc(*ng, int); ^ trigger.c:89:18: error: expected expression ll = Calloc(*ng, int); ^ trigger.c:90:18: error: expected expression mx = Calloc(*ng, double); ^ trigger.c:91:18: error: expected expression mc = Calloc(*ng, double); ^ trigger.c:92:18: error: expected expression xc = Calloc(*ng, double); ^ trigger.c:93:18: error: expected expression xx = Calloc(*ng, double); ^ trigger.c:94:18: error: expected expression cc = Calloc(*ng, double); ^ trigger.c:146:1: error: implicit declaration of function 'Free' is invalid in C99 [-Werror,-Wimplicit-function-declaration] Free(ll); Free(mx); Free(mc); Free(xc); Free(xx); Free(cc); ^ trigger.c:160:6: error: implicit declaration of function 'Calloc' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ll = Calloc(*ng, int); ^ trigger.c:160:18: error: expected expression ll = Calloc(*ng, int); ^ trigger.c:161:18: error: expected expression mx = Calloc(*ng, double); ^ trigger.c:162:18: error: expected expression mc = Calloc(*ng, double); ^ trigger.c:163:18: error: expected expression xc = Calloc(*ng, double); ^ trigger.c:164:18: error: expected expression xx = Calloc(*ng, double); ^ trigger.c:165:18: error: expected expression cc = Calloc(*ng, double); ^ trigger.c:224:1: error: implicit declaration of function 'Free' is invalid in C99 [-Werror,-Wimplicit-function-declaration] Free(ll); Free(mx); Free(mc); Free(xc); Free(xx); Free(cc); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 1 warning and 20 errors generated. make: *** [trigger.o] Error 1 ERROR: compilation failed for package ‘trigger’ * removing ‘/private/tmp/Rtmp5u4LCH/Rinstc61f392bf95a/trigger’ ----------------------------------- ERROR: package installation failed