# please post your config file on discourse.cmake.org so it can be added to cmake

**URL:** https://discourse.cmake.org/t/please-post-your-config-file-on-discourse-cmake-org-so-it-can-be-added-to-cmake/10041
**Category:** Usage
**Created:** [February 9, 2024, 10:35am UTC](https://discourse.cmake.org/t/please-post-your-config-file-on-discourse-cmake-org-so-it-can-be-added-to-cmake/10041 "2024-02-09T10:35:31Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![ygramoel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/y/74df32/32.png) [@ygramoel](https://discourse.cmake.org/u/ygramoel)
#### Post date: [February 9, 2024, 10:35am UTC](https://discourse.cmake.org/t/please-post-your-config-file-on-discourse-cmake-org-so-it-can-be-added-to-cmake/10041/1 "2024-02-09T10:35:31Z")

</div>

While trying to compile a modified version of LLVM in MSYS MINGW64, I got this message repeatedly:

```auto
please post your config file on discourse.cmake.org so it can be added to cmake

```

so that’s exactly what I am trying to do.

Here is the `cmake` command I was running:

```auto
cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS='clang;lld' C:/msys64/home/johan/llvm/llvm -GNinja

```

My MSYS is freshly installed. I have previously compiled exactly the same LLVM project with the same `cmake` command without problems, with an older version of MSYS. Due to a crashed SSD, I had to re-install everything.

The cmake command runs for a long time, then ends with:

```auto
System is unknown to cmake, create:
Platform/MINGW64_NT-10.0-19045 to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
-- Performing Test HAVE_STEADY_CLOCK -- success
-- Configuring incomplete, errors occurred!

```

I have very little experience with `cmake`; does “your config file” in these messages refer to `CMakeLists.txt`?

Also, as a new user, I cannot upload any files on this forum. What exactly am I supposed to do?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [February 17, 2024, 5:55am UTC](https://discourse.cmake.org/t/please-post-your-config-file-on-discourse-cmake-org-so-it-can-be-added-to-cmake/10041/2 "2024-02-17T05:55:00Z")

</div>

Are you using MSYS from an MSYS shell? Are you using an MSYS-related CMake binary (i.e., the “stock” Windows build doesn’t support MSYS)?

Cc: @brad.king

---

<div class="post-metadata">

### Author: ![ygramoel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/y/74df32/32.png) [@ygramoel](https://discourse.cmake.org/u/ygramoel)
#### Post date: [February 17, 2024, 8:54pm UTC](https://discourse.cmake.org/t/please-post-your-config-file-on-discourse-cmake-org-so-it-can-be-added-to-cmake/10041/3 "2024-02-17T20:54:28Z")

</div>

1. Yes I am using an MSYS shell, more specifically the MINGW64 variant.

2. I am using the cmake binary from MSYS, installed using `pacman -S cmake` in the MSYS shell

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [February 18, 2024, 3:13am UTC](https://discourse.cmake.org/t/please-post-your-config-file-on-discourse-cmake-org-so-it-can-be-added-to-cmake/10041/4 "2024-02-18T03:13:36Z")

</div>

Thanks; that should work. What versions of MSYS and CMake are involved here?

---

<div class="post-metadata">

### Author: ![ygramoel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/y/74df32/32.png) [@ygramoel](https://discourse.cmake.org/u/ygramoel)
#### Post date: [February 18, 2024, 3:28pm UTC](https://discourse.cmake.org/t/please-post-your-config-file-on-discourse-cmake-org-so-it-can-be-added-to-cmake/10041/5 "2024-02-18T15:28:14Z")

</div>

MSYS version:

```auto
$ cat /proc/version
MINGW64_NT-10.0-19045 version 3.4.10.x86_64 (runneradmin@fv-az1495-832) (gcc version 13.2.0 (GCC) ) 2023-12-22 10:06 UTC

```

Cmake version:

```auto
$ cmake --version
cmake version 3.28.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).

```

---

<div class="post-metadata">

### Author: ![brad.king](https://discourse.cmake.org/user_avatar/discourse.cmake.org/brad.king/32/11_2.png) [@brad.king](https://discourse.cmake.org/u/brad.king)
#### Post date: [February 19, 2024, 1:48pm UTC](https://discourse.cmake.org/t/please-post-your-config-file-on-discourse-cmake-org-so-it-can-be-added-to-cmake/10041/6 "2024-02-19T13:48:54Z")

</div>

> installed using `pacman -S cmake` in the MSYS shell

That installs the version of CMake that’s built against the MSYS runtime library, and therefore is useful only for builds targeting the MSYS runtime. To target Windows with the GNU ABI (MinGW), use the `mingw64/mingw-w64-x86_64-cmake` package or CMake’s official Windows binaries.

CMake 3.29 includes some updates to help users avoid this problem. See the [CMAKE\_SYSTEM\_NAME](https://cmake.org/cmake/help/v3.29/variable/CMAKE_SYSTEM_NAME.html) documentation’s note about MSYS/MinGW the bottom. Also see [CMake MR 9213](https://gitlab.kitware.com/cmake/cmake/-/merge_requests/9213).
