* installing *source* package ‘rtiktoken’ ... ** this is package ‘rtiktoken’ version ‘0.11.0.2’ ** package ‘rtiktoken’ successfully unpacked and MD5 sums checked ** using staged installation Using cargo 1.97.1 (c980f4866 2026-06-30) Using rustc 1.97.1 (8bab26f4f 2026-07-14) Building for CRAN. Writing `src/Makevars`. `tools/config.R` has finished. ** libs using C compiler: ‘Apple clang version 21.0.0 (clang-2100.1.1.101)’ using SDK: ‘MacOSX26.5.sdk’ clang -mmacos-version-min=26 -std=gnu23 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -isystem /opt/R/arm64/include -fPIC -falign-functions=8 -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -Wstrict-prototypes -c entrypoint.c -o entrypoint.o if [ -d ./vendor ]; then \ echo "=== Using offline vendor directory ==="; \ mkdir -p /Users/ripley/R/packages/tests-devel/rtiktoken/src/.cargo && \ cp rust/vendor-config.toml /Users/ripley/R/packages/tests-devel/rtiktoken/src/.cargo/config.toml; \ elif [ -f ./rust/vendor.tar.xz ]; then \ echo "=== Using offline vendor tarball ==="; \ tar xf rust/vendor.tar.xz && \ mkdir -p /Users/ripley/R/packages/tests-devel/rtiktoken/src/.cargo && \ cp rust/vendor-config.toml /Users/ripley/R/packages/tests-devel/rtiktoken/src/.cargo/config.toml; \ fi === Using offline vendor tarball === export CARGO_HOME=/Users/ripley/R/packages/tests-devel/rtiktoken/src/.cargo && \ export PATH=".:/Users/ripley/bin:/Library/TeX/texbin:/opt/R/arm64/bin:/usr/local/bin:/usr/bin:/bin:/Users/ripley/.cargo/bin" && \ RUSTFLAGS=" --print=native-static-libs" cargo build -j 2 --offline --lib --release --manifest-path=./rust/Cargo.toml --target-dir ./rust/target warning: a `-j` argument was passed to Cargo but Cargo is also configured with an external jobserver in its environment, ignoring the `-j` parameter Compiling proc-macro2 v1.0.106 Compiling quote v1.0.45 Compiling unicode-ident v1.0.24 Compiling memchr v2.8.0 Compiling aho-corasick v1.1.4 Compiling regex-syntax v0.8.10 Compiling regex-automata v0.4.14 Compiling extendr-ffi v0.9.0 Compiling syn v2.0.117 Compiling anyhow v1.0.102 Compiling paste v1.0.15 Compiling bit-vec v0.8.0 Compiling bit-set v0.8.0 Compiling lazy_static v1.5.0 Compiling extendr-api v0.9.0 Compiling extendr-macros v0.9.0 Compiling fancy-regex v0.17.0 Compiling readonly v0.2.13 Compiling bstr v1.12.1 Compiling regex v1.12.3 Compiling base64 v0.22.1 Compiling once_cell v1.21.4 Compiling rustc-hash v1.1.0 Compiling tiktoken-rs v0.11.0 Compiling rtiktoken v0.1.0 (/Users/ripley/R/packages/tests-devel/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 -lSystem -lc -lm Finished `release` profile [optimized] target(s) in 27.11s export CARGO_HOME=/Users/ripley/R/packages/tests-devel/rtiktoken/src/.cargo && \ export PATH=".:/Users/ripley/bin:/Library/TeX/texbin:/opt/R/arm64/bin:/usr/local/bin:/usr/bin:/bin:/Users/ripley/.cargo/bin" && \ RUSTFLAGS=" --print=native-static-libs" cargo run -j 2 --offline --bin document --release --manifest-path=./rust/Cargo.toml --target-dir ./rust/target warning: a `-j` argument was passed to Cargo but Cargo is also configured with an external jobserver in its environment, ignoring the `-j` parameter 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 -lSystem -lc -lm Compiling rtiktoken v0.1.0 (/Users/ripley/R/packages/tests-devel/rtiktoken/src/rust) Finished `release` profile [optimized] target(s) in 7.54s Running `rust/target/release/document` dyld[30272]: Library not loaded: libR.dylib Referenced from: /Users/ripley/R/packages/tests-devel/rtiktoken/src/rust/target/release/document Reason: tried: 'libR.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibR.dylib' (no such file), 'libR.dylib' (no such file), '/Users/ripley/R/packages/tests-devel/rtiktoken/src/./rust/target/release/libR.dylib' (no such file), '/Users/ripley/R/packages/tests-devel/rtiktoken/src/./rust/target/release/deps/libR.dylib' (no such file), '/Users/ripley/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libR.dylib' (no such file), '/Users/ripley/.rustup/toolchains/stable-aarch64-apple-darwin/lib/libR.dylib' (no such file), '/Users/ripley/lib/libR.dylib' (no such file), '/usr/local/lib/libR.dylib' (no such file), '/usr/lib/libR.dylib' (no such file, not in dyld cache), '/Users/ripley/R/packages/tests-devel/rtiktoken/src/libR.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/ripley/R/packages/tests-devel/rtiktoken/src/libR.dylib' (no such file), '/Users/ripley/R/packages/tests-devel/rtiktoken/src/libR.dylib' (no such file), '/Users/ripley/R/packages/tests-devel/rtiktoken/src/./rust/target/release/libR.dylib' (no such file), '/Users/ripley/R/packages/tests-devel/rtiktoken/src/./rust/target/release/deps/libR.dylib' (no such file), '/Users/ripley/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libR.dylib' (no such file), '/Users/ripley/.rustup/toolchains/stable-aarch64-apple-darwin/lib/libR.dylib' (no such file), '/Users/ripley/lib/libR.dylib' (no such file), '/usr/local/lib/libR.dylib' (no such file), '/usr/lib/libR.dylib' (no such file, not in dyld cache) /bin/sh: line 1: 30272 Abort trap: 6 RUSTFLAGS=" --print=native-static-libs" cargo run -j 2 --offline --bin document --release --manifest-path=./rust/Cargo.toml --target-dir ./rust/target make[1]: *** [rust/target/release/librtiktoken.a] Error 134 make[1]: Target `all' not remade because of errors. ERROR: compilation failed for package ‘rtiktoken’ * removing ‘/Users/ripley/R/packages/tests-devel/rtiktoken.Rcheck/rtiktoken’