From nobody Mon Oct 28 19:56:41 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 4Xckfz0hQyz5bk7X; Mon, 28 Oct 2024 19:56:43 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xckfy6bTcz46f9; Mon, 28 Oct 2024 19:56:42 +0000 (UTC) (envelope-from jhb@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730145402; 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: in-reply-to:in-reply-to:references:references; bh=5N0TcP0yjuO0Tsoah9cy9dVHEUuHBZt4Mu76IQMt6vM=; b=KvjL8CbU65jILBO8ucG9ctKmfF7ax8dVMOeiLDfJTaCoPWXpGGmmWEuDZB0D3j7AEXvLlq ujBq19fd7WkwC5xjR2FPAU1M1+VBRUAjb5Iy30hUGE7Nk8AxT69JUrf4keJUQEpzF7Uqr3 HFVM86TFOhriyCWll74FqmP8cnaMiXu4mQEA4ahvOmJBUwTRLeRQF0jwp2dEIWbFSSN8I9 6qk3ZhwUaKeaKkkqnCigpFpmgmmc+KBQFQaXsbVHpk3eFJfja77mJOBaN4AM0ZYABp7W/m 9LPjTDBMP4v1ufeu+z0OHMNBcYai+HxHtwgmCN0CYlw+wPSaDIdFC8qIcJJ+6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730145402; 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: in-reply-to:in-reply-to:references:references; bh=5N0TcP0yjuO0Tsoah9cy9dVHEUuHBZt4Mu76IQMt6vM=; b=Pi1B9XPloxj/yz2FA7W+vijXgawaTjXJ5a6gXxHHt/wG2/8xU5FE50e5rnM30QBgu30YTh zU94qXPCulm4XAXG5H9tUtPbzJS2RbYSCZ0iWqm9OqzfdthFVemvKFeC1iHGtl7pRX4ABY VV8v3CG4FDC38E8mcW8RAnH01RcphP8vcPx6nwRUhsA0PuV+MSolNQbdydTBShapO73fsE BXttUhvzosCfnc2KlNOTKcUz9X00OoxgqRSgHxV30Wm7cMVz19oDLKF2TvHjMG1rg4rc7N InGEYcB6byycNXN/SzDBm+mD4AwcI9UYUPw833xtO+dnKanFMpdzh/VaO0NZKA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730145402; a=rsa-sha256; cv=none; b=Sn449bK8aDUFChZPF/7U6L+WTH5uGGeuuDMGyTvRlsSaELLRv3lOIGk4wzEAoHVcAeiDGK MJYSFAtbGF/1Ke7MV1Wo7X1HVGv9PeYhmRUI8rxvAoe609sM118ld3V17sLQ3TtWw++8x8 sIr6/DKSVvfffnBwlylKyfVZPwyvMxcrgUghEWsrHM8RS8++UxRuWj4x6Ax6aa1RPGPN53 7AfqRV7m16nkSJt5OgMUQ/D4L91+PeRU22rBgrFhR/E0/KZoJ7cQl67rqX2MveFBZ/0cYd fFNU8AU7I6zJ6h5BQLb75Q8wcZEuvqB+u/DbvYQ1dEgioe+Lef27r0hTRGGCWw== Received: from [IPV6:2601:5c0:4200:b830:b03a:9ceb:fdcd:de42] (unknown [IPv6:2601:5c0:4200:b830:b03a:9ceb:fdcd:de42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Xckfy4mZQzQhm; Mon, 28 Oct 2024 19:56:42 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Message-ID: <4af71fad-407d-48f2-aec4-f6c50fa72c1f@FreeBSD.org> Date: Mon, 28 Oct 2024 15:56:41 -0400 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 User-Agent: Mozilla Thunderbird Subject: Re: git: bc9e19dce0ab - main - Fix buildworld with gcc 12 after llvm-19 import Content-Language: en-US To: Dimitry Andric , src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org References: <202410251608.49PG8pSI044793@gitrepo.freebsd.org> From: John Baldwin In-Reply-To: <202410251608.49PG8pSI044793@gitrepo.freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 10/25/24 12:08, Dimitry Andric wrote: > The branch main has been updated by dim: > > URL: https://cgit.FreeBSD.org/src/commit/?id=bc9e19dce0abee80750e6fa04aaf979873bfe0d2 > > commit bc9e19dce0abee80750e6fa04aaf979873bfe0d2 > Author: Dimitry Andric > AuthorDate: 2024-10-25 16:07:59 +0000 > Commit: Dimitry Andric > CommitDate: 2024-10-25 16:08:32 +0000 > > Fix buildworld with gcc 12 after llvm-19 import > > Unfortunately gcc 12's is not yet capable of compiling all of libc++ > 19's C++23 code, which results in errors similar to: > > /usr/src/freebsd/src/contrib/llvm-project/libcxx/include/__algorithm/ranges_contains.h:41:3: error: 'static constexpr bool std::__1::ranges::__contains::__fn::operator()(_Iter, _Sent, const _Type&, _Proj)' must be a non-static member function > 41 | operator()(_Iter __first, _Sent __last, const _Type& __value, _Proj __proj = {}) { > | ^~~~~~~~ > /usr/src/freebsd/src/contrib/llvm-project/libcxx/include/__algorithm/ranges_contains.h:48:3: error: 'static constexpr bool std::__1::ranges::__contains::__fn::operator()(_Range&&, const _Type&, _Proj)' must be a non-static member function > 48 | operator()(_Range&& __range, const _Type& __value, _Proj __proj = {}) { > | ^~~~~~~~ > > Until we can get rid of gcc 12, work around this by making it compile > libc++ in C++20 mode instead. > > NOTE: The resulting libc++ library will not be C++23 compatible! Please > try to avoid shipping it, and use gcc 13 instead, if you must use gcc. > > PR: 280562 > MFC after: 3 days In this case I think we probably should drop support for GCC 12 for main. Just let me know when you are thinking of merging libcxx 19 to stable branches so I can ensure they build with GCC 13/14 and get our CI jobs updated before then. -- John Baldwin