From nobody Thu Oct 24 22:09:52 2024 X-Original-To: dev-commits-src-main@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 4XZKpS506Yz5Zvyd; Thu, 24 Oct 2024 22:09:52 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XZKpS4T2Gz4Crf; Thu, 24 Oct 2024 22:09:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729807792; 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=EDAIE3S36S9IvulEa24L6/uc6gOovQPzqoqV3sxhLzM=; b=BsEw1DC8OJSareKhQZyTAX7K285M54vWgPC0lk31mrqF3kzZfmulzthrmeas+ToO0aBU7M euRScmUnWP15DNkb8rTgMOcmOFFGNJrJgPn/W0rB0Du9ET+ALo6XIDubgwTlGXT9g/QX9M aA4sn0iMUgOqkWxUtc5F678hScTzHXW3T0XoR/evx6oQods8s4VV6c9dvVzizuVSwU13c3 gwBx2TG6xu81RlsG8Dzjumw2SGTz3QIuwwVxSL5UE00IfZCvCS637Wd8QDfUEZmntwA2EY piiw/b+vOzTdQ8Xr2v01bJxY3YRdsxbOVDttOEy7GDL8L2iXZt/KHDMnS40YWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729807792; 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=EDAIE3S36S9IvulEa24L6/uc6gOovQPzqoqV3sxhLzM=; b=wDj0Wmi7pNvLaM+sywreaMhqRllmYKgrx7ZG+3+gEOT4Cugnq//OHUfzysXjnPHQ2q0xYo 3C2x0zPKk2hsNlWDGCM9Im/gzzmalikp4DdG9RpWJnKUPoSlN7o27YWbjIA8lBx0vxtDrx 9hbzmh5C+boQFuV08mhO8KMdU1EBr1m2t2HkQ33GtdjQtFG3RATSbe4e/QIBHVgtCrjACZ Wo1Bf0FKQ0DI3uO0Zq3AuYy4byi0K0PxL32978C6EirMyytNXO0QJNNmRXrtnzjekfMbFe FST6YUdGFTUTTheKvjdfKFwVx8VUOz/5/E4OI8H+CYYuOSnoRxCF3D/F7D8jfw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729807792; a=rsa-sha256; cv=none; b=C+j50vWvqaa4En+ZG1nFaqQSpc96UEY+Bj3HsEsUI3Wa3zbN4Rfq8sMlhMwmb9yZorQ1Xe KS1ENvpw5WaAZXpHzkItTvUvVtGBj9TSYQBChAvtdUzji4/zpWhrcvkLeGogLQb+6GC297 BgicM5YGli5EEtvPVud3S9bT8mSh0Ck5E033+/otE6GkydycLWDUCbHort1EJoAMtINe61 kkqYT1D2RGEO+/KPzMzyuYDEsVz1+WabB6oq+csa50PSKXLuVuuMYhCVMa8vGpVGJcHdaA JJhrOvnplBHyPUk54xdj1y6e7WJDeRUinNECYKDoipNILq7QWqNKF5dcnJjo4A== 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 4XZKpS44Qxz10nt; Thu, 24 Oct 2024 22:09:52 +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 49OM9qJ4038121; Thu, 24 Oct 2024 22:09:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49OM9qsH038118; Thu, 24 Oct 2024 22:09:52 GMT (envelope-from git) Date: Thu, 24 Oct 2024 22:09:52 GMT Message-Id: <202410242209.49OM9qsH038118@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: a3a88aa13260 - main - Fix buildworld with gcc 13 after llvm-19 import List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: a3a88aa132605c5d42153a419c0e129296dec467 Auto-Submitted: auto-generated The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=a3a88aa132605c5d42153a419c0e129296dec467 commit a3a88aa132605c5d42153a419c0e129296dec467 Author: Dimitry Andric AuthorDate: 2024-10-24 21:42:36 +0000 Commit: Dimitry Andric CommitDate: 2024-10-24 22:09:33 +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 --- 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 1934a79a5427..63774e857167 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