On 11/18/22 8:13 PM, John Baldwin wrote:
The branch main has been updated by jhb:
URL:
https://cgit.FreeBSD.org/src/commit/?id=adc3c128c6603054586a993d117e5dd808deac17
commit adc3c128c6603054586a993d117e5dd808deac17
Author: John Baldwin <[email protected]>
AuthorDate: 2022-11-19 04:12:28 +0000
Commit: John Baldwin <[email protected]>
CommitDate: 2022-11-19 04:12:28 +0000
src.opts.mk: Require C++20 for C++ support.
libc++ requires C++20, so mark C++ (MK_CXX) as broken if the compiler
does not support C++20.
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D36893
This is a bit of a band-aid for now that will at least help us get
the GCC 9 builds green again. I have amd64 world + GENERIC building with
GCC 12 as of today on a branch and will try to get that merged soon and
then switch the Jenkins job over to GCC 12.
GCC 12 requires a couple of not-quite-trivial fixes. One is that the
libirdma version script is broken still from when it was first imported
and binutils chokes on it. It's probably a bug in lld that it doesn't
reject it. The second is arguably a bug in GCC that requires a one-line
change in libc++'s <type_traits> header. There is an upstream review
for LLVM that will hopefully land soon so that I can get the green
light for merging the fix into the in-tree LLVM.
--
John Baldwin