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:
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?
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 documentation’s note about MSYS/MinGW the bottom. Also see CMake MR 9213.