`AutoMoc subprocess error` with 3.27 after including `moc_predef.h`
i haven't been able to come up with a reduced test case, yet, but there is a regression in 3.27 compared to 3.26:
automoc fails with:
usr/include/c++/13/concept:46:1: error: Parse error at "std"
where the line 46 is:
namespace std _GLIBCXX_VISIBILITY(default)
it seems that moc
is invoked with --include /path/to/mytarget_autogen/moc_predefs.h
. if i remove this moc
argument, the automoc parse error disappears.
a quick search showed a rather ancient qt bug (https://bugreports.qt.io/browse/QTBUG-31496), but the issue may be related:
When trying to look deeper on what is happening it seems that the macro _GLIBCXX_VISIBILITY on the std namespace is undefined
if i define _GLIBCXX_VISIBILITY
in the moc_predefs.h
, the moc invocation with the --include
works fine