Page MenuHomeFreeBSD

tools/build: stage stdckdint.h's dependencies for non-FreeBSD hosts
ClosedPublic

Authored by abhijeetsharma2002_gmail.com on Wed, Aug 19, 4:16 AM.
Tags
None
Referenced Files
F167515274: D58943.id.diff
Sat, Aug 22, 10:09 AM
Unknown Object (File)
Fri, Aug 21, 12:34 PM
Unknown Object (File)
Wed, Aug 19, 12:28 PM
Unknown Object (File)
Wed, Aug 19, 12:27 PM
Unknown Object (File)
Wed, Aug 19, 12:27 PM
Unknown Object (File)
Wed, Aug 19, 12:19 PM
Unknown Object (File)
Wed, Aug 19, 5:09 AM
Subscribers

Details

Summary

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")
MFC with: 37bd69d43c7 ("sys: Add sys/ckdint.h")
Sponsored by: The FreeBSD Foundation

Test Plan

Cross-build from macOS/arm64. Before: clean obj, kernel-toolchain fails with "stdckdint.h:10: fatal error: 'sys/_visible.h' file not found".
After: clean kernel-toolchain + buildkernel succeeds.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Wed, Aug 19, 5:06 AM

BTW, it is redundant to specify Fixes: and MFC-with:. Fixes: by itself is fine.

BTW, it is redundant to specify Fixes: and MFC-with:. Fixes: by itself is fine.

Got it. Will keep it in mind for the future.