Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 704988 - sci-electronics/gazebo with dev-qt/qtcore-5.14.0 - moc: usr/include/tbb/tbb_profiling.:25: Parse error at "{"
Summary: sci-electronics/gazebo with dev-qt/qtcore-5.14.0 - moc: usr/include/tbb/tbb_p...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexis Ballier
URL: https://bugreports.qt.io/browse/QTBUG...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: qt-5.14
  Show dependency tree
 
Reported: 2020-01-08 17:06 UTC by Victor Mataré
Modified: 2024-02-01 07:56 UTC (History)
3 users (show)

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


Attachments
patch for gazebo from official gazebo10 branch (qtmoc.patch,1.15 KB, patch)
2020-01-15 12:18 UTC, Nikita Shubin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Mataré 2020-01-08 17:06:10 UTC
Fails like this:

AutoMoc subprocess error
------------------------
The moc process failed to compile
  "SRC:/plugins/CessnaGUIPlugin.hh"
into
  "SRC:_build/plugins/CessnaGUIPlugin_autogen/EWIEGA46WW/moc_CessnaGUIPlugin.cpp"

Command
-------
/usr/lib64/qt5/bin/moc -DCessnaGUIPlugin_EXPORTS -DHAVE_OPENGL -DLIBBULLET_VERSION=2.85 -DLIBBULLET_VERSION_GT_282 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG "-DQT_TESTCASE_BU
ILDDIR=\"/var/tmp/portage/sci-electronics/gazebo-10.1.0/work/gazebo-10.1.0_build\"" -DQT_TESTLIB_LIB -DQT_WIDGETS_LIB -I/var/tmp/portage/sci-electronics/gazebo-10.1.0/work/g
azebo-10.1.0/test/gtest/include -I/var/tmp/portage/sci-electronics/gazebo-10.1.0/work/gazebo-10.1.0_build -I/usr/include/libusb-1.0 -I/var/tmp/portage/sci-electronics/gazebo
-10.1.0/work/gazebo-10.1.0 -I/usr/include/ignition/msgs1 -I/usr/include/ignition/transport4 -I/usr/include/ignition/math4 -I/usr/include/sdformat-6.2 -I/usr/include/OGRE/RTShaderSystem -I/usr/include/OGRE -I/usr/include/OGRE/Terrain -I/usr/include/OGRE/Paging -I/usr/include/OGRE/Overlay -I/usr/include/qt5 -I/usr/include/qt5/QtCore -I/usr/lib64/qt5/mkspecs/linux-g++ -I/usr/include/uuid -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtTest -I/usr/include -I/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include/g++-v9 -I/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include/g++-v9/x86_64-pc-linux-gnu -I/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include/g++-v9/backward -I/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include -I/usr/local/include -I/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include-fixed --include /var/tmp/portage/sci-electronics/gazebo-10.1.0/work/gazebo-10.1.0_build/plugins/CessnaGUIPlugin_autogen/moc_predefs.h -p plugins -o /var/tmp/portage/sci-electronics/gazebo-10.1.0/work/gazebo-10.1.0_build/plugins/CessnaGUIPlugin_autogen/EWIEGA46WW/moc_CessnaGUIPlugin.cpp /var/tmp/portage/sci-electronics/gazebo-10.1.0/work/gazebo-10.1.0/plugins/CessnaGUIPlugin.hh

Output
------
usr/include/tbb/tbb_profiling.:25: Parse error at "{"

Quick google search reveals that it's a known bug in then QT 5.14 moc:

https://bugreports.qt.io/browse/QTBUG-80990

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2020-01-09 09:44:23 UTC
Please attach the entire build log to this bug report.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2020-01-09 09:44:45 UTC
Please post your `emerge --info' output in a comment.
Comment 3 Victor Mataré 2020-01-09 10:57:21 UTC
Build log is too large, and (just as emerge --info) not relevant. This is an upstream bug in QT (see URL).
Comment 4 Nikita Shubin 2020-01-15 12:18:34 UTC
Created attachment 603342 [details, diff]
patch for gazebo from official gazebo10 branch
Comment 5 Nikita Shubin 2020-01-15 12:21:45 UTC
The main gazebo10 branch doesn't need qtmoc.patch. Hovewer as the were no new official gazebo release i am attaching it here just in case.
Comment 6 Larry the Git Cow gentoo-dev 2020-01-21 18:28:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15d62364ce7eed77f358a03c5724083ea2894eda

commit 15d62364ce7eed77f358a03c5724083ea2894eda
Author:     Alexis Ballier <aballier@gentoo.org>
AuthorDate: 2020-01-21 16:17:44 +0000
Commit:     Alexis Ballier <aballier@gentoo.org>
CommitDate: 2020-01-21 18:27:48 +0000

    sci-electronics/gazebo: fix build with qt 5.14.
    
    Patch from upstream provided by Nikita Shubin.
    Closes: https://bugs.gentoo.org/704988
    Package-Manager: Portage-2.3.84, Repoman-2.3.20
    
    Signed-off-by: Alexis Ballier <aballier@gentoo.org>

 sci-electronics/gazebo/files/qtmoc.patch    | 44 +++++++++++++++++++++++++++++
 sci-electronics/gazebo/gazebo-10.1.0.ebuild |  4 +--
 2 files changed, 46 insertions(+), 2 deletions(-)
Comment 36 kangtoto 2024-01-29 12:11:06 UTC
https://kangtotojos.net/
Comment 37 kangtoto 2024-01-29 12:11:28 UTC
https://www.ojosdecafe.com/
Comment 38 kangtoto 2024-02-01 07:56:08 UTC
https://malangchannel.id/