From nobody Sun Jan 29 15:06:12 2023 X-Original-To: freebsd-current@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 4P4ZQQ4PWSz3ck0Y for ; Sun, 29 Jan 2023 15:06:22 +0000 (UTC) (envelope-from qroxana@protonmail.com) Received: from mail-4027.protonmail.ch (mail-4027.protonmail.ch [185.70.40.27]) (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 "protonmail.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P4ZQP1Fr8z4Cvn for ; Sun, 29 Jan 2023 15:06:21 +0000 (UTC) (envelope-from qroxana@protonmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=protonmail.com header.s=protonmail3 header.b=t3d0eNIP; spf=pass (mx1.freebsd.org: domain of qroxana@protonmail.com designates 185.70.40.27 as permitted sender) smtp.mailfrom=qroxana@protonmail.com; dmarc=pass (policy=quarantine) header.from=protonmail.com Date: Sun, 29 Jan 2023 15:06:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1675004778; x=1675263978; bh=blnO0T5tId1E1rbtVd/lm1J6MT+ZsaJejCL0QL7UlGc=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=t3d0eNIP+nAOMsLzTE7wNLl1k4yYgAonc+RRJDIRUx7s4nf4eUbfcw2O4fsvL47Oj b48iW4UaSq7o+yV5Ggb8KSs2EvHGyJ+vXowHP0hwdJbyYNMRbScUFasqN5rg81tQz7 tQGoyfOuHCuI79663FXWkQS9eS0HXwV4V7zTAj8MS6Fw1oQNAUPSs9UhQA7l3e2BIg WrpGsmaJ8FOedGBj7IhND6ajgCYLlycmSxXjJdNJZJJ98rqzAeKkClXBBVn5CLv050 SNEgZn7r1602TIYMxhT546XO+zzpT/wV1JWcBtTDNlU7SZKWzKlPoAG+Zuus6WgUcF 1dEhR0cBLGRYg== To: "freebsd-current@freebsd.org" From: qroxana Cc: Dimitry Andric Subject: Re: buildworld failed after deleting /usr/obj Message-ID: <44ybMtpAl4lOcN0PqhC63MaFz0G7l0mD_6RBWLaFNqw7gs2uCbYRhxwcvOv5chBBPH3vSQetkVbwtxWZR14fJyWIMZZet8yU_yiMPa7J_yQ=@protonmail.com> In-Reply-To: References: <7cKQCx9PEwnnJE5MatS6g5KkKh5prIZTrTlqGL2RfM7Z4TDJGCfEATg9ejghBWDhx7WqDtVpxAA6wEisDAP2Y6c8g-ht2KbUW4YN0eek43g=@protonmail.com> <3CCFF1C8-D618-453F-8412-3D65F551C43C@FreeBSD.org> Feedback-ID: 29996633:user:proton List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [-2.92 / 15.00]; NEURAL_HAM_LONG(-0.99)[-0.987]; NEURAL_HAM_SHORT(-0.98)[-0.982]; DMARC_POLICY_ALLOW(-0.50)[protonmail.com,quarantine]; R_SPF_ALLOW(-0.20)[+ip4:185.70.40.0/24]; R_DKIM_ALLOW(-0.20)[protonmail.com:s=protonmail3]; MIME_GOOD(-0.10)[text/plain]; NEURAL_SPAM_MEDIUM(0.05)[0.050]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; RCVD_COUNT_ZERO(0.00)[0]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:62371, ipnet:185.70.40.0/24, country:CH]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[protonmail.com]; TO_DN_EQ_ADDR_SOME(0.00)[]; DKIM_TRACE(0.00)[protonmail.com:+]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FREEMAIL_FROM(0.00)[protonmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[185.70.40.27:from] X-Rspamd-Queue-Id: 4P4ZQP1Fr8z4Cvn X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N ------- Original Message ------- On Monday, January 23rd, 2023 at 1:44 PM, qroxana = wrote: > ------- Original Message ------- > On Monday, January 23rd, 2023 at 10:02 AM, Dimitry Andric dim@FreeBSD.org= wrote: >=20 >=20 >=20 > > On 23 Jan 2023, at 04:05, qroxana qroxana@protonmail.com wrote: > >=20 > > > It seems ${MAKEOBJDIR} was not created for usr.bin/clang/llvm-objcopy= . > > >=20 > > > --- all_subdir_usr.bin --- > > > --- objwarn --- > > > Warning: Object directory not changed from original /usr/src/usr.bin/= clang/llvm-objcopy > >=20 > > This is usually an indication that your source directory contains objec= t > > files, e.g. is "dirty". Run "make clean" from the top level, or clean u= p > > your source checkout with something like "git clean". > >=20 > > -Dimitry >=20 >=20 > I had tried it with a clean source directory and empty /usr/obj >=20 > # find /usr/src/usr.bin/clang/llvm-objcopy > /usr/src/usr.bin/clang/llvm-objcopy > /usr/src/usr.bin/clang/llvm-objcopy/llvm-objcopy.1 > /usr/src/usr.bin/clang/llvm-objcopy/Makefile >=20 > and "make buildworld" still ended with the same error. >=20 > In /usr/src/Makefile.inc1, the _NO_INCLUDE_COMPILERMK=3Dt option prevents= creating > the obj directories for the stuff in usr.bin/clang/. >=20 > 1098 _obj: > 1099 @echo > 1100 @echo "-------------------------------------------------------------= -" > 1101 @echo ">>> stage 2.2: rebuilding the object tree" >=20 > 1102 @echo "-------------------------------------------------------------= -" > 1103 ${+}cd ${.CURDIR}; ${WMAKE} _NO_INCLUDE_COMPILERMK=3Dt obj >=20 > > --- all_subdir_usr.bin --- > > --- objwarn --- > > Warning: Object directory not changed from original /usr/src/usr.bin/cl= ang/llvm-objcopy >=20 >=20 > This happens in stage 4.4, and there's no ${MAKEOBJDIR} directory created > for usr.bin/clang/llvm-objcopy >=20 It appears buildworld doesn't create the obj directory for usr.bin/clang/ll= vm-objcopy in stage 2.2 after this commit. commit adc3c128c6603054586a993d117e5dd808deac17 Author: John Baldwin AuthorDate: Fri Nov 18 20:12:28 2022 -0800 Commit: John Baldwin CommitDate: Fri Nov 18 20:12:28 2022 -0800 src.opts.mk: Require C++20 for C++ support. =20 libc++ requires C++20, so mark C++ (MK_CXX) as broken if the compiler does not support C++20. =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+=3DOPENMP __DEFAULT_NO_OPTIONS+=3DOPENMP .endif =20 +# libc++ requires C++20 +.if !${COMPILER_FEATURES:Mc++20} +BROKEN_OPTIONS+=3DCXX +.endif + .include =20 #