Skip to content

Bootstrap: php-llvm Type.php LLVMTokenTypeKin typo blocks bin/compile.php AOT emit #11396

Description

@PurHur

Category

bootstrap / compile

Problem

Full AOT emit of bin/compile.php fatals after #11392 TYPE_MUL fix:

Undefined constant llvm\llvm::LLVMTokenTypeKin

in vendor/ircmaxell/php-llvm/lib/LLVMAbstract/Type.php:79 — typo (Kin vs Kind); FFI defines LLVMTokenTypeKind.

Blocks inventory argv driver rebuild and M4 full-revision probe.

Repro

./script/docker-exec.sh -- bash -lc 'source script/php-env.sh
PHP_COMPILER_MEMORY_LIMIT=8192M php -d memory_limit=8192M bin/compile.php -o /tmp/inv bin/compile.php 2>&1 | tail -5
'

Fix

Patch LLVMTokenTypeKinLLVMTokenTypeKind in vendor Type.php via script/apply-patches.sh.

Done when

  • No Undefined constant fatal during bin/compile.php AOT (may still OOM on 1.5G harness)
  • Patch applied in CI/docker bootstrap path

Refs #1492, #11392

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

    area:compilerCompiler / CFG / JITimplementation-readySpec complete: repro, php-src ref, done-when — safe for workers to claimphase-0:FoundationPhase 0 – foundation & DevEx

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions