php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #81136 Can't build opcache: 'zend_dfg.h' file not found
Submitted: 2021-06-14 09:01 UTC Modified: 2021-06-14 13:07 UTC
From: php-bugs-2021 at ryandesign dot com Assigned: krakjoe (profile)
Status: Closed Package: Compile Failure
PHP Version: 8.1.0alpha1 OS: macOS 10.13.6
Private report: No CVE-ID: None
 [2021-06-14 09:01 UTC] php-bugs-2021 at ryandesign dot com
Description:
------------
Hi, with php 8.1.0alpha1 (and the fixes for bug #81130 and bug #81133) I am unable to build the opcache extension (with phpize). The error is:


In file included from /path/to/php-8.1.0alpha1/ext/opcache/jit/zend_jit.c:40:
/opt/local/include/php81/php/Zend/Optimizer/zend_dump.h:23:10: fatal error: 'zend_dfg.h' file not found
#include "zend_dfg.h"
         ^~~~~~~~~~~~
1 error generated.


If I copy /path/to/php-8.1.0alpha1/Zend/Optimizer/zend_dfg.h into /opt/local/include/php81/php/Zend/Optimizer/ then I am able to build opcache. Is this the correct fix?



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-06-14 09:04 UTC] krakjoe@php.net
-Assigned To: +Assigned To: krakjoe
 [2021-06-14 09:10 UTC] git@php.net
Automatic comment on behalf of krakjoe
Revision: https://github.com/php/php-src/commit/a297c66cfbfecdeeee83d9a08e049839d8f34423
Log: Fix #81136 opcache header not installed, causing shared build to fail
 [2021-06-14 09:10 UTC] git@php.net
-Status: Assigned +Status: Closed
 [2021-06-14 13:07 UTC] php-bugs-2021 at ryandesign dot com
Super, that works for me.

php81 and bundled extensions are now available in MacPorts for those who like to install that way.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Oct 27 07:03:33 2021 UTC