* installing *source* package 'rtiktoken' ...
** package 'rtiktoken' successfully unpacked and MD5 sums checked
** using staged installation
Using cargo 1.81.0 (2dbb1af80 2024-08-20)
Using rustc 1.81.0 (eeb90cda1 2024-09-04)
Building for CRAN.
Writing `src/Makevars.win`.
`tools/config.R` has finished.
** libs
using C compiler: 'gcc.exe (GCC) 13.3.0'
make[1]: Entering directory '/d/temp/2025_07_02_01_50_01_21067/RtmpOyS6jt/R.INSTALL2ea4871175af6/rtiktoken/src'
gcc  -I"D:/RCompile/recent/R-4.4.3/include" -DNDEBUG     -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include"     -pedantic -Wstrict-prototypes -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c entrypoint.c -o entrypoint.o
mkdir -p ./rust/target/libgcc_mock
touch ./rust/target/libgcc_mock/libgcc_eh.a
if [ "" != "true" ]; then \
	if [ -f ./rust/vendor.tar.xz ]; then \
		tar xf rust/vendor.tar.xz && \
		mkdir -p /d/temp/2025_07_02_01_50_01_21067/RtmpOyS6jt/R.INSTALL2ea4871175af6/rtiktoken/src/.cargo && \
		cp rust/vendor-config.toml /d/temp/2025_07_02_01_50_01_21067/RtmpOyS6jt/R.INSTALL2ea4871175af6/rtiktoken/src/.cargo/config.toml; \
	fi; \
fi
# Build the project using Cargo with additional flags
export CARGO_HOME=/d/temp/2025_07_02_01_50_01_21067/RtmpOyS6jt/R.INSTALL2ea4871175af6/rtiktoken/src/.cargo && \
export LIBRARY_PATH=";/d/temp/2025_07_02_01_50_01_21067/RtmpOyS6jt/R.INSTALL2ea4871175af6/rtiktoken/src/./rust/target/libgcc_mock" && \
RUSTFLAGS=" --print=native-static-libs" cargo build -j 2 --offline --target=x86_64-pc-windows-gnu --lib --release --manifest-path=rust/Cargo.toml --target-dir=./rust/target
   Compiling memchr v2.7.4
   Compiling proc-macro2 v1.0.94
   Compiling windows_x86_64_gnu v0.52.6
   Compiling aho-corasick v1.1.3
   Compiling regex-syntax v0.8.5
   Compiling autocfg v1.4.0
   Compiling build-print v0.1.1
   Compiling unicode-ident v1.0.18
   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 windows-targets v0.52.6
   Compiling quote v1.0.40
   Compiling smallvec v1.15.0
   Compiling paste v1.0.15
   Compiling cfg-if v1.0.0
   Compiling scopeguard v1.2.0
   Compiling bit-vec v0.6.3
   Compiling anyhow v1.0.97
   Compiling regex v1.11.1
   Compiling bit-set v0.5.3
   Compiling syn v2.0.100
   Compiling extendr-api v0.8.0
   Compiling extendr-macros v0.8.0
   Compiling parking_lot v0.12.3
   Compiling fancy-regex v0.12.0
   Compiling bstr v1.12.0
   Compiling once_cell v1.21.3
   Compiling base64 v0.21.7
   Compiling lazy_static v1.5.0
   Compiling rustc-hash v1.1.0
   Compiling tiktoken-rs v0.5.9
   Compiling rtiktoken v0.1.0 (D:\temp\2025_07_02_01_50_01_21067\RtmpOyS6jt\R.INSTALL2ea4871175af6\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: -lwindows.0.52.0 -lR -lkernel32 -ladvapi32 -lntdll -luserenv -lws2_32 -lkernel32

    Finished `release` profile [optimized] target(s) in 1m 22s
# Always clean up CARGOTMP
rm -Rf /d/temp/2025_07_02_01_50_01_21067/RtmpOyS6jt/R.INSTALL2ea4871175af6/rtiktoken/src/.cargo;
gcc -shared -s -static-libgcc -o rtiktoken.dll rtiktoken-win.def entrypoint.o -L./rust/target/x86_64-pc-windows-gnu/release -lrtiktoken -lws2_32 -ladvapi32 -luserenv -lbcrypt -lntdll -Ld:/rtools44/x86_64-w64-mingw32.static.posix/lib/x64 -Ld:/rtools44/x86_64-w64-mingw32.static.posix/lib -LD:/RCompile/recent/R-4.4.3/bin/x64 -lR
rm -Rf /d/temp/2025_07_02_01_50_01_21067/RtmpOyS6jt/R.INSTALL2ea4871175af6/rtiktoken/src/.cargo vendor ./rust/target
make[1]: Leaving directory '/d/temp/2025_07_02_01_50_01_21067/RtmpOyS6jt/R.INSTALL2ea4871175af6/rtiktoken/src'
make[1]: Entering directory '/d/temp/2025_07_02_01_50_01_21067/RtmpOyS6jt/R.INSTALL2ea4871175af6/rtiktoken/src'
make[1]: Leaving directory '/d/temp/2025_07_02_01_50_01_21067/RtmpOyS6jt/R.INSTALL2ea4871175af6/rtiktoken/src'
installing to d:/Rcompile/CRANpkg/lib/4.4/00LOCK-rtiktoken/00new/rtiktoken/libs/x64
** 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
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* MD5 sums
packaged installation of 'rtiktoken' as rtiktoken_0.0.7.zip
* DONE (rtiktoken)