moc fails to parse include inside enum

Bug #1968074 reported by Graham Inggs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gudhi (Ubuntu)
Invalid
Undecided
Unassigned
qtbase-opensource-src (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Seen while trying to rebuild gudhi against qtbase5-dev/ 5.15.3+dfsg-1 :

AutoMoc subprocess error
------------------------
The moc process failed to compile
"SRC:/src/GudhUI/gui/MainWindow.cpp"
into
"SRC:/build/userversion/src/GudhUI/GudhUI_autogen/include/MainWindow.moc"
included by
"SRC:/src/GudhUI/gui/MainWindow.cpp"

...

Output
------
usr/include/tbb/tbb_profiling.:29: Parse error at "/usr/include/tbb/internal/_tbb_strings.h"

Previous builds against qtbase5-dev/5.15.2+dfsg-15 were successful [1].
I found an upstream bug [2] with the same error, although the versions differ.
I also found similar bug [3] that is reported to be fixed in 5.15.6.

[1] https://launchpad.net/ubuntu/+source/gudhi/3.5.0+dfsg-1ubuntu1
[2] https://bugreports.qt.io/browse/QTBUG-94790
[3] https://bugreports.qt.io/browse/QTBUG-80990

Graham Inggs (ginggs)
description: updated
Revision history for this message
Graham Inggs (ginggs) wrote :
Revision history for this message
Graham Inggs (ginggs) wrote :

Reverting src/tools/moc/moc.cpp to as it was in 5.15.2+dfsg-15 (as per the attached patch) allows gudhi to build successfully again.

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtbase-opensource-src - 5.15.3+dfsg-2

---------------
qtbase-opensource-src (5.15.3+dfsg-2) experimental; urgency=medium

  [ Andrea Pappacoda ]
  * Backport upstream patch to fix qtconcurrentthreadengine.h with GCC 11.
    - Closes: #1008391

  [ Dmitry Shachnev ]
  * Backport upstream patch to fix parsing include inside enum (LP: #1968074).

 -- Dmitry Shachnev <email address hidden> Thu, 07 Apr 2022 18:50:52 +0300

Changed in qtbase-opensource-src (Ubuntu):
status: New → Fix Released
Graham Inggs (ginggs)
Changed in gudhi (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.