Skip to content

Self-host M3: compile_smoke_m3_emit execute — parseAndCompile returned null (mid emit TU) #2561

Description

@PurHur

Milestone

M3 — mid emit translation unit between runtime and HelloWorld (parent #1492 / #1937)

Problem

compile_smoke_m3_emit_native_entry.php exercises Compiler → JIT → AOT on the compile-smoke fixture. Native emit helper links, but execute fails with:

compile_smoke_m3_emit: parseAndCompile returned null (parser/CFG spine)

Blocks BOOTSTRAP_M3_COMPILE_SMOKE_STRICT=1 and honest emit_path=native on bootstrap-selfhost-compile-smoke-probe.sh.

Scope

Module Path
Emit entry test/bootstrap-aot/compile_smoke_m3_emit_native_entry.php
Probe script/bootstrap-selfhost-compile-smoke-probe.sh
Emit driver lib/JIT/BootstrapCompileSmokeM3Emit.php
JIT spine lib/JIT.php, lib/Compiler.php

Repro

./script/docker-exec.sh -- bash -lc '
  source script/php-env.sh
  BOOTSTRAP_M3_LINK_COMPILE_DRIVER=1 \
  BOOTSTRAP_M3_COMPILE_DRIVER_REAL_LOWERING=1 \
  BOOTSTRAP_M3_RUNTIME_COMPILE=1 \
  ./script/bootstrap-selfhost-compile-smoke-probe.sh
'

Strict:

BOOTSTRAP_M3_COMPILE_SMOKE_STRICT=1 ./script/bootstrap-selfhost-compile-smoke-probe.sh

Done when

Labels

self-host, bootstrap

Epic #1492 · Blocks #1968 CI strict gate

Activity

  1. PurHur commented on May 26, 2026

    @PurHur
    OwnerAuthor

    P0 (M3 ladder — mid TU): Same parseAndCompile null failure as #2559 on master 2026-05-26. Fix #2566 first; use this probe to confirm compile-smoke fixture path.

  2. added a commit that references this issue on May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions