############################################################################## ############################################################################## ### ### Running command: ### ### /Library/Frameworks/R.framework/Resources/bin/R CMD build --keep-empty-dirs --no-resave-data chromstaR ### ############################################################################## ############################################################################## * checking for file ‘chromstaR/DESCRIPTION’ ... OK * preparing ‘chromstaR’: * checking DESCRIPTION meta-information ... OK * cleaning src * installing the package to build vignettes ----------------------------------- * 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 ‘/private/var/folders/r0/l4fjk6cj5xj0j3brt4bplpl40000gt/T/RtmpMmAW12/Rinste67c46dd361b/chromstaR’ ----------------------------------- ERROR: package installation failed