Bug 285981 - unable to build CURRENT from 14.2-RELEASE (as of 20250409 / 85967694b4590a436c56a061b397620e342784ae )
Summary: unable to build CURRENT from 14.2-RELEASE (as of 20250409 / 85967694b4590a436...
Status: Closed Unable to Reproduce
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 15.0-CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-09 09:45 UTC by Dave Cottlehuber
Modified: 2025-04-09 18:42 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Cottlehuber freebsd_committer freebsd_triage 2025-04-09 09:45:15 UTC
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
Comment 1 Dave Cottlehuber freebsd_committer freebsd_triage 2025-04-09 11:35:23 UTC
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
Comment 2 Dave Cottlehuber freebsd_committer freebsd_triage 2025-04-09 18:42:51 UTC
just required a more thorough trash of /usr/obj & it's fine again.sorry!