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

Build failure related to warning in gn

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.8.1
    • 6.8.0 Beta4
    • WebEngine
    • None
    • KDE Craft build system on Suse Linux Enterprise Server 15.5
      -- The C compiler identification is GNU 12.3.0
      -- The CXX compiler identification is GNU 12.3.0
    • Linux/Other display system
    • bfeea6231 (6.8.1), 8581bed90 (dev)

    Description

      I just started to build the beta4 of QtWebEngine and it fails to compile, this is our config.summary

      This is the output for the failure:

       

      [143/200] CXX src/gn/operators.o FAILED: src/gn/operators.o   /usr/bin/g++ -MMD -MF src/gn/operators.o.d -I../../../../qtwebengine-everywhere-src-6.8.0-beta4/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections - ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../../../../qtwebengine-everywhere-src-6.8.0-beta4/src/3rdparty/gn/src/gn/operators.cc -o src/gn/operators.o
       In file included from /usr/include/c++/12/string:40,
                       from ../../../../qtwebengine-everywhere-src-6.8.0-beta4/src/3rdparty/gn/src/base/strings/string_number_conversions.h:11,
                       from ../../../../qtwebengine-everywhere-src-6.8.0-beta4/src/3rdparty/gn/src/gn/operators.cc:10: In static member function ‘static constexpr void std::char_traits<char>::assign(char_type&, const char_type&)’,
          inlined from ‘static constexpr void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_S_copy(_CharT*, const _CharT*, size_type) [with _CharT = char; _Traits = std::char _traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12/bits/basic_string.h:429:23,
          inlined from ‘constexpr std::__cxx11::basic_string<_CharT, _Traits, _Allocator>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_replace(size_type, size_type, const _CharT*, size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12/bits/basic_string.tcc:532:22,
          inlined from ‘constexpr std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::assign(const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12/bits/basic_string.h:1655:19,
          inlined from ‘constexpr std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(const _CharT*) [with _CharT = ch ar; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12/bits/basic_string.h:823:28,
          inlined from ‘Err {anonymous}::MakeOverwriteError(const BinaryOpNode*, const Value&)’ at ../../../../qtwebengine-everywhere-src-6.8.0-beta4/src/3rdparty/gn/src/gn/operators.cc:202:17:
      /usr/include/c++/12/bits/char_traits.h:358:16: error: ‘((const std::char_traits<char>::char_type*)((char*)&empty_def + offsetof(std::__cxx11::string, std::__cxx11::basic_string <char, std::char_traits<char>, std::allocator<char> >::<unnamed>)))[2]’ may be used uninitialized [-Werror=maybe-uninitialized]
        358 |         __c1 = __c2;
            |                ^~~~ 
      ../../../../qtwebengine-everywhere-src-6.8.0-beta4/src/3rdparty/gn/src/gn/operators.cc: In function ‘Err {anonymous}::MakeOverwriteError(const BinaryOpNode*, const Value&)’: ../../../../qtwebengine-everywhere-src-6.8.0-beta4/src/3rdparty/gn/src/gn/operators.cc:198:15: note: ‘empty_def’ declared here
        198 |   std::string empty_def;
            |               ^~~~~~~~~ 
      In static member function ‘static constexpr void std::char_traits<char>::assign(char_type&, const char_type&)’,
          inlined from ‘static constexpr void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_S_copy(_CharT*, const _CharT*, size_type) [with _CharT = char; _Traits = std::char _traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12/bits/basic_string.h:429:23,
          inlined from ‘constexpr std::__cxx11::basic_string<_CharT, _Traits, _Allocator>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_replace(size_type, size_type, const _CharT*, size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12/bits/basic_string.tcc:532:22,
          inlined from ‘constexpr std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::assign(const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12/bits/basic_string.h:1655:19,
          inlined from ‘constexpr std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(const _CharT*) [with _CharT = ch ar; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12/bits/basic_string.h:823:28,
          inlined from ‘Err {anonymous}::MakeOverwriteError(const BinaryOpNode*, const Value&)’ at ../../../../qtwebengine-everywhere-src-6.8.0-beta4/src/3rdparty/gn/src/gn/operators.cc:205:17:
      /usr/include/c++/12/bits/char_traits.h:358:16: error: ‘((const std::char_traits<char>::char_type*)((char*)&empty_def + offsetof(std::__cxx11::string, std::__cxx11::basic_string <char, std::char_traits<char>, std::allocator<char> >::<unnamed>)))[2]’ may be used uninitialized [-Werror=maybe-uninitialized]
        358 |         __c1 = __c2;
            |                ^~~~
      ../../../../qtwebengine-everywhere-src-6.8.0-beta4/src/3rdparty/gn/src/gn/operators.cc: In function ‘Err {anonymous}::MakeOverwriteError(const BinaryOpNode*, const Value&)’: ../../../../qtwebengine-everywhere-src-6.8.0-beta4/src/3rdparty/gn/src/gn/operators.cc:198:15: note: ‘empty_def’ declared here
        198 |   std::string empty_def;
            |               ^~~~~~~~~
       cc1plus: all warnings being treated as errors
      

       

      Attachments

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

        Activity

          People

            moheim Moss Heim
            jlskuz Julius Künzel
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes