############################################################################## ############################################################################## ### ### Running command: ### ### /Library/Frameworks/R.framework/Resources/bin/R CMD build --keep-empty-dirs --no-resave-data gpuMagic ### ############################################################################## ############################################################################## * checking for file ‘gpuMagic/DESCRIPTION’ ... OK * preparing ‘gpuMagic’: * checking DESCRIPTION meta-information ... OK * cleaning src * installing the package to build vignettes ----------------------------------- * installing *source* package ‘gpuMagic’ ... ** using staged installation ** libs using C++ compiler: ‘Apple clang version 15.0.0 (clang-1500.1.0.2.5)’ using C++11 using SDK: ‘MacOSX11.3.sdk’ clang++ -arch arm64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/Library/Frameworks/R.framework/Resources/include -I../inst/include/OpenCL_header -DCL_TARGET_OPENCL_VERSION=220 -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -DCL_SILENCE_DEPRECATION -I'/Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/library/Rcpp/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -DR_NO_REMAP -c C_Interface.cpp -o C_Interface.o C_Interface.cpp:16:21: error: use of undeclared identifier 'ScalarInteger'; did you mean 'Rf_ScalarInteger'? SEXP platformNum = ScalarInteger(kernelManager::getPlatformNum()); ^~~~~~~~~~~~~ Rf_ScalarInteger /Library/Frameworks/R.framework/Resources/include/Rinternals.h:1125:7: note: 'Rf_ScalarInteger' declared here SEXP Rf_ScalarInteger(int); ^ C_Interface.cpp:22:61: error: use of undeclared identifier 'asInteger'; did you mean 'Rf_asInteger'? SEXP deviceNum = ScalarInteger(kernelManager::getDeviceNum(asInteger(platform))); ^~~~~~~~~ Rf_asInteger /Library/Frameworks/R.framework/Resources/include/Rinternals.h:487:5: note: 'Rf_asInteger' declared here int Rf_asInteger(SEXP x); ^ C_Interface.cpp:22:19: error: use of undeclared identifier 'ScalarInteger'; did you mean 'Rf_ScalarInteger'? SEXP deviceNum = ScalarInteger(kernelManager::getDeviceNum(asInteger(platform))); ^~~~~~~~~~~~~ Rf_ScalarInteger /Library/Frameworks/R.framework/Resources/include/Rinternals.h:1125:7: note: 'Rf_ScalarInteger' declared here SEXP Rf_ScalarInteger(int); ^ C_Interface.cpp:28:26: error: use of undeclared identifier 'asInteger'; did you mean 'Rf_asInteger'? deviceIdentifier id = { asInteger(platform) ,asInteger(device) }; ^~~~~~~~~ Rf_asInteger /Library/Frameworks/R.framework/Resources/include/Rinternals.h:487:5: note: 'Rf_asInteger' declared here int Rf_asInteger(SEXP x); ^ C_Interface.cpp:28:47: error: use of undeclared identifier 'asInteger'; did you mean 'Rf_asInteger'? deviceIdentifier id = { asInteger(platform) ,asInteger(device) }; ^~~~~~~~~ Rf_asInteger /Library/Frameworks/R.framework/Resources/include/Rinternals.h:487:5: note: 'Rf_asInteger' declared here int Rf_asInteger(SEXP x); ^ C_Interface.cpp:30:24: error: use of undeclared identifier 'allocVector'; did you mean 'Rf_allocVector'? SEXP info_R = PROTECT(allocVector(VECSXP, 8)); ^~~~~~~~~~~ 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); ^ C_Interface.cpp:32:36: error: use of undeclared identifier 'mkString' SET_VECTOR_ELT(info_R, 0, PROTECT(mkString(info.device_name.c_str()))); ^ C_Interface.cpp:33:36: error: use of undeclared identifier 'ScalarInteger'; did you mean 'Rf_ScalarInteger'? SET_VECTOR_ELT(info_R, 1, PROTECT(ScalarInteger(info.device_type))); ^~~~~~~~~~~~~ Rf_ScalarInteger /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:1125:7: note: 'Rf_ScalarInteger' declared here SEXP Rf_ScalarInteger(int); ^ C_Interface.cpp:34:36: error: use of undeclared identifier 'ScalarReal'; did you mean 'Rf_ScalarReal'? SET_VECTOR_ELT(info_R, 2, PROTECT(ScalarReal(info.global_memory))); ^~~~~~~~~~ Rf_ScalarReal /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:1128:7: note: 'Rf_ScalarReal' declared here SEXP Rf_ScalarReal(double); ^ C_Interface.cpp:35:36: error: use of undeclared identifier 'ScalarReal'; did you mean 'Rf_ScalarReal'? SET_VECTOR_ELT(info_R, 3, PROTECT(ScalarReal(info.local_memory))); ^~~~~~~~~~ Rf_ScalarReal /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:1128:7: note: 'Rf_ScalarReal' declared here SEXP Rf_ScalarReal(double); ^ C_Interface.cpp:36:36: error: use of undeclared identifier 'ScalarLogical'; did you mean 'Rf_ScalarLogical'? SET_VECTOR_ELT(info_R, 4, PROTECT(ScalarLogical(info.has_local_memory))); ^~~~~~~~~~~~~ Rf_ScalarLogical /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:1126:7: note: 'Rf_ScalarLogical' declared here SEXP Rf_ScalarLogical(int); ^ C_Interface.cpp:37:36: error: use of undeclared identifier 'mkString' SET_VECTOR_ELT(info_R, 5, PROTECT(mkString(info.opencl_version.c_str()))); ^ C_Interface.cpp:38:36: error: use of undeclared identifier 'ScalarInteger'; did you mean 'Rf_ScalarInteger'? SET_VECTOR_ELT(info_R, 6, PROTECT(ScalarInteger(info.compute_unit_num))); ^~~~~~~~~~~~~ Rf_ScalarInteger /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:1125:7: note: 'Rf_ScalarInteger' declared here SEXP Rf_ScalarInteger(int); ^ C_Interface.cpp:39:36: error: use of undeclared identifier 'ScalarInteger'; did you mean 'Rf_ScalarInteger'? SET_VECTOR_ELT(info_R, 7, PROTECT(ScalarInteger(info.work_group_size))); ^~~~~~~~~~~~~ Rf_ScalarInteger /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:1125:7: note: 'Rf_ScalarInteger' declared here SEXP Rf_ScalarInteger(int); ^ C_Interface.cpp:41:2: error: use of undeclared identifier 'unprotect' unprotect(9); ^ C_Interface.cpp:48:26: error: use of undeclared identifier 'asInteger'; did you mean 'Rf_asInteger'? deviceIdentifier id = { asInteger(platform) ,asInteger(device) }; ^~~~~~~~~ Rf_asInteger /Library/Frameworks/R.framework/Resources/include/Rinternals.h:487:5: note: 'Rf_asInteger' declared here int Rf_asInteger(SEXP x); ^ C_Interface.cpp:48:47: error: use of undeclared identifier 'asInteger'; did you mean 'Rf_asInteger'? deviceIdentifier id = { asInteger(platform) ,asInteger(device) }; ^~~~~~~~~ Rf_asInteger /Library/Frameworks/R.framework/Resources/include/Rinternals.h:487:5: note: 'Rf_asInteger' declared here int Rf_asInteger(SEXP x); ^ C_Interface.cpp:49:26: error: use of undeclared identifier 'asInteger'; did you mean 'Rf_asInteger'? dtype dataType = (dtype)asInteger(type); ^~~~~~~~~ Rf_asInteger /Library/Frameworks/R.framework/Resources/include/Rinternals.h:487:5: note: 'Rf_asInteger' declared here int Rf_asInteger(SEXP x); ^ C_Interface.cpp:50:22: error: use of undeclared identifier 'asReal' size_t dataLength = asReal(length); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make: *** [C_Interface.o] Error 1 ERROR: compilation failed for package ‘gpuMagic’ * removing ‘/private/var/folders/r0/l4fjk6cj5xj0j3brt4bplpl40000gt/T/Rtmpb96uC7/Rinst332b761a654c/gpuMagic’ ----------------------------------- ERROR: package installation failed