From nobody Sun Jul 4 01:59:25 2021 X-Original-To: freebsd-ports@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 38747CFF5A3 for ; Sun, 4 Jul 2021 01:59:34 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic310-22.consmr.mail.gq1.yahoo.com (sonic310-22.consmr.mail.gq1.yahoo.com [98.137.69.148]) (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 4GHX7T6TT4z3PlT for ; Sun, 4 Jul 2021 01:59:33 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1625363971; bh=QA3bafKd1rc5LQfvl3NzjSyeAJADi5GpQfh8JY7iEsg=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=di+Yry2RaRGYXrJXzW2QXlg5Y1ROC0hYDHPaxzqk/od/DUaxxnZf3+GJ60Jbz4rpeHsKuLuPE4m964lyDUvGrUW04S68pzlbn0fQ8KIuw4neokt0FcRqyRc6quiRCIzK1FEOZNNWiCvhFMeRpcMYxM+1egYvI1S05wRMS4MHukDdFXI6znBHkbQoI8ARk5Pi1hw5Ou6XRiZH/vUcLkebAKnVjTI+INWGtq2qya/mpGrlDIc3sGNsE9KykGKNbYoq6WMoAH13uIa3NHkzFTWGs5aenUdG0TXogNAcSYwP5Wh4UD+6z+27FgZ9j5mwwChxvkRzgNSReV8VlnZirV4csQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1625363971; bh=bou/tEKgkv3fPqILYGM1q9Sn0NBnElaqQ/zINA68Nde=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=JAZ+oPwzR+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wCQQ1 HmFvv.eq8ufVL2m7tuT1db0G0ipb2pYdxRd1mbrlg6RkNPs5ZG7bl2z62lIOXkAB.zTmxviy2gAE JWtX5Ym36pWvk9EOqtGJQv48ggzTib9PembHbfRc_hCmDlpF2FL632gnBE6x5SIG94Es_Bj09La9 .TPhOjgtXA0h1aavYgoMYKxN_AB8blKBDS_2ExmYmNtJK3Km2D1cBamTL3gLKn1XImqRKe__f_Eg SkdCq6we01YKDt9aYSFVH7DyNfbGi05cVZUSFi4CAIBoopmJE7gmhVArc..qLhnO6xqr5Qq761cM ZQ3Rb3oO3NIlUYRMnHf7EkRkpMB8Uplvd6nZ7jSMfB1D8XzyOv5hFGrQOUdvf0he4BV6KwW8Gufu gU.lA6gnCeCHHyR7gHN4.ovz_IM6XXwayHFrSfUZOG4HTbFtoZo0sfjmj2xYVYORZNxJvk7PO92X kDJ0evjJvxevAdwhOgQ1DD_6VAOKGSSeBqO6zN2nbBu2bZWBm8JN_hOT9RFB.qnbN16sgl98RWns .zyWPrFdOvqkIYpL41tNzLpz.ngRQjTI_cFU89_l_1P7qlaJH3CLtj5uIBD5RoqTHq24r8yw6u1S J0mjjOg6ssBohAwQezAaLGUgCfaNUV5WYQ56dLQois4B4.VWWxb..KGLie3FTzasr.x5Qq7WeOlZ b_Pv8fP6SXYAPFxm.1IMjQmd.0qJ1awpY_GpaMm0g6v3kNI04Pz1ujHo8C5fsyN2rPGc5qDpeQmM .MjB2ppqc_Lc_pNeSo2On9YoVwBR75OOxvVzNkdC313ph2BDC76Pkh4pFU.nLF.7EPnU4xvRI0fu ieUkn1TLqdhKS4.iLMAFnfZbfDroXXAYv8tFvlgcSouLD6_owO4uwE_QjwW5lPnhyYBs2_WPpHNX q0yI4klNCNsP.XZkhPD4E1J0iBRCFMUbqTw-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.gq1.yahoo.com with HTTP; Sun, 4 Jul 2021 01:59:31 +0000 Received: by kubenode501.mail-prod1.omega.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID f064424441da1b9b782cc4ad25a2f15f; Sun, 04 Jul 2021 01:59:26 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Subject: Re: llvm10 build failure on Rpi3 In-Reply-To: <20210703215445.GA18768@www.zefox.net> Date: Sat, 3 Jul 2021 18:59:25 -0700 Cc: FreeBSD ports , freebsd-arm , FreeBSD Toolchain Content-Transfer-Encoding: quoted-printable Message-Id: <2349FF7F-BA05-4854-AA34-B6298193B98C@yahoo.com> References: <43513842-6FC0-4A89-8F0C-9EB2B328A5ED@yahoo.com> <9CFE71E2-23C3-4072-A8AD-74EDB339A146@yahoo.com> <60EEFD09-97DE-4B4F-BAFD-61B96EF60E27@yahoo.com> <77A35ACF-275F-44C8-AEEE-4EFE5B5CBEA4@yahoo.com> <20210703182546.GA17871@www.zefox.net> <380184FB-6BA1-4C2D-9C6B-E249C2CF1317@yahoo.com> <20210703215445.GA18768@www.zefox.net> To: bob prohaska X-Mailer: Apple Mail (2.3654.100.0.2.22) X-Rspamd-Queue-Id: 4GHX7T6TT4z3PlT X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] Reply-To: marklmi@yahoo.com From: Mark Millard via freebsd-ports X-Original-From: Mark Millard X-ThisMailContainsUnwantedMimeParts: N On 2021-Jul-3, at 14:54, bob prohaska wrote: > On Sat, Jul 03, 2021 at 01:15:19PM -0700, Mark Millard wrote: >>=20 >>=20 >>=20 >> So you still have not tried an artifacts or snapshot kernel+world? >>=20 > Not yet.=20 >=20 >>> Eventually I resorted to running make in devel/llvm10, to my = surprise it >>> ran to completion. >>=20 >> Interesting. >>=20 >> Was this -j4? -j1? -j2? Any other interesting characteristics >> for how it was run? >>=20 > Nothing special was done. IIRC, it was make -DBATCH > make.log in > the background. =46rom top's screen it looked like -j4.=20 >=20 >> It would be interesting to see if building in a chroot >> in that make style also worked (or a non-poudriere jail). >>=20 >=20 > Can you point me to instructions for doing the experiment? I tend to presume operation from a root login so I've nothing about managing user account vs. root account ownerships and the like. I pick names and places for things to make the example. # cd /usr/src/ # mkdir -p ~/chroot-system/ # make installworld DESTDIR=3D~/chroot-system/ DB_FROM_SRC=3D1 # make distrib-dirs DESTDIR=3D~/chroot-system/ DB_FROM_SRC=3D1 # make distribution DESTDIR=3D~/chroot-system/ DB_FROM_SRC=3D1 One could expand artifacts.ci.freebsd.org *.txz materials into ~/chroot-system/ instead. The above is just one way of populating ~/chroot-system/ initially. For now, I will not show later updating to a newer system in ~/chroot-system/ . There are more choices to make for what, if anything, should be preserved or adjsuted by such an update. The following definitions do not survive RPI* reboots . . . # mount -tdevfs devfs ~/chroot-system/dev # mkdir -p ~/chroot-system/usr/src/ ~/chroot-system/usr/ports/ # mount_nullfs /usr/src ~/chroot-system/usr/src # mount_nullfs /usr/ports ~/chroot-system/usr/ports The ~/chroot-system/dev is what allows /dev/null and other such to work in the chroot context. Instead of nullfs mounts you could establish independent instances. ~/chroot-system/usr/src/ should track whatever world was put inside ~/chroot-system/ . Use via . . . (You may have tailoring of the environment that you want to set up in the chroot. I do not show anything for that. This could include things like setting up /etc/make.conf and /etc/src.conf files in the chroot.) # chroot ~/chroot-system/ # pwd / # . . . # cd /usr/ports/devel/llvm10/ # make . . . . . . # exit Until you exit from the chroot, you will not see the file system that is outside ~/chroot-system/ (other than via the special mounts that were set up earlier above). =46rom the overall system view that / in the chroot's operation is implicitly a reference to ~/chroot-system/ as if it was a root file system. Inside the chroot, ~/ is a reference to a different place than it was outside the chroot. Note that even pkg will have to be bootstrapped as if this was a separate, new root filesystem. I'll note that modern main can have chroot worlds that are stable/13 or releng/13 based instead of main based (a releng/13 example from my context): # uname -apKU FreeBSD CA72_4c8G_ZFS 14.0-CURRENT FreeBSD 14.0-CURRENT #7 = main-n247651-a00d703f2f43-dirty: Wed Jun 30 15:11:11 PDT 2021 = root@CA72_16Gp_ZFS:/usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-src/arm6= 4.aarch64/sys/GENERIC-NODBG-CA72 arm64 aarch64 1400024 1300139 On the aarch64 RPi*'s the world could even be arm.armv7 based instead of arm64.aarch64 based (stable/13 example): # uname -apKU FreeBSD CA72_4c8G_ZFS 14.0-CURRENT FreeBSD 14.0-CURRENT #7 = main-n247651-a00d703f2f43-dirty: Wed Jun 30 15:11:11 PDT 2021 = root@CA72_16Gp_ZFS:/usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-src/arm6= 4.aarch64/sys/GENERIC-NODBG-CA72 arm armv7 1400024 1300510 I'll note that deleting ~/chroot-system from ouside the chroot is a 2 step process because of some special file protections: # chflags -R noschg ~/chroot-system/ # rm -fr ~/chroot-system =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)