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

qt-everywhere-src-5.11.0 fails to compile with gcc 8.1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • 5.11.1
    • 5.11.0
    • WebEngine
    • None
    • Linux 4.16.3, glibc 2.27, gcc 8.1.

      Since the error happened when compiling part of the qt distribution and does not look like it is caused by system header files, I won't be attaching those.

    Description

      /usr/bin/g++ -MMD -MF obj/components/discardable_memory/service/service/discardable_shared_memory_manager.o.d -DDISCARDABLE_MEMORY_IMPLEMENTATION -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DNO_TCMALLOC -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -DTOOLKIT_QT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -Igen -I../../3rdparty/chromium -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Igen -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -pthread -m64 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -fno-delete-null-pointer-checks -Wno-missing-field-initializers -Wno-unused-parameter -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g0 -fvisibility=hidden -std=gnu++14 -fno-delete-null-pointer-checks -Wno-narrowing -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -c ../../3rdparty/chromium/components/discardable_memory/service/discardable_shared_memory_manager.cc -o obj/components/discardable_memory/service/service/discardable_shared_memory_manager.o
      In file included from ../../3rdparty/chromium/mojo/public/cpp/bindings/associated_interface_ptr.h:18,
       from gen/components/discardable_memory/public/interfaces/discardable_shared_memory_manager.mojom.h:22,
       from ../../3rdparty/chromium/components/discardable_memory/service/discardable_shared_memory_manager.h:31,
       from ../../3rdparty/chromium/components/discardable_memory/service/discardable_shared_memory_manager.cc:5:
      ../../3rdparty/chromium/mojo/public/cpp/bindings/associated_interface_ptr_info.h: In member function 'mojo::AssociatedInterfacePtrInfo<Interface>::operator bool() const':
      ../../3rdparty/chromium/mojo/public/cpp/bindings/associated_interface_ptr_info.h:48:43: error: cannot convert 'const mojo::ScopedInterfaceEndpointHandle' to 'bool' in return
       explicit operator bool() const \{ return handle_; }
       ^~~~~~~
      In file included from ../../3rdparty/chromium/mojo/public/cpp/bindings/associated_interface_ptr.h:19,
       from gen/components/discardable_memory/public/interfaces/discardable_shared_memory_manager.mojom.h:22,
       from ../../3rdparty/chromium/components/discardable_memory/service/discardable_shared_memory_manager.h:31,
       from ../../3rdparty/chromium/components/discardable_memory/service/discardable_shared_memory_manager.cc:5:
      ../../3rdparty/chromium/mojo/public/cpp/bindings/associated_interface_request.h: In member function 'mojo::AssociatedInterfaceRequest<Interface>::operator bool() const':
      ../../3rdparty/chromium/mojo/public/cpp/bindings/associated_interface_request.h:53:43: error: cannot convert 'const mojo::ScopedInterfaceEndpointHandle' to 'bool' in return
       explicit operator bool() const \{ return handle_; }
       ^~~~~~~
      In file included from gen/components/discardable_memory/public/interfaces/discardable_shared_memory_manager.mojom.h:28,
       from ../../3rdparty/chromium/components/discardable_memory/service/discardable_shared_memory_manager.h:31,
       from ../../3rdparty/chromium/components/discardable_memory/service/discardable_shared_memory_manager.cc:5:
      ../../3rdparty/chromium/mojo/public/cpp/bindings/interface_request.h: In member function 'mojo::InterfaceRequest<Interface>::operator bool() const':
      ../../3rdparty/chromium/mojo/public/cpp/bindings/interface_request.h:57:43: error: cannot convert 'const ScopedMessagePipeHandle' \{aka 'const mojo::ScopedHandleBase<mojo::MessagePipeHandle>'} to 'bool' in return
       explicit operator bool() const \{ return handle_; }
       ^~~~~~~
      ninja: build stopped: subcommand failed.
      make[4]: *** [Makefile.gn_run:1093: run_ninja] Error 1
      make[4]: Leaving directory '/src/tmp/qt-everywhere-src-5.11.0/qtwebengine/src/core'
      make[3]: *** [Makefile:80: sub-gn_run-pro-make_first] Error 2
      make[3]: Leaving directory '/src/tmp/qt-everywhere-src-5.11.0/qtwebengine/src/core'
      make[2]: *** [Makefile:79: sub-core-make_first] Error 2
      make[2]: Leaving directory '/src/tmp/qt-everywhere-src-5.11.0/qtwebengine/src'
      make[1]: *** [Makefile:47: sub-src-make_first] Error 2
      make[1]: Leaving directory '/src/tmp/qt-everywhere-src-5.11.0/qtwebengine'
      make: *** [Makefile:1028: module-qtwebengine-make_first] Error 2
      

      Attachments

        Issue Links

          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
              felix_von_leitner felix_von_leitner
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes