# Make Build Compiler Error

**URL:** <https://discourse.mc-stan.org/t/make-build-compiler-error/40163>\
**Category:** Interfaces\
**Tags:** compiler\
**Created:** [August 12, 2025, 7:55pm UTC](https://discourse.mc-stan.org/t/make-build-compiler-error/40163 "2025-08-12T19:55:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![e2dodd](https://avatars.discourse-cdn.com/v4/letter/e/b3f665/32.png) [@e2dodd](https://discourse.mc-stan.org/u/e2dodd)\
**Post date:** [August 12, 2025, 7:55pm UTC](https://discourse.mc-stan.org/t/make-build-compiler-error/40163/1 "2025-08-12T19:55:13Z")

</div>

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](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.

```bash
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

---

<div class="post-metadata">

**Author:** ![WardBrian](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/wardbrian/32/12078_2.png) [@WardBrian](https://discourse.mc-stan.org/u/WardBrian)\
**Post date:** [August 12, 2025, 9:01pm UTC](https://discourse.mc-stan.org/t/make-build-compiler-error/40163/2 "2025-08-12T21:01:31Z")

</div>

> [@e2dodd](#):
>
> `mingw32-make build`

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

---

<div class="post-metadata">

**Author:** ![e2dodd](https://avatars.discourse-cdn.com/v4/letter/e/b3f665/32.png) [@e2dodd](https://discourse.mc-stan.org/u/e2dodd)\
**Post date:** [August 13, 2025, 3:35pm UTC](https://discourse.mc-stan.org/t/make-build-compiler-error/40163/3 "2025-08-13T15:35:46Z")

</div>

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
