* installing to library ‘/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages’
* installing *source* package ‘automerge’ ...
** this is package ‘automerge’ version ‘0.4.0’
** package ‘automerge’ successfully unpacked and MD5 sums checked
** using staged installation
Checking for system automerge installation...
System automerge not found, building from bundled source...
Building automerge-c...
using Rust package manager: 'cargo 1.95.0 (f2d3ce0bd 2026-03-21) (built from a source tarball)'
using Rust compiler: 'rustc 1.95.0 (59807616e 2026-04-14) (built from a source tarball)'
Extracting vendored Rust dependencies...
-- The C compiler identification is GNU 15.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc-15 - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Configuring done (0.5s)
-- Generating done (0.0s)
-- Build files have been written to: /home/hornik/tmp/scratch/RtmpRWeeKG/R.INSTALL1c0328581d326c/automerge/am-build
Building (this may take several minutes)...
gmake[1]: Entering directory '/home/hornik/tmp/scratch/RtmpRWeeKG/R.INSTALL1c0328581d326c/automerge/am-build'
[ 12%] Producing the bindings' artifacts with Cargo...
-- Touching "/home/hornik/tmp/scratch/RtmpRWeeKG/R.INSTALL1c0328581d326c/automerge/src/automerge/rust/automerge-c/cbindgen.toml" if NOT_EXISTS "/home/hornik/tmp/scratch/RtmpRWeeKG/R.INSTALL1c0328581d326c/automerge/am-build/include/automerge-c/automerge.h"...
-- Touched "/home/hornik/tmp/scratch/RtmpRWeeKG/R.INSTALL1c0328581d326c/automerge/src/automerge/rust/automerge-c/cbindgen.toml".
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package:   /home/hornik/tmp/scratch/RtmpRWeeKG/R.INSTALL1c0328581d326c/automerge/src/automerge/rust/hexane/Cargo.toml
workspace: /home/hornik/tmp/scratch/RtmpRWeeKG/R.INSTALL1c0328581d326c/automerge/src/automerge/rust/Cargo.toml
   Compiling proc-macro2 v1.0.106
   Compiling unicode-ident v1.0.24
   Compiling quote v1.0.44
   Compiling libc v0.2.182
   Compiling serde_core v1.0.228
   Compiling syn v2.0.116
   Compiling typenum v1.19.0
   Compiling zmij v1.0.21
   Compiling hybrid-array v0.4.7
   Compiling serde_json v1.0.149
   Compiling serde v1.0.228
   Compiling winnow v0.7.14
   Compiling serde_derive v1.0.228
   Compiling cfg-if v1.0.4
   Compiling toml_parser v1.0.9+spec-1.1.0
   Compiling toml_datetime v0.7.5+spec-1.1.0
   Compiling serde_spanned v1.0.4
   Compiling equivalent v1.0.2
   Compiling remove_dir_all v0.5.3
   Compiling crc32fast v1.5.0
   Compiling fastrand v1.9.0
   Compiling cbindgen v0.29.2
   Compiling memchr v2.8.0
   Compiling thiserror v2.0.18
   Compiling hashbrown v0.16.1
   Compiling itoa v1.0.17
   Compiling tempfile v3.3.0
   Compiling indexmap v2.13.0
   Compiling toml v0.9.12+spec-1.1.0
   Compiling thiserror-impl v2.0.18
   Compiling block-buffer v0.11.0
   Compiling crypto-common v0.2.0
   Compiling log v0.4.29
   Compiling getrandom v0.3.4
   Compiling heck v0.5.0
   Compiling adler2 v2.0.1
   Compiling simd-adler32 v0.3.8
   Compiling once_cell v1.21.3
   Compiling miniz_oxide v0.8.9
   Compiling tracing-core v0.1.36
   Compiling digest v0.11.0
   Compiling tracing-attributes v0.1.31
   Compiling rand_core v0.9.5
   Compiling cpufeatures v0.2.17
   Compiling pin-project-lite v0.2.16
   Compiling either v1.15.0
   Compiling leb128 v0.2.5
   Compiling hexane v0.1.7 (/home/hornik/tmp/scratch/RtmpRWeeKG/R.INSTALL1c0328581d326c/automerge/src/automerge/rust/hexane)
   Compiling automerge-c v0.3.0 (/home/hornik/tmp/scratch/RtmpRWeeKG/R.INSTALL1c0328581d326c/automerge/src/automerge/rust/automerge-c)
   Compiling itertools v0.14.0
   Compiling tracing v0.1.44
   Compiling sha2 v0.11.0-rc.5
   Compiling rand v0.9.2
   Compiling flate2 v1.1.9
   Compiling smol_str v0.2.2
   Compiling rustc-hash v2.1.1
   Compiling hex v0.4.3
   Compiling unicode-segmentation v1.12.0
   Compiling automerge v0.7.3 (/home/hornik/tmp/scratch/RtmpRWeeKG/R.INSTALL1c0328581d326c/automerge/src/automerge/rust/automerge)
