Repository navigation
infra: mingw-w64 + lld in the dev container (PE/Mach-O fixtures) - #35
Merged
Merged
Conversation
…or the multi-format loader) Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FvRnfTgYKoZvS2TEvdYpWb
mahaloz
added a commit
to borancar/kuna
that referenced
this pull request
Nov 14, 2026
Renumber the PR's calleeargs assertions Noelo-Lab#31-Noelo-Lab#33 to Noelo-Lab#33-Noelo-Lab#35 after main's paint3 Noelo-Lab#31/Noelo-Lab#32; synthesize baseline-stages.json. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0179iMKQeLQDThvbHGNoGw8h
mahaloz
added a commit
to borancar/kuna
that referenced
this pull request
Nov 14, 2026
…ocal head The fork's merge of origin/main (034a042) carries no code beyond the PR commit and the same Noelo-Lab#33-Noelo-Lab#35 renumbering already on this head; every conflict resolves to this head's content. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0179iMKQeLQDThvbHGNoGw8h
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.
What this adds
The dev container (
.devcontainer/Dockerfile, imagekuna-dev) shipped gcc/clang + every cross-ELF toolchain + Go, but no Windows/Mac toolchain. This adds the non-ELF toolchains the multi-format loader PRs need to build real fixtures:gcc-mingw-w64— providesx86_64-w64-mingw32-gcc+i686-w64-mingw32-gcc(one package, both drivers + their binutils). Produces idiomatic PE/PE32+ executables that import from DLLs (msvcrtputs/printf) and carry DWARF + Itanium-mangled C++. The cross GCC is10-win32.lld— already present in the image; this PR documents and verifies its non-ELF backends:lld-link(PE) and the Mach-O backend (ld64.lld-14, also reachable asld.lld -flavor darwin), which can link a Mach-O executable in-container.Infra + docs only — no engine code touched, so the three gates (
make test/make test-stages/make rust-test) don't apply and weren't run. The image is not committed (env-only Dockerfile + docs).Before / after
The host and old container could not build an importing PE (no Windows toolchain). Now the container does. The freshly built image links a PE32+ exe whose import table pulls from
msvcrt.dll:(
putsis imported directly; mingw routesprintfthroughfprintf/vfprintf. The same exe also imports theKERNEL32.dllCRT-startup functions.)lldMach-O backend, end-to-end link proof (no Apple SDK needed):Package-name note
The 22.04
lldpackage ships the Mach-O linker only as the versionedld64.lld-14(no unversionedld64.lldsymlink;ld.lld/lld-linkare symlinked). Docs useld64.lld-14/ld.lld -flavor darwinaccordingly.Loader PRs this unblocks
puts/printf).lldMach-O backend).🤖 Generated with Claude Code
https://claude.ai/code/session_01FvRnfTgYKoZvS2TEvdYpWb