[Midnightbsd-cvs] [MidnightBSD/src] f500c9: ck: select kernel headers for any _KERNEL build, n...

Lucas Holt noreply at github.com
Fri Sep 25 14:16:19 EDT 2026


  Branch: refs/heads/fix-cross-build-ci
  Home:   https://github.com/MidnightBSD/src
  Commit: f500c931377ea755fbafbceb0fe101c4c64efe8c
      https://github.com/MidnightBSD/src/commit/f500c931377ea755fbafbceb0fe101c4c64efe8c
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-09-25 (Fri, 25 Sep 2026)

  Changed paths:
    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:
  -----------
  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>


  Commit: 099d3d99e30a42a6dc99a0d68c9dadd0e23d1ef1
      https://github.com/MidnightBSD/src/commit/099d3d99e30a42a6dc99a0d68c9dadd0e23d1ef1
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-09-25 (Fri, 25 Sep 2026)

  Changed paths:
    M .github/workflows/cross-bootstrap-tools.yml

  Log Message:
  -----------
  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>


Compare: https://github.com/MidnightBSD/src/compare/f500c931377e%5E...099d3d99e30a

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