msg303141 - (view) |
Author: Serhiy Storchaka (serhiy.storchaka) *  |
Date: 2017-09-27 13:55 |
makefile.vc(1076): fatal error U1087: cannot have : and :: dependents for same target [C:\Users\Serhiy Storchaka\py\cpython3.6\PCbuild\tcl.vcxproj] The full log is attached. |
|
|
msg303142 - (view) |
Author: STINNER Victor (vstinner) *  |
Date: 2017-09-27 13:57 |
How did you build Python 3.6 on Windows? Did you use Visual Studio 2015? Do you use Visual Studio GUI or in the command line? |
|
|
msg303145 - (view) |
Author: Serhiy Storchaka (serhiy.storchaka) *  |
Date: 2017-09-27 14:07 |
I have installed Visual Studio 2017 and have ran PCbuild\build.bat. From the master branch all have built successfully. |
|
|
msg303147 - (view) |
Author: STINNER Victor (vstinner) *  |
Date: 2017-09-27 14:09 |
> I have installed Visual Studio 2017 and have ran PCbuild\build.bat. Oh, I think that VS 2017 is a new feature of Python 3.7 (master), no? Steve Dower, or Zachary Ware: can you confirm? See bpo-31340 and bpo-30389. |
|
|
msg303148 - (view) |
Author: STINNER Victor (vstinner) *  |
Date: 2017-09-27 14:09 |
Here are my notes on how to compile CPython on Windows: https://haypo-notes.readthedocs.io/cpython_windows.html#python-and-visual-studio-version-matrix |
|
|
msg303149 - (view) |
Author: Paul Moore (paul.moore) *  |
Date: 2017-09-27 14:16 |
I believe that's the case, although I'm somewhat surprised by the nature of the error. I'm just checking diffs at the moment. But VS 2015 is the officially supported compiler for 3.6. |
|
|
msg303152 - (view) |
Author: Serhiy Storchaka (serhiy.storchaka) *  |
Date: 2017-09-27 14:29 |
> https://haypo-notes.readthedocs.io/cpython_windows.html#python-and-visual-studio-version-matrix Thank you Victor. Therefore I do need to install 4 versions of Visual Studio for building three major maintained branches: 2008, 2010, 2015 and 2017? Oh, now I understand why Victor doesn't have sufficient disk space for running tests. |
|
|
msg303153 - (view) |
Author: STINNER Victor (vstinner) *  |
Date: 2017-09-27 14:32 |
To compile Python 2.7, you need VS 2008 *and* 2010. To compile Python 3.5, 3.6 or master, you need VS 2015. To compile Python 3.4, you need VS 2010. I had to work on Python 2.7, 3.4, 3.5, 3.6 and master, so I installed VS 2008, 2010 and 2015 :-) I didn't give a try to VS 2017 yet. I'm fine with 3 VS versions installed in parallel ;-) |
|
|
msg303163 - (view) |
Author: Steve Dower (steve.dower) *  |
Date: 2017-09-27 17:14 |
If you install VS 2017 and select the "Python native development" option as described in the dev guide, you get the correct compilers (plural) for Python 3.5 onwards. The build.bat file (specifically, the find_msbuild.bat helper) will choose the correct version. You do not need to install VS 2015 anymore. VS 2015 and VS 2017 both include VC toolset v140, which is the officially supported compiler (the VS version is separate). The error is coming from the Tcl makefile at these lines: .SUFFIXES: .SUFFIXES:.c .rc I personally have no idea what these mean or why it is failing, and I don't even know what these are meant to do. But perhaps you have some file called ".SUFFIXES" or similar that is causing the Tcl build to fail? |
|
|