From nobody Sun Aug 13 19:07:30 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 4RP6VG6pTbz4q31q for ; Sun, 13 Aug 2023 19:07:34 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RP6VG58d0z3NbC for ; Sun, 13 Aug 2023 19:07:34 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-3fe5c0e587eso37009925e9.0 for ; Sun, 13 Aug 2023 12:07:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691953652; x=1692558452; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=R48JpoNpPvC5IGA22tRRiGn37CO7OLfIb4rgTnQSyQk=; b=kR0FzcS9UZzUKX5v/rrDYDNeX3iqPnWBvz2f86OQh1iMc5HyVcrSw/ia+7OEm6YgaT ftsREW7EyXJG4CDx8No1vdlgcK5IkByAt2wAXUGEPwOIhY6kmBSN1aK3dSmS2anr23Do d3b8c0vL1mJ3J4bDN1yKJY4Soh2y0LBc/7IlZDh74tgKVTRw4iA01Wir/yOwi/Q7Spgs eADukI2+q3PBktVrVQX0+QbSM7sFKOnwqnaRz6w0l7kNWGISlva0BN79TnHMYvdtWUoK ZOJ5oBRq6hwdQiPwwpdHZwTfgiqwDsGlygvHKie4lzzlZNW8cC5wF3Z0+kKTc2U2aBgy QPgA== X-Gm-Message-State: AOJu0Yw/kt2X4x18gIi1RfRtlkenZOwZFk9Qx5UdOYLqVvFab9Wgg0MW sbZpZiwxkTnYGaJiQSpwaD3yfxRsoeY+J5+PLBY= X-Google-Smtp-Source: AGHT+IEF24gUQtyeCnI7Y+6hVp/CUBValW8O08vxHP0Xr3SzRuadcvm6NkS1oK3f3Gxzj3c9+/sTtg== X-Received: by 2002:a05:600c:c4:b0:3fb:a100:2581 with SMTP id u4-20020a05600c00c400b003fba1002581mr6408021wmm.14.1691953652217; Sun, 13 Aug 2023 12:07:32 -0700 (PDT) Received: from Jessicas-MacBook-Pro.localdomain ([131.111.5.246]) by smtp.gmail.com with ESMTPSA id a19-20020a05600c225300b003fe1cdbc33dsm15041858wmm.9.2023.08.13.12.07.31 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 13 Aug 2023 12:07:31 -0700 (PDT) Received: by Jessicas-MacBook-Pro.localdomain (Postfix, from userid 501) id 03FDC6B76758; Sun, 13 Aug 2023 20:07:30 +0100 (BST) Date: Sun, 13 Aug 2023 20:07:30 +0100 From: Jessica Clarke To: Mark Millard Cc: freebsd-current@freebsd.org Subject: Re: /usr/sbin/etcupdate -D/usr/obj/DESTDIRs/main-CA7-chroot -s /usr/main-src -M TARGET_ARCH=armv7 ends up building dtc ! Message-ID: References: <3EF7CF20-BFC6-4A25-8806-633CB2A3C4D2.ref@yahoo.com> <3EF7CF20-BFC6-4A25-8806-633CB2A3C4D2@yahoo.com> <058C6DE2-BB5B-46CA-A9C0-D50293137A8D@yahoo.com> 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-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <058C6DE2-BB5B-46CA-A9C0-D50293137A8D@yahoo.com> X-Rspamd-Queue-Id: 4RP6VG58d0z3NbC X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] On Sun, Aug 13, 2023 at 02:23:54AM -0700, Mark Millard wrote: > On Aug 13, 2023, at 01:06, Mina Gali=C4=87 wrote: >=20 > > from IRC, i have learned this is working as designed: > > etcupdate without -B does a build. >=20 > My interpretation of what "build" referred to for > etcupate was way off. I've added the -B's that I > was not using before. >=20 > Thanks for the note! >=20 > > Also, jrtc27 recently made it so bootstrapping, because otherwise BUILD= _WITH_STRICT_TMPPATH doesn't work: https://github.com/freebsd/freebsd-src/c= ommit/d81da4c98328d4ee3fe4c0a85f6874a3c69a1afd >=20 > Yep: that added what leads to the dtc build. >=20 > I still wonder if etcupdate builds more than it needs to > for its specific pruposes when it does do a build: > building dtc in order to complete an etcupdate just seems > time/resource wasting. It does, but teasing apart what's needed for buildworld/buildkernel and just buildetc is a bunch of work, and better to have something that works inefficiently than something that doesn't work. Patches more than welcome to make it more efficient. However, I will note that 99% of the time -B is what people should be using, so it's not all that important (it's rare that you want to produce an etcupdate tree from sources that haven't just been built). Jess > But, at least I'm using -B in the future. >=20 > > Kind regards,=20 > > Mina Gali=C4=87 > >=20 > >=20 > >=20 > >=20 > > -------- Original Message -------- > > On 13 Aug 2023, 08:32, Mark Millard < marklmi@yahoo.com> wrote: > > I'd noticed that the etcupdate part of my build procedure has been taki= ng much time. So I looked with a ps -axldww while it was going on. An examp= le was: `-- /bin/sh /usr/sbin/etcupdate -D/usr/obj/DESTDIRs/main-CA7-chroot= -s /usr/main-src -M TARGET_ARCH=3Darmv7 `-- make TARGET_ARCH=3Darmv7 -DNO_= FILEMON buildetc `-- make -m /usr/main-src/share/mk -f Makefile.inc1 TARGET= =3Darm TARGET_ARCH=3Darmv7 buildetc `-- make -f Makefile.inc1 _bootstrap-to= ols MK_CROSS_COMPILER=3Dno MK_TOOLCHAIN=3Dno . . . `-- /bin/sh -e -c echo "= =3D=3D=3D> usr.bin/dtc (obj,all,install)"; cd /usr/main-src/usr.bin/dtc;. .= . install `-- make DIRPRFX=3Dusr.bin/dtc/ all `-- c++ -O2 -pipe -fno-commo= n -DNDEBUG . . . -c /usr/main-src/usr.bin/dtc/fdt.cc -o fdt.o More may buil= d. This is just what was present when I happened to look. Seems an odd thin= g to be happening for an etcupdate . I'll note that aarch64 targeting aarch= 64 (self hosted build) also spends notable time and is likely doing similar= ly. =3D=3D=3D Mark Millard marklmi at yahoo.com=20 > >=20 >=20 >=20 > =3D=3D=3D > Mark Millard > marklmi at yahoo.com