kicad-developers team mailing list archive
Mailing list archive
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:
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" \
-- 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
The C compiler
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?