php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79255 PHP cannot be compiled with enable JIT
Submitted: 2020-02-10 18:21 UTC Modified: 2020-02-13 11:25 UTC
From: php at shyim dot de Assigned: dmitry (profile)
Status: Closed Package: *Compile Issues
PHP Version: master-Git-2020-02-10 (Git) OS: NixOS
Private report: No CVE-ID: None
 [2020-02-10 18:21 UTC] php at shyim dot de
Description:
------------
Tried following commit : https://github.com/php/php-src/commit/01957adb7ff69ae3282c221d3866292e6750252d

Expected result:
----------------
It compiles without issues

Actual result:
--------------
/tmp/php-src-01957adb7ff69ae3282c221d3866292e6750252d/ext/opcache/jit/zend_jit_x86.dasc: In function ‘zend_jit_undefined_offset_stub’:
/tmp/php-src-01957adb7ff69ae3282c221d3866292e6750252d/ext/opcache/jit/zend_jit_x86.dasc:1927:129: error: ‘znode_op’ {aka ‘union _znode_op’} has no member named ‘zv’
 1927 | 
      |                                                                                                                                 ^
/tmp/php-src-01957adb7ff69ae3282c221d3866292e6750252d/ext/opcache/jit/zend_jit_x86.dasc:144:49: note: in definition of macro ‘Dt2’
  144 | |.type ZVAL, zval
      |                                                 ^ 
/tmp/php-src-01957adb7ff69ae3282c221d3866292e6750252d/ext/opcache/jit/zend_jit_x86.dasc: In function ‘zend_jit_undefined_index_stub’:
/tmp/php-src-01957adb7ff69ae3282c221d3866292e6750252d/ext/opcache/jit/zend_jit_x86.dasc:1997:130: error: ‘znode_op’ {aka ‘union _znode_op’} has no member named ‘zv’
 1997 |  |.endif
      |                                                                                                                                  ^
/tmp/php-src-01957adb7ff69ae3282c221d3866292e6750252d/ext/opcache/jit/zend_jit_x86.dasc:144:49: note: in definition of macro ‘Dt2’
  144 | |.type ZVAL, zval
      |                                                 ^ 
In file included from /nix/store/8pp3i3hcp7bv0f8jllzqq7gcp9dbzvp9-glibc-2.27-dev/include/sys/param.h:23,
                 from ext/opcache/ZendAccelerator.h:86,
                 from /tmp/php-src-01957adb7ff69ae3282c221d3866292e6750252d/ext/opcache/jit/zend_jit.c:19:
/tmp/php-src-01957adb7ff69ae3282c221d3866292e6750252d/ext/opcache/jit/zend_jit_x86.dasc: In function ‘zend_jit_undefined_function_stub’:
/tmp/php-src-01957adb7ff69ae3282c221d3866292e6750252d/ext/opcache/jit/zend_jit_x86.dasc:2077:36: error: ‘znode_op’ {aka ‘union _znode_op’} has no member named ‘zv’
 2077 |  return 1;

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-02-12 09:15 UTC] nikic@php.net
-Status: Open +Status: Feedback
 [2020-02-12 09:15 UTC] nikic@php.net
Please check what https://github.com/php/php-src/blob/9e5650265c21245a1920ae444d70806600039195/ext/opcache/config.m4#L45-L56 determines on your system. I suspect that you're on a 64-bit target, but 64-bit is not detected.
 [2020-02-12 11:56 UTC] php at shyim dot de
./configure: line 86134: /usr/bin/file: No such file or directory

/usr/bin/file does not exist. Maybe this should be located using which?
 [2020-02-13 09:30 UTC] cmb@php.net
-Status: Feedback +Status: Open
 [2020-02-13 11:25 UTC] nikic@php.net
-Assigned To: +Assigned To: dmitry
 [2020-02-13 11:25 UTC] nikic@php.net
I don't think this should really be using "file" for detection in any case.

@dmitry: Is it required to compute this value at configure time, or can it also be determined via #define? That is, via SIZEOF_SIZE_T check for example.
 [2020-02-17 05:21 UTC] laruence@php.net
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=de6984edd5ce7fa2b2f365b5ae770507ef42022d
Log: Fixed bug #79255 (PHP cannot be compiled with enable JIT)
 [2020-02-17 05:21 UTC] laruence@php.net
-Status: Assigned +Status: Closed
 [2020-02-17 08:35 UTC] nikic@php.net
Automatic comment on behalf of nikita.ppv@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=7a8f180b19383eeeff320914530581ccfb636e40
Log: Revert "Fixed bug #79255 (PHP cannot be compiled with enable JIT)"
 [2020-02-17 09:03 UTC] dmitry@php.net
Automatic comment on behalf of dmitry@zend.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=cf8407a2380ae827a0e9a63993d59b1927769eb7
Log: Fixed bug #79255 (PHP cannot be compiled with enable JIT)
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Jul 14 02:01:26 2020 UTC