php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73570 build error
Submitted: 2016-11-21 08:08 UTC Modified: 2016-11-23 10:47 UTC
From: rishikesh dot chandan at zohocorp dot com Assigned: cmb (profile)
Status: Not a bug Package: *Compile Issues
PHP Version: 7.0.13 OS: windows 8.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: rishikesh dot chandan at zohocorp dot com
New email:
PHP Version: OS:

 

 [2016-11-21 08:08 UTC] rishikesh dot chandan at zohocorp dot com
Description:
------------
---
From manual page: http://www.php.net/faq.build
---
trying to compile PHP 7.0.13 and extension using steps given by https://wiki.php.net/internals/windows/stepbystepbuild

I am getting following error 

bison.exe --output=Zend/zend_language_parser.c -v -d -p zend Zend/zend_language_parser.y
    zend/zend_language_parser.y:49: unrecognized: %code
    zend/zend_language_parser.y:49:    Skipping to next %
    zend/zend_language_parser.y:52: unrecognized: %destructor
    zend/zend_language_parser.y:52:    Skipping to next %
    zend/zend_language_parser.y:53: unrecognized: %destructor
    zend/zend_language_parser.y:53:    Skipping to next %
    NMAKE : fatal error U1077: '"C:\Program Files\ux-utils\bison.exe"' : return code '0x1'
    Stop.

FYI I am using windows 8.1 and visual studio 2015


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-11-21 13:04 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2016-11-21 13:04 UTC] cmb@php.net
What's your bison version (`bison --version`)?
 [2016-11-22 06:05 UTC] rishikesh dot chandan at zohocorp dot com
bison version is 2.4.1
 [2016-11-22 11:49 UTC] cmb@php.net
Well, bison 2.4.1 is the proper version, but I've just noticed:

> C:\Program Files\ux-utils\bison.exe

Where did you install the PHP SKD binary tools? Normally, that
should be in C:\php-sdk\, so the bison executable should be
C:\php-sdk\bin\bison.exe.

Did you forget step 2 of the compilation instructions[1]?

[1]
<https://wiki.php.net/internals/windows/stepbystepbuild#compile>
 [2016-11-23 07:10 UTC] rishikesh dot chandan at zohocorp dot com
My apology.
I did not realize that bison was already installed in my system. I did follow every steps correctly but somehow bison.exe was taken from System's directory. Anyway i removed the already installed bison and it worked like a charm.

Thank you for your help.
 [2016-11-23 10:47 UTC] cmb@php.net
-Status: Feedback +Status: Not a bug
 [2016-11-23 10:47 UTC] cmb@php.net
> Anyway i removed the already installed bison and it worked like a charm.

Fine!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC