moc compilation error with qt 5.14, tbb header

Create issue
Issue #2681 resolved
Steve Peters created an issue

All homebrew builds are failing since qt 5.14 was released into homebrew.

AutoMoc subprocess error
------------------------
The moc process failed to compile
  "SRC:/plugins/LookAtDemoPlugin.hh"
into
  "BIN:/plugins/LookAtDemoPlugin_autogen/EWIEGA46WW/moc_LookAtDemoPlugin.cpp"

Command
-------
/usr/local/opt/qt/bin/moc -DBOOST_ALL_NO_LIB -DBOOST_DATE_TIME_DYN_LINK -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_IOSTREAMS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_REGEX_DYN_LINK -DBOOST_SYSTEM_DYN_LINK -DBOOST_TEST_DYN_LINK -DBOOST_THREAD_DYN_LINK -DHAVE_OPENGL -DLIBBULLET_VERSION=2.88 -DLIBBULLET_VERSION_GT_282 -DLookAtDemoPlugin_EXPORTS -DMAC_OS_X_VERSION=1080 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG "-DQT_TESTCASE_BUILDDIR=\"/Users/jenkins/workspace/gazebo-ci-default-homebrew-amd64/build\"" -DQT_TESTLIB_LIB -DQT_WIDGETS_LIB -I/Users/jenkins/workspace/gazebo-ci-default-homebrew-amd64/gazebo/test/gtest/include -I/Users/jenkins/workspace/gazebo-ci-default-homebrew-amd64/build -I/Users/jenkins/workspace/gazebo-ci-default-homebrew-amd64/gazebo -I/Users/jenkins/workspace/gazebo-ci-default-homebrew-amd64/gazebo/deps/opende/include -I/Users/jenkins/workspace/gazebo-ci-default-homebrew-amd64/gazebo/deps/threadpool -I/Users/jenkins/workspace/gazebo-ci-default-homebrew-amd64/gazebo/deps/opende/src -I/usr/local/include -I/usr/local/Cellar/tinyxml2/7.1.0/include -I/usr/local/Cellar/ffmpeg/4.2.1_2/include -I/usr/local/include/ignition/msgs1 -I/usr/local/include/ignition/transport4 -I/usr/local/include/ignition/fuel_tools1 -I/usr/local/include/ignition/common1 -I/usr/local/include/ignition/math4 -I/usr/local/Cellar/sdformat6/6.2.0_1/include/sdformat-6.2 -I/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_8/include/OGRE/RTShaderSystem -I/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_8/include -I/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_8/include/OGRE -I/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_8/include/OGRE/Terrain -I/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_8/include/OGRE/Paging -I/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_8/include/OGRE/Overlay -I/usr/local/opt/qt/lib/QtCore.framework -I/usr/local/opt/qt/lib/QtCore.framework/Headers -I/usr/local/opt/qt/mkspecs/macx-clang -I/usr/local/Cellar/ossp-uuid/1.6.2_2/include/ossp -I/usr/local/include -I/usr/local/include/eigen3 -I/usr/local/Cellar/fcl/0.5.0_1/include -I/usr/local/include/bullet -I/usr/local/Cellar/ode/0.16/include -I/usr/local/Cellar/urdfdom/1.0.3/include -I/usr/local/Cellar/urdfdom_headers/1.0.4/include -I/usr/local/include/simbody -I/usr/local/opt/qt/lib/QtWidgets.framework -I/usr/local/opt/qt/lib/QtWidgets.framework/Headers -I/usr/local/opt/qt/lib/QtGui.framework -I/usr/local/opt/qt/lib/QtGui.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/usr/local/opt/qt/lib/QtTest.framework -I/usr/local/opt/qt/lib/QtTest.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include -I/Library/Developer/CommandLineTools/usr/include/c++/v1 -I/Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include -I/Library/Developer/CommandLineTools/usr/include -F /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks -F /usr/local/opt/qt/lib --include /Users/jenkins/workspace/gazebo-ci-default-homebrew-amd64/build/plugins/LookAtDemoPlugin_autogen/moc_predefs.h -p plugins -o /Users/jenkins/workspace/gazebo-ci-default-homebrew-amd64/build/plugins/LookAtDemoPlugin_autogen/EWIEGA46WW/moc_LookAtDemoPlugin.cpp /Users/jenkins/workspace/gazebo-ci-default-homebrew-amd64/gazebo/plugins/LookAtDemoPlugin.hh

Output
------
usr/local/Cellar/tbb/2019_U9/include/tbb/tbb_profiling.:28: Parse error at "{"

make[2]: *** [plugins/CMakeFiles/LookAtDemoPlugin_autogen] Error 1
make[1]: *** [plugins/CMakeFiles/LookAtDemoPlugin_autogen.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

Build Status https://build.osrfoundation.org/job/gazebo-ci-default-homebrew-amd64/353/

I'm testing an extra #ifndef Q_MOC_RUN guard around a gazebo include in that plugin in 5586b0f.

Comments (3)

  1. Log in to comment