Skip to content

Fix native module-build packaging - #68

Merged
chriskearney merged 2 commits into
mainfrom
fix/module-build-compiler-whitespace
Nov 4, 2026
Merged

chriskearney merged 2 commits into
mainfrom
fix/module-build-compiler-whitespace

Conversation

@chriskearney

@chriskearney chriskearney commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

Completed native kernel builds failed during module-input packaging: the compiler parser required a literal space where Linux emits tabs, and the header installer tried to create Linux symlinks inside a macOS bind mount.

Parse the compiler macro by whitespace while preserving the original identity line. Stage headers on the native cache filesystem, then copy the finished archive to an output-directory temporary file and rename it atomically. Missing or ambiguous identities still fail closed.

Validation at 634f514:

  • Nine packaging tests pass, including tabs, legacy spaces, malformed/duplicate macros and publication across two real filesystems.
  • The actual completed 6051288f37b6 kernel packages successfully. Checked compiled inputs remain byte-identical; source, release, compiler, symbol table, vmlinux and config identities match.
  • A separate fresh ARM64 VM, with no source cache mounted, compiles an external C module from the resulting header archive. No module was loaded.
  • Full native build b1104-214412-2f47, using the exact reported source/config/key, succeeds in 2m1s and uploads both kernel.tar.zst and module-build.tar.zst. Original failed build records remain unchanged.

The tested builder image is deployed as maclab-kbuild:d12f-634f514. Controller, agent and boot files are unaffected by this Python-only fix. Hosted checks are still running; no hardware boot qualification is claimed.

@chriskearney chriskearney changed the title Fix module-build compiler identity parsing Fix native module-build packaging Nov 4, 2026
@chriskearney
chriskearney merged commit a5d8134 into main Nov 4, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant