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 <[email protected]> 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
0001-mode_t-not-defined-using-mingw-toolchain.patch
Description: Binary data
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
