php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74899 PHP failed to build
Submitted: 2017-07-11 09:30 UTC Modified: 2017-07-12 16:02 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: seaheart_2006 at 126 dot com Assigned: cmb (profile)
Status: Not a bug Package: Compile Failure
PHP Version: master-Git-2017-07-11 (Git) OS: Windows Server 2016
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: seaheart_2006 at 126 dot com
New email:
PHP Version: OS:

 

 [2017-07-11 09:30 UTC] seaheart_2006 at 126 dot com
Description:
------------
Environment: Windiows Server 2016 + VS2017(15.2)

I tried to build PHP with master branch latest revision on Windows.It failed to build.



Expected result:
----------------
Build successfully.

Actual result:
--------------
Build failed:
	cd D:\PHP7\phpdev\vc14\x86\src
	"" --no-generation-date -b -o ext/standard/var_unserializer.c ext/standard/var_unserializer.re
'--no-generation-date' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: '"' : return code '0x1'
Stop.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-07-11 12:58 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2017-07-11 12:58 UTC] cmb@php.net
Please post the output of `configure`.
 [2017-07-12 06:13 UTC] seaheart_2006 at 126 dot com
The content of configure file is too long. How can I attach the file?
 [2017-07-12 06:14 UTC] seaheart_2006 at 126 dot com
The output of configure:
[executing command] buildconf 
Rebuilding configure.js
Now run 'configure --help'
[command took 0 seconds] 
[executing command] configure --enable-cli --with-mp=8 
PHP Version: 7.2.0-dev

Saving configure options to config.nice.bat
Checking for cl.exe ...  <in default path>
WARNING: Using unknown MSVC version 19.11.25511

  Detected compiler MSVC 19.11.25511, untested
  Detected 32-bit compiler
Checking for link.exe ...  C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86
Checking for nmake.exe ...  <in default path>
Checking for lib.exe ...  <in default path>
Checking for bison.exe ...  <in default path>
Checking for sed.exe ...  <in default path>
Checking for re2c.exe ...  <in default path>
  Detected re2c version 0.9.4
WARNING: The minimum RE2C version requirement is 0.13.4
Parsers will not be generated. Upgrade your copy at http://sf.net/projects/re2c
Checking for zip.exe ...  <in default path>
Checking for lemon.exe ...  <not found>
Checking for mc.exe ...  C:\Program Files (x86)\Windows Kits\10\bin\10.0.15063.0\x86
Checking for mt.exe ...  C:\Program Files (x86)\Windows Kits\10\bin\10.0.15063.0\x86
Enabling multi process build

Build dir: D:\PHP7\phpdev\vc14\x86\src\Release_TS
PHP Core:  php7ts.dll and php7ts.lib

Checking for wspiapi.h ...  <in default path>
Enabling IPv6 support
Enabling SAPI sapi\cgi
Enabling SAPI sapi\cli
Checking for library edit_a.lib;edit.lib ... ..\deps\lib\edit_a.lib
Checking for editline/readline.h ...  D:\PHP7\phpdev\vc14\x86\deps\include
Enabling extension ext\bcmath
Enabling extension ext\calendar
Checking for library oleaut32.lib ... <in LIB path> OleAut32.Lib
Enabling extension ext\com_dotnet
Checking for mscoree.h ...  <in default path>
Enabling extension ext\ctype
Enabling extension ext\date
Enabling extension ext\filter
Checking for library libjpeg_a.lib;libjpeg.lib ... ..\deps\lib\libjpeg_a.lib
Checking for library freetype_a.lib;freetype.lib ... ..\deps\lib\freetype_a.lib
Checking for ft2build.h ...  D:\PHP7\phpdev\vc14\x86\deps\include\freetype2
Checking for library libpng_a.lib;libpng.lib ... ..\deps\lib\libpng_a.lib
Checking for gd.h ...  ext\gd\libgd
Checking for png.h ...  D:\PHP7\phpdev\vc14\x86\deps\include\libpng16
Checking for library libiconv_a.lib;libiconv.lib ... ..\deps\lib\libiconv_a.lib
Checking for iconv.h ...  D:\PHP7\phpdev\vc14\x86\deps\include
Checking for library libXpm_a.lib ... ..\deps\lib\libxpm_a.lib
Checking for xpm.h ...  D:\PHP7\phpdev\vc14\x86\deps\include\X11
Checking for library libwebp_a.lib ... ..\deps\lib\libwebp_a.lib
Checking for decode.h ...  D:\PHP7\phpdev\vc14\x86\deps\include\webp
Checking for encode.h ...  D:\PHP7\phpdev\vc14\x86\deps\include\webp
Checking for library User32.lib ... <in LIB path> User32.Lib
Checking for library Gdi32.lib ... <in LIB path> Gdi32.Lib
Enabling extension ext\gd [shared]
Checking for KeccakHash.h ...  ext/hash/sha3/generic32lc
Enabling extension ext\hash
Checking for library libiconv_a.lib ... ..\deps\lib\libiconv_a.lib
Checking for iconv.h ...  D:\PHP7\phpdev\vc14\x86\deps\include
Enabling extension ext\iconv
Enabling extension ext\json
Checking for library ws2_32.lib ... <in LIB path> WS2_32.Lib
Enabling extension ext\mysqlnd
Checking for zlib.h ...  D:\PHP7\phpdev\vc14\x86\deps\include
Enabling extension ext\opcache [shared]
Enabling extension ext\pcre
Checking for library edit_a.lib;edit.lib ... ..\deps\lib\edit_a.lib
Checking for editline/readline.h ...  D:\PHP7\phpdev\vc14\x86\deps\include
Enabling extension ext\readline
Enabling extension ext\reflection
Enabling extension ext\session
Enabling extension ext\spl
Checking for timelib_config.h ...  ext/date/lib
Enabling extension ext\standard
Enabling extension ext\tokenizer
Checking for zip.h ...  D:\PHP7\phpdev\vc14\x86\deps\include
Checking for zipconf.h ...  D:\PHP7\phpdev\vc14\x86\deps\lib\libzip\include
Checking for library libzip_a.lib ... ..\deps\lib\libzip_a.lib
Enabling extension ext\zip
Checking for library zlib_a.lib;zlib.lib ... ..\deps\lib\zlib_a.lib
Checking for zlib.h ...  D:\PHP7\phpdev\vc14\x86\deps\include
Enabling extension ext\zlib
Checking for library libxml2_a_dll.lib;libxml2_a.lib ... ..\deps\lib\libxml2_a_dll.lib
Checking for library libiconv_a.lib;iconv_a.lib;libiconv.lib;iconv.lib ... ..\deps\lib\libiconv_a.lib
Checking for libxml/parser.h ...  D:\PHP7\phpdev\vc14\x86\deps\include\libxml2
Checking for libxml/tree.h ...  D:\PHP7\phpdev\vc14\x86\deps\include\libxml2
Enabling extension ext\libxml
Checking for libxml/parser.h ...  D:\PHP7\phpdev\vc14\x86\deps\include\libxml2
Enabling extension ext\dom
Enabling extension ext\phar
        Native OpenSSL support in Phar disabled
