Repository navigation
Add mil-hwx-compiler, the Apple Neural Engine compiler - #747
Merged
Merged
Conversation
The package builds mil-hwxc from a joshuaswarren/mil-hwx-compiler release. It compiles textual MIL into ANEC and HWX programs for the Apple Neural Engine. aarch64 and edge only. The compiler needs the libobjc2 runtime and a gnustep-base built for it. Arch's gnustep-base uses gcc's libobjc, so the recipe builds both from the commits the release pins and ships their runtime libraries in /usr/lib/mil-hwx-compiler. mil-hwxc finds them through its RUNPATH. check() runs the release's Linux verifier. The watch follows published GitHub releases after 24 hours, on the reviewed lane.
Member
|
Started CI ( Non-blocking follow-up: add |
maralcbr
approved these changes
Oct 2, 2026
maralcbr
left a comment
Member
There was a problem hiding this comment.
CI green on native aarch64, full check() passes. Merging.
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This adds
mil-hwx-compiler. It installsmil-hwxc, the compiler that turns textual MIL into ANEC and HWX programs for the Apple Neural Engine. The source is the published v0.1.0 release of joshuaswarren/mil-hwx-compiler (commit0a92228). The package isaarch64only, publishes toedgeonly, and carries theomarchy-platform-apple-silicongroup.Contents
/usr/bin/mil-hwxc, withRUNPATH=/usr/lib/mil-hwx-compiler/lib./usr/lib/mil-hwx-compiler/lib:libobjc.so(libobjc2),libgnustep-base.so.1.31.1, and the gnustep-base resources.The compiler is Objective-C++ with ARC. It needs the libobjc2 runtime and a gnustep-base built for it. Arch's
gnustep-baselinks gcc'slibobjc, so it cannot run this code. The recipe builds libobjc2, gnustep-make and gnustep-base from the commits that the release'sscripts/bootstrap-linux-toolchain.shpins.prepare()stops the build if a release moves those pins and the recipe does not. Only the runtime libraries ship. There are no headers and no gnustep-make, so nothing collides with Arch's GNUstep packages.dependsare the libraries the shipped files link:gcc-libs glibc icu libffi libxml2 zlib.robin-mapinmakedependskeeps libobjc2's CMake from fetching it at build time.check()runs the release's Linux verifier:software-tests,emitandhygiene.Upstream watch
github: joshuaswarren/mil-hwx-compiler, patternv<version>,min_release_age: 24h. Noauto_merge, so every bump is a reviewed PR.Source
The v0.1.0 release is published (not a draft or a prerelease). The first
sha256sumsentry is the checksum of the downloaded GitHub archivearchive/refs/tags/v0.1.0.tar.gz:9aa57921…1772. The three GNUstep sources are pinned git commits with makepkg git checksums.Verification
In an Arch Linux ARM aarch64 rootfs under qemu-user,
makepkg -fas a normal user (clang 22.1.8, lld 22.1.8, cmake 4.4.3, robin-map 1.4.1):build()finished: libobjc2, gnustep-make 2.9.3, gnustep-base 1.31.1 andmil-hwxc.check(): operation graph, HWX object writer, program composition, HWX inspection, H13 encoding, the H13 MIL CLI and the split CLI passed. Thentest_h13_layout_cli.pyhit its 60 s subprocess timeout onslice-encoder-bias. qemu-user is too slow for that limit; the PR build runs natively onubuntu-24.04-arm, where I expect it to pass, but no run has proven that.verify-linux-compiler.sh software-testsPASS (all 17 H13 CLI suites, the conv templates, HWX inspection),emitPASS,hygienePASS.makepkg -R): 686 files, installed size 12.49 MiB,Depends On: gcc-libs glibc icu libffi libxml2 zlib, RUNPATH/usr/lib/mil-hwx-compiler/lib. No shipped file names the build directory./usr/bin/mil-hwxcunderenv -i PATH=/usr/bin: H13 ANEC, H13 HWX and H16Gconv_relucompile. Every output file is byte-identical to the build-tree binary's output.research/inspect_anec.pyandresearch/inspect_hwx.pyread them.pacman -Rremoves/usr/bin/mil-hwxcand/usr/lib/mil-hwx-compiler.helpers/upstream-watch.py check:already current(0.1.0). With--min-age 86400,minimum release age.No Mac ran this package.
Build approval
The author is not in
.github/VOUCHED.td. A maintainer must applybuild-approvedfor the builds to run. The source release now exists.