Bug #80435 [Com]: Bus Error compiling phar.phar on Apple M1
| From: | cja987 at gmail dot com | Date: | Fri, 27 Nov 2020 21:01:41 +0000 |
| Subject: | Bug #80435 [Com]: Bus Error compiling phar.phar on Apple M1 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-230691@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80435&edit=1
ID: 80435
Comment by: cja987 at gmail dot com
Reported by: cja987 at gmail dot com
Summary: Bus Error compiling phar.phar on Apple M1
Status: Open
Type: Bug
Package: Compile Failure
Operating System: macOS 11
PHP Version: 8.0Git-2020-11-27 (Git)
Block user comment: N
Private report: N
New Comment:
As requested, these values from the makefile:
PHP_PHARCMD_SETTINGS = -n -d 'open_basedir=' -d 'output_buffering=0' -d
'memory_limit=-1' -d phar.readonly=0
PHP_PHARCMD_BANG =
$(top_srcdir)/build/shtool echo -n --
"$(INSTALL_ROOT)$(bindir)/$(program_prefix)php$(program_suffix)$(EXEEXT)";
Previous Comments:
------------------------------------------------------------------------
[2020-11-27 20:59:26] 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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80435&edit=1