[Webkit-unassigned] [Bug 235458] New: Build failure with GCC 12: no matching function for call to 'end(LChar [7])'

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 21 15:18:19 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=235458

            Bug ID: 235458
           Summary: Build failure with GCC 12: no matching function for
                    call to 'end(LChar [7])'
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKitGTK
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mcatanzaro at gnome.org
                CC: bugs-noreply at webkitgtk.org, mgorse at suse.com

Next challenge in attempting to build with GCC 12: something is wrong with IntegerToStringConversion.h, and it's unclear how to fix it. I'll need to try a few more things....

In file included from /builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/text/WTFString.h:30,
                 from /builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/URL.h:28,
                 from /builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/URL.cpp:28:
/builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/text/IntegerToStringConversion.h: In instantiation of 'void WTF::writeIntegerToBufferImpl(UnsignedIntegerType, CharacterType*) [with CharacterType = unsigned char; UnsignedIntegerType = short unsigned int; PositiveOrNegativeNumber NumberType = WTF::PositiveNumber]':
/builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/text/IntegerToStringConversion.h:95:84:   required from 'void WTF::writeIntegerToBuffer(IntegerType, CharacterType*) [with CharacterType = unsigned char; IntegerType = short unsigned int]'
/builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/text/StringConcatenateNumbers.h:45:74:   required from 'void WTF::StringTypeAdapter<Integer, typename std::enable_if<is_integral_v<CharacterType>, void>::type>::writeTo(CharacterType*) const [with CharacterType = unsigned char; Integer = short unsigned int; typename std::enable_if<is_integral_v<CharacterType>, void>::type = void]'
/builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/text/StringConcatenate.h:430:33:   recursively required from 'void WTF::stringTypeAdapterAccumulator(ResultType*, Adapter, Adapters ...) [with ResultType = unsigned char; Adapter = StringTypeAdapter<char, void>; Adapters = {StringTypeAdapter<short unsigned int, void>}]'
/builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/text/StringConcatenate.h:430:33:   required from 'void WTF::stringTypeAdapterAccumulator(ResultType*, Adapter, Adapters ...) [with ResultType = unsigned char; Adapter = StringTypeAdapter<StringView, void>; Adapters = {StringTypeAdapter<char, void>, StringTypeAdapter<short unsigned int, void>}]'
/builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/text/StringConcatenate.h:450:41:   required from 'WTF::String WTF::tryMakeStringFromAdapters(StringTypeAdapter, StringTypeAdapters ...) [with StringTypeAdapter = StringTypeAdapter<StringView, void>; StringTypeAdapters = {StringTypeAdapter<char, void>, StringTypeAdapter<short unsigned int, void>}]'
/builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/text/StringConcatenate.h:469:37:   required from 'WTF::String WTF::tryMakeString(StringTypes ...) [with StringTypes = {StringView, char, short unsigned int}]'
/builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/text/StringConcatenate.h:475:34:   required from 'WTF::String WTF::makeString(StringTypes ...) [with StringTypes = {StringView, char, short unsigned int}]'
/builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/URL.cpp:152:26:   required from here
/builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/text/IntegerToStringConversion.h:69:26: error: no matching function for call to 'end(LChar [7])'
   69 |     LChar* end = std::end(buf);
      |                  ~~~~~~~~^~~~~
In file included from /usr/include/c++/12/variant:36,
                 from /builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/StdLibExtras.h:32,
                 from /builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/FastMalloc.h:26,
                 from /builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/config.h:31,
                 from /builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/URL.cpp:27:
/usr/include/c++/12/initializer_list:101:5: note: candidate: 'template<class _Tp> constexpr const _Tp* std::end(initializer_list<_Tp>)'
  101 |     end(initializer_list<_Tp> __ils) noexcept
      |     ^~~
/usr/include/c++/12/initializer_list:101:5: note:   template argument deduction/substitution failed:
/builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/text/IntegerToStringConversion.h:69:26: note:   mismatched types 'std::initializer_list<_Tp>' and 'LChar*' {aka 'unsigned char*'}
   69 |     LChar* end = std::end(buf);
      |                  ~~~~~~~~^~~~~

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220121/4a62e9eb/attachment-0001.htm>


More information about the webkit-unassigned mailing list