Bug #81133 [Asn->Fbk]: opcache build fails because BUILD_CC is not defined in phpize builds

From: Date: Sun, 13 Jun 2021 11:40:39 +0000
Subject: Bug #81133 [Asn->Fbk]: opcache build fails because BUILD_CC is not defined in phpize builds
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-234392@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81133&edit=1 ID: 81133 Updated by: krakjoe@php.net Reported by: php-bugs-2021 at ryandesign dot com Summary: opcache build fails because BUILD_CC is not defined in phpize builds -Status: Assigned +Status: Feedback Type: Bug Package: Compile Failure Operating System: macOS 10.13.6 PHP Version: 8.1.0alpha1 Assigned To: krakjoe Block user comment: N Private report: N New Comment: Check https://github.com/php/php-src/pull/7145 please Previous Comments: ------------------------------------------------------------------------ [2021-06-13 10:47:12] php-bugs-2021 at ryandesign dot com 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 this bug report at https://bugs.php.net/bug.php?id=81133&edit=1

« previous php.bugs (#234392) next »