##############################################################################
##############################################################################
###
### Running command:
###
###   /Library/Frameworks/R.framework/Resources/bin/R CMD INSTALL puma
###
##############################################################################
##############################################################################


* installing to library ‘/Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/library’
* installing *source* package ‘puma’ ...
** this is package ‘puma’ version ‘3.49.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 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c PMmultimgmos.c -o PMmultimgmos.o
PMmultimgmos.c:138:39: error: call to undeclared function 'Free'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                if (in_param.parameters[j] != NULL) Free(in_param.parameters[j]);
                                                    ^
PMmultimgmos.c:138:39: 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 *);
         ^
PMmultimgmos.c:152:6: warning: variable 'niter' set but not used [-Wunused-but-set-variable]
        int niter = 1;
            ^
1 warning and 1 error generated.
make: *** [PMmultimgmos.o] Error 1
ERROR: compilation failed for package ‘puma’
* removing ‘/Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/library/puma’