* installing to library ‘/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages’ * installing *source* package ‘rtiktoken’ ... ** this is package ‘rtiktoken’ version ‘0.0.7’ ** package ‘rtiktoken’ successfully unpacked and MD5 sums checked ** using staged installation Using cargo 1.85.0 (d73d2caf9 2024-12-31) Using rustc 1.85.0 (4d91de4e4 2025-02-17) (built from a source tarball) Building for CRAN. Writing `src/Makevars`. `tools/config.R` has finished. ** libs using C compiler: ‘gcc-14 (Debian 14.2.0-19) 14.2.0’ make[1]: Entering directory '/home/hornik/tmp/scratch/RtmpOMJ02l/R.INSTALL1d3a5c5b3c0f8/rtiktoken/src' gcc-14 -std=gnu23 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -I/usr/local/include -D_FORTIFY_SOURCE=3 -fpic -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native -c entrypoint.c -o entrypoint.o # Check if NOT_CRAN is false and unzip vendor.tar.xz if so if [ "" != "true" ]; then \ if [ -f ./rust/vendor.tar.xz ]; then \ tar xf rust/vendor.tar.xz && \ mkdir -p /home/hornik/tmp/scratch/RtmpOMJ02l/R.INSTALL1d3a5c5b3c0f8/rtiktoken/src/.cargo && \ cp rust/vendor-config.toml /home/hornik/tmp/scratch/RtmpOMJ02l/R.INSTALL1d3a5c5b3c0f8/rtiktoken/src/.cargo/config.toml; \ fi; \ fi export CARGO_HOME=/home/hornik/tmp/scratch/RtmpOMJ02l/R.INSTALL1d3a5c5b3c0f8/rtiktoken/src/.cargo && \ export PATH="/home/hornik/bin:/usr/local/bin:/usr/bin:/bin:/home/hornik/.cargo/bin" && \ RUSTFLAGS=" --print=native-static-libs" cargo build -j 2 --offline --lib --release --manifest-path=./rust/Cargo.toml --target-dir ./rust/target Compiling memchr v2.7.4 Compiling proc-macro2 v1.0.94 Compiling autocfg v1.4.0 Compiling aho-corasick v1.1.3 Compiling regex-syntax v0.8.5 Compiling unicode-ident v1.0.18 Compiling build-print v0.1.1 Compiling libc v0.2.171 Compiling extendr-ffi v0.8.0 Compiling regex-automata v0.4.9 Compiling lock_api v0.4.12 Compiling parking_lot_core v0.9.10 Compiling quote v1.0.40 Compiling bit-vec v0.6.3 Compiling scopeguard v1.2.0 Compiling cfg-if v1.0.0 Compiling smallvec v1.15.0 Compiling paste v1.0.15 Compiling anyhow v1.0.97 Compiling bit-set v0.5.3 Compiling regex v1.11.1 Compiling syn v2.0.100 Compiling extendr-api v0.8.0 Compiling extendr-macros v0.8.0 Compiling fancy-regex v0.12.0 Compiling parking_lot v0.12.3 Compiling bstr v1.12.0 Compiling lazy_static v1.5.0 Compiling once_cell v1.21.3 Compiling base64 v0.21.7 Compiling rustc-hash v1.1.0 Compiling tiktoken-rs v0.5.9 Compiling rtiktoken v0.1.0 (/home/hornik/tmp/scratch/RtmpOMJ02l/R.INSTALL1d3a5c5b3c0f8/rtiktoken/src/rust) note: Link against the following native artifacts when linking against this static library. The order and any duplication can be significant on some platforms. note: native-static-libs: -lR -lgcc_s -lutil -lrt -lpthread -lm -ldl -lc Finished `release` profile [optimized] target(s) in 1m 10s # Always clean up CARGOTMP rm -Rf /home/hornik/tmp/scratch/RtmpOMJ02l/R.INSTALL1d3a5c5b3c0f8/rtiktoken/src/.cargo; gcc-14 -std=gnu23 -shared -L/home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib -Wl,-O1 -o rtiktoken.so entrypoint.o -L./rust/target/release -lrtiktoken -L/home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib -lR rm -Rf /home/hornik/tmp/scratch/RtmpOMJ02l/R.INSTALL1d3a5c5b3c0f8/rtiktoken/src/.cargo /home/hornik/tmp/scratch/RtmpOMJ02l/R.INSTALL1d3a5c5b3c0f8/rtiktoken/src/vendor ./rust/target make[1]: Leaving directory '/home/hornik/tmp/scratch/RtmpOMJ02l/R.INSTALL1d3a5c5b3c0f8/rtiktoken/src' make[1]: Entering directory '/home/hornik/tmp/scratch/RtmpOMJ02l/R.INSTALL1d3a5c5b3c0f8/rtiktoken/src' make[1]: Leaving directory '/home/hornik/tmp/scratch/RtmpOMJ02l/R.INSTALL1d3a5c5b3c0f8/rtiktoken/src' installing to /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/00LOCK-rtiktoken/00new/rtiktoken/libs ** R ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices converting help for package ‘rtiktoken’ finding HTML links ... done decode_tokens html get_token_count html get_tokens html model_to_tokenizer html ** 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)