Bug #77760 [Com]: PHP failed to build with error invalid directive: `%precedence'
| From: | seaheart_2006 at 126 dot com | Date: | Tue, 19 Mar 2019 05:44:35 +0000 |
| Subject: | Bug #77760 [Com]: PHP failed to build with error invalid directive: `%precedence' | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-220066@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77760&edit=1
ID: 77760
Comment by: seaheart_2006 at 126 dot com
Reported by: seaheart_2006 at 126 dot com
Summary: PHP failed to build with error invalid directive:
`%precedence'
Status: Feedback
Type: Bug
Package: Compile Failure
Operating System: Windows Server 2016
PHP Version: master-Git-2019-03-18 (Git)
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
We are using bison 2.7. We will try to use 3.x. Thanks for your help.
bison (GNU Bison) 2.7
Written by Robert Corbett and Richard Stallman.
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Previous Comments:
------------------------------------------------------------------------
[2019-03-18 11:46:37] cmb@php.net
The following pull request has been associated:
Patch Name: Add bison version check to configure
On GitHub: https://github.com/php/php-src/pull/3956
Patch: https://github.com/php/php-src/pull/3956.patch
------------------------------------------------------------------------
[2019-03-18 11:03:12] nikic@php.net
It might be good to add a bison version check in the win32 configure. There is one for re2c version,
but not bison version.
------------------------------------------------------------------------
[2019-03-18 09:54:33] cmb@php.net
You need bison 3.x. Which version do you use?
------------------------------------------------------------------------
[2019-03-18 09:18:53] nikic@php.net
This means that your bison version is too old. As our AppVeyor builds are still working, maybe this
is just a matter of an outdated SDK version?
------------------------------------------------------------------------
[2019-03-18 09:12:20] seaheart_2006 at 126 dot com
Description:
------------
Environment: Windiows Server 2016 + VS2017
I tried to build PHP with master branch latest revision on Windows.It failed to build due to
"Zend/zend_language_parser.y:54.1-11: invalid directive: `%precedence'" This issue
can be reproduced form master branch revision 63802a8
(https://github.com/php/php-src/commit/63802a8446691869371bb37078d55b99cae7eb95). Could you please
help to take a look? Thanks in advance.
The error info:
nmake
Microsoft (R) Program Maintenance Utility Version 14.20.27516.96
Copyright (C) Microsoft Corporation. All rights reserved.
Recreating build dirs
bison.exe --output=Zend/zend_ini_parser.c -v -d -p ini_ Zend/zend_ini_parser.y
bison.exe --output=Zend/zend_language_parser.c -v -d -p zend Zend/zend_language_parser.y
Zend/zend_language_parser.y:54.1-11: invalid directive: `%precedence'
Zend/zend_language_parser.y:58.1-11: invalid directive: `%precedence'
Zend/zend_language_parser.y:59.1-11: invalid directive: `%precedence'
Zend/zend_language_parser.y:60.1-11: invalid directive: `%precedence'
Zend/zend_language_parser.y:61.1-11: invalid directive: `%precedence'
Zend/zend_language_parser.y:62.1-11: invalid directive: `%precedence'
Zend/zend_language_parser.y:75.1-11: invalid directive: `%precedence'
Zend/zend_language_parser.y:76.1-11: invalid directive: `%precedence'
Zend/zend_language_parser.y:77.1-11: invalid directive: `%precedence'
Zend/zend_language_parser.y:79.1-11: invalid directive: `%precedence'
Zend/zend_language_parser.y:82.1-11: invalid directive: `%precedence'
Zend/zend_language_parser.y:83.1-11: invalid directive: `%precedence'
Zend/zend_language_parser.y:84.1-11: invalid directive: `%precedence'
NMAKE : fatal error U1077: 'D:\PHP7\sdk\bin\bison.exe' : return code '0x1'
Stop.
Expected result:
----------------
PHP should build successfully.
Actual result:
--------------
PHP failed to build
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77760&edit=1