php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73121 Bundled PCRE doesn't compile because JIT isn't supported on s390
Submitted: 2016-09-20 10:04 UTC Modified: 2016-09-20 14:07 UTC
From: derick@php.net Assigned:
Status: Closed Package: PCRE related
PHP Version: 7.0.11 OS: s390
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: derick@php.net
New email:
PHP Version: OS:

 

 [2016-09-20 10:04 UTC] derick@php.net
Description:
------------
When compiling PHP with the bundled PCRE, the compiler barks with:

/home/derick/src/php-7.0.10/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
 #error Unsupported architecture


As we hardcode "SUPPORT_JIT" in the ext/pcre/pcrelib/config.h, there is no way to turn off JIT support through CFLAGS (as it causes a redefinition to =1 within this file).

A solution could be to add a --without-pcre-jit configure option, that turns the #define SUPPORT_JIT 1 into #undef SUPPORT_JIT but that would mean creating ext/pcre/pcrelib/config.h dynamically, which is currently not yet done.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-09-20 14:07 UTC] nikic@php.net
If nothing else, we could at least add an #ifndef SUPPORT_JIT check in there, so you have the ability to overwrite it.
 [2016-09-22 23:56 UTC] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=54d8053ac5008efa122211b2aeec57a4931f5d56
Log: Fix bug #73121 Bundled PCRE doesn't compile because JIT isn't supported on s390
 [2016-09-22 23:56 UTC] ab@php.net
-Status: Open +Status: Closed
 [2016-10-17 10:07 UTC] bwoebi@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=54d8053ac5008efa122211b2aeec57a4931f5d56
Log: Fix bug #73121 Bundled PCRE doesn't compile because JIT isn't supported on s390
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 15:01:30 2024 UTC