* installing to library ‘/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages’
* installing *source* package ‘llmjson’ ...
** this is package ‘llmjson’ version ‘0.1.0’
** package ‘llmjson’ successfully unpacked and MD5 sums checked
** using staged installation
Using cargo 1.91.1 (ea2d97820 2025-10-10) (built from a source tarball)
Using rustc 1.91.1 (ed61e7d7e 2025-11-07) (built from a source tarball)
Building for CRAN.
Writing `src/Makevars`.
`tools/config.R` has finished.
** libs
using C compiler: ‘gcc-15 (Debian 15.2.0-14) 15.2.0’
make[1]: Entering directory '/tmp/RtmpZcpgXk/R.INSTALL3a59c175ff242d/llmjson/src'
gcc-15 -I"/home/hornik/tmp/R.check/r-devel-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 /tmp/RtmpZcpgXk/R.INSTALL3a59c175ff242d/llmjson/src/.cargo && \
		cp rust/vendor-config.toml /tmp/RtmpZcpgXk/R.INSTALL3a59c175ff242d/llmjson/src/.cargo/config.toml; \
	fi; \
fi
export CARGO_HOME=/tmp/RtmpZcpgXk/R.INSTALL3a59c175ff242d/llmjson/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 proc-macro2 v1.0.104
   Compiling unicode-ident v1.0.22
   Compiling quote v1.0.42
   Compiling extendr-ffi v0.8.1
   Compiling paste v1.0.15
   Compiling serde_core v1.0.228
   Compiling extendr-api v0.8.1
   Compiling syn v2.0.111
   Compiling serde_json v1.0.148
   Compiling thiserror v1.0.69
   Compiling zmij v1.0.0
   Compiling itoa v1.0.17
   Compiling hashbrown v0.16.1
   Compiling extendr-macros v0.8.1
   Compiling thiserror-impl v1.0.69
   Compiling equivalent v1.0.2
   Compiling memchr v2.7.6
   Compiling once_cell v1.21.3
   Compiling indexmap v2.12.1
   Compiling rllmjson v0.1.0 (/tmp/RtmpZcpgXk/R.INSTALL3a59c175ff242d/llmjson/src/rust)
warning: variant `UnrepairableJson` is never constructed
  --> src/llm_json.rs:56:5
   |
54 | pub enum JsonRepairError {
   |          --------------- variant in this enum
55 |     #[error("JSON string is too broken to repair")]
56 |     UnrepairableJson,
   |     ^^^^^^^^^^^^^^^^
   |
   = note: `JsonRepairError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default

warning: fields `return_objects` and `stream_stable` are never read
  --> src/llm_json.rs:88:9
   |
84 | pub struct RepairOptions {
   |            ------------- fields in this struct
...
88 |     pub return_objects: bool,
   |         ^^^^^^^^^^^^^^
...
92 |     pub stream_stable: bool,
   |         ^^^^^^^^^^^^^
   |
   = note: `RepairOptions` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis

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

warning: `rllmjson` (lib) generated 2 warnings
    Finished `release` profile [optimized] target(s) in 26.19s
# Always clean up CARGOTMP
rm -Rf /tmp/RtmpZcpgXk/R.INSTALL3a59c175ff242d/llmjson/src/.cargo;
gcc-15 -shared -L/home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib -Wl,-O1 -o llmjson.so entrypoint.o -L./rust/target/release -lllmjson -L/home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib -lR
rm -Rf /tmp/RtmpZcpgXk/R.INSTALL3a59c175ff242d/llmjson/src/.cargo /tmp/RtmpZcpgXk/R.INSTALL3a59c175ff242d/llmjson/src/vendor ./rust/target
make[1]: Leaving directory '/tmp/RtmpZcpgXk/R.INSTALL3a59c175ff242d/llmjson/src'
make[1]: Entering directory '/tmp/RtmpZcpgXk/R.INSTALL3a59c175ff242d/llmjson/src'
make[1]: Leaving directory '/tmp/RtmpZcpgXk/R.INSTALL3a59c175ff242d/llmjson/src'
installing to /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/00LOCK-llmjson/00new/llmjson/libs
** R
** 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 (llmjson)