php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52607 PHP won't compile with VS2010
Submitted: 2010-08-15 03:07 UTC Modified: 2010-08-15 15:54 UTC
From: d1pro at yandex dot ru Assigned: pajoye (profile)
Status: Closed Package: Compile Failure
PHP Version: 5.3.3 OS: Windows
Private report: No CVE-ID: None
 [2010-08-15 03:07 UTC] d1pro at yandex dot ru
Description:
------------
Building with VS2010 or WinSDK 7.1 fails with

cl : Command line warning D9024 : unrecognized source file type 'cl.exe', object 
file assumed
LINK : fatal error LNK1181: cannot open input file 'cl.exe'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\Bin\amd64\cl.exe"' : return code '0x2'
Stop.

This happens because new cl.exe uses environment variable CL which is set to 
cl.exe in the Makefile.

Simplest resolution is to rename variable and all entries of $(CL).


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-15 03:16 UTC] pajoye@php.net
-Status: Open +Status: Feedback
 [2010-08-15 03:16 UTC] pajoye@php.net
It works here, do you use the SDK 7.1 or VS2010 console?
 [2010-08-15 03:33 UTC] d1pro at yandex dot ru
I have tryed both with same result. Manually editing the Makefile helps - i got 
succesful build. I have replaced $(CL) with $(CL1) and CL= with CL1=
 [2010-08-15 05:38 UTC] pajoye@php.net
Automatic comment from SVN on behalf of pajoye
Revision: http://svn.php.net/viewvc/?view=revision&revision=302247
Log: - #52607, fix ENV conflit with win SDK 7.1
 [2010-08-15 05:38 UTC] pajoye@php.net
-Status: Feedback +Status: Assigned -Assigned To: +Assigned To: pajoye
 [2010-08-15 05:38 UTC] pajoye@php.net
Has to merge to trunk
 [2010-08-15 15:54 UTC] pajoye@php.net
Automatic comment from SVN on behalf of pajoye
Revision: http://svn.php.net/viewvc/?view=revision&revision=302269
Log: - #52607, fix ENV conflit with win SDK 7.1
 [2010-08-15 15:54 UTC] pajoye@php.net
-Status: Assigned +Status: Closed
 [2010-08-15 15:54 UTC] pajoye@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 05:01:29 2024 UTC