From 14.2-RELEASE it is presently not possible to build CURRENT: ``` # cd /usr/src && make -j32 buildkernel TARGET_ARCH=amd64 TARGET=amd64 KERNCONF=GENERIC -s \ && cd ./release && make TARGET_ARCH=amd64 TARGET=amd64 -j32 -s clean && make KERNCONF=GENERIC TARGET_ARCH=amd64 TARGET=amd64 -s make[1]: warning: /usr/src/: Read-only file system. make[1]: "/usr/src/Makefile.inc1" line 364: SYSTEM_COMPILER: libclang will be built for bootstrapping a cross-compiler. make[1]: "/usr/src/Makefile.inc1" line 369: SYSTEM_LINKER: libclang will be built for bootstrapping a cross-linker. -------------------------------------------------------------- >>> Kernel build for GENERIC started on Wed Apr 9 09:29:08 UTC 2025 -------------------------------------------------------------- ===> GENERIC -------------------------------------------------------------- >>> stage 1: configuring the kernel -------------------------------------------------------------- Kernel build directory is /usr/obj/usr/src/amd64.amd64/sys/GENERIC Don't forget to do ``make cleandepend && make depend'' make[2]: warning: /usr/src/: Read-only file system. 0.02 real 0.00 user 0.02 sys -------------------------------------------------------------- >>> stage 2.3: build tools -------------------------------------------------------------- ld-elf.so.1: Shared object "libmd.so.7" not found, required by "mtree" --- kernel-tools --- *** [kernel-tools] Error code 1 make[2]: stopped making "kernel-tools" in /usr/src make[2]: 1 error make[2]: stopped making "kernel-tools" in /usr/src 0.03 real 0.02 user 0.00 sys --- buildkernel --- make[1]: stopped in /usr/src --- buildkernel --- make: stopped in /usr/src root@picard:/usr/src # ``` As a work-around, build CURRENT on CURRENT, and then use beinstall.sh or similar to just install(world,kernel). From ocochard@ I used this for beinstall.sh export LD_PRELOAD=/usr/obj/usr/src/amd64.amd64/lib/libmd/libmd.so.7 ... usual incantations
See also https://mail-archive.freebsd.org/cgi/getmsg.cgi?fetch=0+0+archive/2024/freebsd-pkgbase/20241014.freebsd-pkgbase probably related. Hello everyone, Just a reminder when using pkgbase, make sure you do activate BACKUP_LIBRARIES=true in pkg.conf This way pkg will save a copy of libmd.so.6 during the upgrade in /usr/local/lib/pkg/libmd.so.6 (and create a package named compat-libraries to track it). This will prevent you from having a couple of days without a new version of pkg built against libmd.so.7 available (or some of the packages which also requires libmd.so.7. Best regards, Bapt
just required a more thorough trash of /usr/obj & it's fine again.sorry!