Summary: | dev-util/cmake-3.9.4 causes: AutoMoc error: unrecognized command line option ‘-nn’; did you mean ‘-Qn’? | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Greg Turner <gmturner007> |
Component: | Current packages | Assignee: | Gentoo KDE team <kde> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | azpegath, EoD, erik.badman, proxy-maint, xmw |
Priority: | Normal | Keywords: | TESTFAILURE |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/6131 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
no-automoc-nn-option.patch
emerge-info.txt dev-util:apitrace-7.1:20171015-053105.log emerge-history.txt environment etc.portage.tbz2 logs.tbz2 temp.tbz2 |
appeared recently at the tinderbox image 20171015-073721_dev-util_apitrace-7.1 Created attachment 498714 [details]
emerge-info.txt
Created attachment 498716 [details]
dev-util:apitrace-7.1:20171015-053105.log
Created attachment 498718 [details]
emerge-history.txt
Created attachment 498720 [details]
environment
Created attachment 498722 [details]
etc.portage.tbz2
Created attachment 498724 [details]
logs.tbz2
Created attachment 498726 [details]
temp.tbz2
(In reply to Greg Turner from comment #0) > > Already reported, some time ago, with no result, on github, so, maybe github > is not where apitrace people hang out? > https://github.com/apitrace/apitrace/issues/528 Note that this apitrace bug points to: https://github.com/apitrace/apitrace/blame/65d2605abb5ce422fc26801d86564db9358b0775/gui/CMakeLists.txt#L74 which brings us to: https://github.com/apitrace/apitrace/commit/f46f1e37f4e79eb3095933e7fa44eb7ad7401944 which my "fix" above effectively reverts. Can anyone confirm that the above is fixing a warning and not a bug? If so, then I think my "fix" can have the scare-quotes removed and be treated as an actual solution. On my box I do not think I see the indicated warning emitted. (In reply to Greg Turner from comment #9) > (In reply to Greg Turner from comment #0) > > > > Already reported, some time ago, with no result, on github, so, maybe github > > is not where apitrace people hang out? > > https://github.com/apitrace/apitrace/issues/528 > People do hang out on github (and irc), but might be very busy at the moment. I added some questions on the github issue which might help tracking the bug down. I had a look at your bug here and I am currently unable to reproduce it even though I have a very similar setup (except Qt 5.9). At the moment, I don't think reverting the above commit, as you suggested, is the correct approach here. According to the Github issue, it is clearly related to Qt 5.9 and does not happen with older versions of Qt. At the same time, it seems that it is only related to CMake 3.9. Can anyone with Qt 5.9 confirm that it builds fine with CMake 3.8 or 3.7? The error is caused by a regression in CMake introduced with version 3.9.0. According to upstream, it will be fixed in an upcoming version 3.9.5 (or similar). The respective upstream bug report: https://gitlab.kitware.com/cmake/cmake/issues/17418 I may be on record as not the hugest fan of CMake -- and, I know, nobody asked, and EoD already said as much, but, wow! They did a great job of expeditiously addressing this pretty obscure issue, and even quickly made a decision to roll out an unplanned backport-release just to squash it for all their downstreams using otherwise-undeveloped 3.9 branches.... That's pretty considerate of them! (In reply to Greg Turner from comment #13) > I may be on record as not the hugest fan of CMake -- and, I know, nobody > asked, and EoD already said as much, but, wow! > > They did a great job of expeditiously addressing this pretty obscure issue, > and even quickly made a decision to roll out an unplanned backport-release > just to squash it for all their downstreams using otherwise-undeveloped 3.9 > branches.... That's pretty considerate of them! I can't agree more. The CMake 3.9.5 has been released. Can we get a new ebuild in the portage tree? I copy&pasted cmake-3.9.4.ebuild to cmake-3.9.5.ebuild and it compiled just fine. Thanks, fixed in git commit 7a288811906d932f5579b55a3411733802609903 |
Created attachment 498668 [details, diff] no-automoc-nn-option.patch No idea what this is about. But I do know how to use "find" and "grep", and came up with the attached brilliant solution :) Already reported, some time ago, with no result, on github, so, maybe github is not where apitrace people hang out? fuller error log follows: [ 45%] Automatic MOC for target qapitrace AutoMoc: Warning: "/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1/gui/apitrace.cpp" The file includes the moc file "apitrace.moc", but does not contain a Q_OBJECT or Q_GADGET macro. AutoMoc: Warning: "/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1/gui/apicalldelegate.cpp" The file includes the moc file "apicalldelegate.moc", but does not contain a Q_OBJECT or Q_GADGET macro. AutoMoc: Warning: "/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1/gui/apitracefilter.cpp" The file includes the moc file "apitracefilter.moc", but does not contain a Q_OBJECT or Q_GADGET macro. AutoMoc: Warning: "/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1/gui/apitracemodel.cpp" The file includes the moc file "apitracemodel.moc", but does not contain a Q_OBJECT or Q_GADGET macro. AutoMoc: Warning: "/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1/gui/argumentseditor.cpp" The file includes the moc file "argumentseditor.moc", but does not contain a Q_OBJECT or Q_GADGET macro. AutoMoc: Warning: "/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1/gui/glsledit.cpp" The file includes the moc file "glsledit.moc", but does not contain a Q_OBJECT or Q_GADGET macro. AutoMoc: Warning: "/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1/gui/imageviewer.cpp" The file includes the moc file "imageviewer.moc", but does not contain a Q_OBJECT or Q_GADGET macro. AutoMoc: Warning: "/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1/gui/jumpwidget.cpp" The file includes the moc file "jumpwidget.moc", but does not contain a Q_OBJECT or Q_GADGET macro. AutoMoc: Warning: "/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1/gui/mainwindow.cpp" The file includes the moc file "mainwindow.moc", but does not contain a Q_OBJECT or Q_GADGET macro. AutoMoc: Warning: "/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1/gui/pixelwidget.cpp" The file includes the moc file "pixelwidget.moc", but does not contain a Q_OBJECT or Q_GADGET macro. AutoMoc: Warning: "/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1/gui/profiledialog.cpp" The file includes the moc file "profiledialog.moc", but does not contain a Q_OBJECT or Q_GADGET macro. AutoMoc: Warning: "/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1/gui/profiletablemodel.cpp" The file includes the moc file "profiletablemodel.moc", but does not contain a Q_OBJECT or Q_GADGET macro. AutoMoc: Warning: "/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1/gui/retracer.cpp" The file includes the moc file "retracer.moc", but does not contain a Q_OBJECT or Q_GADGET macro. AutoMoc: Warning: "/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1/gui/saverthread.cpp" The file includes the moc file "saverthread.moc", but does not contain a Q_OBJECT or Q_GADGET macro. AutoMoc: Warning: "/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1/gui/searchwidget.cpp" The file includes the moc file "searchwidget.moc", but does not contain a Q_OBJECT or Q_GADGET macro. AutoMoc: Warning: "/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1/gui/settingsdialog.cpp" The file includes the moc file "settingsdialog.moc", but does not contain a Q_OBJECT or Q_GADGET macro. AutoMoc: Warning: "/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1/gui/shaderssourcewidget.cpp" The file includes the moc file "shaderssourcewidget.moc", but does not contain a Q_OBJECT or Q_GADGET macro. AutoMoc: Warning: "/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1/gui/tracedialog.cpp" The file includes the moc file "tracedialog.moc", but does not contain a Q_OBJECT or Q_GADGET macro. AutoMoc: Warning: "/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1/gui/traceloader.cpp" The file includes the moc file "traceloader.moc", but does not contain a Q_OBJECT or Q_GADGET macro. AutoMoc: Warning: "/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1/gui/traceprocess.cpp" The file includes the moc file "traceprocess.moc", but does not contain a Q_OBJECT or Q_GADGET macro. AutoMoc: Warning: "/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1/gui/trimprocess.cpp" The file includes the moc file "trimprocess.moc", but does not contain a Q_OBJECT or Q_GADGET macro. AutoMoc: Warning: "/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1/gui/vertexdatainterpreter.cpp" The file includes the moc file "vertexdatainterpreter.moc", but does not contain a Q_OBJECT or Q_GADGET macro. AutoMoc: Warning: "/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1/gui/graphing/graphwidget.cpp" The file includes the moc file "graphwidget.moc", but does not contain a Q_OBJECT or Q_GADGET macro. AutoMoc: Warning: "/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1/gui/graphing/graphaxiswidget.cpp" The file includes the moc file "graphaxiswidget.moc", but does not contain a Q_OBJECT or Q_GADGET macro. AutoMoc: Warning: "/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1/gui/graphing/graphview.cpp" The file includes the moc file "graphview.moc", but does not contain a Q_OBJECT or Q_GADGET macro. Generating MOC predefs moc_predefs.h AutoMoc: Error: moc predefs generation command failed AutoMoc: Command: /usr/bin/x86_64-pc-linux-gnu-g++ -dM -E -c /usr/share/cmake/Modules/CMakeCXXCompilerABI.cpp -I/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1-abi_x86_64.amd64/gui -I/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1/gui -I/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1-abi_x86_64.amd64/gui/qapitrace_autogen/include -I/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1/thirdparty/khronos -I/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1/thirdparty/snappy -I/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1/thirdparty/libbacktrace -I/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1/thirdparty/gtest/include -I/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1/common -I/var/tmp/portage/dev-util/apitrace-7.1/work/apitrace-7.1 -I/usr/include/qt5 -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I/usr/lib64/qt5/mkspecs/linux-g++ -I/usr/include/qt5/QtWebKitWidgets -I/usr/include/qt5/QtWebKit -I/usr/include/qt5/QtNetwork -I/usr/include -I/usr/include -DHAVE_BACKTRACE=1 -DHAVE_READPROC_H -DHAVE_X11 -DQT_CORE_LIB -DQT_FORCE_ASSERTS -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_WEBKITWIDGETS_LIB -DQT_WEBKIT_LIB -DQT_WIDGETS_LIB -D_GNU_SOURCE -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -nn AutoMoc: Command output: x86_64-pc-linux-gnu-g++: error: unrecognized command line option ‘-nn’; did you mean ‘-Qn’?