bootstrap fails on msys2
When using the bootstrap command on MSYS2 this error appears, I also enclose cmake_bootstrap.log
hfman@DESKTOP-G22703R MSYS ~/cmake/cmake-build-msys2
$ ../bootstrap
---------------------------------------------
CMake 3.14.20190304, Copyright 2000-2019 Kitware, Inc. and Contributors
C compiler on this system is: cc
C++ compiler on this system is: g++
Makefile processor on this system is: make
g++ has setenv
g++ has unsetenv
g++ does not have environ in stdlib.h
g++ has stl wstring
g++ has <ext/stdio_filebuf.h>
---------------------------------------------
...
cc -I/home/hfman/cmake/cmake-build-msys2/Bootstrap.cmk -I/home/hfman/cmake/Source -I/home/hfman/cmake/Source/LexerParser -I/home/hfman/cmake/Utilities -DKWSYS_NAMESPACE=cmsys -DKWSYS_ENCODING_DEFAULT_CODEPAGE=CP_ACP -c /home/hfman/cmake/Source/kwsys/EncodingC.c -o EncodingC.o
cc -I/home/hfman/cmake/cmake-build-msys2/Bootstrap.cmk -I/home/hfman/cmake/Source -I/home/hfman/cmake/Source/LexerParser -I/home/hfman/cmake/Utilities -DKWSYS_NAMESPACE=cmsys -c /home/hfman/cmake/Source/kwsys/ProcessWin32.c -o ProcessWin32.o
In file included from /home/hfman/cmake/cmake-build-msys2/Bootstrap.cmk/cmsys/Process.h:6:0,
from /home/hfman/cmake/Source/kwsys/ProcessWin32.c:4:
/home/hfman/cmake/cmake-build-msys2/Bootstrap.cmk/cmsys/Configure.h:36:23: error: conflicting types for ‘cmsysProcess_SetPipeNative’
# define kwsys_ns(x) cmsys##x
^
/home/hfman/cmake/cmake-build-msys2/Bootstrap.cmk/cmsys/Process.h:27:38: note: in expansion of macro ‘kwsys_ns’
# define kwsysProcess_SetPipeNative kwsys_ns(Process_SetPipeNative)
^~~~~~~~
/home/hfman/cmake/Source/kwsys/ProcessWin32.c:758:6: note: in expansion of macro ‘kwsysProcess_SetPipeNative’
void kwsysProcess_SetPipeNative(kwsysProcess* cp, int pipe, HANDLE p[2])
^
/home/hfman/cmake/cmake-build-msys2/Bootstrap.cmk/cmsys/Configure.h:36:23: note: previous declaration of ‘cmsysProcess_SetPipeNative’ was here
# define kwsys_ns(x) cmsys##x
^
/home/hfman/cmake/cmake-build-msys2/Bootstrap.cmk/cmsys/Process.h:27:38: note: in expansion of macro ‘kwsys_ns’
# define kwsysProcess_SetPipeNative kwsys_ns(Process_SetPipeNative)
^~~~~~~~
/home/hfman/cmake/cmake-build-msys2/Bootstrap.cmk/cmsys/Process.h:183:18: note: in expansion of macro ‘kwsysProcess_SetPipeNative’
kwsysEXPORT void kwsysProcess_SetPipeNative(kwsysProcess* cp, int pipe,
^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/hfman/cmake/Source/kwsys/ProcessWin32.c: In function ‘kwsysProcessCleanup’:
/home/hfman/cmake/Source/kwsys/ProcessWin32.c:1869:9: warning: implicit declaration of function ‘_snprintf’; did you mean ‘asnprintf’? [-Wimplicit-function-declaration]
_snprintf(cp->ErrorMessage, KWSYSPE_PIPE_BUFFER_SIZE,
^~~~~~~~~
asnprintf
make: *** [Makefile:378: ProcessWin32.o] Error 1
---------------------------------------------
Error when bootstrapping CMake:
Problem while running make
---------------------------------------------
Log of errors: /home/hfman/cmake/cmake-build-msys2/Bootstrap.cmk/cmake_bootstrap.log