Bug #81007 [NEW]: JIT "not supported" on 32-bit x86 -- build problem?
From: php at redir dot desz dot cz
Operating system: Linux
PHP version: 8.0.5
Package: JIT
Bug Type: Bug
Bug description:JIT "not supported" on 32-bit x86 -- build problem?
Description:
------------
It may be a documentation or build problem, not sure which exactly -- my
limited testing suggests that build process mistakenly disables JIT.
https://wiki.php.net/rfc/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
x86*)
;;
*)
{ $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;}
PHP_OPCACHE_JIT=no
;;
esac
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?
--
Edit bug report at https://bugs.php.net/bug.php?id=81007&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81007&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81007&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81007&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81007&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81007&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81007&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81007&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81007&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81007&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81007&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81007&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81007&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81007&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81007&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81007&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81007&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81007&r=mysqlcfg
Thread (2 messages)
- php at redir dot desz dot cz