From nobody Sun Oct 27 10:59:05 2024 X-Original-To: dev-commits-src-all@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 4Xbtn60Jtdz5ZfpQ; Sun, 27 Oct 2024 10:59:06 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xbtn5689Nz4nLJ; Sun, 27 Oct 2024 10:59:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730026745; 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=gykHNhzQP2jn/VPj3/8Ki2i9TP0tIt3rEqaJIX6BfjI=; b=liwyIEyRXGbW0rBgV4FWtay69jYzdPpEDM2+OVSbpa6RHs0TmeG2N4f06dEMb//dO/FppX WLJRWGJdxSpP7k021W3sf0bwWDjfCr3enNs/aYyMufy7xlmKGa5qTLkkb6lfj2r8eOTPVQ +fKbRJM848CVd6oah9lRZNwwi0IrsLn9FRtHCABz3wQ+HJUUGLMTRpxGeU4txaqSLFJ8eo TaDSMqIDulDZ4m4XMQtIgFeP0eEyO3Pddy5By4BfvWBw7tbJHMuXE2agI9aj65LHyY/t5Z CpJYv49HshOSIyVuQ5qCE55tuSghYu6zwjp2GZoS4dsLzmyU6gkYyR2KoXSVwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730026745; 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=gykHNhzQP2jn/VPj3/8Ki2i9TP0tIt3rEqaJIX6BfjI=; b=lNWVy6hatXhLb+stfcCSqbS1q2iQ0RQ6gxBDVaGKqsdrUDgrOZdAexW6Z+KHjf9NB5jSbx KmIpkInvtDicN/OpENnqjWpEVR+ujnZuUt9NihXkHsWpt8yAmiG4pdqDnLyLREZh8pC/Pw ZWFJtFjw2FLYT99ReSAFn34vLoDLuOxcgaod8i9xos0TexZtUPqZj7gm0zmoEHYaelHtru vBBlrlehYzqm8CmWpde2ixvyFQI6V4HkYPJUlMFNAEiDbBn8xpPUWUIbXyvc7fBIP1PFa0 1dySR6iSf55/ncrPv/RxIyct3GKejJ7ILgODHU/eE/xI/Vdz5v6jA2l+lt1WFA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730026745; a=rsa-sha256; cv=none; b=dPrEHaGSEZbFtZVL20RwjhOMwgySAEluK31pvY40a0jgfDNJBheQYxZxE9vPggeucZWwKQ 1IsWMBYcEwBxau2PoaBuenmdMR/qcAcxQ4AkXs5wnIPm2NRYsybg+w37Muzr469mQaV+PR ZoERw7fi05R1X2dI2u2R7Uie7S+ze1wycu36mBa+/HYtr5OwLz7o/w1hynSXYLlfGgG8mz OjGWCwVgzb/IPvVS4aszjBuCUY81xiH3yqjPHTpLToOMIt5Z5OMTYuekQ38Fd7T8Hl1fDI 9NUPmS+sVak8WrRj7tT/2XQMCfpNuM3kA6p0tG2GC0/BbLL5Uuf+Hma6QXPDOA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xbtn55Ykpzrc6; Sun, 27 Oct 2024 10:59:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49RAx5ha009033; Sun, 27 Oct 2024 10:59:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49RAx5ZA009030; Sun, 27 Oct 2024 10:59:05 GMT (envelope-from git) Date: Sun, 27 Oct 2024 10:59:05 GMT Message-Id: <202410271059.49RAx5ZA009030@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 737111920ce3 - stable/13 - Fix buildworld with gcc 13 after llvm-19 import List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 737111920ce3ccd82d93af765e38e51f3a2d359d Auto-Submitted: auto-generated The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=737111920ce3ccd82d93af765e38e51f3a2d359d commit 737111920ce3ccd82d93af765e38e51f3a2d359d Author: Dimitry Andric AuthorDate: 2024-10-24 21:42:36 +0000 Commit: Dimitry Andric CommitDate: 2024-10-27 10:58:37 +0000 Fix buildworld with gcc 13 after llvm-19 import It turns out the new libc++ 19 headers result in a -Werror warning from gcc 13: In file included from /usr/obj/usr/src/freebsd/src/amd64.amd64/tmp/usr/include/c++/v1/__memory/shared_ptr.h:31: /usr/obj/usr/src/freebsd/src/amd64.amd64/tmp/usr/include/c++/v1/__memory/uninitialized_algorithms.h: In instantiation of 'constexpr void std::__1::__uninitialized_allocator_relocate(_Alloc&, _Tp*, _Tp*, _Tp*) [with _Alloc = allocator >; _Tp = basic_string]': /usr/obj/usr/src/freebsd/src/amd64.amd64/tmp/usr/include/c++/v1/vector:1052:42: required from 'void std::__1::vector<_Tp, _Alloc>::__swap_out_circular_buffer(std::__1::__split_buffer<_Tp, _Allocator&>&) [with _Tp = std::__1::basic_string; _Allocator = std::__1::allocator >]' /usr/obj/usr/src/freebsd/src/amd64.amd64/tmp/usr/include/c++/v1/vector:1469:31: required from 'void std::__1::vector<_Tp, _Alloc>::reserve(size_type) [with _Tp = std::__1::basic_string; _Allocator = std::__1::allocator >; size_type = long unsigned int]' /usr/src/freebsd/src/contrib/googletest/googletest/src/gtest.cc:795:27: required from here /usr/obj/usr/src/freebsd/src/amd64.amd64/tmp/usr/include/c++/v1/__memory/uninitialized_algorithms.h:645:21: error: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing to an object of type 'std::__1::__remove_const_t >' {aka 'class std::__1::basic_string'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead o[-Werror=class-memaccess] 645 | __builtin_memcpy(const_cast<__remove_const_t<_Tp>*>(__result), __first, sizeof(_Tp) * (__last - __first)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/obj/usr/src/freebsd/src/amd64.amd64/tmp/usr/include/c++/v1/__system_error/error_category.h:15, from /usr/obj/usr/src/freebsd/src/amd64.amd64/tmp/usr/include/c++/v1/__system_error/error_code.h:18, from /usr/obj/usr/src/freebsd/src/amd64.amd64/tmp/usr/include/c++/v1/__ostream/basic_ostream.h:16: /usr/obj/usr/src/freebsd/src/amd64.amd64/tmp/usr/include/c++/v1/string:752:7: note: 'std::__1::__remove_const_t >' {aka 'class std::__1::basic_string'} declared here 752 | class basic_string { | ^~~~~~~~~~~~ Since this is all benign, turn off errors for -Wclass-memaccess. PR: 280562 MFC after: 3 days (cherry picked from commit a3a88aa132605c5d42153a419c0e129296dec467) --- share/mk/bsd.sys.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index e1afc641cdaa..83d3004adf90 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -221,6 +221,7 @@ CWARNFLAGS+= -Wno-error=aggressive-loop-optimizations \ -Wno-error=restrict \ -Wno-error=sizeof-pointer-memaccess \ -Wno-error=stringop-truncation +CXXWARNFLAGS+= -Wno-error=class-memaccess .endif # GCC 9.2.0