Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.7, 6.8
-
None
-
-
d2a9d9d8c (dev), 3f6f829ea (dev), f563adc20 (6.7), 38ecae081 (6.7), 35f34f393 (6.6), b27398b52 (6.6), d80ee9a6e (tqtc/lts-6.5), 2d3872a90 (tqtc/lts-6.5)
Description
The issue as following sometimes happens in CI. I also have it locally when building qtgrpc after major changes in code:
In file included from /home/semlanik/Projects/Qt/qt6_grpc/build_developer/qtbase/include/QtProtobufWellKnownTypes/google/protobuf/../../any.qpb.h:1, from /home/semlanik/Projects/Qt/qt6_grpc/build_developer/qtbase/include/QtProtobufWellKnownTypes/google/protobuf/any.qpb.h:1, from /home/semlanik/Projects/Qt/qt6_grpc/qt6/qtgrpc/src/wellknown/qprotobufanysupport.cpp:11: /home/semlanik/Projects/Qt/qt6_grpc/build_developer/qtgrpc/src/wellknown/google/protobuf/any.qpb.h:31:45: error: expected initializer before ‘:’ token 31 | class QPB_PROTOBUFWELLKNOWNTYPES_EXPORT Any : public QProtobufMessage | ^ In file included from /home/semlanik/Projects/Qt/qt6_grpc/build_developer/qtbase/include/QtCore/qtmetamacros.h:1, from /home/semlanik/Projects/Qt/qt6_grpc/qt6/qtbase/src/corelib/global/qnamespace.h:13, from /home/semlanik/Projects/Qt/qt6_grpc/build_developer/qtbase/include/QtCore/qnamespace.h:1, from /home/semlanik/Projects/Qt/qt6_grpc/qt6/qtbase/src/corelib/kernel/qobjectdefs.h:12, from /home/semlanik/Projects/Qt/qt6_grpc/build_developer/qtbase/include/QtCore/qobjectdefs.h:1, from /home/semlanik/Projects/Qt/qt6_grpc/qt6/qtbase/src/corelib/kernel/qobject.h:10, from /home/semlanik/Projects/Qt/qt6_grpc/build_developer/qtbase/include/QtCore/qobject.h:1, from /home/semlanik/Projects/Qt/qt6_grpc/qt6/qtbase/src/corelib/animation/qabstractanimation.h:7, from /home/semlanik/Projects/Qt/qt6_grpc/build_developer/qtbase/include/QtCore/qabstractanimation.h:1, from /home/semlanik/Projects/Qt/qt6_grpc/build_developer/qtbase/include/QtCore/QtCore:14, from /home/semlanik/Projects/Qt/qt6_grpc/build_developer/qtbase/include/QtProtobuf/QtProtobufDepends:3, from /home/semlanik/Projects/Qt/qt6_grpc/build_developer/qtbase/include/QtProtobuf/QtProtobuf:3, from /home/semlanik/Projects/Qt/qt6_grpc/build_developer/qtgrpc/src/wellknown/CMakeFiles/ProtobufWellKnownTypes.dir/cmake_pch.hxx:5, from <command-line>: /home/semlanik/Projects/Qt/qt6_grpc/build_developer/qtgrpc/src/wellknown/google/protobuf/any.qpb.h:60:1: error: expected initializer before ‘staticMetaObject’ 60 | Q_NAMESPACE_EXPORT(QPB_PROTOBUFWELLKNOWNTYPES_EXPORT)
After closer look at protobufwellknowntypes_exports.qpb.h I see an empty file, which even is not opening. It's either the issue in qtprotobufgen or in libprotoc, since ASAN explicitly complains about exact this generating chain when using libprotoc v25.1