* installing *source* package ‘NMF’ ... ** using staged installation ** libs using C compiler: ‘Debian clang version 18.1.8 (9)’ using C++ compiler: ‘Debian clang version 18.1.8 (9)’ clang++-18 -std=gnu++17 -I"/home/hornik/tmp/R-d-clang-18/include" -DNDEBUG -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -DSTRICT_R_HEADERS=1 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c distance.cpp -o distance.o clang++-18 -std=gnu++17 -I"/home/hornik/tmp/R-d-clang-18/include" -DNDEBUG -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -DSTRICT_R_HEADERS=1 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c divergence.cpp -o divergence.o In file included from divergence.cpp:16: divergence.cpp:82:28: error: use of undeclared identifier 'duplicate'; did you mean 'Rf_duplicate'? 82 | PROTECT(res = (dup != 0 ? duplicate(h) : h) ); nprotect++; | ^~~~~~~~~ | Rf_duplicate /home/hornik/tmp/R-d-clang-18/include/Rinternals.h:385:31: note: expanded from macro 'PROTECT' 385 | #define PROTECT(s) Rf_protect(s) | ^ /home/hornik/tmp/R-d-clang-18/include/Rinternals.h:519:6: note: 'Rf_duplicate' declared here 519 | SEXP Rf_duplicate(SEXP); | ^ In file included from divergence.cpp:16: divergence.cpp:165:28: error: use of undeclared identifier 'duplicate'; did you mean 'Rf_duplicate'? 165 | PROTECT(res = (dup != 0 ? duplicate(w) : w) ); nprotect++; | ^~~~~~~~~ | Rf_duplicate /home/hornik/tmp/R-d-clang-18/include/Rinternals.h:385:31: note: expanded from macro 'PROTECT' 385 | #define PROTECT(s) Rf_protect(s) | ^ /home/hornik/tmp/R-d-clang-18/include/Rinternals.h:519:6: note: 'Rf_duplicate' declared here 519 | SEXP Rf_duplicate(SEXP); | ^ divergence.cpp:20:19: error: use of undeclared identifier 'ScalarInteger'; did you mean 'Rf_ScalarInteger'? 20 | , SEXP nbterms=ScalarInteger(0), SEXP ncterms=ScalarInteger(0) | ^~~~~~~~~~~~~ | Rf_ScalarInteger /home/hornik/tmp/R-d-clang-18/include/Rinternals.h:1122:7: note: 'Rf_ScalarInteger' declared here 1122 | SEXP Rf_ScalarInteger(int); | ^ divergence.cpp:20:50: error: use of undeclared identifier 'ScalarInteger'; did you mean 'Rf_ScalarInteger'? 20 | , SEXP nbterms=ScalarInteger(0), SEXP ncterms=ScalarInteger(0) | ^~~~~~~~~~~~~ | Rf_ScalarInteger /home/hornik/tmp/R-d-clang-18/include/Rinternals.h:1122:7: note: 'Rf_ScalarInteger' declared here 1122 | SEXP Rf_ScalarInteger(int); | ^ divergence.cpp:21:15: error: use of undeclared identifier 'ScalarLogical'; did you mean 'Rf_ScalarLogical'? 21 | , SEXP dup=ScalarLogical(1)) { | ^~~~~~~~~~~~~ | Rf_ScalarLogical /home/hornik/tmp/R-d-clang-18/include/Rinternals.h:1123:7: note: 'Rf_ScalarLogical' declared here 1123 | SEXP Rf_ScalarLogical(int); | ^ divergence.cpp:35:20: error: use of undeclared identifier 'ScalarInteger'; did you mean 'Rf_ScalarInteger'? 35 | , SEXP nbterms=ScalarInteger(0), SEXP ncterms=ScalarInteger(0) | ^~~~~~~~~~~~~ | Rf_ScalarInteger /home/hornik/tmp/R-d-clang-18/include/Rinternals.h:1122:7: note: 'Rf_ScalarInteger' declared here 1122 | SEXP Rf_ScalarInteger(int); | ^ divergence.cpp:35:51: error: use of undeclared identifier 'ScalarInteger'; did you mean 'Rf_ScalarInteger'? 35 | , SEXP nbterms=ScalarInteger(0), SEXP ncterms=ScalarInteger(0) | ^~~~~~~~~~~~~ | Rf_ScalarInteger /home/hornik/tmp/R-d-clang-18/include/Rinternals.h:1122:7: note: 'Rf_ScalarInteger' declared here 1122 | SEXP Rf_ScalarInteger(int); | ^ divergence.cpp:36:16: error: use of undeclared identifier 'ScalarLogical'; did you mean 'Rf_ScalarLogical'? 36 | , SEXP dup=ScalarLogical(1)) { | ^~~~~~~~~~~~~ | Rf_ScalarLogical /home/hornik/tmp/R-d-clang-18/include/Rinternals.h:1123:7: note: 'Rf_ScalarLogical' declared here 1123 | SEXP Rf_ScalarLogical(int); | ^ 8 errors generated. make: *** [/home/hornik/tmp/R-d-clang-18/etc/Makeconf:202: divergence.o] Error 1 ERROR: compilation failed for package ‘NMF’ * removing ‘/srv/hornik/tmp/CRAN/NMF.Rcheck/NMF’