* installing *source* package ‘xgboost’ ... ** package ‘xgboost’ successfully unpacked and MD5 sums checked ** using staged installation checking Backtrace lib... checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C++... yes checking whether g++-13 -std=gnu++17 accepts -g... yes checking for g++-13 -std=gnu++17 option to enable C++11 features... none needed checking for backtrace in -lexecinfo... no checking endian... configure: creating ./config.status config.status: creating src/Makevars ** libs Makevars:17: -DXGBOOST_STRICT_R_MODE=1 Makevars:17: -DDMLC_LOG_BEFORE_THROW=0 Makevars:17: -DDMLC_ENABLE_STD_THREAD=1 Makevars:17: -DDMLC_DISABLE_STDIN=1 Makevars:17: -DDMLC_LOG_CUSTOMIZE=1 Makevars:17: -DXGBOOST_CUSTOMIZE_LOGGER=1 Makevars:17: -DRABIT_CUSTOMIZE_MSG_ using C compiler: ‘gcc-13 (GCC) 13.2.0’ using C++ compiler: ‘g++-13 (GCC) 13.2.0’ using C++17 make[2]: Entering directory '/data/gannet/ripley/R/packages/tests-noRemap/xgboost/src' Makevars:17: -DXGBOOST_STRICT_R_MODE=1 Makevars:17: -DDMLC_LOG_BEFORE_THROW=0 Makevars:17: -DDMLC_ENABLE_STD_THREAD=1 Makevars:17: -DDMLC_DISABLE_STDIN=1 Makevars:17: -DDMLC_LOG_CUSTOMIZE=1 Makevars:17: -DXGBOOST_CUSTOMIZE_LOGGER=1 Makevars:17: -DRABIT_CUSTOMIZE_MSG_ g++-13 -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I./include -I./dmlc-core/include -I./rabit/include -I. -DXGBOOST_STRICT_R_MODE=1 -DDMLC_LOG_BEFORE_THROW=0 -DDMLC_ENABLE_STD_THREAD=1 -DDMLC_DISABLE_STDIN=1 -DDMLC_LOG_CUSTOMIZE=1 -DXGBOOST_CUSTOMIZE_LOGGER=1 -DRABIT_CUSTOMIZE_MSG_ -I/usr/local/include -fopenmp -DDMLC_CMAKE_LITTLE_ENDIAN=1 -pthread -fvisibility=hidden -fpic -g -O2 -Wall -pedantic -mtune=native -Wno-ignored-attributes -Wno-parentheses -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -DR_NO_REMAP -c xgboost_R.cc -o xgboost_R.o In file included from ./include/xgboost/linalg.h:13, from ./include/xgboost/data.h:16, from xgboost_R.cc:7: ./include/xgboost/json.h:62:18: warning: 'virtual xgboost::Value& xgboost::Value::operator=(const xgboost::Value&)' was hidden [-Woverloaded-virtual=] 62 | virtual Value& operator=(Value const& rhs) = delete; | ^~~~~~~~ ./include/xgboost/json.h:86:7: note: by 'xgboost::JsonString& xgboost::JsonString::operator=(const xgboost::JsonString&)' 86 | class JsonString : public Value { | ^~~~~~~~~~ ./include/xgboost/json.h:62:18: warning: 'virtual xgboost::Value& xgboost::Value::operator=(const xgboost::Value&)' was hidden [-Woverloaded-virtual=] 62 | virtual Value& operator=(Value const& rhs) = delete; | ^~~~~~~~ ./include/xgboost/json.h:112:7: note: by 'xgboost::JsonArray& xgboost::JsonArray::operator=(const xgboost::JsonArray&)' 112 | class JsonArray : public Value { | ^~~~~~~~~ ./include/xgboost/json.h:62:18: warning: 'virtual xgboost::Value& xgboost::Value::operator=(const xgboost::Value&)' was hidden [-Woverloaded-virtual=] 62 | virtual Value& operator=(Value const& rhs) = delete; | ^~~~~~~~ ./include/xgboost/json.h:189:7: note: by 'xgboost::JsonObject& xgboost::JsonObject::operator=(const xgboost::JsonObject&)' 189 | class JsonObject : public Value { | ^~~~~~~~~~ ./include/xgboost/json.h:62:18: warning: 'virtual xgboost::Value& xgboost::Value::operator=(const xgboost::Value&)' was hidden [-Woverloaded-virtual=] 62 | virtual Value& operator=(Value const& rhs) = delete; | ^~~~~~~~ ./include/xgboost/json.h:218:7: note: by 'xgboost::JsonNumber& xgboost::JsonNumber::operator=(const xgboost::JsonNumber&)' 218 | class JsonNumber : public Value { | ^~~~~~~~~~ ./include/xgboost/json.h:62:18: warning: 'virtual xgboost::Value& xgboost::Value::operator=(const xgboost::Value&)' was hidden [-Woverloaded-virtual=] 62 | virtual Value& operator=(Value const& rhs) = delete; | ^~~~~~~~ ./include/xgboost/json.h:252:7: note: by 'xgboost::JsonInteger& xgboost::JsonInteger::operator=(const xgboost::JsonInteger&)' 252 | class JsonInteger : public Value { | ^~~~~~~~~~~ ./include/xgboost/json.h:62:18: warning: 'virtual xgboost::Value& xgboost::Value::operator=(const xgboost::Value&)' was hidden [-Woverloaded-virtual=] 62 | virtual Value& operator=(Value const& rhs) = delete; | ^~~~~~~~ ./include/xgboost/json.h:295:7: note: by 'xgboost::JsonNull& xgboost::JsonNull::operator=(const xgboost::JsonNull&)' 295 | class JsonNull : public Value { | ^~~~~~~~ ./include/xgboost/json.h:62:18: warning: 'virtual xgboost::Value& xgboost::Value::operator=(const xgboost::Value&)' was hidden [-Woverloaded-virtual=] 62 | virtual Value& operator=(Value const& rhs) = delete; | ^~~~~~~~ ./include/xgboost/json.h:311:7: note: by 'xgboost::JsonBoolean& xgboost::JsonBoolean::operator=(const xgboost::JsonBoolean&)' 311 | class JsonBoolean : public Value { | ^~~~~~~~~~~ xgboost_R.cc: In function 'SEXPREC* XGCheckNullPtr_R(SEXP)': xgboost_R.cc:65:10: error: 'ScalarLogical' was not declared in this scope; did you mean 'Rf_ScalarLogical'? 65 | return ScalarLogical(R_ExternalPtrAddr(handle) == NULL); | ^~~~~~~~~~~~~ | Rf_ScalarLogical xgboost_R.cc: In function 'SEXPREC* XGBSetGlobalConfig_R(SEXP)': xgboost_R.cc:78:38: error: 'asChar' was not declared in this scope 78 | CHECK_CALL(XGBSetGlobalConfig(CHAR(asChar(json_str)))); | ^~~~~~ xgboost_R.cc:44:8: note: in definition of macro 'CHECK_CALL' 44 | if ((x) != 0) { \ | ^ xgboost_R.cc:78:33: note: in expansion of macro 'CHAR' 78 | CHECK_CALL(XGBSetGlobalConfig(CHAR(asChar(json_str)))); | ^~~~ xgboost_R.cc: In function 'SEXPREC* XGBGetGlobalConfig_R()': xgboost_R.cc:88:10: error: 'mkString' was not declared in this scope; did you mean 'Rf_mkString'? 88 | return mkString(json_str); | ^~~~~~~~ | Rf_mkString xgboost_R.cc: In function 'SEXPREC* XGDMatrixCreateFromFile_R(SEXP, SEXP)': xgboost_R.cc:95:43: error: 'asChar' was not declared in this scope 95 | CHECK_CALL(XGDMatrixCreateFromFile(CHAR(asChar(fname)), asInteger(silent), &handle)); | ^~~~~~ xgboost_R.cc:44:8: note: in definition of macro 'CHECK_CALL' 44 | if ((x) != 0) { \ | ^ xgboost_R.cc:95:38: note: in expansion of macro 'CHAR' 95 | CHECK_CALL(XGDMatrixCreateFromFile(CHAR(asChar(fname)), asInteger(silent), &handle)); | ^~~~ xgboost_R.cc:95:59: error: 'asInteger' was not declared in this scope; did you mean 'Rf_asInteger'? 95 | CHECK_CALL(XGDMatrixCreateFromFile(CHAR(asChar(fname)), asInteger(silent), &handle)); | ^~~~~~~~~ xgboost_R.cc:44:8: note: in definition of macro 'CHECK_CALL' 44 | if ((x) != 0) { \ | ^ xgboost_R.cc: In function 'SEXPREC* XGDMatrixCreateFromMat_R(SEXP, SEXP, SEXP)': xgboost_R.cc:106:14: error: 'getAttrib' was not declared in this scope; did you mean 'Rf_getAttrib'? 106 | SEXP dim = getAttrib(mat, R_DimSymbol); | ^~~~~~~~~ | Rf_getAttrib xgboost_R.cc:118:55: error: 'asInteger' was not declared in this scope; did you mean 'Rf_asInteger'? 118 | int32_t threads = xgboost::common::OmpGetNumThreads(asInteger(n_threads)); | ^~~~~~~~~ | Rf_asInteger xgboost_R.cc:141:41: error: 'asReal' was not declared in this scope 141 | asReal(missing), &handle, threads)); | ^~~~~~ xgboost_R.cc:44:8: note: in definition of macro 'CHECK_CALL' 44 | if ((x) != 0) { \ | ^ xgboost_R.cc: In function 'SEXPREC* XGDMatrixCreateFromCSC_R(SEXP, SEXP, SEXP, SEXP, SEXP)': xgboost_R.cc:156:40: error: 'length' was not declared in this scope 156 | size_t nindptr = static_cast(length(indptr)); | ^~~~~~ xgboost_R.cc:166:55: error: 'asInteger' was not declared in this scope; did you mean 'Rf_asInteger'? 166 | int32_t threads = xgboost::common::OmpGetNumThreads(asInteger(n_threads)); | ^~~~~~~~~ | Rf_asInteger xgboost_R.cc: In function 'SEXPREC* XGDMatrixCreateFromCSR_R(SEXP, SEXP, SEXP, SEXP, SEXP)': xgboost_R.cc:189:40: error: 'length' was not declared in this scope 189 | size_t nindptr = static_cast(length(indptr)); | ^~~~~~ xgboost_R.cc:199:55: error: 'asInteger' was not declared in this scope; did you mean 'Rf_asInteger'? 199 | int32_t threads = xgboost::common::OmpGetNumThreads(asInteger(n_threads)); | ^~~~~~~~~ | Rf_asInteger xgboost_R.cc: In function 'SEXPREC* XGDMatrixSliceDMatrix_R(SEXP, SEXP)': xgboost_R.cc:218:13: error: 'length' was not declared in this scope 218 | int len = length(idxset); | ^~~~~~ xgboost_R.cc: In function 'SEXPREC* XGDMatrixSaveBinary_R(SEXP, SEXP, SEXP)': xgboost_R.cc:238:39: error: 'asChar' was not declared in this scope 238 | CHAR(asChar(fname)), | ^~~~~~ xgboost_R.cc:44:8: note: in definition of macro 'CHECK_CALL' 44 | if ((x) != 0) { \ | ^ xgboost_R.cc:238:34: note: in expansion of macro 'CHAR' 238 | CHAR(asChar(fname)), | ^~~~ xgboost_R.cc:239:34: error: 'asInteger' was not declared in this scope; did you mean 'Rf_asInteger'? 239 | asInteger(silent))); | ^~~~~~~~~ xgboost_R.cc:44:8: note: in definition of macro 'CHECK_CALL' 44 | if ((x) != 0) { \ | ^ xgboost_R.cc: In function 'SEXPREC* XGDMatrixSetInfo_R(SEXP, SEXP, SEXP)': xgboost_R.cc:246:13: error: 'length' was not declared in this scope 246 | int len = length(array); | ^~~~~~ In file included from ./xgboost_R.h:11, from xgboost_R.cc:20: xgboost_R.cc:247:27: error: 'asChar' was not declared in this scope 247 | const char *name = CHAR(asChar(field)); | ^~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:200:24: note: in definition of macro 'CHAR' 200 | #define CHAR(x) R_CHAR(x) | ^ xgboost_R.cc: In function 'SEXPREC* XGDMatrixSetStrFeatureInfo_R(SEXP, SEXP, SEXP)': xgboost_R.cc:270:8: error: 'isNull' was not declared in this scope 270 | if (!isNull(array)) { | ^~~~~~ xgboost_R.cc:271:11: error: 'length' was not declared in this scope 271 | len = length(array); | ^~~~~~ xgboost_R.cc:274:27: error: 'asChar' was not declared in this scope 274 | const char *name = CHAR(asChar(field)); | ^~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:200:24: note: in definition of macro 'CHAR' 200 | #define CHAR(x) R_CHAR(x) | ^ xgboost_R.cc: In function 'SEXPREC* XGDMatrixGetStrFeatureInfo_R(SEXP, SEXP)': xgboost_R.cc:292:27: error: 'asChar' was not declared in this scope 292 | const char *name = CHAR(asChar(field)); | ^~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:200:24: note: in definition of macro 'CHAR' 200 | #define CHAR(x) R_CHAR(x) | ^ xgboost_R.cc:296:19: error: 'allocVector' was not declared in this scope; did you mean 'Rf_allocVector'? 296 | ret = PROTECT(allocVector(STRSXP, len)); | ^~~~~~~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ xgboost_R.cc:298:30: error: 'mkChar' was not declared in this scope 298 | SET_STRING_ELT(ret, i, mkChar(out_features[i])); | ^~~~~~ xgboost_R.cc: In function 'SEXPREC* XGDMatrixGetInfo_R(SEXP, SEXP)': xgboost_R.cc:313:68: error: 'asChar' was not declared in this scope 313 | CHECK_CALL(XGDMatrixGetFloatInfo(R_ExternalPtrAddr(handle), CHAR(asChar(field)), &olen, &res)); | ^~~~~~ xgboost_R.cc:44:8: note: in definition of macro 'CHECK_CALL' 44 | if ((x) != 0) { \ | ^ xgboost_R.cc:313:63: note: in expansion of macro 'CHAR' 313 | CHECK_CALL(XGDMatrixGetFloatInfo(R_ExternalPtrAddr(handle), CHAR(asChar(field)), &olen, &res)); | ^~~~ xgboost_R.cc:314:17: error: 'allocVector' was not declared in this scope; did you mean 'Rf_allocVector'? 314 | ret = PROTECT(allocVector(REALSXP, olen)); | ^~~~~~~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ xgboost_R.cc: In function 'SEXPREC* XGDMatrixNumRow_R(SEXP)': xgboost_R.cc:328:10: error: 'ScalarInteger' was not declared in this scope; did you mean 'Rf_ScalarInteger'? 328 | return ScalarInteger(static_cast(nrow)); | ^~~~~~~~~~~~~ | Rf_ScalarInteger xgboost_R.cc: In function 'SEXPREC* XGDMatrixNumCol_R(SEXP)': xgboost_R.cc:336:10: error: 'ScalarInteger' was not declared in this scope; did you mean 'Rf_ScalarInteger'? 336 | return ScalarInteger(static_cast(ncol)); | ^~~~~~~~~~~~~ | Rf_ScalarInteger xgboost_R.cc: In function 'SEXPREC* XGBoosterCreate_R(SEXP)': xgboost_R.cc:349:13: error: 'length' was not declared in this scope 349 | int len = length(dmats); | ^~~~~~ xgboost_R.cc: In function 'SEXPREC* XGBoosterCreateInEmptyObj_R(SEXP, SEXP)': xgboost_R.cc:365:13: error: 'length' was not declared in this scope 365 | int len = length(dmats); | ^~~~~~ xgboost_R.cc: In function 'SEXPREC* XGBoosterSetParam_R(SEXP, SEXP, SEXP)': xgboost_R.cc:381:37: error: 'asChar' was not declared in this scope 381 | CHAR(asChar(name)), | ^~~~~~ xgboost_R.cc:44:8: note: in definition of macro 'CHECK_CALL' 44 | if ((x) != 0) { \ | ^ xgboost_R.cc:381:32: note: in expansion of macro 'CHAR' 381 | CHAR(asChar(name)), | ^~~~ xgboost_R.cc: In function 'SEXPREC* XGBoosterUpdateOneIter_R(SEXP, SEXP, SEXP)': xgboost_R.cc:390:35: error: 'asInteger' was not declared in this scope; did you mean 'Rf_asInteger'? 390 | asInteger(iter), | ^~~~~~~~~ xgboost_R.cc:44:8: note: in definition of macro 'CHECK_CALL' 44 | if ((x) != 0) { \ | ^ In file included from ./dmlc-core/include/dmlc/common.h:14, from xgboost_R.cc:4: xgboost_R.cc: In function 'SEXPREC* XGBoosterBoostOneIter_R(SEXP, SEXP, SEXP, SEXP)': xgboost_R.cc:398:12: error: 'length' was not declared in this scope 398 | CHECK_EQ(length(grad), length(hess)) | ^~~~~~ ./dmlc-core/include/dmlc/./logging.h:206:52: note: in definition of macro 'CHECK_BINARY_OP' 206 | if (auto __dmlc__log__err = dmlc::LogCheck##name(x, y)) \ | ^ xgboost_R.cc:398:3: note: in expansion of macro 'CHECK_EQ' 398 | CHECK_EQ(length(grad), length(hess)) | ^~~~~~~~ xgboost_R.cc:400:13: error: 'length' was not declared in this scope 400 | int len = length(grad); | ^~~~~~ xgboost_R.cc: In function 'SEXPREC* XGBoosterEvalOneIter_R(SEXP, SEXP, SEXP, SEXP)': xgboost_R.cc:418:12: error: 'length' was not declared in this scope 418 | CHECK_EQ(length(dmats), length(evnames)) | ^~~~~~ ./dmlc-core/include/dmlc/./logging.h:206:52: note: in definition of macro 'CHECK_BINARY_OP' 206 | if (auto __dmlc__log__err = dmlc::LogCheck##name(x, y)) \ | ^ xgboost_R.cc:418:3: note: in expansion of macro 'CHECK_EQ' 418 | CHECK_EQ(length(dmats), length(evnames)) | ^~~~~~~~ xgboost_R.cc:420:13: error: 'length' was not declared in this scope 420 | int len = length(dmats); | ^~~~~~ xgboost_R.cc:426:42: error: 'asChar' was not declared in this scope 426 | vec_names.push_back(std::string(CHAR(asChar(VECTOR_ELT(evnames, i))))); | ^~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:200:24: note: in definition of macro 'CHAR' 200 | #define CHAR(x) R_CHAR(x) | ^ xgboost_R.cc:432:35: error: 'asInteger' was not declared in this scope; did you mean 'Rf_asInteger'? 432 | asInteger(iter), | ^~~~~~~~~ xgboost_R.cc:44:8: note: in definition of macro 'CHECK_CALL' 44 | if ((x) != 0) { \ | ^ xgboost_R.cc:437:10: error: 'mkString' was not declared in this scope; did you mean 'Rf_mkString'? 437 | return mkString(ret); | ^~~~~~~~ | Rf_mkString xgboost_R.cc: In function 'SEXPREC* XGBoosterPredict_R(SEXP, SEXP, SEXP, SEXP, SEXP)': xgboost_R.cc:448:31: error: 'asInteger' was not declared in this scope; did you mean 'Rf_asInteger'? 448 | asInteger(option_mask), | ^~~~~~~~~ xgboost_R.cc:44:8: note: in definition of macro 'CHECK_CALL' 44 | if ((x) != 0) { \ | ^ xgboost_R.cc:452:17: error: 'allocVector' was not declared in this scope; did you mean 'Rf_allocVector'? 452 | ret = PROTECT(allocVector(REALSXP, olen)); | ^~~~~~~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ xgboost_R.cc: In function 'SEXPREC* XGBoosterPredictFromDMatrix_R(SEXP, SEXP, SEXP)': xgboost_R.cc:467:36: error: 'asChar' was not declared in this scope 467 | char const *c_json_config = CHAR(asChar(json_config)); | ^~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:200:24: note: in definition of macro 'CHAR' 200 | #define CHAR(x) R_CHAR(x) | ^ xgboost_R.cc:476:25: error: 'allocVector' was not declared in this scope; did you mean 'Rf_allocVector'? 476 | r_out_shape = PROTECT(allocVector(INTSXP, out_dim)); | ^~~~~~~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ xgboost_R.cc: In function 'SEXPREC* XGBoosterLoadModel_R(SEXP, SEXP)': xgboost_R.cc:501:65: error: 'asChar' was not declared in this scope 501 | CHECK_CALL(XGBoosterLoadModel(R_ExternalPtrAddr(handle), CHAR(asChar(fname)))); | ^~~~~~ xgboost_R.cc:44:8: note: in definition of macro 'CHECK_CALL' 44 | if ((x) != 0) { \ | ^ xgboost_R.cc:501:60: note: in expansion of macro 'CHAR' 501 | CHECK_CALL(XGBoosterLoadModel(R_ExternalPtrAddr(handle), CHAR(asChar(fname)))); | ^~~~ xgboost_R.cc: In function 'SEXPREC* XGBoosterSaveModel_R(SEXP, SEXP)': xgboost_R.cc:508:65: error: 'asChar' was not declared in this scope 508 | CHECK_CALL(XGBoosterSaveModel(R_ExternalPtrAddr(handle), CHAR(asChar(fname)))); | ^~~~~~ xgboost_R.cc:44:8: note: in definition of macro 'CHECK_CALL' 44 | if ((x) != 0) { \ | ^ xgboost_R.cc:508:60: note: in expansion of macro 'CHAR' 508 | CHECK_CALL(XGBoosterSaveModel(R_ExternalPtrAddr(handle), CHAR(asChar(fname)))); | ^~~~ xgboost_R.cc: In function 'SEXPREC* XGBoosterLoadModelFromRaw_R(SEXP, SEXP)': xgboost_R.cc:517:43: error: 'length' was not declared in this scope 517 | length(raw))); | ^~~~~~ xgboost_R.cc:44:8: note: in definition of macro 'CHECK_CALL' 44 | if ((x) != 0) { \ | ^ xgboost_R.cc: In function 'SEXPREC* XGBoosterSaveModelToRaw_R(SEXP, SEXP)': xgboost_R.cc:526:36: error: 'asChar' was not declared in this scope 526 | char const *c_json_config = CHAR(asChar(json_config)); | ^~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:200:24: note: in definition of macro 'CHAR' 200 | #define CHAR(x) R_CHAR(x) | ^ xgboost_R.cc:529:17: error: 'allocVector' was not declared in this scope; did you mean 'Rf_allocVector'? 529 | ret = PROTECT(allocVector(RAWSXP, olen)); | ^~~~~~~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ xgboost_R.cc: In function 'SEXPREC* XGBoosterSaveJsonConfig_R(SEXP)': xgboost_R.cc:546:10: error: 'mkString' was not declared in this scope; did you mean 'Rf_mkString'? 546 | return mkString(ret); | ^~~~~~~~ | Rf_mkString xgboost_R.cc: In function 'SEXPREC* XGBoosterLoadJsonConfig_R(SEXP, SEXP)': xgboost_R.cc:551:70: error: 'asChar' was not declared in this scope 551 | CHECK_CALL(XGBoosterLoadJsonConfig(R_ExternalPtrAddr(handle), CHAR(asChar(value)))); | ^~~~~~ xgboost_R.cc:44:8: note: in definition of macro 'CHECK_CALL' 44 | if ((x) != 0) { \ | ^ xgboost_R.cc:551:65: note: in expansion of macro 'CHAR' 551 | CHECK_CALL(XGBoosterLoadJsonConfig(R_ExternalPtrAddr(handle), CHAR(asChar(value)))); | ^~~~ xgboost_R.cc: In function 'SEXPREC* XGBoosterSerializeToBuffer_R(SEXP)': xgboost_R.cc:562:17: error: 'allocVector' was not declared in this scope; did you mean 'Rf_allocVector'? 562 | ret = PROTECT(allocVector(RAWSXP, out_len)); | ^~~~~~~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ xgboost_R.cc: In function 'SEXPREC* XGBoosterUnserializeFromBuffer_R(SEXP, SEXP)': xgboost_R.cc:575:34: error: 'length' was not declared in this scope 575 | length(raw))); | ^~~~~~ xgboost_R.cc:44:8: note: in definition of macro 'CHECK_CALL' 44 | if ((x) != 0) { \ | ^ xgboost_R.cc: In function 'SEXPREC* XGBoosterDumpModel_R(SEXP, SEXP, SEXP, SEXP)': xgboost_R.cc:585:26: error: 'asChar' was not declared in this scope 585 | const char *fmt = CHAR(asChar(dump_format)); | ^~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:200:24: note: in definition of macro 'CHAR' 200 | #define CHAR(x) R_CHAR(x) | ^ xgboost_R.cc:588:33: error: 'asInteger' was not declared in this scope; did you mean 'Rf_asInteger'? 588 | asInteger(with_stats), | ^~~~~~~~~ xgboost_R.cc:44:8: note: in definition of macro 'CHECK_CALL' 44 | if ((x) != 0) { \ | ^ xgboost_R.cc:591:17: error: 'allocVector' was not declared in this scope; did you mean 'Rf_allocVector'? 591 | out = PROTECT(allocVector(STRSXP, olen)); | ^~~~~~~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ xgboost_R.cc:604:28: error: 'mkChar' was not declared in this scope 604 | SET_STRING_ELT(out, 0, mkChar(stream.str().c_str())); | ^~~~~~ xgboost_R.cc:609:30: error: 'mkChar' was not declared in this scope 609 | SET_STRING_ELT(out, i, mkChar(stream.str().c_str())); | ^~~~~~ xgboost_R.cc: In function 'SEXPREC* XGBoosterGetAttr_R(SEXP, SEXP)': xgboost_R.cc:623:36: error: 'asChar' was not declared in this scope 623 | CHAR(asChar(name)), | ^~~~~~ xgboost_R.cc:44:8: note: in definition of macro 'CHECK_CALL' 44 | if ((x) != 0) { \ | ^ xgboost_R.cc:623:31: note: in expansion of macro 'CHAR' 623 | CHAR(asChar(name)), | ^~~~ xgboost_R.cc:627:19: error: 'allocVector' was not declared in this scope; did you mean 'Rf_allocVector'? 627 | out = PROTECT(allocVector(STRSXP, 1)); | ^~~~~~~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ xgboost_R.cc:628:28: error: 'mkChar' was not declared in this scope 628 | SET_STRING_ELT(out, 0, mkChar(val)); | ^~~~~~ xgboost_R.cc: In function 'SEXPREC* XGBoosterSetAttr_R(SEXP, SEXP, SEXP)': xgboost_R.cc:639:19: error: 'isNull' was not declared in this scope 639 | const char *v = isNull(val) ? nullptr : CHAR(asChar(val)); | ^~~~~~ xgboost_R.cc:639:48: error: 'asChar' was not declared in this scope 639 | const char *v = isNull(val) ? nullptr : CHAR(asChar(val)); | ^~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:200:24: note: in definition of macro 'CHAR' 200 | #define CHAR(x) R_CHAR(x) | ^ xgboost_R.cc: In function 'SEXPREC* XGBoosterGetAttrNames_R(SEXP)': xgboost_R.cc:654:19: error: 'allocVector' was not declared in this scope; did you mean 'Rf_allocVector'? 654 | out = PROTECT(allocVector(STRSXP, len)); | ^~~~~~~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ xgboost_R.cc:656:30: error: 'mkChar' was not declared in this scope 656 | SET_STRING_ELT(out, i, mkChar(res[i])); | ^~~~~~ xgboost_R.cc: In function 'SEXPREC* XGBoosterFeatureScore_R(SEXP, SEXP)': xgboost_R.cc:673:36: error: 'asChar' was not declared in this scope 673 | char const *c_json_config = CHAR(asChar(json_config)); | ^~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:200:24: note: in definition of macro 'CHAR' 200 | #define CHAR(x) R_CHAR(x) | ^ xgboost_R.cc:684:28: error: 'allocVector' was not declared in this scope; did you mean 'Rf_allocVector'? 684 | out_shape_sexp = PROTECT(allocVector(INTSXP, out_dim)); | ^~~~~~~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ xgboost_R.cc:699:42: error: 'mkChar' was not declared in this scope 699 | SET_STRING_ELT(out_features_sexp, i, mkChar(out_features[i])); | ^~~~~~ make[2]: *** [/data/gannet/ripley/R/R-devel/etc/Makeconf:200: xgboost_R.o] Error 1 make[2]: Leaving directory '/data/gannet/ripley/R/packages/tests-noRemap/xgboost/src' ERROR: compilation failed for package ‘xgboost’ * removing ‘/data/gannet/ripley/R/packages/tests-noRemap/Libs/xgboost-lib/xgboost’ Command exited with non-zero status 1 Time 0:12.64, 8.43 + 2.18