* installing *source* package 'rtiktoken' ... ** using staged installation Using cargo 1.81.0 (2dbb1af80 2024-08-20) Using rustc 1.81.0 (eeb90cda1 2024-09-04) MSRV 1.65.0 ** libs using C compiler: 'gcc.exe (GCC) 13.2.0' rm -Rf rtiktoken.dll ./rust/target/x86_64-pc-windows-gnu/release/librtiktoken.a entrypoint.o gcc -I"D:/RCompile/recent/R/include" -DNDEBUG -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -DSTRICT_R_HEADERS=1 -pedantic -Wstrict-prototypes -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -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 # uncompress vendored deps if [ -f ./rust/vendor.tar.xz ]; then \ tar xf rust/vendor.tar.xz && \ mkdir -p /d/temp/Rtmpu415h6/R.INSTALL13a202c584f52/rtiktoken/src/.cargo && \ cp rust/vendor-config.toml /d/temp/Rtmpu415h6/R.INSTALL13a202c584f52/rtiktoken/src/.cargo/config.toml; \ fi mkdir -p ./rust/target/libgcc_mock # `rustc` adds `-lgcc_eh` flags to the compiler, but Rtools' GCC doesn't have # `libgcc_eh` due to the compilation settings. So, in order to please the # compiler, we need to add empty `libgcc_eh` to the library search paths. # # For more details, please refer to # https://github.com/r-windows/rtools-packages/blob/2407b23f1e0925bbb20a4162c963600105236318/mingw-w64-gcc/PKGBUILD#L313-L316 touch ./rust/target/libgcc_mock/libgcc_eh.a # CARGO_LINKER is provided in Makevars.ucrt for R >= 4.2 if [ "" != "true" ]; then \ export CARGO_HOME=/d/temp/Rtmpu415h6/R.INSTALL13a202c584f52/rtiktoken/src/.cargo; \ fi && \ export CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER="x86_64-w64-mingw32.static.posix-gcc.exe" && \ export LIBRARY_PATH="${LIBRARY_PATH};/d/temp/Rtmpu415h6/R.INSTALL13a202c584f52/rtiktoken/src/./rust/target/libgcc_mock" && \ cargo build --target=x86_64-pc-windows-gnu --lib --release --manifest-path=./rust/Cargo.toml --target-dir ./rust/target Compiling windows_x86_64_gnu v0.52.6 Compiling memchr v2.7.4 Compiling proc-macro2 v1.0.87 Compiling regex-syntax v0.8.5 Compiling unicode-ident v1.0.13 Compiling autocfg v1.4.0 Compiling libR-sys v0.7.1 Compiling parking_lot_core v0.9.10 Compiling bit-vec v0.6.3 Compiling anyhow v1.0.89 Compiling scopeguard v1.2.0 Compiling cfg-if v1.0.0 Compiling smallvec v1.13.2 Compiling paste v1.0.15 Compiling extendr-api v0.7.1 Compiling base64 v0.21.7 Compiling once_cell v1.20.2 Compiling rustc-hash v1.1.0 Compiling lazy_static v1.5.0 Compiling bit-set v0.5.3 Compiling windows-targets v0.52.6 Compiling aho-corasick v1.1.3 Compiling lock_api v0.4.12 Compiling quote v1.0.37 Compiling parking_lot v0.12.3 Compiling syn v2.0.79 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 (D:\temp\Rtmpu415h6\R.INSTALL13a202c584f52\rtiktoken\src\rust) Finished `release` profile [optimized] target(s) in 24.92s if [ "" != "true" ]; then \ rm -Rf /d/temp/Rtmpu415h6/R.INSTALL13a202c584f52/rtiktoken/src/.cargo && \ rm -Rf ./rust/target/x86_64-pc-windows-gnu/release/build; \ fi 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/bin/x64 -lR installing to d:/RCompile/CRANincoming/R-devel/lib/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 * DONE (rtiktoken)