"make build" fails on Windows 10

Hi,

trying to install Stan 2.20.0 (from cmdstan-2.20.0.tar.gz) with make from cmd fails with the following error message (tried on two distinct Windows 10 PCs):

D:\Apps\Stan\cmdstan-2.20.0.tar\cmdstan-2.20.0>make build
Datei cvodes.hpp nicht gefunden (–> means File cvodes.hpp not found)
Datei idas.hpp nicht gefunden
Datei *_inst.cpp nicht gefunden
Datei *_def.cpp nicht gefunden
Datei *.stan nicht gefunden
Datei *.hpp nicht gefunden
g++ -std=c++1y -m64 -Wall -Wno-unused-function -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-variable -Wno-sign-compare -Wno-unused-local-typedefs -O3 -I src -I stan/src -I stan/lib/stan_math/ -I stan/lib/stan_math/lib/eigen_3.3.3 -I stan/lib/stan_math/lib/boost_1.69.0 -I stan/lib/stan_math/lib/sundials_4.1.0/include -D_USE_MATH_DEFINES -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION -c -MT src/cmdstan/stanc.o -M -E -MG -MP -MF src/cmdstan/stanc.d src/cmdstan/stanc.cpp
process_begin: CreateProcess(NULL, g++ -std=c++1y -m64 -Wall -Wno-unused-function -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-variable -Wno-sign-compare -Wno-unused-local-typedefs -O3 -I src -I stan/src -I stan/lib/stan_math/ -I stan/lib/stan_math/lib/eigen_3.3.3 -I stan/lib/stan_math/lib/boost_1.69.0 -I stan/lib/stan_math/lib/sundials_4.1.0/include -D_USE_MATH_DEFINES -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION -c -MT src/cmdstan/stanc.o -M -E -MG -MP -MF src/cmdstan/stanc.d src/cmdstan/stanc.cpp, …) failed.
make (e=2): Das System kann die angegebene Datei nicht finden.
Syntaxfehler. (–> means The system cannot find the specified file. Syntax error.)
make: *** [make/command:2: bin/cmdstan/stanc.o] Error 1

Okay, the problem was that I used an incompatible version of the make tool.
Following the instructions in the guide https://github.com/stan-dev/cmdstan/releases/download/v2.20.0/cmdstan-guide-2.20.0.pdf (section B.3), everything works when using the make tool that is included in the Rtools environment.

1 Like