Re: buildworld failed after deleting /usr/obj
- In reply to: qroxana : "Re: buildworld failed after deleting /usr/obj"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 31 Jan 2023 12:58:25 UTC
----- Original Message ------- On Sunday, January 29th, 2023 at 3:06 PM, qroxana <qroxana@protonmail.com> wrote: > It appears buildworld doesn't create the obj directory for usr.bin/clang/llvm-objcopy in stage 2.2 after this commit. > > commit adc3c128c6603054586a993d117e5dd808deac17 > Author: John Baldwin jhb@FreeBSD.org > > AuthorDate: Fri Nov 18 20:12:28 2022 -0800 > Commit: John Baldwin jhb@FreeBSD.org > > CommitDate: Fri Nov 18 20:12:28 2022 -0800 > > 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 > > diff --git a/share/mk/src.opts.mk b/share/mk/src.opts.mk > index f69208f21556..5089a034350d 100644 > --- a/share/mk/src.opts.mk > +++ b/share/mk/src.opts.mk > @@ -348,6 +348,11 @@ __DEFAULT_YES_OPTIONS+=OPENMP > __DEFAULT_NO_OPTIONS+=OPENMP > .endif > > +# libc++ requires C++20 > +.if !${COMPILER_FEATURES:Mc++20} > +BROKEN_OPTIONS+=CXX > +.endif > + > .include <bsd.mkopt.mk> > > > # Sorry for the noise, this has been fixed by this commit. commit ac4c695ad61e81d00cff2a03202a4afe94a92513 Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: Wed Nov 16 09:20:39 2022 -0500 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: Thu Jan 26 21:13:16 2023 -0500 Retire WITHOUT_CXX option Several important base system components are written in C++, and the WITHOUT_CXX option produced a system that was not fully functional. Just accept this, and remove the option to build without C++ support. This reverts commit adc3c128c6603054586a993d117e5dd808deac17. Reviewed by: brooks, kevans, jhb (earlier) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D33108