From nobody Fri Jan 06 13:17:23 2023 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 4NpP5J0PFnz2qvn3 for ; Fri, 6 Jan 2023 13:17:24 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NpP5H5ccSz4LdT for ; Fri, 6 Jan 2023 13:17:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673011043; 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=vl6oe1Lz5TpQA4Rpc9AtGwqe0grCHctXMRoVzHr0x84=; b=afO0x5/7q1mXJyYNx+UWs2tY1luRIE1JtLRhbjX4HrcHrQSWD4JQtJkgveanb6XKTM1Xux NepFSydh1ckQ9LwCSjJW6B3JhHLGD/N1PWjERGZlqRTaAQlWanmex5ORo4gJpYsmQUZotd qnohzF5mK/N4s6cNEicEuA1GlilYobx3Q8kxtli7Ch0q+qaEA/goWNjD7PLs7JtwbdGeZL yUeBsmh1NS7aOWwiKf5JGLIZcrOvidEMD9yAS5ALgxxhoOvxMxRnxfT4XDkzCjRcxZIQ+7 QzUUQzFcS3Q1dscTYWY3Tur+U+saTwYXUgpLZh/xtLwc4mITWdJ0M4ef2zor2w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1673011043; a=rsa-sha256; cv=none; b=K1nBr8PpjEjNBIjB2v3CUl4C6WNPDODbCDqlHLDi8WG0D5KcFWyjBska4uexdQuDJyiVQ8 LDJIzFXZpwBSSU4xEDI3xdUYFT198NEcy6BmMNzuSufVur6x6VRgXMd2CY0yiPH4AwfTdm KOBCwlWsWwrn7dp5wQk4WJDnFWeLBMI2dFx3GiYLd6btW5R3avxeAUai38H97gNtfzLJDM Uo4jksGLuVANYq8Bb5JtNaLCAZkFBlSVNNgbNq5khc4AxKF6hBSOWrK7KbUT2Ao2p5hnR+ +rNXoOK9kmH1DChtRnst1TQaLnMd8Xb7S8PKisihyfIHkI5hxJnkAwnD0N/lTA== 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 4NpP5H4clpzX0D for ; Fri, 6 Jan 2023 13:17:23 +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 306DHNwH046582 for ; Fri, 6 Jan 2023 13:17:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 306DHNXb046580 for ports-bugs@FreeBSD.org; Fri, 6 Jan 2023 13:17:23 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 268784] www/qt5-webengine: fix build with clang/libc++ 15 Date: Fri, 06 Jan 2023 13:17:23 +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 Only Me 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: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268784 Bug ID: 268784 Summary: www/qt5-webengine: fix build with clang/libc++ 15 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: kde@FreeBSD.org Reporter: dim@FreeBSD.org Assignee: kde@FreeBSD.org Flags: maintainer-feedback?(kde@FreeBSD.org) During an exp-run for llvm 15 (see bug 265425), it turned out that www/qt5-webengine failed to build with clang and libc++ 15: In file included from ../../../../qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_p= arty/perfetto/src/trace_processor/trace_sorter.cc:17: In file included from /usr/include/c++/v1/algorithm:1712: In file included from /usr/include/c++/v1/memory:842: In file included from /usr/include/c++/v1/__algorithm/move.h:12: /usr/include/c++/v1/__algorithm/iterator_operations.h:100:5: error: static assertion failed due to requirement 'is_same::value': It looks like = your iterator's `iterator_traits::reference` does not match the return type = of dereferencing the iterator, i.e., calling `*it`. This is undefined behavior according to [input.iterators] and can lead to dangling reference issues at runtime, so we are flagging this. static_assert(is_same<__deref_t<_Iter>, typename iterator_traits<__uncvref_t<_Iter> >::reference>::value, ^=20=20=20=20=20=20=20=20=20=20=20=20 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~~~~~ /usr/include/c++/v1/__algorithm/iterator_operations.h:115:5: note: in instantiation of function template specialization 'std::_IterOps::__validate_iter_reference::Ite= rator &>' requested here __validate_iter_reference<_Iter>(); ^ /usr/include/c++/v1/__algorithm/sift_down.h:55:28: note: in instantiation= of function template specialization 'std::_IterOps::__iter_move::Iterator &>' requested here value_type __top(_Ops::__iter_move(__start)); ^ /usr/include/c++/v1/__algorithm/make_heap.h:37:14: note: in instantiation= of function template specialization 'std::__sift_down &, perfetto::base::CircularQueue::Iterator>' requested here std::__sift_down<_AlgPolicy>(__first, __comp_ref, __n, __first + __start); ^ /usr/include/c++/v1/__algorithm/partial_sort.h:39:8: note: in instantiati= on of function template specialization 'std::__make_heap &, perfetto::base::CircularQueue::Iterator>' requested here std::__make_heap<_AlgPolicy>(__first, __middle, __comp); ^ /usr/include/c++/v1/__algorithm/partial_sort.h:67:27: note: in instantiat= ion of function template specialization 'std::__partial_sort_impl &, perfetto::base::CircularQueue::Iterator, perfetto::base::CircularQueue::Iterator>' requested here auto __last_iter =3D std::__partial_sort_impl<_AlgPolicy>(__first, __mi= ddle, __last, static_cast<_Comp_ref>(__comp)); ^ /usr/include/c++/v1/__algorithm/sort.h:681:10: note: in instantiation of function template specialization 'std::__partial_sort, perfetto::base::CircularQueue::Iterator, perfetto::base::CircularQueue::Iterator>' requested here std::__partial_sort<_AlgPolicy>(__first, __last, __last, __comp); ^ /usr/include/c++/v1/__algorithm/sort.h:694:8: note: in instantiation of function template specialization 'std::__sort_impl::Iterator, std::__less>' requested h= ere std::__sort_impl<_ClassicAlgPolicy>(std::move(__first), std::move(__las= t), __comp); ^ /usr/include/c++/v1/__algorithm/sort.h:700:8: note: in instantiation of function template specialization 'std::sort::Iterator, std::__less>' requested h= ere std::sort(__first, __last, __less::value_type>()); ^ =20 ../../../../qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_p= arty/perfetto/src/trace_processor/trace_sorter.cc:51:8: note: in instantiation of function template specialization 'std::sort::Iterator>' requested here std::sort(sort_begin, events_.end()); ^ This turns out to be a problem with the iterator type in perfetto's CircularQueue class: its pointer and reference types are const, while they should not be. Upstream fixed this in https://github.com/google/perfetto/commit/c81e804f8, so apply a minimalistic version of it. --=20 You are receiving this mail because: You are the assignee for the bug.=