[cmake-developers] "Conflicting types for 'cmsysProcess_SetPipeNative'" compiling in MinGW

vano at mail.mipt.ru vano at mail.mipt.ru
Sun Feb 15 05:47:12 EST 2015


Completely puzzled by this: a declaration conflicts with... itself?!

$ uname -a
MINGW32_NT-6.1 IVAN-POWERPC 1.0.18(0.48/3/2) 2012-11-21 22:34 i686 Msys

The error part follows, full output is attached.
This happens with both cmake-3.2.0-rc1 and cmake-3.1.3.

<...>
gcc -I/c/Users/native_api/Documents/cmake-3.2.0-rc1/Bootstrap.cmk -I/c/Users/native_api/Documents/cmake-3.2.0-rc1/Source   -I/c/Users/native_api/Documents/cmake-3.2.0-rc1/Bootstrap.cmk -DKWSYS_NAMESPACE=cmsys  -c /c/Users/native_api/Documents/cmake-3.2.0-rc1/Source/kwsys/ProcessWin32.c -o ProcessWin32.o
In file included from c:/Users/native_api/Documents/cmake-3.2.0-rc1/Bootstrap.cmk/cmsys/Process.h:15:0,
                 from c:/Users/native_api/Documents/cmake-3.2.0-rc1/Source/kwsys/ProcessWin32.c:13:
c:/Users/native_api/Documents/cmake-3.2.0-rc1/Bootstrap.cmk/cmsys/Configure.h:40:22: error: conflicting types for 'cmsysProcess_SetPipeNative'
 # define kwsys_ns(x) cmsys##x
                      ^
c:/Users/native_api/Documents/cmake-3.2.0-rc1/Bootstrap.cmk/cmsys/Process.h:35:43: note: in expansion of macro 'kwsys_ns'
 # define kwsysProcess_SetPipeNative       kwsys_ns(Process_SetPipeNative)
                                           ^
c:/Users/native_api/Documents/cmake-3.2.0-rc1/Source/kwsys/ProcessWin32.c:749:6: note: in expansion of macro 'kwsysProcess_SetPipeNative'
 void kwsysProcess_SetPipeNative(kwsysProcess* cp, int pipe, HANDLE p[2])
      ^
c:/Users/native_api/Documents/cmake-3.2.0-rc1/Bootstrap.cmk/cmsys/Configure.h:40:22: note: previous declaration of 'cmsysProcess_SetPipeNative' was here
 # define kwsys_ns(x) cmsys##x
                      ^
c:/Users/native_api/Documents/cmake-3.2.0-rc1/Bootstrap.cmk/cmsys/Process.h:35:43: note: in expansion of macro 'kwsys_ns'
 # define kwsysProcess_SetPipeNative       kwsys_ns(Process_SetPipeNative)
                                           ^
c:/Users/native_api/Documents/cmake-3.2.0-rc1/Bootstrap.cmk/cmsys/Process.h:175:18: note: in expansion of macro 'kwsysProcess_SetPipeNative'
 kwsysEXPORT void kwsysProcess_SetPipeNative(kwsysProcess* cp, int pipe,
                  ^
make: *** [ProcessWin32.o] Error 1
---------------------------------------------
Error when bootstrapping CMake:
Problem while running make
---------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bootstrap.tar.xz
Type: application/x-xz-compressed-tar
Size: 7220 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150215/cb8032ec/attachment.bin>


More information about the cmake-developers mailing list