Date: Sun, 17 Aug 2025 21:19:26 +1000 From: Peter Jeremy <peterj@freebsd.org> To: FreeBSD-current@freebsd.org Subject: Premature use of "legacy" binaries during buildworld Message-ID: <aKG6vp8qBym6u_5J@server.rulingia.com>
index | next in thread | raw e-mail
[-- Attachment #1 --] 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. -- Peter Jeremy [-- Attachment #2 --] -----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-----home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?aKG6vp8qBym6u_5J>
