[R-pkg-devel] cargo not installed on Windows auto-check server

Pelletier Antoine @nto|ne@pe||et|er @end|ng |rom |r@te@@|r
Tue Oct 22 16:40:27 CEST 2019


Dear all,

I am triying to upload to CRAN a package which relies on a Rust library.
Rust compiler rustc and Rust package manager cargo are system requirements
to the package. Source code of the package is available at
https://gitlab.irstea.fr/HYCAR-Hydro/baseflow

The CRAN auto-check gave no error on Debian, but cargo and rustc seem not
to be installed on the Windows check server. This is the install.out file:

* installing *source* package 'baseflow' ...
** using staged installation
** libs

*** arch - i386
d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc  -I"D:/RCompile/recent/R/include"
-DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O2
-Wall  -std=gnu99 -mtune=core2 -c REXPORT.c -o REXPORT.o
d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc  -I"D:/RCompile/recent/R/include"
-DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O2
-Wall  -std=gnu99 -mtune=core2 -c packagename_init.c -o packagename_init.o
cd rustlib && cargo build --release --target i686-pc-windows-gnu
cargo: not found
make: *** [rustlib/target/i686-pc-windows-gnu/release/librustlib.rlib]
Error 127
ERROR: compilation failed for package 'baseflow'
* removing 'd:/RCompile/CRANincoming/R-devel/lib/baseflow'

What should I do? Is it possible to upload a partially-compiled package
(providing only DLL for instance) for Windows?

Thank you in advance

Antoine Pelletier



More information about the R-package-devel mailing list