* 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 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 euclidean.cpp -o euclidean.o In file included from euclidean.cpp:25: euclidean.cpp:147:29: error: use of undeclared identifier 'duplicate'; did you mean 'Rf_duplicate'? 147 | 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 euclidean.cpp:25: euclidean.cpp:275:28: error: use of undeclared identifier 'duplicate'; did you mean 'Rf_duplicate'? 275 | 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); | ^ euclidean.cpp:29:18: error: use of undeclared identifier 'ScalarInteger'; did you mean 'Rf_ScalarInteger'? 29 | , 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); | ^ euclidean.cpp:29:49: error: use of undeclared identifier 'ScalarInteger'; did you mean 'Rf_ScalarInteger'? 29 | , 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); | ^ euclidean.cpp:30:14: error: use of undeclared identifier 'ScalarLogical'; did you mean 'Rf_ScalarLogical'? 30 | , 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); | ^ In file included from euclidean.cpp:47: euclidean.cpp:275:28: error: use of undeclared identifier 'duplicate'; did you mean 'Rf_duplicate'? 275 | 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); | ^ In file included from euclidean.cpp:47: euclidean.cpp:303:22: error: use of undeclared identifier 'isNull' 303 | double* p_weight = !isNull(weight) ? NUMERIC_POINTER(weight) : NULL; | ^ euclidean.cpp:308:11: error: use of undeclared identifier 'length' 308 | else if( length(weight) == 1 ){// all weighted are the same | ^ euclidean.cpp:52:18: error: use of undeclared identifier 'ScalarInteger'; did you mean 'Rf_ScalarInteger'? 52 | , 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); | ^ euclidean.cpp:52:49: error: use of undeclared identifier 'ScalarInteger'; did you mean 'Rf_ScalarInteger'? 52 | , 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); | ^ euclidean.cpp:53:14: error: use of undeclared identifier 'ScalarLogical'; did you mean 'Rf_ScalarLogical'? 53 | , 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); | ^ euclidean.cpp:58:7: error: use of undeclared identifier 'isNull' 58 | if( isNull(weight) ){ | ^ euclidean.cpp:64:7: error: use of undeclared identifier 'isNull' 64 | if( isNull(weight) ){ | ^ In file included from euclidean.cpp:78: euclidean.cpp:147:29: error: use of undeclared identifier 'duplicate'; did you mean 'Rf_duplicate'? 147 | 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 euclidean.cpp:78: euclidean.cpp:275:28: error: use of undeclared identifier 'duplicate'; did you mean 'Rf_duplicate'? 275 | 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); | ^ euclidean.cpp:83:90: error: use of undeclared identifier 'ScalarLogical'; did you mean 'Rf_ScalarLogical'? 83 | SEXP offset_euclidean_update_H ( SEXP v, SEXP w, SEXP h, SEXP offset, SEXP eps, 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); | ^ euclidean.cpp:91:90: error: use of undeclared identifier 'ScalarLogical'; did you mean 'Rf_ScalarLogical'? 91 | SEXP offset_euclidean_update_W ( SEXP v, SEXP w, SEXP h, SEXP offset, SEXP eps, 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); | ^ 17 errors generated. make: *** [/home/hornik/tmp/R-d-clang-18/etc/Makeconf:202: euclidean.o] Error 1 ERROR: compilation failed for package ‘NMF’ * removing ‘/srv/hornik/tmp/CRAN/NMF.Rcheck/NMF’