From nobody Sun Aug 17 11:19:26 2025 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 4c4YK04Dbgz64d8R for ; Sun, 17 Aug 2025 11:19:32 +0000 (UTC) (envelope-from peterj@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4c4YK03j3vz3PjP for ; Sun, 17 Aug 2025 11:19:32 +0000 (UTC) (envelope-from peterj@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1755429572; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=ZPJCvN7BCBoiQSEl1le5Fy3kqqYeuK9qV2s50Vr2jTU=; b=xGP39otinhfwEjeRJgYpMyUw+2OhMtWtukHltq+d807aIxJA/7ElGwufvjEWHbbD8fGBso vSbXGTqcdY3x/mrcInIkJnqH/j1A6hCF4pplK0inmiB6VQBJJzgp4fqN3AIZj9Mtd4PKsi pJ+OakIdNxcqdVj7jsM3bOhtus+bUz+yjJpdULzwOhraIPpI421Wo1g353V3oJfAVTVQVz o2hgK8hokWJoul9nK94GMguTxjO2Jhx8EH3AI650jgVmCQbjVOKb6k8qcgVbyAkLgxBdQm bhl2Iy969PZnd0UfFBitrAp7JVNYZN0eP2wCPraYFkxQM1IBJEj26WUpwo1mKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1755429572; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=ZPJCvN7BCBoiQSEl1le5Fy3kqqYeuK9qV2s50Vr2jTU=; b=N2SJrUTmbNTnNNwoOxzXAdtVl8euhkaYMhq03ysnXeHz9DcsQC773UjrWQBgos9yInmD/y pmpxbXMSkdwsAGaWIP76QKcMgAgamzQoUhE5/llvwHhdnJlOWviCg5G9HbqOyPBG89tX2t YK/Q+D2GkoR0oD7M7RqTkxY8x3f1qJSUNQVIqco66gZYmJLNy30lkOM+9smh70zAha7Aet OOEVBFmoB3yVKE8VFP4hLsankAXwDC6MYQzN+NJKFmyKd+jMoMUencYLmgWkMa44LCDCms WVTQBqUvqVHDgZbCEeBcwB+9HaHQLCBagxbPNas7lVfPSvr0Op7boRu7RYPpqg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1755429572; a=rsa-sha256; cv=none; b=TAfkzVabV52ml3NC8Di9N94xLO1LvKzvwvBOVpZl1H+qcM8i6PTJ/wzd4uy6R0oBWimlMV LipCwUL5HhD7JLAi5z2Q/Cw6C54IZHz0KVYK7Xov2LtaVQ1Ayc1+UqSwb46lcSFppr/nwe HB/FUNzE29gjGOql7rKlS6Fj9E2g/9l/+BiDHHn9qRS/N6oCRIgQe+XwXba7zvfb5T1Inz 7jqZZeffb+AZGGIyHPHyzkOiZQNperzFOo7iulZxTQOQ4MR2rZel9WhbGv5y5aqPbL00I7 x1G/cVYd30jHNoNrmCeuobacAHympU8SDirtoz6hHLBF8GvjC4hb7A/uL5FvMg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from server.rulingia.com (ppp239-208.static.internode.on.net [59.167.239.208]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512) (Client did not present a certificate) (Authenticated sender: peterj) by smtp.freebsd.org (Postfix) with ESMTPSA id 4c4YJz5JVDz14F1 for ; Sun, 17 Aug 2025 11:19:31 +0000 (UTC) (envelope-from peterj@freebsd.org) Date: Sun, 17 Aug 2025 21:19:26 +1000 From: Peter Jeremy To: FreeBSD-current@freebsd.org Subject: Premature use of "legacy" binaries during buildworld Message-ID: 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: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="laJyd5cDmchSPPEA" Content-Disposition: inline X-PGP-Key: http://www.rulingia.com/keys/peter.pgp --laJyd5cDmchSPPEA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable TL;DR: "make -jN buildworld" can look for executables in /usr/obj/usr/src/.../tmp/legacy/bin before it populates that tree. Since this just bit me and I haven't seen in mentioned here: I was trying to run "make -j4 buildworld" and it was consistently dying with: *** [_cleanworldtmp] Error code 6 But, things seemed to get beyond that when I skipped the "-j4". With the aid of "ktrace", I tracked it down to /usr/obj/usr/src/arm64.aarch64/tmp/legacy/bin/sort complaining about a missing libmd.so.6 (only libmd.so.7 was present). After blowing away that "tmp" tree, the buildworld is working as expected. I haven't tried to dig into the buildworld logic but it seems that there's some dependency checking missing so "-jN" can result in the "legacy" binaries being executed before it has been wiped/updated. In case it matters: I'm building at 20f0996700a8 on a "diskless" Pine H64 (4-core Cortex-A53) (root on NFS, /usr/src read-only NFS) with filemon. --=20 Peter Jeremy --laJyd5cDmchSPPEA Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEE7rKYbDBnHnTmXCJ+FqWXoOSiCzQFAmihurZfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEVF QjI5ODZDMzA2NzFFNzRFNjVDMjI3RTE2QTU5N0EwRTRBMjBCMzQACgkQFqWXoOSi CzTDdg//bJ8zHHAxpr53bRCbwc6OepSMfvb/1Uu/NMO8+rojUtVzn9gkpLXIMLmo RIlVafTSTsEIf1XjPstUHBXVxkvp7BKugAL6v5OLvVXaMuuC66lTtZrCuRl4AB+Y +hk0iy1pfGQSF/y4QI2sdGQd9OLKNfGEP+Yij/dyR8gcCXZdZawnh07F+Xymz+el t1QwSG1FGjjdUFqMv1JOHk/7+mBTfQEZZidmJrwnb0SimOoY7i98Bzu980eGBq0N OW5qjWsLns20DvWSUe3a2+i0ZN3LphEGaObNGLO4TGdhoMYinnuMMZ4DIv6IZloE 0PYM8i4DYMjQ0q3prdMoLaNQv0MShdi6DggcbKHcpTIR1QbrwR6mUSRM3vzEpaJF W7goBSXA7HY5fzyhLznxzXaE/cb9vcmr67nrcWzMrAY+9VOc8ehfNmPt4kg8vIa+ bGniCflb8eMwAnd0Ts2MDz6fwoflrY4yZSrmAUcrxopoq4nVi7/XIeX3u+j7mUDM cUizaaj5ZuvoQEoRZZF9fyDgCKFBGKtO1fnBj/7KhqOS1Af5eg/6QUAw1kUIeV3x fhLfSPaNGrwPZY87AhdrPWONITPdDmkUvdSVB5oEHdm9WkODfn+65cBFmi1SggDY 7455U+gWgnf5hQeAz3DEtqdUBP2QUvbmaa854XB/8IBXOz8dJ3U= =CDtA -----END PGP SIGNATURE----- --laJyd5cDmchSPPEA--