From nobody Wed Sep 11 07:11:53 2024 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4X3WwJ1VLSz5VwPK for ; Wed, 11 Sep 2024 07:12:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X3WwJ06rfz54HQ for ; Wed, 11 Sep 2024 07:12:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726038720; a=rsa-sha256; cv=none; b=qDE46cE1HoiOcNvecS2aMRkylNTIQAyO/M6cmuQ3N8t2GCk5QVrEAQR9xEz7gQqxDoV06E y3IHl5o4Gjj2+8yIYV+1RSPFa7RYg1HpFnv52e6ZfLFG9snXYQBOJ3Ges6pROgwrH2nxv8 1uql2a2dYFNqhRN6EFFVplUKmY2e81jEHuBFoSNIj2dGXcSYJpPBlXOpDC1fsPsgmhIvic mbHgeL4elvGpv3RnS2URzhiuHIyyHr0zXW5GVYWJOvcKDjEntyESqblYQi/8WJJzMVu/2V qcIg0b5owD6R3Y0b+S+E4sfiqNmPd0sudl+0RK/ie/WAr8mEXMtGWyXaHh81Gg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726038720; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ow5v/PcNOTHduqyvQL1ooD5d0VL3sQVKqwjPXXpMKpY=; b=RSQsRrjA8jrqPO2HP98U/5QIn1MZwYDlBFde2lPEO8K1HK1SY4kf2BOCkNjTkzNZ/pJKMX lmYGv05PaDc+bwi6+2usEaeq/l+LKNFwVmlJUmtetgFxnoGzpKX+I8zd2ZyCgJ51Sv0FXa zs/iyw8Ig53bW+o1K9fu54sg4pHcQOKyeBirUHtIKKsEbHQy4HD4lwAfec1pBBmHnbecyC QWbTWuiRKi6V1h9g5EFE12NfFkPNjHxCu5pZ63gPSrME7+qd8twuVYXYj9wcb34fGKQne3 R/PIqPMwR1mO6ACy51BcY+jley059XIQnn2s8FLs6rPDUXdwzbyEsD7OEDSZ/g== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4X3WwH6pYyzMDW for ; Wed, 11 Sep 2024 07:11:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 48B7BxJV003468 for ; Wed, 11 Sep 2024 07:11:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 48B7Bx1i003442 for ports-bugs@FreeBSD.org; Wed, 11 Sep 2024 07:11:59 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 281431] www/qt5-webengine: fix build with clang and libc++ 19 Date: Wed, 11 Sep 2024 07:11:53 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kde@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281431 Bug ID: 281431 Summary: www/qt5-webengine: fix build with clang and libc++ 19 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: kde@FreeBSD.org Reporter: dim@FreeBSD.org Assignee: kde@FreeBSD.org Flags: maintainer-feedback?(kde@FreeBSD.org) As noted in the libc++ 19 release notes [1], std::char_traits<> is now only provided for char, char8_t, char16_t, char32_t and wchar_t, and any instantiation for other types will fail. This causes www/qt5-webengine to fail to compile with clang 19 and libc++ 19, resulting in errors similar to: /usr/include/c++/v1/string:820:42: error: implicit instantiation of undef= ined template 'std::char_traits' 820 | static_assert(is_same<_CharT, typename traits_type::char_type>::value, | ^ =20 ../../../../kde-qtwebengine-5.15.17p3/src/3rdparty/chromium/v8/src/inspecto= r/v8-string-conversions.cc:390:26: note: in instantiation of template class 'std::basic_string' requested here 390 | std::basic_string UTF8ToUTF16(const char* stringStart, siz= e_t length) { | ^ /usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here 23 | struct _LIBCPP_TEMPLATE_VIS char_traits; | ^ Upstream v8 has fixed this in commit 182d9c05e78 [2], so add it as a backported patch, until the next version of qt5-webengine is released. Also, clang 19 now implements CWG 96 [1], which requires a template argument list after a 'template' keyword, resulting in errors similar to: =20 ../../../../kde-qtwebengine-5.15.17p3/src/3rdparty/chromium/third_party/bli= nk/renderer/platform/wtf/hash_table.h:1789:23: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw] 1789 | Allocator::template BackingWriteBarrier(&table_); | ^ =20 ../../../../kde-qtwebengine-5.15.17p3/src/3rdparty/chromium/third_party/bli= nk/renderer/platform/wtf/hash_table.h:1847:23: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw] 1847 | Allocator::template BackingWriteBarrier(&table_); | ^ =20 ../../../../kde-qtwebengine-5.15.17p3/src/3rdparty/chromium/third_party/bli= nk/renderer/platform/wtf/hash_table.h:2015:23: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw] 2015 | Allocator::template BackingWriteBarrier(&table_); | ^ =20 ../../../../kde-qtwebengine-5.15.17p3/src/3rdparty/chromium/third_party/bli= nk/renderer/platform/wtf/hash_table.h:2016:23: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw] 2016 | Allocator::template BackingWriteBarrier(&other.table_); | ^ and: =20 ../../../../kde-qtwebengine-5.15.17p3/src/3rdparty/chromium/third_party/per= fetto/include/perfetto/tracing/internal/track_event_data_source.h:110:20: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw] 110 | Base::template Trace([](typename Base::TraceContext ctx) { ctx.Flush(); }); | ^ =20 ../../../../kde-qtwebengine-5.15.17p3/src/3rdparty/chromium/third_party/per= fetto/include/perfetto/tracing/internal/track_event_data_source.h:124:20: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw] 124 | Base::template Trace([&](typename Base::TraceContext ctx) { | ^ =20 ../../../../kde-qtwebengine-5.15.17p3/src/3rdparty/chromium/third_party/per= fetto/include/perfetto/tracing/internal/track_event_data_source.h:431:20: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw] 431 | Base::template Trace([&](typename Base::TraceContext ctx) { | ^ =20 ../../../../kde-qtwebengine-5.15.17p3/src/3rdparty/chromium/third_party/per= fetto/include/perfetto/tracing/internal/track_event_data_source.h:548:22: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw] 548 | Base::template TraceWithInstances(instances, std::move(lambda)); | ^ =20 ../../../../kde-qtwebengine-5.15.17p3/src/3rdparty/chromium/third_party/per= fetto/include/perfetto/tracing/internal/track_event_data_source.h:563:20: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw] 563 | Base::template Trace([&](typename Base::TraceContext ctx) { | ^ In case of wtf, appending "<>" is enough to satisfy the constraint. For perfetto, this was fixed by upstream commit e2f661907a [3]. [1] https://libcxx.llvm.org/ReleaseNotes/19.html#deprecations-and-removals [2] https://chromium.googlesource.com/v8/v8.git/+/182d9c05e78 [3] https://android.googlesource.com/platform/external/perfetto/+/e2f661907a --=20 You are receiving this mail because: You are the assignee for the bug.=