* installing to library ‘/home/hornik/tmp/R.check/r-devel-clang/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: ‘Debian clang version 19.1.7 (3+b1)’
make[1]: Entering directory '/home/hornik/tmp/scratch/RtmpQ24249/R.INSTALLacb77171cd299/rtiktoken/src'
clang-19 -std=gnu23 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O3 -Wall -pedantic -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/RtmpQ24249/R.INSTALLacb77171cd299/rtiktoken/src/.cargo && \
		cp rust/vendor-config.toml /home/hornik/tmp/scratch/RtmpQ24249/R.INSTALLacb77171cd299/rtiktoken/src/.cargo/config.toml; \
	fi; \
fi
export CARGO_HOME=/home/hornik/tmp/scratch/RtmpQ24249/R.INSTALLacb77171cd299/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 unicode-ident v1.0.18
   Compiling libc v0.2.171
   Compiling aho-corasick v1.1.3
   Compiling regex-syntax v0.8.5
   Compiling autocfg v1.4.0
   Compiling build-print v0.1.1
   Compiling extendr-ffi v0.8.0
   Compiling lock_api v0.4.12
   Compiling regex-automata v0.4.9
   Compiling parking_lot_core v0.9.10
   Compiling quote v1.0.40
   Compiling paste v1.0.15
   Compiling anyhow v1.0.97
   Compiling cfg-if v1.0.0
   Compiling smallvec v1.15.0
   Compiling bit-vec v0.6.3
   Compiling scopeguard v1.2.0
   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 once_cell v1.21.3
   Compiling base64 v0.21.7
   Compiling rustc-hash v1.1.0
   Compiling lazy_static v1.5.0
   Compiling tiktoken-rs v0.5.9
   Compiling rtiktoken v0.1.0 (/home/hornik/tmp/scratch/RtmpQ24249/R.INSTALLacb77171cd299/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/RtmpQ24249/R.INSTALLacb77171cd299/rtiktoken/src/.cargo;
clang-19 -std=gnu23 -shared -L/home/hornik/tmp/R.check/r-devel-clang/Work/build/lib -Wl,-O1 -o rtiktoken.so entrypoint.o -L./rust/target/release -lrtiktoken -L/home/hornik/tmp/R.check/r-devel-clang/Work/build/lib -lR
rm -Rf /home/hornik/tmp/scratch/RtmpQ24249/R.INSTALLacb77171cd299/rtiktoken/src/.cargo /home/hornik/tmp/scratch/RtmpQ24249/R.INSTALLacb77171cd299/rtiktoken/src/vendor ./rust/target
make[1]: Leaving directory '/home/hornik/tmp/scratch/RtmpQ24249/R.INSTALLacb77171cd299/rtiktoken/src'
make[1]: Entering directory '/home/hornik/tmp/scratch/RtmpQ24249/R.INSTALLacb77171cd299/rtiktoken/src'
make[1]: Leaving directory '/home/hornik/tmp/scratch/RtmpQ24249/R.INSTALLacb77171cd299/rtiktoken/src'
installing to /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/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)