############################################################################## ############################################################################## ### ### Running command: ### ### /Library/Frameworks/R.framework/Resources/bin/R CMD INSTALL chromstaR ### ############################################################################## ############################################################################## * installing to library ‘/Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/library’ * installing *source* package ‘chromstaR’ ... ** 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=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -DR_NO_REMAP -c R_interface.cpp -o R_interface.o clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -DR_NO_REMAP -c densities.cpp -o densities.o densities.cpp:25:58: error: expected '(' for function-style cast or type construction this->lxfactorials = (double*) Calloc(max_obs+1, double); ~~~~~~^ densities.cpp:40:3: error: use of undeclared identifier 'Free'; did you mean 'free'? Free(this->lxfactorials); ^~~~ free /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/malloc/_malloc.h:42:7: note: 'free' declared here void free(void *); ^ densities.cpp:347:58: error: expected '(' for function-style cast or type construction this->lxfactorials = (double*) Calloc(max_obs+1, double); ~~~~~~^ densities.cpp:362:3: error: use of undeclared identifier 'Free'; did you mean 'free'? Free(this->lxfactorials); ^~~~ free /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/malloc/_malloc.h:42:7: note: 'free' declared here void free(void *); ^ densities.cpp:881:49: error: expected '(' for function-style cast or type construction double* z = (double*) Calloc(this->Nmod, double); ~~~~~~^ densities.cpp:976:2: error: use of undeclared identifier 'Free'; did you mean 'free'? Free(z); ^~~~ free /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/malloc/_malloc.h:42:7: note: 'free' declared here void free(void *); ^ 6 errors generated. make: *** [densities.o] Error 1 ERROR: compilation failed for package ‘chromstaR’ * removing ‘/Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/library/chromstaR’