* installing *source* package ‘rtiktoken’ ... ** using staged installation Using cargo 1.81.0 (2dbb1af80 2024-08-20) Using rustc 1.81.0 MSRV 1.65.0 ** libs using C compiler: ‘Debian clang version 18.1.8 (12)’ rm -Rf rtiktoken.so ./rust/target/release/librtiktoken.a entrypoint.o /srv/hornik/tmp/CRAN_pretest/rtiktoken.Rcheck/00_pkg_src/rtiktoken/src/vendor clang-18 -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 -c entrypoint.c -o entrypoint.o # thanks to JosiahParry and this way to reduze size: # https://github.com/R-ArcGIS/arcpbf/blob/main/src/Makevars if [ -f ./rust/vendor.tar.xz ]; then \ tar xf rust/vendor.tar.xz && \ mkdir -p /srv/hornik/tmp/CRAN_pretest/rtiktoken.Rcheck/00_pkg_src/rtiktoken/src/.cargo && \ cp rust/vendor-config.toml /srv/hornik/tmp/CRAN_pretest/rtiktoken.Rcheck/00_pkg_src/rtiktoken/src/.cargo/config.toml; \ fi # limit the number of cores to 2 for CRAN if [ -n "R_CHECK_LIMIT_CORES_" ]; then \ export BUILDFLAGS="-j 2 --offline"; \ else \ export BUILDFLAGS="--offline"; \ fi # In some environments, ~/.cargo/bin might not be included in PATH, so we need # to set it here to ensure cargo can be invoked. It is appended to PATH and # therefore is only used if cargo is absent from the user's PATH. if [ "" != "true" ]; then \ export CARGO_HOME=/srv/hornik/tmp/CRAN_pretest/rtiktoken.Rcheck/00_pkg_src/rtiktoken/src/.cargo; \ fi && \ export PATH="/srv/hornik/tmp/CRAN_pretest/rtiktoken.Rcheck/R_check_bin:/usr/local/bin:/usr/bin:/bin:/home/hornik/.cargo/bin" && \ cargo build --lib --release --manifest-path=./rust/Cargo.toml --target-dir ./rust/target Compiling proc-macro2 v1.0.87 Compiling memchr v2.7.4 Compiling autocfg v1.4.0 Compiling libc v0.2.159 Compiling unicode-ident v1.0.13 Compiling regex-syntax v0.8.5 Compiling libR-sys v0.7.1 Compiling parking_lot_core v0.9.10 Compiling paste v1.0.15 Compiling bit-vec v0.6.3 Compiling scopeguard v1.2.0 Compiling cfg-if v1.0.0 Compiling anyhow v1.0.89 Compiling smallvec v1.13.2 Compiling extendr-api v0.7.1 Compiling lazy_static v1.5.0 Compiling once_cell v1.20.2 Compiling base64 v0.21.7 Compiling rustc-hash v1.1.0 Compiling bit-set v0.5.3 Compiling lock_api v0.4.12 Compiling aho-corasick v1.1.3 Compiling quote v1.0.37 Compiling syn v2.0.79 Compiling parking_lot v0.12.3 Compiling regex-automata v0.4.8 Compiling extendr-macros v0.7.1 Compiling regex v1.11.0 Compiling bstr v1.10.0 Compiling fancy-regex v0.12.0 Compiling tiktoken-rs v0.5.9 Compiling rtiktoken v0.1.0 (/srv/hornik/tmp/CRAN_pretest/rtiktoken.Rcheck/00_pkg_src/rtiktoken/src/rust) Finished `release` profile [optimized] target(s) in 9.11s if [ "" != "true" ]; then \ rm -Rf /srv/hornik/tmp/CRAN_pretest/rtiktoken.Rcheck/00_pkg_src/rtiktoken/src/.cargo ./rust/target/release/build /srv/hornik/tmp/CRAN_pretest/rtiktoken.Rcheck/00_pkg_src/rtiktoken/src/vendor; \ fi clang-18 -shared -L/home/hornik/tmp/R-d-clang-18/lib -Wl,-O1 -o rtiktoken.so entrypoint.o -L./rust/target/release -lrtiktoken -L/home/hornik/tmp/R-d-clang-18/lib -lR installing to /srv/hornik/tmp/CRAN_pretest/rtiktoken.Rcheck/00LOCK-rtiktoken/00new/rtiktoken/libs ** R ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices ** building package indices ** testing if installed package can be loaded from temporary location ** checking absolute paths in shared objects and dynamic libraries ** testing if installed package can be loaded from final location ** testing if installed package keeps a record of temporary installation path * DONE (rtiktoken)