Automoc fails on MSYS2/MinGW

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Automoc fails on MSYS2/MinGW

Dmitry Mikushin-2
Dear all,

I'm currently looking into an error from Automoc below, which gives no clue about the cause of failure (Output is empty). The mechanics of Automoc in CMake is not clear. Looks like "cmake_autogen" only launches a command described in variables. But where the command return value is checked? What places should I look at to debug cmake_autogen/automoc in CMake?

Thanks & Kind regards,
- Dmitry Mikushin.

$ make
[  0%] Automatic MOC for target glazomer
Start

AutoMoc subprocess error
------------------------
The content generation command for "moc_predefs.h" failed.

Command
-------
/mingw64/bin/x86_64-w64-mingw32-g++.exe -dM -E -c /usr/share/cmake-3.12.2/Modules/CMakeCXXCompilerABI.cpp -I/c/Users/dmikushin/glazomer/glazomer/build/glazomer_autogen/include -I/mingw64/include/QtDBus -I/mingw64/include/QtNetwork -I/mingw64/include/QtTest -I/mingw64/include/qwt -I/mingw64/include/libusb-1.0 -I/c/Users/dmikushin/glazomer/glazomer/ThirdParty/eigen -I/c/Users/dmikushin/glazomer/glazomer/src -I/mingw64/include -I/mingw64/include/QtCore -I/mingw64/share/qt5/mkspecs/win32-g++ -I/mingw64/include/QtGui -I/mingw64/include/QtWidgets -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB

Output
------

make[2]: *** [CMakeFiles/glazomer_autogen.dir/build.make:58: CMakeFiles/glazomer_autogen] Error 1
make[1]: *** [CMakeFiles/Makefile2:180: CMakeFiles/glazomer_autogen.dir/all] Error 2
make: *** [Makefile:130: all] Error 2


--

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:
https://cmake.org/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: Automoc fails on MSYS2/MinGW

Ray Donnelly
Hi Dmitry,

You should report this on MSYS2's github repo (Alexpux), we apply some
patches to Qt's CMake files and one of those may have caused this
issue. It's unlikely to be a problem with CMake.
On Thu, Oct 4, 2018 at 12:14 PM Dmitry Mikushin
<[hidden email]> wrote:

>
> Dear all,
>
> I'm currently looking into an error from Automoc below, which gives no clue about the cause of failure (Output is empty). The mechanics of Automoc in CMake is not clear. Looks like "cmake_autogen" only launches a command described in variables. But where the command return value is checked? What places should I look at to debug cmake_autogen/automoc in CMake?
>
> Thanks & Kind regards,
> - Dmitry Mikushin.
>
> $ make
> [  0%] Automatic MOC for target glazomer
> Start
>
> AutoMoc subprocess error
> ------------------------
> The content generation command for "moc_predefs.h" failed.
>
> Command
> -------
> /mingw64/bin/x86_64-w64-mingw32-g++.exe -dM -E -c /usr/share/cmake-3.12.2/Modules/CMakeCXXCompilerABI.cpp -I/c/Users/dmikushin/glazomer/glazomer/build/glazomer_autogen/include -I/mingw64/include/QtDBus -I/mingw64/include/QtNetwork -I/mingw64/include/QtTest -I/mingw64/include/qwt -I/mingw64/include/libusb-1.0 -I/c/Users/dmikushin/glazomer/glazomer/ThirdParty/eigen -I/c/Users/dmikushin/glazomer/glazomer/src -I/mingw64/include -I/mingw64/include/QtCore -I/mingw64/share/qt5/mkspecs/win32-g++ -I/mingw64/include/QtGui -I/mingw64/include/QtWidgets -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB
>
> Output
> ------
>
> make[2]: *** [CMakeFiles/glazomer_autogen.dir/build.make:58: CMakeFiles/glazomer_autogen] Error 1
> make[1]: *** [CMakeFiles/Makefile2:180: CMakeFiles/glazomer_autogen.dir/all] Error 2
> make: *** [Makefile:130: all] Error 2
>
> --
>
> 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:
> https://cmake.org/mailman/listinfo/cmake
--

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:
https://cmake.org/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: Automoc fails on MSYS2/MinGW

Dmitry Mikushin
Hi Ray,


Kind regards,
- Dmitry Mikushin.


чт, 4 окт. 2018 г. в 15:20, Ray Donnelly <[hidden email]>:
Hi Dmitry,

You should report this on MSYS2's github repo (Alexpux), we apply some
patches to Qt's CMake files and one of those may have caused this
issue. It's unlikely to be a problem with CMake.
On Thu, Oct 4, 2018 at 12:14 PM Dmitry Mikushin
<[hidden email]> wrote:
>
> Dear all,
>
> I'm currently looking into an error from Automoc below, which gives no clue about the cause of failure (Output is empty). The mechanics of Automoc in CMake is not clear. Looks like "cmake_autogen" only launches a command described in variables. But where the command return value is checked? What places should I look at to debug cmake_autogen/automoc in CMake?
>
> Thanks & Kind regards,
> - Dmitry Mikushin.
>
> $ make
> [  0%] Automatic MOC for target glazomer
> Start
>
> AutoMoc subprocess error
> ------------------------
> The content generation command for "moc_predefs.h" failed.
>
> Command
> -------
> /mingw64/bin/x86_64-w64-mingw32-g++.exe -dM -E -c /usr/share/cmake-3.12.2/Modules/CMakeCXXCompilerABI.cpp -I/c/Users/dmikushin/glazomer/glazomer/build/glazomer_autogen/include -I/mingw64/include/QtDBus -I/mingw64/include/QtNetwork -I/mingw64/include/QtTest -I/mingw64/include/qwt -I/mingw64/include/libusb-1.0 -I/c/Users/dmikushin/glazomer/glazomer/ThirdParty/eigen -I/c/Users/dmikushin/glazomer/glazomer/src -I/mingw64/include -I/mingw64/include/QtCore -I/mingw64/share/qt5/mkspecs/win32-g++ -I/mingw64/include/QtGui -I/mingw64/include/QtWidgets -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB
>
> Output
> ------
>
> make[2]: *** [CMakeFiles/glazomer_autogen.dir/build.make:58: CMakeFiles/glazomer_autogen] Error 1
> make[1]: *** [CMakeFiles/Makefile2:180: CMakeFiles/glazomer_autogen.dir/all] Error 2
> make: *** [Makefile:130: all] Error 2
>
> --
>
> 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:
> https://cmake.org/mailman/listinfo/cmake

--

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:
https://cmake.org/mailman/listinfo/cmake