From owner-freebsd-arm@freebsd.org Fri Jan 22 23:24:06 2021 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2E3D84D8FAA for ; Fri, 22 Jan 2021 23:24:06 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic305-21.consmr.mail.gq1.yahoo.com (sonic305-21.consmr.mail.gq1.yahoo.com [98.137.64.84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DMwLr71v8z4Yfy for ; Fri, 22 Jan 2021 23:24:04 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1611357842; bh=CkQArQeOUeXmHlLlEcQakZVnbOZ0Re8YbgoIXwQj9wz=; h=Subject:From:Date:To:From:Subject:Reply-To; b=T1RPxGrim6MCCL6QYA7DypNHPWA1793MGz02jJ9jq+LjvZocSlKq5UTJFc30nBWwgtrNqby8OFChnSH/KwID6fo6SfO+oStfJCo9kF91oAyde+N0E9i/cuRvIQ1F1LCyY4anbr/QRzjbC+uv7HHhVS1TqNccnNZbH3ffkuWZrisGZ/NxM3Exo2tdRFIPw+8KVXLl7/q+OnYCQfyGUklgUPxHwe1pbKaUvzh9n/ORMYPRnmV3Conv0cXjdxRJLpGa3yITUswO1h13QLsTu3ma08GexLyQs4AfgDxNxkYNQGdsUeyxXDASYgkFWc1FkpaIW6wE+yLrxAae7ZzwHThdOA== X-YMail-OSG: _dtlqd0VM1lDcgbpXwMO26_wRPOneKdRFdtn9VWorfY5fgZjf7wi2ujPk59YSIN WqgRAZRirz.lTuzcf7N1tmtu1pO3R.Z.13SO6cfkt.spVxkgWRIGsdorVEBsX9l98me8SQzGjoD1 1lUS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2QbFOGVT3OBLSOhi__MS7JvWGF_7.P6CrQVfVWJxpCKwxN4XBGhTtSAYrvoQYPksA jQ6zlHwTQVa9TjJ_5b1dcVapDZR48R3jrZEGuC9buucW40zbRDG7gjszW0DuoTTWzB2aGbxTgg_h mNa0vMOCy40NJyuTmhX.wd0eRzL3GvKxuPwS.kJlDFZq8e2qGXfq.cxPJKVtPF0To6s_RVhWQubX kzHHO5jswC_5m64oHmBSkCfba0RwzK.nQztTyXgJ4IACxCVxoFtlBDy7W_.GeU1rr0lsSrOwZwdU 0zeQI7UWPCwi6hutYreISj.Vk0nqTJD_TfIlHmsYCpg3FXRNOdLkZaQmNPjvo9idTLJgBMug6mJJ jpwecoxXBRWJMGsJnFUFS0ccF Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.gq1.yahoo.com with HTTP; Fri, 22 Jan 2021 23:24:02 +0000 Received: by smtp402.mail.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 72a8285c844065bddaa4d7bf67ed8023; Fri, 22 Jan 2021 23:24:01 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\)) Subject: Re: Needless work in buildworld Was: Re: Silent hang in buildworld, was Re: Invoking -v for clang during buildworld From: Mark Millard In-Reply-To: <20210122224656.GA76907@www.zefox.net> Date: Fri, 22 Jan 2021 15:23:59 -0800 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <2903491E-7DE7-4F17-B515-120BA447B8B3@yahoo.com> References: <00104FAD-E32B-4DDE-80DD-FCEF14CEC06B@yahoo.com> <056845FE-7131-4951-96AF-805D07F7BE0D@yahoo.com> <20210121023358.GA58854@www.zefox.net> <8D0C2A4C-B616-47B9-864E-D846A6EBA3D6@yahoo.com> <20210122011535.GA66611@www.zefox.net> <655C6BAA-8B10-4130-A5C9-EDED6906207D@yahoo.com> <36A2E015-78DF-40AB-BF53-FB3D26FA5AAC@yahoo.com> <20210122224656.GA76907@www.zefox.net> To: bob prohaska X-Mailer: Apple Mail (2.3654.40.0.2.32) X-Rspamd-Queue-Id: 4DMwLr71v8z4Yfy X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.50 / 15.00]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RBL_DBL_DONT_QUERY_IPS(0.00)[98.137.64.84:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_ZRD(0.00)[98.137.64.84:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.64.84:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.64.84:from]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-arm] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jan 2021 23:24:06 -0000 On 2021-Jan-22, at 14:46, bob prohaska wrote: > On Fri, Jan 22, 2021 at 01:53:06PM -0800, Mark Millard wrote: >>=20 >> I made a discovery of an unfortunate property of META_MODE relative >> to minimizing builds with installworld invovled between builds as >> things are. See: >>=20 >> = https://lists.freebsd.org/pipermail/freebsd-current/2021-January/078488.ht= ml >>=20 >> for details. >>=20 > Is this simply because the "target" is timestamped at installation, = while the > object files are dated at creation? If so, would some sort of checksum = be able > to distinguish meaningful changes? Would it be computationally = worthwhile? The files (programs) were used during the activity that generated the = prior build of the target. The worry is that the updated programs might have differing results from older ones and so the new timestamps lead to rebuilding. The worry is just unlikely to be an actual problem for many = of the particular programs. It would be good if META_MODE could ignore those programs that are in = the legacy area and are unlikely to cause the output to vary in some significant way. > More broadly, I've been surprised to see lots of files associated with = foreign > architechtures reported in self-hosting buildworld logs on the Pi2/3. = Things > with mips, ppc and i386 in the pathname. The log always reports = building "cross=20 > tools" when it's compiling for itself, which puts an odd meaning on = the term "cross".=20 > Are cross tools and object files for alien hardware really needed in = such a case? Clang and the llvm tools are by default built to be cross compile capable. You could compile targeting powerpc64 while building on armv7, for example. (Gcc had had separate compilers for such.) In an earlier message I showed my src.conf like file that I use that included turning off generating a clang that can do so, limiting it to arm (including aarch64). This is not the same as the "cross tools" stage issue but does get rid of some of the build activity for clang. It also does not change all llvm tools to completely avoid other processor families. I'll note that building main (14-CURRENT) armv7 from stable/13 armv7 or 13-CURRENT armv7, is an example of "cross tools" being involved. Cross-tools span more issues than you might initially think of, such as some differing defaults for the host targeted files (old context) vs. the new context's files. Thus the: "/usr/src/Makefile.inc1" line 335: SYSTEM_COMPILER: libclang will be = built for bootstrapping a cross-compiler. that is involved. Example difference in context in an explicit notation (amd64 context example, not armv7): -target x86_64-unknown-freebsd13.0 -target x86_64-unknown-freebsd14.0 The processor family is not what is varying for those. >> I'll note that stable/13 now exists and git's main is now 14-CURRENT. >> Unfortunately, it seems that main (14-CURRENT) will not get the >> weekly snapshot builds that are reported at any: >>=20 >> = https://lists.freebsd.org/pipermail/freebsd-snapshots/202*-*/thread.html >>=20 >> and go somewhere below (for example): >>=20 >> http://ftp3.freebsd.org/pub/FreeBSD/snapshots/ >>=20 >> until sometime after after 13.0-RELEASE : only stable/{11,12,13} >> likely will, from what I'm told. Also, ci.freebsd.org is not >> building main (14-CURRENT) yet. stable/13 builds are non-debug >> builds. >>=20 >> https://artifact.ci.freebsd.org/snapshot/ being filling in has >> not caught up with 13.0-STABLE , stable/13 , 14.0-CURRENT , or >> main yet. >>=20 =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)