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:
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2017 The PHP Group
All rights reserved.
Last updated: Fri Jul 28 08:01:47 2017 UTC