* installing *source* package 'a5R' ... ** this is package 'a5R' version '0.2.0' ** using staged installation Using cargo 1.92.0 (344c4567c 2025-10-21) Using rustc 1.92.0 (ded5c06cf 2025-12-08) Building for CRAN. Writing `src/Makevars.win`. `tools/config.R` has finished. ** libs using C compiler: 'gcc (GCC) 15.2.0' gcc -I"D:/RCompile/recent/R/include" -DNDEBUG -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include" -pedantic -Wstrict-prototypes -O2 -Wall -std=gnu2x -mfpmath=sse -msse2 -mstackrealign -c entrypoint.c -o entrypoint.o mkdir -p ./rust/target/libgcc_mock touch ./rust/target/libgcc_mock/libgcc_eh.a if [ -f ./rust/vendor.tar.xz ]; then \ tar xf rust/vendor.tar.xz && \ mkdir -p /d/temp/2026_03_11_11_45_17_12631/RtmpkXFsiN/R.INSTALL3bf417e86c58/a5R/src/.cargo && \ cp rust/vendor-config.toml /d/temp/2026_03_11_11_45_17_12631/RtmpkXFsiN/R.INSTALL3bf417e86c58/a5R/src/.cargo/config.toml; \ fi # Build the project using Cargo with additional flags export CARGO_HOME=/d/temp/2026_03_11_11_45_17_12631/RtmpkXFsiN/R.INSTALL3bf417e86c58/a5R/src/.cargo && \ export LIBRARY_PATH=";/d/temp/2026_03_11_11_45_17_12631/RtmpkXFsiN/R.INSTALL3bf417e86c58/a5R/src/./rust/target/libgcc_mock" && \ RUSTFLAGS=" --print=native-static-libs" cargo build -j 2 --offline --target=x86_64-pc-windows-gnu --lib --release --manifest-path=rust/Cargo.toml --target-dir=./rust/target Compiling libm v0.2.16 Compiling autocfg v1.5.0 Compiling proc-macro2 v1.0.106 Compiling num-traits v0.2.19 Compiling quote v1.0.44 Compiling unicode-ident v1.0.24 Compiling byteorder v1.5.0 Compiling heapless v0.8.0 Compiling hash32 v0.3.1 Compiling stable_deref_trait v1.2.1 Compiling crossbeam-utils v0.8.21 Compiling zerocopy v0.8.39 Compiling syn v2.0.116 Compiling cfg-if v1.0.4 Compiling smallvec v1.15.1 Compiling rstar v0.12.2 Compiling getrandom v0.2.17 Compiling approx v0.5.1 Compiling extendr-ffi v0.8.1 Compiling geo-types v0.7.18 Compiling crossbeam-epoch v0.9.18 Compiling ppv-lite86 v0.2.21 Compiling rand_core v0.6.4 Compiling i_float v1.15.0 Compiling rayon-core v1.13.0 Compiling thiserror v1.0.69 Compiling paste v1.0.15 Compiling i_shape v1.14.0 Compiling rand_chacha v0.3.1 Compiling crossbeam-deque v0.8.6 Compiling thiserror-impl v1.0.69 Compiling extendr-api v0.8.1 Compiling i_key_sort v0.6.0 Compiling i_tree v0.16.0 Compiling log v0.4.29 Compiling i_overlay v4.0.7 Compiling rand v0.8.5 Compiling geo-traits v0.3.0 Compiling extendr-macros v0.8.1 Compiling geographiclib-rs v0.2.7 Compiling robust v1.2.0 Compiling sif-itree v0.4.0 Compiling once_cell v1.21.3 Compiling lazy_static v1.5.0 Compiling either v1.15.0 Compiling float_next_after v1.0.0 Compiling rayon v1.11.0 Compiling geo v0.32.0 Compiling a5 v0.7.0 Compiling wkt v0.14.0 Compiling a5R v0.1.0 (D:\temp\2026_03_11_11_45_17_12631\RtmpkXFsiN\R.INSTALL3bf417e86c58\a5R\src\rust) warning: crate `a5R` should have a snake case name | = help: convert the identifier to snake case: `a5_r` = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default 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: -lbcrypt -ladvapi32 -lR -lkernel32 -lntdll -luserenv -lws2_32 -ldbghelp warning: `a5R` (lib) generated 1 warning Finished `release` profile [optimized] target(s) in 2m 25s # Always clean up CARGOTMP rm -Rf /d/temp/2026_03_11_11_45_17_12631/RtmpkXFsiN/R.INSTALL3bf417e86c58/a5R/src/.cargo; gcc -shared -s -static-libgcc -o a5R.dll a5R-win.def entrypoint.o -L./rust/target/x86_64-pc-windows-gnu/release -la5R -lws2_32 -ladvapi32 -luserenv -lbcrypt -lntdll -Ld:/rtools45/x86_64-w64-mingw32.static.posix/lib/x64 -Ld:/rtools45/x86_64-w64-mingw32.static.posix/lib -LD:/RCompile/recent/R/bin/x64 -lR /usr/lib/gcc/x86_64-pc-cygwin/15.2.0/../../../../x86_64-pc-cygwin/bin/ld: ./rust/target/x86_64-pc-windows-gnu/release/liba5R.a(a5R-7bbb6c3a65599a52.a5R.f5f5323c76fd7275-cgu.0.rcgu.o):a5R.f5f5323c76fd7275-cgu.0:(.rdata$.refptr._tls_used[.refptr._tls_used]+0x0): undefined reference to `_tls_used' /usr/lib/gcc/x86_64-pc-cygwin/15.2.0/../../../../x86_64-pc-cygwin/bin/ld: a5R.dll: unable to fill in DataDirectory[9]: _tls_used not defined correctly /usr/lib/gcc/x86_64-pc-cygwin/15.2.0/../../../../x86_64-pc-cygwin/bin/ld: final link failed collect2: error: ld returned 1 exit status make: *** [D:/RCompile/recent/R/share/make/winshlib.mk:16: a5R.dll] Error 1 ERROR: compilation failed for package 'a5R' * removing 'd:/RCompile/CRANincoming/R-devel/lib/a5R'