Bug #81133 [NEW]: opcache build fails because BUILD_CC is not defined in phpize builds
| From: | php-bugs-2021 at ryandesign dot com | Date: | Sun, 13 Jun 2021 10:47:12 +0000 |
| Subject: | Bug #81133 [NEW]: opcache build fails because BUILD_CC is not defined in phpize builds | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-234391@lists.php.net to get a copy of this message | ||
From: php-bugs-2021 at ryandesign dot com
Operating system: macOS 10.13.6
PHP version: 8.1.0alpha1
Package: Compile Failure
Bug Type: Bug
Bug description:opcache build fails because BUILD_CC is not defined in phpize builds
Description:
------------
Hi, after applying the fix for bug #81130 I'm able to build php
8.1.0alpha1 and most of the extensions (standalone using phpize) on
macOS but building the opcache extension this way fails:
/path/to/php-8.1.0alpha1/ext/opcache/jit/dynasm/minilua.c -lm -o
minilua
make: /path/to/php-8.1.0alpha1/ext/opcache/jit/dynasm/minilua.c:
Permission denied
make: *** [minilua] Error 1
It's trying to execute a non-executable (C source) file which of course
doesn't work.
Looking at the Makefile, I see that what it is actually trying to do is
compile it, using the variable $(BUILD_CC) which it expects to contain
the compiler, but nothing has arranged for this variable to contain
anything, so it is empty.
php 8.0.x and earlier didn't have this problem.
Presumably this was caused by f1ad9199eff32dd805bb5b155002bdb6ca69bf01.
If I revert the part of that commit that affected
ext/opcache/jit/Makefile.frag (if I change $(BUILD_CC) back to $(CC) in
that file) then the build gets past this error, though I suspect that is
not the solution you will want to use.
--
Edit bug report at https://bugs.php.net/bug.php?id=81133&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81133&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81133&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81133&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81133&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81133&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81133&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81133&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81133&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81133&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81133&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81133&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81133&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81133&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81133&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81133&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81133&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81133&r=mysqlcfg