PCEM WINGW32 build fails with C compiler unknown

Support and general discussion.
Post Reply
User avatar
snefr0
Posts: 1
Joined: Fri 20 Oct, 2023 2:54 pm

PCEM WINGW32 build fails with C compiler unknown

Post by snefr0 »

I need to build a 32 bit windows version of PCEM. However, the cmake command fails within WINGW32 with "the C compiler identification is unknown" (same message for CXX).
A 64 bit build in WINGW64 runs fine.
cmake, C compilers are all available from within WINGW32.

The cmake command I use is: cmake -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=Release
The first part of the cmake log shows:
events:
-
kind: "message-v1"
backtrace:
- "C:/msys64/mingw32/share/cmake/Modules/CMakeDetermineSystem.cmake:211 (message)"
- "CMakeLists.txt:3 (project)"
message: |
The system is: Windows - 10.0.19045 - AMD64
-
kind: "message-v1"
backtrace:
- "C:/msys64/mingw32/share/cmake/Modules/CMakeDetermineCompilerId.cmake:17 (message)"
- "C:/msys64/mingw32/share/cmake/Modules/CMakeDetermineCompilerId.cmake:64 (__determine_compiler_id_test)"
- "C:/msys64/mingw32/share/cmake/Modules/CMakeDetermineCCompiler.cmake:123 (CMAKE_DETERMINE_COMPILER_ID)"
- "CMakeLists.txt:3 (project)"
message: |
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/msys64/mingw32/bin/cc.exe
Build flags:
Id flags:

The output was:
1

Following this are the same messages for the CXX compiler.
Any ideas on how to resolve this (or how to build a 32 bit version from WINGW64)?
Post Reply