Skip to content

Self-host M5: native AOT ircmaxell/php-cfg vendor bundle (parseAndCompile null) #3028

Description

@PurHur

Milestone

M5 (vendor prelink) — parent #1492. First package in umbrella #3022 / #1416.

Problem

Native invoker build/selfhost-native-compile-driver fails on ircmaxell/php-cfg vendor bundle before php-types/php-llvm:

FAIL ircmaxell/php-cfg: … helloworld_compile_smoke: parseAndCompile returned null (parser/CFG spine)
helloworld_compile_smoke: native emit failed at phase=parseAndCompile

Reproduces with vendor/ present and cold-boot (north-star5-verify step 5b). Types/llvm fail the same way — fix php-cfg first, then re-run manifest.

Scope

Path Work
test/bootstrap-vendor-prelink/generated/ircmaxell-php-cfg_bundle.php Entry TU
lib/Runtime.php, lib/Compiler.php First unsupported stmt/expr in bundle (use #2988 breadcrumbs)
vendor/ircmaxell/php-cfg/ Only if patch required — prefer compiler lowering

Not: committed .o without native rebuild (#2865 closed path only).

Repro

./script/docker-exec.sh -- bash -lc '
  PHP_COMPILER_VENDOR_PRELINK=1 php script/bootstrap-vendor-objects.php --compile 2>&1 | head -30
'
# First FAIL: ircmaxell/php-cfg

./script/docker-exec.sh -- bash -lc 'make north-star5-verify'  # step 5b

Done when

PHP_COMPILER_VENDOR_PRELINK=1 php script/bootstrap-vendor-objects.php --compile reports php-cfg object_ok (native .o produced); php-types/llvm may remain for follow-ups. make north-star5-verify step 5 improves (≥1/3) without regressing M3/M4 gates.

Activity

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