warning: unused import: `to_expand_mark`
  --> automerge-c/src/doc/mark.rs:32:16
   |
32 | pub(crate) use to_expand_mark;
   |                ^^^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default

warning: unused import: `to_sync_state`
  --> automerge-c/src/sync/state.rs:18:16
   |
18 | pub(crate) use to_sync_state;
   |                ^^^^^^^^^^^^^

warning: `automerge-c` (lib) generated 2 warnings (run `cargo fix --lib -p automerge-c` to apply 2 suggestions)
    Finished `release` profile [optimized] target(s) in 3m 00s
-- Replacing "A_M([^_]+)_" with "AM_\1_" in "/home/hornik/tmp/scratch/RtmpRWeeKG/R.INSTALL1c0328581d326c/automerge/am-build/include/automerge-c/automerge.h"...
-- Created/updated "/home/hornik/tmp/scratch/RtmpRWeeKG/R.INSTALL1c0328581d326c/automerge/am-build/include/automerge-c/automerge.h".
-- Replacing "USIZE_" with "+8" in "/home/hornik/tmp/scratch/RtmpRWeeKG/R.INSTALL1c0328581d326c/automerge/am-build/include/automerge-c/automerge.h"...
-- Created/updated "/home/hornik/tmp/scratch/RtmpRWeeKG/R.INSTALL1c0328581d326c/automerge/am-build/include/automerge-c/automerge.h".
[ 12%] Built target automerge_core_artifacts
[ 25%] Generating the enum string functions with CMake...
-- Generating header file "/home/hornik/tmp/scratch/RtmpRWeeKG/R.INSTALL1c0328581d326c/automerge/am-build/include/automerge-c/utils/enum_string.h"...
-- Generating source file "/home/hornik/tmp/scratch/RtmpRWeeKG/R.INSTALL1c0328581d326c/automerge/am-build/src/utils/enum_string.c"...
[ 37%] Building C object CMakeFiles/automerge.dir/src/utils/result.c.o
[ 50%] Building C object CMakeFiles/automerge.dir/src/utils/stack_callback_data.c.o
[ 62%] Building C object CMakeFiles/automerge.dir/src/utils/stack.c.o
[ 75%] Building C object CMakeFiles/automerge.dir/src/utils/string.c.o
[ 87%] Building C object CMakeFiles/automerge.dir/src/utils/enum_string.c.o
[100%] Linking C static library libautomerge.a
Merging the libraries' constituent object files...
Merging its dependent libraries into /home/hornik/tmp/scratch/RtmpRWeeKG/R.INSTALL1c0328581d326c/automerge/am-build/libautomerge.a...
/usr/bin/ar -x  /home/hornik/tmp/scratch/RtmpRWeeKG/R.INSTALL1c0328581d326c/automerge/am-build/Cargo/target/x86_64-unknown-linux-gnu/release/libautomerge_core.a
/usr/bin/ar -rs libautomerge.a objects/automerge_core/*.o
[100%] Built target automerge
gmake[1]: Leaving directory '/home/hornik/tmp/scratch/RtmpRWeeKG/R.INSTALL1c0328581d326c/automerge/am-build'
gmake[1]: Entering directory '/home/hornik/tmp/scratch/RtmpRWeeKG/R.INSTALL1c0328581d326c/automerge/am-build'
[ 12%] Built target automerge_core_artifacts
[100%] Built target automerge
Install the project...
-- Install configuration: "Release"
gmake[1]: Leaving directory '/home/hornik/tmp/scratch/RtmpRWeeKG/R.INSTALL1c0328581d326c/automerge/am-build'
Successfully built automerge-c from source
Configuration:
  PKG_CFLAGS: -I../am-install/include
  PKG_LIBS: ../am-install/lib/libautomerge.a -pthread -ldl -lm -lrt
** libs
using C compiler: ‘gcc-15 (Debian 15.3.0-1) 15.3.0’
make[1]: Entering directory '/home/hornik/tmp/scratch/RtmpRWeeKG/R.INSTALL1c0328581d326c/automerge/src'
gcc-15 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3  -I../am-install/include -fpic  -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native  -c changes.c -o changes.o
gcc-15 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3  -I../am-install/include -fpic  -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native  -c cursors.c -o cursors.o
gcc-15 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3  -I../am-install/include -fpic  -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native  -c document.c -o document.o
gcc-15 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3  -I../am-install/include -fpic  -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native  -c errors.c -o errors.o
gcc-15 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3  -I../am-install/include -fpic  -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native  -c init.c -o init.o
gcc-15 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3  -I../am-install/include -fpic  -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native  -c memory.c -o memory.o
gcc-15 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3  -I../am-install/include -fpic  -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native  -c objects.c -o objects.o
gcc-15 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3  -I../am-install/include -fpic  -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native  -c sync.c -o sync.o
gcc-15 -shared -L/home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib -Wl,-O1 -o automerge.so changes.o cursors.o document.o errors.o init.o memory.o objects.o sync.o ../am-install/lib/libautomerge.a -pthread -ldl -lm -lrt -L/home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib -lR
make[1]: Leaving directory '/home/hornik/tmp/scratch/RtmpRWeeKG/R.INSTALL1c0328581d326c/automerge/src'
make[1]: Entering directory '/home/hornik/tmp/scratch/RtmpRWeeKG/R.INSTALL1c0328581d326c/automerge/src'
make[1]: Leaving directory '/home/hornik/tmp/scratch/RtmpRWeeKG/R.INSTALL1c0328581d326c/automerge/src'
installing to /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/00LOCK-automerge/00new/automerge/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
  converting help for package ‘automerge’
    finding HTML links ... done
    am_apply_changes                        html  
    am_change_actor_id                      html  
    am_change_deps                          html  
    am_change_from_bytes                    html  
    am_change_hash                          html  
    am_change_message                       html  
    am_change_seq                           html  
    am_change_size                          html  
    am_change_time                          html  
    am_change_to_bytes                      html  
    am_clone                                html  
    am_close                                html  
    am_commit                               html  
    am_commit_empty                         html  
    am_counter                              html  
    am_counter_increment                    html  
    am_create                               html  
    am_cursor                               html  
    am_cursor_equal                         html  
    am_cursor_from_bytes                    html  
    am_cursor_from_string                   html  
    am_cursor_position                      html  
    am_cursor_to_bytes                      html  
    am_cursor_to_string                     html  
    am_delete                               html  
    am_delete_path                          html  
    am_equal                                html  
    am_fork                                 html  
    am_get                                  html  
    am_get_actor                            html  
    am_get_actor_hex                        html  
    am_get_change_by_hash                   html  
    am_get_changes                          html  
    am_get_changes_added                    html  
    am_get_heads                            html  
    am_get_last_local_change                html  
    am_get_missing_deps                     html  
    am_get_path                             html  
    am_insert                               html  
    am_items                                html  
    am_keys                                 html  
    am_length                               html  
    am_list                                 html  
    am_list_get_all                         html  
    am_list_range                           html  
    am_load                                 html  
    am_load_changes                         html  
    am_load_incremental                     html  
    am_map                                  html  
    am_map_get_all                          html  
    am_map_range                            html  
    am_mark                                 html  
    am_mark_clear                           html  
    am_marks                                html  
    am_marks_at                             html  
    am_merge                                html  
    am_pending_ops                          html  
    am_put                                  html  
    am_put_path                             html  
    am_rollback                             html  
    am_save                                 html  
    am_save_incremental                     html  
    am_set_actor                            html  
    am_sync                                 html  
    am_sync_decode                          html  
    am_sync_encode                          html  
    am_sync_state                           html  
    am_sync_state_decode                    html  
    am_sync_state_encode                    html  
    am_text                                 html  
    am_text_content                         html  
    am_text_splice                          html  
    am_text_update                          html  
    am_uint64                               html  
    am_values                               html  
    as.character.am_text                    html  
    as.list.am_doc                          html  
    as.list.am_list                         html  
    as.list.am_map                          html  
    as.list.am_text                         html  
    as_automerge                            html  
    automerge-constants                     html  
    automerge-package                       html  
    extract-am_doc                          html  
    extract-am_object                       html  
    from_automerge                          html  
    length.am_doc                           html  
    length.am_object                        html  
    names.am_doc                            html  
    names.am_map                            html  
    print.am_change                         html  
    print.am_counter                        html  
    print.am_cursor                         html  
    print.am_doc                            html  
    print.am_list                           html  
    print.am_map                            html  
    print.am_object                         html  
    print.am_syncstate                      html  
    print.am_text                           html  
    print.am_uint64                         html  
    replace-am_doc                          html  
    replace-am_object                       html  
    str.am_doc                              html  
** building package indices
** installing vignettes
** 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 (automerge)