Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-80239

Fails to build: Invalid use of incomplete type 'class QVariant' in QtWebEngineCore::URLRequestNotification::notify()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.14.0 RC1
    • 5.14.0 Beta3
    • WebEngine
    • None
    • Archlinux, ccache 3.7.5, gcc 9.2.0
    • 6e79d033a30f9d56b72a5aa4cc9a02cf656e2fe5

    Description

      I'm really not sure if this is an issue on my system somehow, or in the code - apologies if it turns out to be the former!

      I tried to build the current 5.14.0 branch and got the error shown below. I then tried to bisect it, and it went away (even on the 5.14.0 branch). Now I'm trying to rebuild and I'm seeing the same again, so I'm really not sure what's going on. Here it is:

      ccache /usr/lib/ccache/bin/g++ -MMD -MF obj/QtWebEngineCore/url_request_notification.o.d -DCHROMIUM_VERSION=\"77.0.3865.98\" -DUSE_UDEV -DUSE_AURA=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DNO_TCMALLOC -DCHROMIUM_BUILD -DTOOLKIT_QT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DQT_NO_LINKED_LIST -DQT_NO_KEYWORDS -DQT_USE_QSTRINGBUILDER -DQ_FORWARD_DECLARE_OBJC_CLASS=QT_FORWARD_DECLARE_CLASS -DQTWEBENGINECORE_VERSION_STR=\"5.14.0\" -DQTWEBENGINEPROCESS_NAME=\"QtWebEngineProcess\" -DBUILDING_CHROMIUM -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QMLMODELS_LIB -DQT_WEBCHANNEL_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_WEBENGINECOREHEADERS_LIB -DGL_GLEXT_PROTOTYPES -DUSE_GLX -DUSE_EGL -DVK_NO_PROTOTYPES -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DUCHAR_TYPE=uint16_t -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_POSIX -DWEBRTC_LINUX -DABSL_ALLOCATOR_NOTHROW=1 -DNO_MAIN_THREAD_WRAPPING -DSK_GL -DSK_HAS_PNG_LIBRARY -DSK_HAS_WEBP_LIBRARY -DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\" -DSK_HAS_JPEG_LIBRARY -DSK_VULKAN_HEADER=\"../../skia/config/SkVulkanConfig.h\" -DSK_VULKAN=1 -DSK_SUPPORT_GPU=1 -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DVK_NO_PROTOTYPES -DLEVELDB_PLATFORM_CHROMIUM=1 -DLEVELDB_PLATFORM_CHROMIUM=1 -DV8_ENABLE_CHECKS -DV8_DEPRECATION_WARNINGS -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DUCHAR_TYPE=uint16_t -DPERFETTO_BUILD_WITH_EMBEDDER -DPERFETTO_BUILD_WITH_CHROMIUM -DPERFETTO_FORCE_DLOG=0 -I../../3rdparty/chromium/skia/config -I../../3rdparty/chromium/third_party -I../../3rdparty/chromium/third_party/boringssl/src/include -I../../3rdparty/chromium/third_party/skia/include/core -Igen -I../../3rdparty/chromium -I/home/florian/code/qt/5.14/qtwebengine/src/core -I/home/florian/code/qt/5.14/qtwebengine/src/core/api -I/home/florian/code/qt/5.14/qtbase/include/QtQuick/5.14.0 -I/home/florian/code/qt/5.14/qtbase/include/QtQuick/5.14.0/QtQuick -I/home/florian/code/qt/5.14/qtbase/include/QtGui/5.14.0 -I/home/florian/code/qt/5.14/qtbase/include/QtGui/5.14.0/QtGui -I/home/florian/code/qt/5.14/qtbase/include -I/home/florian/code/qt/5.14/qtbase/include/QtQuick -I/home/florian/code/qt/5.14/qtbase/include/QtGui -I/home/florian/code/qt/5.14/qtbase/include/QtQmlModels/5.14.0 -I/home/florian/code/qt/5.14/qtbase/include/QtQmlModels/5.14.0/QtQmlModels -I/home/florian/code/qt/5.14/qtbase/include/QtQml/5.14.0 -I/home/florian/code/qt/5.14/qtbase/include/QtQml/5.14.0/QtQml -I/home/florian/code/qt/5.14/qtbase/include/QtCore/5.14.0 -I/home/florian/code/qt/5.14/qtbase/include/QtCore/5.14.0/QtCore -I/home/florian/code/qt/5.14/qtbase/include/QtQmlModels -I/home/florian/code/qt/5.14/qtbase/include/QtWebChannel -I/home/florian/code/qt/5.14/qtbase/include/QtQml -I/home/florian/code/qt/5.14/qtbase/include/QtNetwork -I/home/florian/code/qt/5.14/qtbase/include/QtCore -I/home/florian/code/qt/5.14/qtbase/include/QtWebEngineCore -I/home/florian/code/qt/5.14/qtbase/include/QtWebEngineCore/5.14.0 -I/home/florian/code/qt/5.14/qtbase/include/QtWebEngineCore/5.14.0/QtWebEngineCore -I.moc -Igen/.moc -I/home/florian/code/qt/5.14/qtbase/mkspecs/linux-g++ -Igen -Igen -Igen -Igen -I../../3rdparty/chromium/third_party/libyuv/include -Igen -Igen -Igen -Igen -Igen -I../../3rdparty/chromium/third_party/vulkan/include -Igen -Igen -Igen -Igen -I../../3rdparty/chromium/third_party/khronos -I../../3rdparty/chromium/gpu -Igen -Igen/third_party/dawn -I../../3rdparty/chromium/third_party/dawn/src/include -I../../3rdparty/chromium/third_party/jsoncpp/source/include -I../../3rdparty/chromium/third_party/jsoncpp/generated -Igen -I../../3rdparty/chromium/third_party/boringssl/src/include -I../../3rdparty/chromium/third_party/ced/src -I../../3rdparty/chromium/third_party/protobuf/src -I../../3rdparty/chromium/third_party/protobuf/src -Igen/protoc_out -I../../3rdparty/chromium/third_party/webrtc_overrides -I../../3rdparty/chromium/third_party/webrtc -Igen/third_party/webrtc -I../../3rdparty/chromium/third_party/abseil-cpp -I../../3rdparty/chromium/third_party/skia -I../../3rdparty/chromium/third_party/vulkan/include -I../../3rdparty/chromium/third_party/skia/third_party/vulkanmemoryallocator -I../../3rdparty/chromium/third_party/vulkan/include -I../../3rdparty/chromium/third_party/leveldatabase -I../../3rdparty/chromium/third_party/leveldatabase/src -I../../3rdparty/chromium/third_party/leveldatabase/src/include -I../../3rdparty/chromium/third_party/libwebm/source -I../../3rdparty/chromium/v8/include -Igen/v8/include -I../../3rdparty/chromium/third_party/perfetto/include -Igen/third_party/perfetto/protos -Igen/third_party/perfetto/protos -Igen/third_party/perfetto/protos -Igen/third_party/perfetto/protos -Igen/third_party/perfetto/protos -Igen/third_party/perfetto/protos -I../../3rdparty/chromium/third_party/mesa_headers -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pipe -pthread -m64 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -Wall -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -Wno-comments -Wno-packed-not-aligned -Wno-dangling-else -Wno-missing-field-initializers -Wno-unused-parameter -O0 -fno-omit-frame-pointer -g2 -fvisibility=hidden -pipe -g -fno-exceptions -Wall -Wextra -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -std=gnu++14 -Wno-narrowing -Wno-class-memaccess -Wno-attributes -Wno-class-memaccess -Wno-subobject-linkage -Wno-invalid-offsetof -Wno-return-type -Wno-deprecated-copy -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -pipe -g -std=gnu++1y -fno-exceptions -Wall -Wextra -D_REENTRANT -Wno-unused-parameter -Wno-unused-variable -Wno-deprecated-declarations -c /home/florian/code/qt/5.14/qtwebengine/src/core/net/url_request_notification.cpp -o obj/QtWebEngineCore/url_request_notification.o
      ../net/url_request_notification.cpp: In member function ‘void QtWebEngineCore::URLRequestNotification::notify()’:
      ../net/url_request_notification.cpp:111:52: error: invalid use of incomplete type ‘class QVariant’
        111 |             if (!interceptor->property("deprecated").toBool())
            |                                                    ^
      In file included from ../../../../qtbase/include/QtCore/qmetatype.h:1,
                       from ../../../../qtbase/include/QtCore/../../src/corelib/kernel/qobject.h:54,
                       from ../../../../qtbase/include/QtCore/qobject.h:1,
                       from ../../../../qtbase/include/QtCore/../../src/corelib/tools/qsharedpointer_impl.h:64,
                       from ../../../../qtbase/include/QtCore/qsharedpointer_impl.h:1,
                       from ../../../../qtbase/include/QtCore/../../src/corelib/tools/qsharedpointer.h:48,
                       from ../../../../qtbase/include/QtCore/qsharedpointer.h:1,
                       from ../../../../qtbase/include/QtCore/../../src/corelib/kernel/qpointer.h:43,
                       from ../../../../qtbase/include/QtCore/qpointer.h:1,
                       from ../../../../qtbase/include/QtCore/QPointer:1,
                       from ../net/url_request_notification.h:46,
                       from ../net/url_request_notification.cpp:40:
      ../../../../qtbase/include/QtCore/../../src/corelib/kernel/qmetatype.h:134:21: note: forward declaration of ‘class QVariant’
        134 |     F(QVariant, 41, QVariant) \
            |                     ^~~~~~~~
      ../../../../qtbase/include/QtCore/../../src/corelib/kernel/qmetatype.h:1981:11: note: in definition of macro ‘QT_FORWARD_DECLARE_STATIC_TYPES_ITER’
       1981 |     class Name;
            |           ^~~~
      ../../../../qtbase/include/QtCore/../../src/corelib/kernel/qmetatype.h:1983:1: note: in expansion of macro ‘QT_FOR_EACH_STATIC_CORE_CLASS’
       1983 | QT_FOR_EACH_STATIC_CORE_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER)
            | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt_webengine_team Qt WebEngine Team
            the compiler Florian Bruhin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes