|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #81007 JIT "not supported" on 32-bit x86 -- build problem?
Submitted: 2021-05-02 21:09 UTC Modified: 2021-05-05 14:57 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: php at redir dot desz dot cz Assigned: nikic (profile)
Status: Closed Package: JIT
PHP Version: 8.0.5 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: php at redir dot desz dot cz
New email:
PHP Version: OS:


 [2021-05-02 21:09 UTC] php at redir dot desz dot cz
It may be a documentation or build problem, not sure which exactly -- my limited testing suggests that build process mistakenly disables JIT. states "Currently we support x86 and x86_64 on POSIX platforms" -- I get "x86" here means 32-bit x86.

I have a 32-bit system I've built PHP 8 on (8.0.3 and 8.0.5). JIT was "unavailable" in phpinfo(), and I've found "WARNING: JIT not supported by host architecture" in config.log.

Checking "configure", I've found, that the test for said architecture is:

    case $host_cpu in
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: JIT not supported by host architecture" >&5
$as_echo "$as_me: WARNING: JIT not supported by host architecture" >&2;}

BUT $host_cpu on my system is recognized as "i686", so the "x86*" condition never matches.

Out of curiosity, I've modified the condition to match my CPU and rebuilt PHP; now phpinfo() reports JIT as "On", opcache_get_status() says it's "enabled" and "on", and so far I haven't encountered a single problem running various scripts (I haven't measured performance yet, though). So -- is there a mistake in docs, and for some reason JIT really should not be used on 32bit systems, or a mistake in configure script?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2021-05-05 14:57 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: nikic
 [2021-05-05 14:57 UTC]
This should be fixed by, though I haven't tested it.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jul 19 19:01:28 2024 UTC