The branch stable/15 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=bc63853a10ff9a81db695b60ab14b39cf840daf0
commit bc63853a10ff9a81db695b60ab14b39cf840daf0 Author: Abhijeet Sharma <[email protected]> AuthorDate: 2026-08-19 12:19:27 +0000 Commit: Mark Johnston <[email protected]> CommitDate: 2026-09-02 17:40:28 +0000 tools/build: stage stdckdint.h's dependencies for non-FreeBSD hosts 37bd69d43c7 gave stdckdint.h two new includes, <sys/_visible.h> and <sys/ckdint.h>. Neither reaches a non-FreeBSD host: _visible.h is staged only under ${.MAKE.OS} == "FreeBSD" and ckdint.h is not staged at all, so the libc bootstrap fails on reallocarray.o when cross-building from macOS. Both headers are self-contained; stage them alongside stdckdint.h. Fixes: 37bd69d43c7 ("sys: Add sys/ckdint.h") Reviewed by: rpaulo, markj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D58943 (cherry picked from commit 805c5004fa86e26486175cd3a0bb253dcb8ec7e0) --- tools/build/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/build/Makefile b/tools/build/Makefile index 9d85596d480f..128444cccc38 100644 --- a/tools/build/Makefile +++ b/tools/build/Makefile @@ -87,6 +87,10 @@ SRCS+= reallocarray.c .if !exists(${HOST_INCLUDE_ROOT}/stdckdint.h) INCS+= stdckdint.h +SYSINCS+= ${SRCTOP}/sys/sys/ckdint.h +.if ${.MAKE.OS} != "FreeBSD" +SYSINCS+= ${SRCTOP}/sys/sys/_visible.h +.endif .endif .if exists(${HOST_INCLUDE_ROOT}/sys/stat.h)
