Bug #81666 [NEW]: Random error 1 ext/opcache/jit/zend_jit.lo when building on Mac ARM64
From: ruudk at mphuis dot com
Operating system: macOS Monterey (12)
PHP version: 8.1.0
Package: Compile Failure
Bug Type: Bug
Bug description:Random error 1 ext/opcache/jit/zend_jit.lo when building on Mac ARM64
Description:
------------
We're seeing random failures on Apple Silicon / ARM64 machines.
Sometimes it works fine, and PHP compiles successfully, but often it
fails with make: *** [ext/opcache/jit/zend_jit.lo] Error 1.
Test script:
---------------
See https://github.com/Homebrew/homebrew-core/pull/89973
git clone git@github.com:ruudk/homebrew-core.git --depth=1 -b
bump-php-8.1.0 /tmp/brew-php8.1
COUNTER=1; while brew reinstall --formula --build-from-source
Formula/php.rb; do COUNTER=$[$COUNTER +1]; echo "Iteration $COUNTER";
done;
rm -rf /tmp/brew-php8.1
After a few iterations the build fails.
Actual result:
--------------
Generating phar.php
Generating phar.phar
PEAR package PHP_Archive not installed: generated phar will require
PHP's phar extension be enabled.
directorytreeiterator.inc
clicommand.inc
directorygraphiterator.inc
phar.inc
invertedregexiterator.inc
pharcommand.inc
/bin/sh /private/tmp/php-20211127-88887-1owqr35/php-8.1.0/libtool
--silent --preserve-dup-deps --tag CC --mode=compile clang
-Iext/opcache/
-I/private/tmp/php-20211127-88887-1owqr35/php-8.1.0/ext/opcache/
-I/private/tmp/php-20211127-88887-1owqr35/php-8.1.0/include
-I/private/tmp/php-20211127-88887-1owqr35/php-8.1.0/main
-I/private/tmp/php-20211127-88887-1owqr35/php-8.1.0
-I/private/tmp/php-20211127-88887-1owqr35/php-8.1.0/ext/date/lib
-I/opt/homebrew/Cellar/openssl@1.1/1.1.1l_1/include
-I/opt/homebrew/Cellar/pcre2/10.39/include
-I/opt/homebrew/Cellar/sqlite/3.36.0/include
-I/opt/homebrew/Cellar/curl/7.80.0_1/include
-I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/ffi
-I/opt/homebrew/Cellar/gd/2.3.3_1/include
-I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/gmp/include
-I/opt/homebrew/Cellar/icu4c/69.1/include
-I/opt/homebrew/opt/openldap/include
-I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sasl
-I/opt/homebrew/Cellar/oniguruma/6.9.7.1/include
-I/private/tmp/php-20211127-88887-1owqr35/php-8.1.0/ext/mbstring/libmbfl
-I/private/tmp/php-20211127-88887-1owqr35/php-8.1.0/ext/mbstring/libmbfl/mbfl
-I/opt/homebrew/Cellar/unixodbc/2.3.9_1/include
-I/opt/homebrew/opt/freetds/include -I/opt/homebrew/opt/libpq/include
-I/opt/homebrew/opt/aspell/include/pspell
-I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/editline
-I/opt/homebrew/Cellar/libsodium/1.0.18_1/include
-I/opt/homebrew/Cellar/argon2/20190702_1/include
-I/opt/homebrew/opt/tidy-html5/include
-I/opt/homebrew/Cellar/libzip/1.8.0_1/include
-I/private/tmp/php-20211127-88887-1owqr35/php-8.1.0/TSRM
-I/private/tmp/php-20211127-88887-1owqr35/php-8.1.0/Zend -fno-common
-Wstrict-prototypes -Wall -Wextra -Wno-strict-aliasing
-Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden
-DZEND_SIGNALS -prefer-pic -Wno-implicit-fallthrough
-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c
/private/tmp/php-20211127-88887-1owqr35/php-8.1.0/ext/opcache/jit/zend_jit.c
-o ext/opcache/jit/zend_jit.lo -MMD -MF ext/opcache/jit/zend_jit.dep
-MT ext/opcache/jit/zend_jit.lo
make: *** [ext/opcache/jit/zend_jit.lo] Error 1
--
Edit bug report at https://bugs.php.net/bug.php?id=81666&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81666&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81666&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81666&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81666&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81666&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81666&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81666&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81666&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81666&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81666&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81666&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81666&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81666&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81666&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81666&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81666&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81666&r=mysqlcfg
Thread (2 messages)
- ruudk at mphuis dot com