Skip to content

Foundation: bootstrap-selfhost-link LLVM verify on compiler_minimal (gen-0 fingerprint drift #21855) #22139

Closed

Description

@PurHur

Category

Foundation · Trust / M0 link gate · bootstrap self-host

Problem

On master (2026-07-22 maintainer probe), make bootstrap-selfhost-link fails when the compile path falls back to Zend gen-0 after stale native driver rejection (#21855 fingerprint guard).

bootstrap-lowering-freshness: stale native compile driver ... (want 474fb42d..., have 5517ed08...)
bootstrap-compile-invoke: compiled driver(s) failed — falling back to Zend gen-0
bootstrap-compile-invoke: php .../bin/compile.php -o .../build/selfhost .../test/selfhost/compiler_minimal/main.php (gen-0 Zend)
PHP Fatal error: Uncaught RuntimeException: Module verification failed due to Call parameter type does not match function signature!
  ... __value__writeLong(%__value__* %13, %__value__* %2)
  ... __value__valueDelref(i64* %34)
  ... icmp eq i32 %2, i64 0
  ... call void @internal_48() (incorrect number of arguments)

First failing gate for M0 milestone table on #78.

Repro

./script/docker-exec.sh -- bash -lc 'make bootstrap-selfhost-link'

Done when

  • make bootstrap-selfhost-link completes green on fresh Docker exec (no BOOTSTRAP_ALLOW_STALE_COMPILED_DRIVER=1)
  • Committed prelinked/bootstrap-gen0/ fingerprints match current lowering (bootstrap-lowering-freshness quiet) or documented restamp batch landed on master
  • If LLVM bug: identify offending inventory unit / JIT helper from compile progress log; fix lowering (prefer PHP/JIT path over new C)

Release tracking

Activity

  1. added
    bugSomething isn't working
    implementation-readySpec complete: repro, php-src ref, done-when — safe for workers to claim
    releaseUser-facing release tracking
    on Jul 22, 2026
  2. PurHur commented on Jul 22, 2026

    @PurHur
    OwnerAuthor

    claim: php-compiler trust/bootstrap agent — starting this run (Pillar 1: north-star5-fast gen-0 fingerprint drift + bootstrap-selfhost-link)

    Gates before claim:

    • bootstrap-inventory: OK 6357/6357
    • spine-coverage: ok
    • north-star5-fast: FAIL step 4f-m (lowering_source_fingerprint manifest 5517ed08… ≠ live 8e1177c5…)
    • user_release_ready: no
  3. added a commit that references this issue on Jul 22, 2026
  4. PurHur commented on Jul 22, 2026

    @PurHur
    OwnerAuthor

    Merged #22141

    Verification (local Docker):

    • php script/check-bootstrap-gen0-manifest-sync.php → OK (8e1177c5…)
    • make north-star5-verify-fast → OK
    • make bootstrap-selfhost-link → OK (native gen-0, no Zend fallback)
    • ./script/release-readiness.sh --json → user_release_ready: yes

    Restamp only; blobs unchanged. Pillar 1 trust gate unblocked.

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

    area:toolingTooling / CI / docsbugSomething isn't workingimplementation-readySpec complete: repro, php-src ref, done-when — safe for workers to claimphase-0:FoundationPhase 0 – foundation & DevExreleaseUser-facing release trackingrelease-blockerBlocks tagged user release

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions