Hello everbody,
I am new to RSTAN and I have low experience with installing interfaces.
Since several weeks, I try to make RStan run but I do not succeed.
I have not found a post with a similar error message, this is why I create a new one.
After having done a lot of research, I think the problem is related to an issue with the c++ compiler.
I would be super happy to get help from you. Thank you very much and please let me know if you need more details / code outputs.
##########################
This is the end of the error-message when I run the stan-example (example(stan_model, package = ârstanâ, run.dontrun = TRUE)
Fehler in compileCode(f, code, language = language, verbose = verbose) :
0 [main] make 110 dofork: child -1 - forked process 29308 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
make: *** [C:/Users/wuerth/R-44~1.2/share/make/winshlib.mk:39: compilers] Error 127
Fehler in if (nzchar(cxx)) { : Argument hat Länge 0
Ruft auf: â .shlib_internal
Zusätzlich: Warnmeldung:
In system(paste(MAKE, p1(paste(â-fâ, shQuote(makefiles))), âcompilersâ), :
AusfĂźhrung von Kommando âmake -f âC:/Users/wuerth/R-44~1.2/etc/x64/Makeconfâ -f âC:/Users/wuerth/R-44~1.2/share/make/winshlib.mkâ compilersâ ergab Status 2
AusfĂźhrung angehalten
##########################
â more details are found in the attachement
installation issue.txt (44.7 KB)
##########################
Here comes more code which might can help to solve the problem:
> Sys.which(âmakeâ)
make
âC:\Users\wuerth\rtools44\usr\bin\make.exeâ
> pkgbuild::check_rtools(debug = TRUE)
Found in Rtools 4.4 installation folder
[1] TRUE
pkgbuild::check_compiler(debug = TRUE)
Trying to compile a simple C file
Running âC:/Users/wuerth/R-4.4.2/bin/x64/Rcmd.exeâ SHLIB foo.c
0 [main] make 1187 dofork: child -1 - forked process 30312 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
make: *** [C:/Users/wuerth/R-4.4.2/share/make/winshlib.mk:39: compilers] Error 127
gcc -I"C:/Users/wuerth/R-4.4.2/include" -DNDEBUG -I"C:/Users/wuerth/R-4.4.2/library/Rcpp/include/" -I"C:/Users/wuerth/R-4.4.2/library/RcppEigen/include/" -I"C:/Users/wuerth/R-4.4.2/library/RcppEigen/include/unsupported" -I"C:/Users/wuerth/R-4.4.2/library/BH/include" -I"C:/Users/wuerth/R-4.4.2/library/StanHeaders/include/src/" -I"C:/Users/wuerth/R-4.4.2/library/StanHeaders/include/" -I"C:/Users/wuerth/R-4.4.2/library/RcppParallel/include/" -DRCPP_PARALLEL_USE_TBB=1 -I"C:/Users/wuerth/R-4.4.2/library/rstan/include" -DEIGEN_NO_DEBUG -DBOOST_DISABLE_ASSERTS -DBOOST_PENDING_INTEGER_LOG2_HPP -DSTAN_THREADS -DUSE_STANC3 -DSTRICT_R_HEADERS -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION -D_HAS_AUTO_PTR_ETC=0 -include âC:/Users/wuerth/R-4.4.2/library/StanHeaders/include/stan/math/prim/fun/Eigen.hppâ -std=c++1y -I"C:/Users/wuerth/rtools44/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c foo.c -o foo.o
0 [main] make 777 dofork: child -1 - forked process 26760 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
make: *** [C:/Users/wuerth/R-4.4.2/etc/x64/Makeconf:289: foo.o] Error 127
Warnmeldung:
In system(paste(MAKE, p1(paste(â-fâ, shQuote(makefiles))), âcompilersâ), :
AusfĂźhrung von Kommando âmake -f âC:/Users/wuerth/R-4.4.2/etc/x64/Makeconfâ -f âC:/Users/wuerth/R-4.4.2/share/make/winshlib.mkâ compilersâ ergab Status 2
Fehler: Failed to compile C code
> system(âtouch foo.cppâ)
[1] 0
> system(âR CMD SHLIB foo.cppâ)
0 [main] make 1806 dofork: child -1 - forked process 7604 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
make: *** [C:/Users/wuerth/R-44~1.2/share/make/winshlib.mk:39: compilers] Error 127
Fehler in if (nzchar(cxx)) { : Argument hat Länge 0
Ruft auf: â .shlib_internal
Zusätzlich: Warnmeldung:
In system(paste(MAKE, p1(paste(â-fâ, shQuote(makefiles))), âcompilersâ), :
AusfĂźhrung von Kommando âmake -f âC:/Users/wuerth/R-44~1.2/etc/x64/Makeconfâ -f âC:/Users/wuerth/R-44~1.2/share/make/winshlib.mkâ compilersâ ergab Status 2
AusfĂźhrung angehalten
[1] 1
################################
More general information
- Operating System = Windows 11
- R version: R-4.4.2
- R tools version: 44