* installing *source* package ‘PerMallows’ ... ** this is package ‘PerMallows’ version ‘1.14’ ** package ‘PerMallows’ successfully unpacked and MD5 sums checked ** using staged installation ** libs using C compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’ using C++ compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’ using SDK: ‘MacOSX11.3.sdk’ clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/Rcpp/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -DR_NO_REMAP -c Cayley.cpp -o Cayley.o clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/Rcpp/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -DR_NO_REMAP -c Ferrers_diagram.cpp -o Ferrers_diagram.o clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/Rcpp/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -DR_NO_REMAP -c Generic.cpp -o Generic.o clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/Rcpp/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -DR_NO_REMAP -c Hamming.cpp -o Hamming.o clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/Rcpp/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -DR_NO_REMAP -c Kendall.cpp -o Kendall.o clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/Rcpp/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -DR_NO_REMAP -c Newton_raphson.cpp -o Newton_raphson.o clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/Rcpp/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -DR_NO_REMAP -c Ulam.cpp -o Ulam.o clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/Rcpp/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -DR_NO_REMAP -c Ulam_disk.cpp -o Ulam_disk.o clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/Rcpp/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -DR_NO_REMAP -c Wrapper.cpp -o Wrapper.o clang -arch x86_64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/Rcpp/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c init.c -o init.o clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/Rcpp/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -DR_NO_REMAP -c main.cpp -o main.o clang -arch x86_64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/Rcpp/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c registerDynamicSymbol.c -o registerDynamicSymbol.o clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/Rcpp/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -DR_NO_REMAP -c test.cpp -o test.o Ulam.cpp:324:13: warning: variable 'distance_acum' set but not used [-Wunused-but-set-variable] double distance_acum = 0, rand_distance = 0; ^ Ulam_disk.cpp:67:5: error: use of undeclared identifier 'error' error("Error: Insufficient memory for vector."); ^ Ulam_disk.cpp:110:9: error: use of undeclared identifier 'error' error("Error: Failed to open file for writing: %s", str_permus_per_shape_n_d); ^ Ulam_disk.cpp:161:5: error: use of undeclared identifier 'error' error("Error: Failed to open file for writing: %s", str_permus_per_dist); ^ Wrapper.cpp:132:24: error: use of undeclared identifier 'allocMatrix'; did you mean 'Rf_allocMatrix'? PROTECT(Rval = allocMatrix(REALSXP, m, n)); ^~~~~~~~~~~ Rf_allocMatrix /Library/Frameworks/R.framework/Resources/include/Rinternals.h:388:31: note: expanded from macro 'PROTECT' #define PROTECT(s) Rf_protect(s) ^ /Library/Frameworks/R.framework/Resources/include/Rinternals.h:504:6: note: 'Rf_allocMatrix' declared here SEXP Rf_allocMatrix(SEXPTYPE, int, int); ^ Wrapper.cpp:156:24: error: use of undeclared identifier 'allocMatrix'; did you mean 'Rf_allocMatrix'? PROTECT(Rval = allocMatrix(REALSXP, m, n)); ^~~~~~~~~~~ Rf_allocMatrix /Library/Frameworks/R.framework/Resources/include/Rinternals.h:388:31: note: expanded from macro 'PROTECT' #define PROTECT(s) Rf_protect(s) ^ /Library/Frameworks/R.framework/Resources/include/Rinternals.h:504:6: note: 'Rf_allocMatrix' declared here SEXP Rf_allocMatrix(SEXPTYPE, int, int); ^ Wrapper.cpp:196:24: error: use of undeclared identifier 'allocMatrix'; did you mean 'Rf_allocMatrix'? PROTECT(Rval = allocMatrix(REALSXP, m, n)); ^~~~~~~~~~~ Rf_allocMatrix /Library/Frameworks/R.framework/Resources/include/Rinternals.h:388:31: note: expanded from macro 'PROTECT' #define PROTECT(s) Rf_protect(s) ^ /Library/Frameworks/R.framework/Resources/include/Rinternals.h:504:6: note: 'Rf_allocMatrix' declared here SEXP Rf_allocMatrix(SEXPTYPE, int, int); ^ Wrapper.cpp:217:21: error: use of undeclared identifier 'getAttrib'; did you mean 'Rf_getAttrib'? SEXP Rdim = getAttrib(samples, R_DimSymbol); ^~~~~~~~~ Rf_getAttrib /Library/Frameworks/R.framework/Resources/include/Rinternals.h:538:6: note: 'Rf_getAttrib' declared here SEXP Rf_getAttrib(SEXP, SEXP); ^ Wrapper.cpp:266:24: error: use of undeclared identifier 'allocVector'; did you mean 'Rf_allocVector'? PROTECT(Rval = allocVector(INTSXP, 1)); ^~~~~~~~~~~ Rf_allocVector /Library/Frameworks/R.framework/Resources/include/Rinternals.h:388:31: note: expanded from macro 'PROTECT' #define PROTECT(s) Rf_protect(s) ^ /Library/Frameworks/R.framework/Resources/include/Rinternals.h:1078:10: note: 'Rf_allocVector' declared here SEXP Rf_allocVector(SEXPTYPE, R_xlen_t); ^ Wrapper.cpp:289:24: error: use of undeclared identifier 'allocVector'; did you mean 'Rf_allocVector'? PROTECT(Rval = allocVector(REALSXP, n)); ^~~~~~~~~~~ Rf_allocVector /Library/Frameworks/R.framework/Resources/include/Rinternals.h:388:31: note: expanded from macro 'PROTECT' #define PROTECT(s) Rf_protect(s) ^ /Library/Frameworks/R.framework/Resources/include/Rinternals.h:1078:10: note: 'Rf_allocVector' declared here SEXP Rf_allocVector(SEXPTYPE, R_xlen_t); ^ Wrapper.cpp:309:24: error: use of undeclared identifier 'allocVector'; did you mean 'Rf_allocVector'? PROTECT(Rval = allocVector(INTSXP, 1)); ^~~~~~~~~~~ Rf_allocVector /Library/Frameworks/R.framework/Resources/include/Rinternals.h:388:31: note: expanded from macro 'PROTECT' #define PROTECT(s) Rf_protect(s) ^ /Library/Frameworks/R.framework/Resources/include/Rinternals.h:1078:10: note: 'Rf_allocVector' declared here SEXP Rf_allocVector(SEXPTYPE, R_xlen_t); ^ Wrapper.cpp:344:24: error: use of undeclared identifier 'allocVector'; did you mean 'Rf_allocVector'? PROTECT(Rval = allocVector(REALSXP, 1));//vector len 1 ^~~~~~~~~~~ Rf_allocVector /Library/Frameworks/R.framework/Resources/include/Rinternals.h:388:31: note: expanded from macro 'PROTECT' #define PROTECT(s) Rf_protect(s) ^ /Library/Frameworks/R.framework/Resources/include/Rinternals.h:1078:10: note: 'Rf_allocVector' declared here SEXP Rf_allocVector(SEXPTYPE, R_xlen_t); ^ 3 errors generated. make: *** [Ulam_disk.o] Error 1 make: *** Waiting for unfinished jobs.... 8 errors generated. make: *** [Wrapper.o] Error 1 1 warning generated. ERROR: compilation failed for package ‘PerMallows’ * removing ‘/Volumes/Builds/packages/big-sur-x86_64/results/4.5/PerMallows.Rcheck/PerMallows’