Date: Sun, 27 Oct 2024 10:57:23 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 280562] [exp-run] Against llvm-19-update branch on GitHub Message-ID: <bug-280562-7788-d0uEYKDNoV@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-280562-7788@https.bugs.freebsd.org/bugzilla/> References: <bug-280562-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280562 --- Comment #98 from commit-hook@FreeBSD.org --- A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D6fb9a8e758449b2b5502b18a1c43f5468= 8830bc8 commit 6fb9a8e758449b2b5502b18a1c43f54688830bc8 Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2024-10-24 21:42:36 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> 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/sh= ared_ptr.h:31: =20=20=20=20=20 /usr/obj/usr/src/freebsd/src/amd64.amd64/tmp/usr/include/c++/v1/__memory/un= initialized_algorithms.h: In instantiation of 'constexpr void std::__1::__uninitialized_allocator_relocate(_Alloc&, _Tp*, _Tp*, _Tp*) [wi= th _Alloc =3D allocator<basic_string<char> >; _Tp =3D basic_string<char>]': =20=20=20=20=20 /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 =3D std::__1::basic_string<char>; _Allocator =3D std::__1::allocator<std::__1::basic_string<char> >]' =20=20=20=20=20 /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) [wi= th _Tp =3D std::__1::basic_string<char>; _Allocator =3D std::__1::allocator<std::__1::basic_string<char> >; size_type =3D long unsi= gned int]' /usr/src/freebsd/src/contrib/googletest/googletest/src/gtest.cc:795:2= 7:=20=20 required from here =20=20=20=20=20 /usr/obj/usr/src/freebsd/src/amd64.amd64/tmp/usr/include/c++/v1/__memory/un= initialized_algorithms.h:645:21: error: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writ= ing to an object of type 'std::__1::__remove_const_t<std::__1::basic_string<cha= r> >' {aka 'class std::__1::basic_string<char>'} with no trivial copy-assignme= nt; use copy-assignment or copy-initialization instead o[-Werror=3Dclass-memacc= ess] 645 |=20=20=20=20 __builtin_memcpy(const_cast<__remove_const_t<_Tp>*>(__result), __first, sizeof(_Tp) * (__last - __first)); |=20=20=20=20 ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/obj/usr/src/freebsd/src/amd64.amd64/tmp/usr/include/c++/v1/__system_er= ror/error_category.h:15, from /usr/obj/usr/src/freebsd/src/amd64.amd64/tmp/usr/include/c++/v1/__system_er= ror/error_code.h:18, from /usr/obj/usr/src/freebsd/src/amd64.amd64/tmp/usr/include/c++/v1/__ostream/b= asic_ostream.h:16: =20=20=20=20=20 /usr/obj/usr/src/freebsd/src/amd64.amd64/tmp/usr/include/c++/v1/string:752:= 7: note: 'std::__1::__remove_const_t<std::__1::basic_string<char> >' {aka 'cla= ss std::__1::basic_string<char>'} 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(+) --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-280562-7788-d0uEYKDNoV>