* installing *source* package ‘xgboost’ ... ** 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 clang++-18 -std=gnu++17 accepts -g... yes checking for clang++-18 -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: ‘Debian clang version 18.1.8 (3)’ using C++ compiler: ‘Debian clang version 18.1.8 (3)’ using C++17 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_ clang++-18 -std=gnu++17 -I"/home/hornik/tmp/R/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 -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -DDMLC_CMAKE_LITTLE_ENDIAN=1 -pthread -fvisibility=hidden -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c xgboost_R.cc -o xgboost_R.o xgboost_R.cc:65:10: error: use of undeclared identifier 'ScalarLogical'; did you mean 'Rf_ScalarLogical'? 65 | return ScalarLogical(R_ExternalPtrAddr(handle) == NULL); | ^~~~~~~~~~~~~ | Rf_ScalarLogical /home/hornik/tmp/R/include/Rinternals.h:1123:7: note: 'Rf_ScalarLogical' declared here 1123 | SEXP Rf_ScalarLogical(int); | ^ xgboost_R.cc:78:38: error: use of undeclared identifier 'asChar' 78 | CHECK_CALL(XGBSetGlobalConfig(CHAR(asChar(json_str)))); | ^ xgboost_R.cc:88:10: error: use of undeclared identifier 'mkString' 88 | return mkString(json_str); | ^ xgboost_R.cc:95:43: error: use of undeclared identifier 'asChar' 95 | CHECK_CALL(XGDMatrixCreateFromFile(CHAR(asChar(fname)), asInteger(silent), &handle)); | ^ xgboost_R.cc:95:59: error: use of undeclared identifier 'asInteger'; did you mean 'Rf_asInteger'? 95 | CHECK_CALL(XGDMatrixCreateFromFile(CHAR(asChar(fname)), asInteger(silent), &handle)); | ^~~~~~~~~ | Rf_asInteger xgboost_R.cc:44:8: note: expanded from macro 'CHECK_CALL' 44 | if ((x) != 0) { \ | ^ /home/hornik/tmp/R/include/Rinternals.h:484:5: note: 'Rf_asInteger' declared here 484 | int Rf_asInteger(SEXP x); | ^ xgboost_R.cc:106:14: error: use of undeclared identifier 'getAttrib'; did you mean 'Rf_getAttrib'? 106 | SEXP dim = getAttrib(mat, R_DimSymbol); | ^~~~~~~~~ | Rf_getAttrib /home/hornik/tmp/R/include/Rinternals.h:535:6: note: 'Rf_getAttrib' declared here 535 | SEXP Rf_getAttrib(SEXP, SEXP); | ^ xgboost_R.cc:118:55: error: use of undeclared identifier 'asInteger'; did you mean 'Rf_asInteger'? 118 | int32_t threads = xgboost::common::OmpGetNumThreads(asInteger(n_threads)); | ^~~~~~~~~ | Rf_asInteger /home/hornik/tmp/R/include/Rinternals.h:484:5: note: 'Rf_asInteger' declared here 484 | int Rf_asInteger(SEXP x); | ^ xgboost_R.cc:141:41: error: use of undeclared identifier 'asReal' 141 | asReal(missing), &handle, threads)); | ^ xgboost_R.cc:156:40: error: use of undeclared identifier 'length' 156 | size_t nindptr = static_cast(length(indptr)); | ^ xgboost_R.cc:157:38: error: use of undeclared identifier 'length' 157 | size_t ndata = static_cast(length(data)); | ^ xgboost_R.cc:166:55: error: use of undeclared identifier 'asInteger'; did you mean 'Rf_asInteger'? 166 | int32_t threads = xgboost::common::OmpGetNumThreads(asInteger(n_threads)); | ^~~~~~~~~ | Rf_asInteger /home/hornik/tmp/R/include/Rinternals.h:484:5: note: 'Rf_asInteger' declared here 484 | int Rf_asInteger(SEXP x); | ^ xgboost_R.cc:189:40: error: use of undeclared identifier 'length' 189 | size_t nindptr = static_cast(length(indptr)); | ^ xgboost_R.cc:190:38: error: use of undeclared identifier 'length' 190 | size_t ndata = static_cast(length(data)); | ^ xgboost_R.cc:199:55: error: use of undeclared identifier 'asInteger'; did you mean 'Rf_asInteger'? 199 | int32_t threads = xgboost::common::OmpGetNumThreads(asInteger(n_threads)); | ^~~~~~~~~ | Rf_asInteger /home/hornik/tmp/R/include/Rinternals.h:484:5: note: 'Rf_asInteger' declared here 484 | int Rf_asInteger(SEXP x); | ^ xgboost_R.cc:218:13: error: use of undeclared identifier 'length' 218 | int len = length(idxset); | ^ xgboost_R.cc:238:39: error: use of undeclared identifier 'asChar' 238 | CHAR(asChar(fname)), | ^ xgboost_R.cc:239:34: error: use of undeclared identifier 'asInteger'; did you mean 'Rf_asInteger'? 239 | asInteger(silent))); | ^~~~~~~~~ | Rf_asInteger xgboost_R.cc:44:8: note: expanded from macro 'CHECK_CALL' 44 | if ((x) != 0) { \ | ^ /home/hornik/tmp/R/include/Rinternals.h:484:5: note: 'Rf_asInteger' declared here 484 | int Rf_asInteger(SEXP x); | ^ xgboost_R.cc:246:13: error: use of undeclared identifier 'length' 246 | int len = length(array); | ^ xgboost_R.cc:247:27: error: use of undeclared identifier 'asChar' 247 | const char *name = CHAR(asChar(field)); | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make: *** [/home/hornik/tmp/R/etc/Makeconf:200: xgboost_R.o] Error 1 ERROR: compilation failed for package ‘xgboost’ * removing ‘/srv/hornik/tmp/CRAN/xgboost.Rcheck/xgboost’