[cmake-developers] compile error in master using mingw-w64
Maik Zimmermann
maikzimmermann5 at gmail.com
Sun Nov 23 09:02:15 EST 2014
Hi,
the current master does not compile using the mingw-w64 toolchain (gcc
version 4.6.3).
Note that v3.1.0-rc2 is not affected by this. Here is the error:
[333/454] Building CXX object
Source/C...Lib.dir/cmGlobalNinjaGenerator.cxx.obj
FAILED: C:\Development\MinGW64\bin\c++.exe -DCMAKE_BUILD_WITH_CMAKE
-DCURL_STA
TICLIB -DLIBARCHIVE_STATIC -DUNICODE -D_UNICODE -Wnon-virtual-dtor
-Wcast-align
-Wchar-subscripts -Wall -W -Wshadow -Wpointer-arith -Wformat-security
-Wundef -O
3 -DNDEBUG -IUtilities -IC:/Projects/cmake/cmake/Utilities -ISource
-IC:/Project
s/cmake/cmake/Source -IUtilities/cmcompress
-IC:/Projects/cmake/cmake/Source/CTe
st -MMD -MT Source/CMakeFiles/CMakeLib.dir/cmGlobalNinjaGenerator.cxx.obj
-MF So
urce/CMakeFiles/CMakeLib.dir/cmGlobalNinjaGenerator.cxx.obj.d -o
Source/CMakeFil
es/CMakeLib.dir/cmGlobalNinjaGenerator.cxx.obj -c
C:/Projects/cmake/cmake/Source
/cmGlobalNinjaGenerator.cxx
In file included from
C:/Projects/cmake/cmake/Source/cmGlobalNinjaGenerator.cxx:
14:0:
C:/Projects/cmake/cmake/Source/cmGeneratorExpressionEvaluationFile.h:39:64:
erro
r: 'mode_t' has not been declared
I bisected it to
:
commit 81afbbc09bac6913e2b83f7eb68923ff5b1911d5
Author: Stephen Kelly <steveire at gmail.com>
Date: Tue Jul 22 15:10:57 2014 +0200
file(GENERATE): Use permissions of input file if present.
The patch attache fixes the error for me, but I'm not sure if this is the
right way to fix it.
I noted that the mingw build on the dashboard are not failing. MinGW seems
to define
mode_t in either fcntl.h or sys/types.h, depending on the version. So the
correct thing
to do might be to check for the correct header to include.
If you want me to do this, I can have a look at this during the next week.
Thanks,
Maik Zimmermann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20141123/976082f5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-mode_t-not-defined-using-mingw-toolchain.patch
Type: application/octet-stream
Size: 692 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20141123/976082f5/attachment.obj>
More information about the cmake-developers
mailing list