From nobody Sun Oct 27 10:56:37 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 4XbtkG2Lpwz5ZfvS; Sun, 27 Oct 2024 10:56:38 +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 4XbtkG1rGVz4msp; Sun, 27 Oct 2024 10:56:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730026598; 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=5ZTSE4xiITkFBFKM96lycZIpNLZc1ws2a/mJ4aeRRGI=; b=oS8YgHIiFWD3xiAdrpPdLjZe8AHVoF9FOr+6+lQpMsUO+1VDRU+cvzmdWqHVt+uW+zRi6v GKhw/345zhZGwwYl2T+niIXpTQQqHLGFvb5VpcXAId79Sb0+rF/OCguGUNlIZrlhxDG0pu N/XoKQmjFNmSskyHD5BlRk4N6V99Ex7PmY7S8qm+0z0h5QKraU8cCHs4zTz6a+g+mljiEB b9CN8ZkvU27rDtFTN4vmouOkCCWA0eVagU0Zf53P/E/gMYYN3PtWVSDt9DJGVB0YUeZY05 xT065zabbZiu2gciwgAe51nCnCiLiphCCRCcLxO47Rb8YFyYJsXNECPX2ysBPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730026598; 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=5ZTSE4xiITkFBFKM96lycZIpNLZc1ws2a/mJ4aeRRGI=; b=oGlWLUWWW745uCcxDpnAl6t1dqV1DHQAR8UyR9Axh5Tax0n+YlmYjliX9zHagfnJN1zyPJ mtpZOg4k10J6INogqN8tFo7uOvoPq+piq/omTJIteh5jLTIxh3lduLr7hqKk/WDkTWAIpW M9f+xl/Uqn7rAm6GwG3KI3da4IKqQEsk63/X4nPnW2cWUYzm64uk42Gr3RNKjHnhQhzysf betUQy0MylLugVdqwegGsmpYW11fafb7utygifXwv+1sEe12Iui7yUpWHlaMcgTTFJzmw0 qPX2al5WVFkKpiRzKIV0x9iKhFkN7F52RbRb3mpNmyNj4OcZXdiJ0cvZ5Hdf3A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730026598; a=rsa-sha256; cv=none; b=InUKsSjIS0dGtinyHhbkKkeTLZlJqng4ooTqLV8DxRsCKi/uAKE9JOjFcNLfOZ+Ty1+Fjn GCnYFIhqX0YpSlueMy/RXcdTVBwGRq+0CnOsJH/fiX3tdjGVKyHMF/FF7vHP2kF5FZrpzN eKwzYRbIXSHW9wCcsllrlcs3frPboAcr2kzPg0kWDQnGAKEp7yD8aXdeYI/28WRW7WdKFR fzDNd6d+HUGhpz1fnTiEULOFCiHE9jGwDpW6bG3jUjnL4q6wV5pI9WEM8TQft2KgPoi1px JJ3U7iNTRQmLoBgzDpxRCxY50FAciAiDwxLMpKKo6GtAYkB6uXrhXK2v7Yp6Mw== 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 4XbtkG0Zvkzrw1; Sun, 27 Oct 2024 10:56:38 +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 49RAubBr008118; Sun, 27 Oct 2024 10:56:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49RAubt3008115; Sun, 27 Oct 2024 10:56:37 GMT (envelope-from git) Date: Sun, 27 Oct 2024 10:56:37 GMT Message-Id: <202410271056.49RAubt3008115@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: 6fb9a8e75844 - stable/14 - 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/14 X-Git-Reftype: branch X-Git-Commit: 6fb9a8e758449b2b5502b18a1c43f54688830bc8 Auto-Submitted: auto-generated The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=6fb9a8e758449b2b5502b18a1c43f54688830bc8 commit 6fb9a8e758449b2b5502b18a1c43f54688830bc8 Author: Dimitry Andric AuthorDate: 2024-10-24 21:42:36 +0000 Commit: Dimitry Andric CommitDate: 2024-10-27 10:53:18 +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 7d0e632973e4..a1be8a8a2225 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -217,6 +217,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