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

2019-10-22 Thread Pelletier Antoine
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

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


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

2019-10-22 Thread Dirk Eddelbuettel


Hi Antoine,

On 22 October 2019 at 16:40, Pelletier Antoine wrote:
| 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:
[...]
| What should I do? Is it possible to upload a partially-compiled package
| (providing only DLL for instance) for Windows?

That has been done before---see David Dahl's salso package (here mirrored at
GH for easy viewing):

  https://github.com/cran/salso

and specifically to the pivot on Windows to pull in a prebuilt library:

  https://github.com/cran/salso/blob/master/src/Makevars.win

Longer term "we all" have to come up with a better solution but for now this
approach appears to be tolerated (and I do something similar with downloads
at CRAN-build-time in at least two packages).

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel