Problem Description:
1. When compiling a 32-bit architecture binary package for a QT project, the above error occurred, with the specific error message as follows
Qmake-qt5-o productlicense/makefile Productlicense/productlicense.pro config+=debugscanning Directory'/builddir/build/build/anaconda-26.48.21/welcome-src/productlicense'... Updating'productlicense_cn.ts'... Found7Source text (s) (0New and7already existing) Scanning directory'/builddir/build/build/anaconda-26.48.21/welcome-src/productlicense'... Updating'productlicense_en.ts'... Found7Source text (s) (0New and7already existing) Updating'PRODUCTLICENSE_CN.QM'... Generated5Translation (s) (5Finished and0unfinished) Ignored2untranslated source Text (s) Updating'PRODUCTLICENSE_EN.QM'... Generated5Translation (s) (5Finished and0unfinished) Ignored2untranslated source Text (s)/usr/bin/ Make-C Productlicense Make[3]: Entering Directory'/builddir/build/build/anaconda-26.48.21/welcome-src/productlicense'/usr/lib/qt5/bin/uic Productlicense.ui-o ui_productlicense.hg+ +-c-pipe-g-wall-w-d_reentrant-fpic-dqt_deprecated_warnings-dqt_widgets_lib-dqt_gui_lib-dqt_core_lib-i.-isyst em/usr/include/qt5-isystem/usr/include/qt5/qtwidgets-isystem/usr/include/qt5/qtgui-isystem/usr/include/qt5/ Qtcore-i.-I.-i/usr/lib/qt5/mkspecs/linux-g++-o MAIN.O Main.CPP/usr/lib/qt5/bin/rcc-name License License.qrc-o Qrc_license.CPPg+ +-pipe-g-wall-w-dm-e-o moc_predefs.h/usr/lib/qt5/mkspecs/features/data/dummy.CPPg+ +-c-pipe-g-wall-w-d_reentrant-fpic-dqt_deprecated_warnings-dqt_widgets_lib-dqt_gui_lib-dqt_core_lib-i.-isyst em/usr/include/qt5-isystem/usr/include/qt5/qtwidgets-isystem/usr/include/qt5/qtgui-isystem/usr/include/qt5/ Qtcore-i.-I.-i/usr/lib/qt5/mkspecs/linux-g++-O PRODUCTLICENSE.O productlicense.CPP/usr/lib/qt5/bin/moc-dqt_deprecated_warnings-dqt_widgets_lib-dqt_gui_lib-dqt_core_lib--include./moc_predefs.h- i/usr/lib/qt5/mkspecs/linux-g++-i/builddir/build/build/anaconda-26.48. +/welcome-src/productlicense-i/usr/include/qt5-i/usr/include/qt5/qtwidgets-i/usr/include/qt5/qtgui-i/usr/ include/qt5/qtcore-i/usr/include/c++/6.4.1-i/usr/include/c++/6.4.1/x86_64-redhat-linux-i/usr/include/c++/6.4.1/backward-i/usr/lib/GCC/x86_64-redhat-linux/6.4.1/include-i/usr/local/include-i/usr/include Productlicense.h-o Moc_productlicense.CPPg+ +-c-pipe-g-wall-w-d_reentrant-fpic-dqt_deprecated_warnings-dqt_widgets_lib-dqt_gui_lib-dqt_core_lib-i.-isyst em/usr/include/qt5-isystem/usr/include/qt5/qtwidgets-isystem/usr/include/qt5/qtgui-isystem/usr/include/qt5/ Qtcore-i.-I.-i/usr/lib/qt5/mkspecs/linux-g++-O QRC_LICENSE.O qrc_license.CPPWelcome.c:infunction 'Main': welcome.c:Panax Notoginseng: $: warning:passing argument2Of'G_timeout_add_seconds'From incompatible pointer type [-wincompatible-pointer-types] G_timeout_add_seconds (autoexit_timeout, Gtk_main_quit, NULL); ^~~~~~~~~~~~~inchfileIncluded from/usr/include/glib-2.0/glib/giochannel.h: -:0, from/usr/include/glib-2.0/glib.h: Wu, from/usr/include/glib-2.0/gobject/gbinding.h: -, from/usr/include/glib-2.0/glib-Object. h: at, from/usr/include/glib-2.0/gio/gioenums.h: -, from/usr/include/glib-2.0/gio/giotypes.h: -, from/usr/include/glib-2.0/gio/gio.h: -, from/usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h: -, from/usr/include/gtk-2.0/gdk/gdk.h: +, from/usr/include/gtk-2.0/gtk/gtk.h: +, from welcome.c:1:/usr/include/glib-2.0/glib/gmain.h:581:Ten: note:expected'Gsourcefunc {aka int (*) (void *)}'But argument is of type'Void (*) (void)'guint g_timeout_add_seconds (guint interval,^~~~~~~~~~~~~~~~~~~~~usr/include/c++/6.4.1/bits/stl_relops.: the: Parse error at"STD"Makefile:333: recipe forTarget'Moc_productlicense.cpp'failed Make[3]: * * * [moc_productlicense.CPP] Error1 Make[3]: * * * waiting forunfinished jobs .... Make[3]: Leaving directory'/builddir/build/build/anaconda-26.48.21/welcome-src/productlicense'Makefile:6: recipe forTarget'System_install'failed Make[2]: Leaving directory'/builddir/build/build/anaconda-26.48.21/welcome-src' Make[2]: * * * [System_install] Error2Makefile:542: recipe forTarget'all-recursive'failed Make[1]: Leaving directory'/builddir/build/build/anaconda-26.48.21' Make[1]: * * * [all-recursive] Error1Makefile:436: recipe forTarget' All'Failed
But the 64-bit architecture of the RPM package is not an error, online query the title of the bug-related information, https://forum.qt.io/topic/56552/solved-pi2-qt5-4-1-std-errors-configure-errors
That is to upgrade QT from 5.4.1 to 5.4.2 can be resolved, see my version of the 32-bit mock environment of the QT version, found to be 5.7;
Think of the project last time Gerrit submitted Jenkins can be compiled by normal, including 64-bit and 32-architecture binary package, compared with two submitted file differences, found that the submission added two QT related intermediate files,
Productlicense.pro.user.82c30c7 |
|
. Qmake.stash
After removing these two files, the 32-bit mock compiles normally, the real reason is limited by the time, and the back is empty.
Usr/include/c++/6.4.1/bits/stl_relops.:67:parse error at "Std"