* installing to library ‘/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages’
* installing *source* package ‘astgrepr’ ...
** this is package ‘astgrepr’ version ‘0.1.1’
** package ‘astgrepr’ successfully unpacked and MD5 sums checked
** using staged installation
Using cargo 1.90.0 (840b83a10 2025-07-30) (built from a source tarball)
Using rustc 1.90.0 (1159e78c4 2025-09-14) (built from a source tarball)
Building for CRAN.
Writing `src/Makevars`.
`tools/config.R` has finished.
** libs
using C compiler: ‘gcc-14 (Debian 14.3.0-10) 14.3.0’
make[1]: Entering directory '/home/hornik/tmp/scratch/RtmpnLJKbk/R.INSTALL3a03c37004aad/astgrepr/src'
gcc-14 -std=gnu23 -I"/home/hornik/tmp/R.check/r-patched-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
if [ -f ./rust/vendor.tar.xz ]; then \
tar xf rust/vendor.tar.xz && \
mkdir -p /home/hornik/tmp/scratch/RtmpnLJKbk/R.INSTALL3a03c37004aad/astgrepr/src/.cargo && \
cp rust/vendor-config.toml /home/hornik/tmp/scratch/RtmpnLJKbk/R.INSTALL3a03c37004aad/astgrepr/src/.cargo/config.toml; \
fi
export MACOSX_DEPLOYMENT_TARGET=15.0 && \
export CARGO_HOME=/home/hornik/tmp/scratch/RtmpnLJKbk/R.INSTALL3a03c37004aad/astgrepr/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.92
Compiling unicode-ident v1.0.12
Compiling memchr v2.7.2
Compiling quote v1.0.35
Compiling syn v2.0.90
Compiling shlex v1.3.0
Compiling cc v1.2.24
Compiling wasm-bindgen-shared v0.2.100
Compiling aho-corasick v1.1.3
Compiling regex-syntax v0.8.5
Compiling tree-sitter v0.24.7
Compiling log v0.4.21
Compiling bumpalo v3.17.0
Compiling wasm-bindgen-backend v0.2.100
Compiling regex-automata v0.4.9
Compiling rustversion v1.0.21
Compiling serde v1.0.203
Compiling regex v1.11.1
Compiling wasm-bindgen-macro-support v0.2.100
Compiling serde_derive v1.0.203
Compiling tree-sitter-language v0.1.3
Compiling build-print v0.1.1
Compiling wasm-bindgen v0.2.100
Compiling streaming-iterator v0.1.9
Compiling once_cell v1.21.3
Compiling extendr-ffi v0.8.0
Compiling wasm-bindgen-macro v0.2.100
Compiling ryu v1.0.17
Compiling itoa v1.0.11
Compiling cfg-if v1.0.0
Compiling serde_json v1.0.140
Compiling thiserror v2.0.9
Compiling thiserror-impl v2.0.9
Compiling serde_derive_internals v0.29.1
Compiling bit-vec v0.8.0
Compiling schemars v0.8.21
Compiling equivalent v1.0.1
Compiling anyhow v1.0.98
Compiling paste v1.0.15
Compiling hashbrown v0.14.3
Compiling schemars_derive v0.8.21
Compiling indexmap v2.2.6
Compiling bit-set v0.8.0
Compiling tree-sitter-facade-sg v0.24.5
Compiling tree-sitter-r v1.0.1
Compiling bstr v1.9.1
Compiling dyn-clone v1.0.17
Compiling unsafe-libyaml v0.2.11
Compiling extendr-api v0.8.0
Compiling serde_yaml v0.9.34+deprecated
Compiling globset v0.4.14
Compiling ast-grep-core v0.32.3
Compiling extendr-macros v0.8.0
Compiling ast-grep-config v0.32.3
Compiling astgrepr v0.1.0 (/home/hornik/tmp/scratch/RtmpnLJKbk/R.INSTALL3a03c37004aad/astgrepr/src/rust)
warning: hiding a lifetime that's elided elsewhere is confusing
--> src/language.rs:21:46
|
21 | fn pre_process_pattern(expando: char, query: &str) -> std::borrow::Cow<str> {
| ^^^^ --------------------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
= note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: use `'_` for type paths
|
21 | fn pre_process_pattern(expando: char, query: &str) -> std::borrow::Cow<'_, str> {
| +++
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: `astgrepr` (lib) generated 1 warning
Finished `release` profile [optimized] target(s) in 2m 36s
# Always clean up CARGOTMP
rm -Rf /home/hornik/tmp/scratch/RtmpnLJKbk/R.INSTALL3a03c37004aad/astgrepr/src/.cargo;
gcc-14 -std=gnu23 -shared -L/home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib -Wl,-O1 -o astgrepr.so entrypoint.o -L./rust/target/release -lastgrepr -lutil -L/home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib -lR
rm -Rf /home/hornik/tmp/scratch/RtmpnLJKbk/R.INSTALL3a03c37004aad/astgrepr/src/.cargo /home/hornik/tmp/scratch/RtmpnLJKbk/R.INSTALL3a03c37004aad/astgrepr/src/vendor ./rust/target
make[1]: Leaving directory '/home/hornik/tmp/scratch/RtmpnLJKbk/R.INSTALL3a03c37004aad/astgrepr/src'
make[1]: Entering directory '/home/hornik/tmp/scratch/RtmpnLJKbk/R.INSTALL3a03c37004aad/astgrepr/src'
make[1]: Leaving directory '/home/hornik/tmp/scratch/RtmpnLJKbk/R.INSTALL3a03c37004aad/astgrepr/src'
installing to /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/00LOCK-astgrepr/00new/astgrepr/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
converting help for package ‘astgrepr’
finding HTML links ... done
ast_rule html
expect_snapshot html
node-find html
node-fix html
node-get-match html
node-info html
node-is html
node-range html
node-text html
node-traversal html
node_get_root html
node_kind html
pattern_rule html
relational_rule html
tree_new html
tree_rewrite html
tree_root 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 (astgrepr)