Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 634292 - dev-util/cmake-3.9.4 causes: AutoMoc error: unrecognized command line option ‘-nn’; did you mean ‘-Qn’?
Summary: dev-util/cmake-3.9.4 causes: AutoMoc error: unrecognized command line option ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2017-10-15 01:17 UTC by Greg Turner
Modified: 2017-11-05 13:24 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
no-automoc-nn-option.patch (no-automoc-nn-option.patch,487 bytes, patch)
2017-10-15 01:17 UTC, Greg Turner
Details | Diff
emerge-info.txt (emerge-info.txt,16.20 KB, text/plain)
2017-10-15 09:26 UTC, Toralf Förster
Details
dev-util:apitrace-7.1:20171015-053105.log (dev-util:apitrace-7.1:20171015-053105.log,199.84 KB, text/plain)
2017-10-15 09:26 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,190.93 KB, text/plain)
2017-10-15 09:26 UTC, Toralf Förster
Details
environment (environment,173.22 KB, text/plain)
2017-10-15 09:26 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,14.64 KB, application/x-bzip)
2017-10-15 09:26 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,7.49 KB, application/x-bzip)
2017-10-15 09:26 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,47.52 KB, application/x-bzip)
2017-10-15 09:26 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Turner 2017-10-15 01:17:35 UTC
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’?
Comment 1 Toralf Förster gentoo-dev 2017-10-15 09:26:07 UTC
appeared recently at the tinderbox image 20171015-073721_dev-util_apitrace-7.1
Comment 2 Toralf Förster gentoo-dev 2017-10-15 09:26:12 UTC
Created attachment 498714 [details]
emerge-info.txt
Comment 3 Toralf Förster gentoo-dev 2017-10-15 09:26:15 UTC
Created attachment 498716 [details]
dev-util:apitrace-7.1:20171015-053105.log
Comment 4 Toralf Förster gentoo-dev 2017-10-15 09:26:18 UTC
Created attachment 498718 [details]
emerge-history.txt
Comment 5 Toralf Förster gentoo-dev 2017-10-15 09:26:21 UTC
Created attachment 498720 [details]
environment
Comment 6 Toralf Förster gentoo-dev 2017-10-15 09:26:24 UTC
Created attachment 498722 [details]
etc.portage.tbz2
Comment 7 Toralf Förster gentoo-dev 2017-10-15 09:26:27 UTC
Created attachment 498724 [details]
logs.tbz2
Comment 8 Toralf Förster gentoo-dev 2017-10-15 09:26:30 UTC
Created attachment 498726 [details]
temp.tbz2
Comment 9 Greg Turner 2017-10-20 15:09:36 UTC
(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.
Comment 10 EoD 2017-10-25 13:48:34 UTC
(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.
Comment 11 EoD 2017-10-31 10:41:33 UTC
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?
Comment 12 EoD 2017-10-31 19:28:22 UTC
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
Comment 13 Greg Turner 2017-11-01 01:18:01 UTC
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!
Comment 14 EoD 2017-11-03 15:38:20 UTC
(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.
Comment 15 Andreas Sturmlechner gentoo-dev 2017-11-05 13:24:11 UTC
Thanks, fixed in git commit 7a288811906d932f5579b55a3411733802609903