[Midnightbsd-cvs] [MidnightBSD/src] 70d307: Fix the Cross-build Kernel CI workflow (#523)
Lucas Holt
noreply at github.com
Fri Sep 25 14:19:10 EDT 2026
Branch: refs/heads/master
Home: https://github.com/MidnightBSD/src
Commit: 70d3075e78a2e28332551f0e0c07cf88d6aacb78
https://github.com/MidnightBSD/src/commit/70d3075e78a2e28332551f0e0c07cf88d6aacb78
Author: Lucas Holt <luke at foolishgames.com>
Date: 2026-09-25 (Fri, 25 Sep 2026)
Changed paths:
M .github/workflows/cross-bootstrap-tools.yml
M sys/contrib/ck/include/ck_stdbool.h
M sys/contrib/ck/include/ck_stddef.h
M sys/contrib/ck/include/ck_stdint.h
M sys/contrib/ck/include/ck_stdlib.h
M sys/contrib/ck/include/ck_string.h
Log Message:
-----------
Fix the Cross-build Kernel CI workflow (#523)
* ck: select kernel headers for any _KERNEL build, not just __MidnightBSD__
The Linux/macOS cross-build CI compiles the kernel with an upstream clang
targeting *-unknown-freebsd13.4, which predefines __FreeBSD__ but not
__MidnightBSD__. ck_stdint.h, ck_stddef.h, ck_stdbool.h, ck_stdlib.h and
ck_string.h still gated their kernel branch on __MidnightBSD__, so they
fell through to the hosted <stdint.h>/<stdbool.h>/... includes, which do
not exist under -nostdinc:
contrib/ck/include/ck_stdint.h:33:10: fatal error: 'stdint.h' file not found
contrib/ck/include/ck_stdbool.h:30:10: fatal error: 'stdbool.h' file not found
Key the BSD branch on _KERNEL alone, matching the fix already applied to
ck_limits.h in 8b8a33bb4e. Verified by building genassym.o, every ck_*.o
and subr_epoch.o/subr_pctrie.o with both the native compiler and
CC='clang -U__MidnightBSD__'.
AI-Assisted-by: Claude Fable 5.1
Co-Authored-By: Claude Fable 5.1 <noreply at anthropic.com>
Signed-off-by: Lucas Holt <luke at foolishgames.com>
* ci: stop overriding kernel CFLAGS on the Linux arm64 buildkernel
KERNEL_FLAGS is expanded raw onto the bmake command line, and a
command-line CFLAGS+= assignment makes CFLAGS command-line-owned, so every
CFLAGS=/CFLAGS+= line in sys/conf/kern.pre.mk is ignored. The arm64 Ubuntu
job therefore lost -nostdinc and all -I paths and failed immediately:
sys/kern/genoffset.c:31:10: fatal error: 'sys/cdefs.h' file not found
The -idirafter paths added in f3f40cdac7 and 4f31c80e0f were workarounds
for the ck header problem fixed in the previous commit, so drop them.
AI-Assisted-by: Claude Fable 5.1
Co-Authored-By: Claude Fable 5.1 <noreply at anthropic.com>
Signed-off-by: Lucas Holt <luke at foolishgames.com>
---------
Signed-off-by: Lucas Holt <luke at foolishgames.com>
Co-authored-by: Claude Fable 5.1 <noreply at anthropic.com>
To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications
More information about the Midnightbsd-cvs
mailing list