Make Build Compiler Error

Hi,

I have been trying to install and compile Stan for sometime. I am completely new to the program. Here’s where I have gotten so far:

I have installed Rtools43, and two paths to my environment.
C:\rtools43\usr\bin
C:\rtools43\x86_64-w64-mingw32.static.posix\bin

With this I am able to successfully get the versions of g++, and make:

C:\Users\dodde.cmdstan\cmdstan-2.36.0>g++ --version
g++ (tdm64-1) 10.3.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

C:\Users\dodde.cmdstan\cmdstan-2.36.0> make --version
GNU Make 4.4.1
Built for x86_64-pc-msys
Copyright (C) 1988-2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Here’s the two main errors I get when I try to compile. The root cause seems to be this urct file that does not seem to exist under the make directory in the cmdstan-2.36.0 folder.

C:\Users\dodde\.cmdstan\cmdstan-2.36.0> mingw32-make build
stan/lib/stan_math/make/compiler_flags:180: make/ucrt: No such file or directory
INFO: Could not find files for the given pattern(s).
.
.
.
mingw32-make: *** [src/cmdstan/main.o] Error 1

Any help is greatly appreciated, and I am happy to forward more inforamtion.

Thanks

Do you get the same output when running make build (no mingw32-)?

Thanks for your response,

I get the same error code at the bottom, but not the detailed log, which shows the error at the top in the last post. See below.

— Compiling the main object file. This might take up to a minute. —
g++ -std=c++17 -m64 -D_REENTRANT -Wall -Wno-unused-function -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-variable -Wno-sign-compare -Wno-unused-local-typedefs -Wno-int-in-bool-context -Wno-attributes -Wno-ignored-attributes -Wno-class-memaccess -I stan/lib/stan_math/lib/tbb_2020.3/include -O3 -I src -I stan/src -I stan/lib/rapidjson_1.1.0/ -I lib/CLI11-1.9.1/ -I stan/lib/stan_math/ -I stan/lib/stan_math/lib/eigen_3.4.0 -I stan/lib/stan_math/lib/boost_1.84.0 -I stan/lib/stan_math/lib/sundials_6.1.1/include -I stan/lib/stan_math/lib/sundials_6.1.1/src/sundials -D_USE_MATH_DEFINES -D_GLIBCXX11_USE_C99_COMPLEX -DBOOST_DISABLE_ASSERTS -c -o src/cmdstan/main.o src/cmdstan/main.cpp
make: *** [make/program:14: src/cmdstan/main.o] Error 1