sakrejda / stannis

Code for effectively dealing with running CmdStan... from R.... because reasons...
GNU General Public License v3.0
13 stars 1 forks source link

Install fails on Windows 7 #1

Open aornugent opened 6 years ago

aornugent commented 6 years ago

Not super important, but I get the following error on my Windows machine:

> devtools::install_github("sakrejda/stannis")
Downloading GitHub repo sakrejda/stannis@master
from URL https://api.github.com/repos/sakrejda/stannis/zipball/master
Installing stannis
"C:/PROGRA~1/R/R-34~1.3/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL  \
  "C:/Local/Temp/RtmpWAsuT1/devtools1554aa454be/sakrejda-stannis-164a73d"  \
  --library="C:/R/lib" --install-tests 

* installing *source* package 'stannis' ...
** libs

*** arch - i386
no DLL was created
ERROR: compilation failed for package 'stannis'
* removing 'C:/R/lib/stannis'
In R CMD INSTALL
Installation failed: Command failed (1)

Works fine on Linux.

sakrejda commented 5 years ago

Hey, thanks for filing the issue, I somehow didn't see it till now. That's a really limited error message. If you can re-run the install with out_dir specified (devtools should dump more detailed output there) I'll check it out. I don't have a Windows machine on hand so it's hard for me to check myself.

aornugent commented 5 years ago

Hi, I've only just come back to this. New machine, new error!

The contents of stannis.out:

* installing *source* package 'stannis' ...
** libs

*** arch - i386
C:/Rtools/mingw_32/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.1/include" -DNDEBUG -I"../inst/include" -I"." -I"/usr/include" -O3 -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -Wl,--no-undefined,--no-allow-shlib-undefined -I"C:/Users/Andrew/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Andrew/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c exporter.cpp -o exporter.o
exporter.cpp: In function 'SEXPREC* Rcpp::wrap(boost::filesystem::path)':
exporter.cpp:13:31: error: conversion from 'const string_type {aka const std::basic_string<wchar_t>}' to non-scalar type 'std::string {aka std::basic_string<char>}' requested
     std::string ps = p.native();
                               ^
exporter.cpp: In function 'SEXPREC* Rcpp::wrap(boost::filesystem::path&)':
exporter.cpp:18:31: error: conversion from 'const string_type {aka const std::basic_string<wchar_t>}' to non-scalar type 'std::string {aka std::basic_string<char>}' requested
     std::string ps = p.native();
                               ^
make: *** [C:/PROGRA~1/R/R-35~1.1/etc/i386/Makeconf:215: exporter.o] Error 1
ERROR: compilation failed for package 'stannis'
* removing 'C:/Users/Andrew/Documents/R/win-library/3.5/stannis'
In R CMD INSTALL

FWIW, rstan and cmdstan both work/compile fine.