You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Self-host M3/M5: native emit bin/compile.php via inventory compile driver (not emit-helper TU only) #2843
M3 strict probes pass via dedicated emit-helper TUs (helloworld_m3_emit_native_entry.php, compile_smoke_m3_emit_native_entry.php). PHP_COMPILER_M3_SOURCE=bin/compile.php via bootstrap-selfhost-helloworld-compile-bin.sh is green on harness 2026-05-27, but production bootstrap still cannot treat bin/compile.php parsed as the inventory compile driver (full Runtime::parseAndCompile on the driver file itself) as the default emit path for arbitrary spine sources.
Gap: closing #2827 proved helper-TU emit; remaining work is honest inventory-scale CFG through the same entrypoints scripts use for real compiles (no parallel emit TU), matching docs/bootstrap-selfhost.md “inventory-scale bin/compile.php emit-TU” notes.
Scope
Path
Work
lib/Runtime.php
__construct / loadJit on emit-TU when source is bin/compile.php or full spine main.php
Strict HelloWorld / compile-smoke probes can pass with BOOTSTRAP_M3_USE_INVENTORY_EMIT_DRIVER=1 (name TBD) — no*_m3_emit_native_entry.php in the link line
bin/compile.php native compile of test/selfhost/compiler_lib_spine_smoke/main.php via compiled driver logs emit_path=native
docs/bootstrap-selfhost.md M3 HelloWorld row no longer describes emit-helper as the only native path
BOOTSTRAP_M3_USE_INVENTORY_EMIT_DRIVER=1 links compile_driver.php only (no *_m3_emit_native_entry.php)
make bootstrap-selfhost-helloworld default (emit-helper TU) unchanged and green
Remaining for full close: inventory binary segfaults at HelloWorld execute (exit 139, LLVM 9 global init — same class as #1514). Strict emit_path=nativerun still requires emit-helper TU until runtime init for full compile_driver bundle is fixed.
Activity
Merge pull request #2850 from PurHur/agent/issue-2843-inventory-emit-…
PurHur commentedon May 27, 2026
Merged #2850 — inventory emit link path:
BOOTSTRAP_M3_USE_INVENTORY_EMIT_DRIVER=1linkscompile_driver.phponly (no*_m3_emit_native_entry.php)make bootstrap-selfhost-helloworlddefault (emit-helper TU) unchanged and greenRemaining for full close: inventory binary segfaults at HelloWorld execute (exit 139, LLVM 9 global init — same class as #1514). Strict
emit_path=nativerun still requires emit-helper TU until runtime init for full compile_driver bundle is fixed.Self-host M2: sync bootstrap-inventory.md after #2843 JIT line drift
Self-host M3: fix inventory compile_driver native emit execute (#2843)
Self-host M2: sync bootstrap-inventory.md after #2843 JIT line drift
Self-host M3: inventory compile_driver native emit execute (#2843) (#…