|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2020-11-27 20:59 UTC] cja987 at gmail dot com
Description: ------------ Using the compile command shown in the test script below, compilation proceeds normally and it even builds some of the SAPIs, but once it gets to phar, things go sideways: Generating phar.php Generating phar.phar PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be enabled. make: *** [ext/phar/phar.phar] Bus error: 10 Test script: --------------- make distclean; ./buildconf && PATH=/opt/homebrew/opt/bison/bin:$PATH ./configure --with-iconv=/opt/homebrew/opt/libiconv && make -j10 YACC=/opt/homebrew/opt/bison/bin/bison # The above shows another minor bug: I should not have to set YACC, # but the makefile sets it to just "bison" rather than the full path, # which causes it to find the obsolete system bison in the path instead. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 17:00:01 2025 UTC |
The current error I get building on M2 is this: Fatal error: Uncaught InvalidArgumentException: RegexIterator::__construct(): Allocation of JIT memory failed, PCRE JIT will be disabled. This is likely caused by security restrictions. Either grant PHP permission to allocate executable memory, or set pcre.jit=0 in /Users/kelunik/.php-build/release/ext/phar/phar.php:1145 Stack trace: #0 /Users/kelunik/.php-build/release/ext/phar/phar.php(1145): RegexIterator->__construct(Object(RecursiveIteratorIterator), '/\\.svn/') #1 /Users/kelunik/.php-build/release/ext/phar/phar.php(1089): PharCommand::phar_add(Object(Phar), 0, '/Users/kelunik/...', NULL, '/\\.svn/', Object(SplFileInfo), NULL, false) #2 /Users/kelunik/.php-build/release/ext/phar/phar.php(225): PharCommand->cli_cmd_run_pack(Array) #3 /Users/kelunik/.php-build/release/ext/phar/phar.php(2101): CLICommand->__construct(19, Array) #4 {main} thrown in /Users/kelunik/.php-build/release/ext/phar/phar.php on line 1145 make: *** [ext/phar/phar.phar] Error 255 This is caused by Apple's default protection on Apple Silicon chips, see https://developer.apple.com/documentation/apple-silicon/porting-just-in-time-compilers-to-apple-silicon It's been fixed in https://github.com/zherczeg/sljit/pull/105, which is contained in libpcre2 10.40. https://github.com/php/php-src/commit/32cceb75bf5e42bebbf4d12bab4369924f1d6885 updates php-src to libpcre2 10.40, but only for the 8.2+.