shivammathur / homebrew-php

:beer: Homebrew tap for PHP 5.6 to 8.4. PHP 8.4 is built nightly.

Home Page:https://github.com/shivammathur/homebrew-php/packages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

brew install --build-from-source shivammathur/php/php fails

midsmr opened this issue · comments

commented

Describe the bug

==> make
Last 15 lines from /Users/midsmr/Library/Logs/Homebrew/php/03.make:
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
clang: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /private/tmp/zend_jit-222dd0.c
clang: note: diagnostic msg: /private/tmp/zend_jit-222dd0.sh
clang: note: diagnostic msg: Crash backtrace is located in
clang: note: diagnostic msg: /private/tmp/php-20220126-14913-1ab45wq/php-8.1.2/.brew_home/Library/Logs/DiagnosticReports/clang_<YYYY-MM-DD-HHMMSS>_<hostname>.crash
clang: note: diagnostic msg: (choose the .crash file that corresponds to your crash)
clang: note: diagnostic msg:

********************
make: *** [ext/opcache/jit/zend_jit.lo] Error 1

PHP versions
8.1

commented

brew install shivammathur/php/php is success

This happens randomly with clang and it was reported upstream. The workaround is to compile again till it builds successfully.
https://bugs.php.net/bug.php?id=81666