Skip to content

Error: cmake and VS2022 and msys #28

Description

@ChrigiGee

Hi there,

I try to compile it, but msys I have error like this:

`-- Building for: Ninja
-- The C compiler identification is unknown
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: H:/Programme/msys64/mingw64/bin/cc.exe
-- Check for working C compiler: H:/Programme/msys64/mingw64/bin/cc.exe - broken
CMake Error at H:/Programme/msys64/mingw64/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler

"H:/Programme/msys64/mingw64/bin/cc.exe"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: 'C:/Users/User/Downloads/rucksack-main/rucksack-main/CMakeFiles/CMakeScratch/TryCompile-99xuz5'

Run Build Command(s): H:/Programme/msys64/mingw64/bin/ninja.exe -v cmTC_1c339
[1/2] H:\Programme\msys64\mingw64\bin\cc.exe    -o CMakeFiles\cmTC_1c339.dir\testCCompiler.c.obj -c C:\Users\User\Downloads\rucksack-main\rucksack-main\CMakeFiles\CMakeScratch\TryCompile-99xuz5\testCCompiler.c
FAILED: [code=1] CMakeFiles/cmTC_1c339.dir/testCCompiler.c.obj
H:\Programme\msys64\mingw64\bin\cc.exe    -o CMakeFiles\cmTC_1c339.dir\testCCompiler.c.obj -c C:\Users\User\Downloads\rucksack-main\rucksack-main\CMakeFiles\CMakeScratch\TryCompile-99xuz5\testCCompiler.c
ninja: build stopped: subcommand failed.

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)

-- Configuring incomplete, errors occurred!
`

And Windows VS2022 have Problems with the Full Flag like this:

set(LIB_CFLAGS "-std=c99 -Wall -Werror=strict-prototypes -Werror=old-style-definition -Werror=missing-prototypes -D_POSIX_C_SOURCE=200809L -Wno-gnu-folding-constant")

I know I am new with VS2022 I used other Dev. Language.
But can someone of you @ALL help me find out how I can try to compile it ?

Kind regards
Chris

Activity

  1. changed the title [-]cmake and VS2022 and msys[/-] [+]Error: cmake and VS2022 and msys[/+] on Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions