Open tomas46 opened 6 years ago
Exactly the same issue with me, any updates on this problem? Working fine on a mac but seems to have some issue in installing R Windows 10
If I'm reading that -v
output correctly, the problem appears to be the wrong version of gcc being called:
/bin/../libexec/gcc/i686-w64-mingw32/4.6.3/lto-wrapper.exe
We require 4.9 or higher. According to the Rtools page, 3.3 should be OK:
R 3.3.0 and later use a toolchain based on gcc 4.9.3
This part of your output is suspicious. You need to be finding the right version of gcc on your PATH
:
C:/Programs/Rtools/mingw_64/bin/g++: not found
make: *** [file2b0c690f1bf3.o] Error 127
Summary:
I have problems with installing RStan. My R version is 3.3.3, Rtools 33, Rstudio 1.1.442. I have closely followed https://github.com/stan-dev/rstan/wiki/Installing-RStan-on-Windows installation guide, but there seem to be some problems with the compiler path. However, I do not know how to fix this. I have tried to reinstall all programs several times, but I am still facing the same problem.
Here is the output I receive:
and here I fail:
ERROR(s) during compilation: source code errors or compiler configuration errors!
Program source: 1: 2: // includes from the plugin 3: #include <R.h> 4: #include
5: #include <R_ext/Error.h>
6:
7:
8: // user includes
9:
10:
11: // declarations
12: extern "C" {
13: SEXP file2b0c690f1bf3( SEXP x, SEXP y) ;
14: }
15:
16: // definition
17:
18: SEXP file2b0c690f1bf3( SEXP x, SEXP y ){
19:
20: return ScalarReal( INTEGER(x)[0] * REAL(y)[0] ) ;
21:
22: Rf_warning("your C++ program does not return anything"); 23: return R_NilValue ; 24: } 25: 26: Error in compileCode(f, code, language = language, verbose = verbose) : Compilation ERROR, function(s)/method(s) not created! C:/Programs/Rtools/mingw_64/bin/g++: not found make: *** [file2b0c690f1bf3.o] Error 127 Warning message: running command 'make -f "C:/PROGRA~1/R/R-33~1.3/etc/x64/Makeconf" -f "C:/PROGRA~1/R/R-33~1.3/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="file2b0c690f1bf3.dll" WIN=64 TCLBIN=64 OBJECTS="file2b0c690f1bf3.o"' had status 2 In addition: Warning message: running command 'C:/PROGRA~1/R/R-33~1.3/bin/x64/R CMD SHLIB file2b0c690f1bf3.cpp 2> file2b0c690f1bf3.cpp.err.txt' had status 1
Thank you for the help!