kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #45127
CMake help
Hi devs,
I'm doing my first build from source, using msys2 on windows.
I (shallow) cloned the main repository.
I downloaded the tools and dependencies using pacman, according to here:
https://dev-docs.kicad.org/en/build/windows-msys2/
Now I should be able to run cmake, but cmake fails.
User@Programming MSYS ~/kicad/build/release
$ /mingw64/bin/cmake -DCMAKE_BUILD_TYPE=Release \
-G "MSYS Makefiles" \
-DCMAKE_PREFIX_PATH=/mingw64 \
-DCMAKE_INSTALL_PREFIX=/mingw64 \
-DDEFAULT_INSTALL_PATH=/mingw64 \
../../
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/msys64/mingw64/bin/gcc.exe
-- Check for working C compiler: C:/msys64/mingw64/bin/gcc.exe - broken
CMake Error at
C:/msys64/mingw64/share/cmake-3.20/Modules/CMakeTestCCompiler.cmake:66
(message):
The C compiler
"C:/msys64/mingw64/bin/gcc.exe"
is not able to compile a simple test program.
I looked at CMakeError.log. From what I can tell from there, it seems to be
trying to compile "CMakeCCompilerId.c" with gcc but it passed the flags
--target=arm-arm-none-eabi;-mcpu=cortex-m3 to gcc and gcc does not
understand those flags. Those flags are very strange. I did not ask to
cross-compile, and of course I would not expect for a cross-compilation to
work. Have I missed a step?
-Clifford
Follow ups