* installing *source* package ‘hellorust’ ... ** this is package ‘hellorust’ version ‘1.2.3’ ** using staged installation cargo 1.91.1 (ea2d97820 2025-10-10) (built from a source tarball) rustc 1.91.1 (ed61e7d7e 2025-11-07) (built from a source tarball) ** libs using C compiler: ‘Debian clang version 21.1.8 (1+b1)’ clang-21 -std=gnu23 -I"/home/hornik/tmp/R-d-clang-21/include" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -pthread -fpic -g -O3 -Wall -pedantic -c wrapper.c -o wrapper.o wrapper.c:7:1: error: unknown type name 'SEXP' 7 | SEXP hello_wrapper(void){ | ^ wrapper.c:9:3: error: use of undeclared identifier 'SEXP' 9 | SEXP hello_world_string = PROTECT(Rf_mkCharCE(hello_rust, CE_UTF8)); | ^~~~ wrapper.c:11:3: error: use of undeclared identifier 'UNPROTECT' 11 | UNPROTECT(1); | ^~~~~~~~~ wrapper.c:12:10: error: use of undeclared identifier 'Rf_ScalarString' 12 | return Rf_ScalarString(hello_world_string); | ^~~~~~~~~~~~~~~ wrapper.c:12:26: error: use of undeclared identifier 'hello_world_string' 12 | return Rf_ScalarString(hello_world_string); | ^~~~~~~~~~~~~~~~~~ wrapper.c:15:1: error: unknown type name 'SEXP' 15 | SEXP random_wrapper(void){ | ^ wrapper.c:16:10: error: use of undeclared identifier 'Rf_ScalarInteger' 16 | return Rf_ScalarInteger(random_number()); | ^~~~~~~~~~~~~~~~ wrapper.c:19:1: error: unknown type name 'SEXP' 19 | SEXP threads_wapper(void){ | ^ wrapper.c:21:10: error: use of undeclared identifier 'R_NilValue' 21 | return R_NilValue; | ^~~~~~~~~~ wrapper.c:25:14: error: unknown type name 'R_CallMethodDef' 25 | static const R_CallMethodDef CallEntries[] = { | ^ wrapper.c:26:22: error: use of undeclared identifier 'DL_FUNC' 26 | {"hello_wrapper", (DL_FUNC) &hello_wrapper, 0}, | ^~~~~~~ wrapper.c:27:23: error: use of undeclared identifier 'DL_FUNC' 27 | {"random_wrapper", (DL_FUNC) &random_wrapper, 0}, | ^~~~~~~ wrapper.c:28:23: error: use of undeclared identifier 'DL_FUNC' 28 | {"threads_wapper", (DL_FUNC) &threads_wapper, 0}, | ^~~~~~~ wrapper.c:29:4: error: use of undeclared identifier 'NULL' 29 | {NULL, NULL, 0} | ^~~~ wrapper.c:29:10: error: use of undeclared identifier 'NULL' 29 | {NULL, NULL, 0} | ^~~~ wrapper.c:32:23: error: unknown type name 'DllInfo' 32 | void R_init_hellorust(DllInfo *dll) { | ^ wrapper.c:33:3: error: use of undeclared identifier 'R_registerRoutines' 33 | R_registerRoutines(dll, NULL, CallEntries, NULL, NULL); | ^~~~~~~~~~~~~~~~~~ wrapper.c:33:27: error: use of undeclared identifier 'NULL' 33 | R_registerRoutines(dll, NULL, CallEntries, NULL, NULL); | ^~~~ wrapper.c:33:46: error: use of undeclared identifier 'NULL' 33 | R_registerRoutines(dll, NULL, CallEntries, NULL, NULL); | ^~~~ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make: *** [/home/hornik/tmp/R-d-clang-21/etc/Makeconf:194: wrapper.o] Error 1 ERROR: compilation failed for package ‘hellorust’ * removing ‘/srv/hornik/tmp/CRAN_pretest/hellorust.Rcheck/hellorust’