Checking for libxml/tree.h ...  D:\PHP7\phpdev\vc14\x86\deps\include\libxml2
Enabling extension ext\simplexml
Checking for libxml/parser.h ...  D:\PHP7\phpdev\vc14\x86\deps\include\libxml2
Checking for libxml/tree.h ...  D:\PHP7\phpdev\vc14\x86\deps\include\libxml2
Enabling extension ext\xml
Checking for libxml/parser.h ...  D:\PHP7\phpdev\vc14\x86\deps\include\libxml2
Enabling extension ext\wddx
Checking for timelib_config.h ...  ext/date/lib
Checking for libxml/parser.h ...  D:\PHP7\phpdev\vc14\x86\deps\include\libxml2
Checking for libxml/tree.h ...  D:\PHP7\phpdev\vc14\x86\deps\include\libxml2
Enabling extension ext\xmlreader
Checking for libxml/xmlwriter.h ...  D:\PHP7\phpdev\vc14\x86\deps\include\libxml2
Enabling extension ext\xmlwriter

Creating build dirs...
Generating files...
Regenerating D:\PHP7\phpdev\vc14\x86\src\Release_TS\tmp-php.ini ...
Generating Makefile
Generating main/internal_functions.c
Generating main/config.w32.h
Generating phpize
Done.



Enabled extensions:
-----------------------
| Extension  | Mode   |
-----------------------
| bcmath     | static |
| calendar   | static |
| com_dotnet | static |
| ctype      | static |
| date       | static |
| dom        | static |
| filter     | static |
| gd         | shared |
| hash       | static |
| iconv      | static |
| json       | static |
| libxml     | static |
| mysqlnd    | static |
| opcache    | shared |
| pcre       | static |
| phar       | static |
| readline   | static |
| reflection | static |
| session    | static |
| simplexml  | static |
| spl        | static |
| standard   | static |
| tokenizer  | static |
| wddx       | static |
| xml        | static |
| xmlreader  | static |
| xmlwriter  | static |
| zip        | static |
| zlib       | static |
-----------------------


Enabled SAPI:
-------------
| Sapi Name |
-------------
| cgi       |
| cli       |
-------------


------------------------------------------------
|                 |                            |
------------------------------------------------
| Build type      | Release                    |
| Thread Safety   | Yes                        |
| Compiler        | MSVC 19.11.25511, untested |
| Architecture    | x86                        |
| Optimization    | PGO disabled               |
| Static analyzer | disabled                   |
------------------------------------------------


Type 'nmake' to build PHP
[command took 2 seconds]
 [2017-07-12 09:13 UTC] cmb@php.net
> Checking for re2c.exe ...  <in default path>
>   Detected re2c version 0.9.4
> WARNING: The minimum RE2C version requirement is 0.13.4

It appears that this is the problem.
 [2017-07-12 16:01 UTC] ab@php.net
-Status: Feedback +Status: Closed
 [2017-07-12 16:01 UTC] ab@php.net
Yeah, that's the exact issue. Additionally, the generated file was remove by mistake so was temporary absent. @seaheart_2006 at 126 dot com I'd also recommend you to check the new step by step build documentation available on the wiki, suitable tools are supplied by the new binary SDK.

Thanks.
 [2017-07-12 16:02 UTC] ab@php.net
-Status: Closed +Status: Not a bug
 [2017-07-13 08:23 UTC] seaheart_2006 at 126 dot com
OK, I will try that. Thanks for all of your help!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 02:01:31 2024 UTC