RSTAN Installation Error Windows 10


#1

If your question relates to installation please provide the following information:

  • Windows 10
  • RStan Version 2.17.3
    C:\Rtools\mingw_64\bin\nm.exe: file19f07d0c2a5f.o: plugin needed to handle lto object
    Cannot export __gnu_lto_slim: symbol not defined
    Cannot export __gnu_lto_v1: symbol not defined
    collect2.exe: error: ld returned 1 exit status

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 <Rdefines.h>
5: #include <R_ext/Error.h>
6:
7:
8: // user includes
9:
10:
11: // declarations
12: extern “C” {
13: SEXP file19f07d0c2a5f( SEXP x, SEXP y) ;
14: }
15:
16: // definition
17:
18: SEXP file19f07d0c2a5f( 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:\Rtools\mingw_64\bin\nm.exe: file19f07d0c2a5f.o: plugin needed to handle lto object
Cannot export __gnu_lto_slim: symbol not defined
Cannot export __gnu_lto_v1: symbol not defined
collect2.exe: error: ld returned 1 exit status

If you are reporting a bug (thank you!) please use the issue tracker (github.com/stan-dev/rstan/issues) instead of the forums.


#2

Sorry you’re getting an error. Does the solution in this post

work for you too?