[issue45816] Python does not support standalone MSVC v143 (VS 2022) Build Tools

2021-12-03 Thread Steve Dower


Change by Steve Dower :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45816] Python does not support standalone MSVC v143 (VS 2022) Build Tools

2021-12-03 Thread Steve Dower


Steve Dower  added the comment:


New changeset d9301703fb1086cafbd730c17e3d450a192485d6 by Crowthebird in branch 
'main':
bpo-45816: Support building with VS 2022 (v143 toolset) on Windows (GH-29577)
https://github.com/python/cpython/commit/d9301703fb1086cafbd730c17e3d450a192485d6


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45816] Python does not support standalone MSVC v143 (VS 2022) Build Tools

2021-11-30 Thread Kumar Aditya


Kumar Aditya  added the comment:

Thanks Steve, installing v142 is indeed my current workaround but would be
great to support v143 as it is the latest version.

On Tue, Nov 30, 2021, 21:09 Steve Dower  wrote:

>
> Steve Dower  added the comment:
>
> An easy workaround for people encountering this is to set the
> PlatformToolset environment variable to v143 before building:
>
> $env:PlatformToolset = "v143"
>
> (or in CMD: set PlatformToolset=v143)
>
> Alternatively, you should be able to install the v142 toolset through VS
> 2022. For now, it's still the official toolset, though we'll definitely
> move to v143 before 3.11.
>
> --
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45816] Python does not support standalone MSVC v143 (VS 2022) Build Tools

2021-11-30 Thread Steve Dower


Steve Dower  added the comment:

An easy workaround for people encountering this is to set the PlatformToolset 
environment variable to v143 before building:

$env:PlatformToolset = "v143"

(or in CMD: set PlatformToolset=v143)

Alternatively, you should be able to install the v142 toolset through VS 2022. 
For now, it's still the official toolset, though we'll definitely move to v143 
before 3.11.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45816] Python does not support standalone MSVC v143 (VS 2022) Build Tools

2021-11-30 Thread Kumar Aditya


Kumar Aditya  added the comment:

I have installed VS 2022 with v143 of MSVC.
I get this error when compiling 

```console
C:\Program Files\Microsoft Visual 
Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.ta 
rgets(436,5): error MSB8020: The build tools for Visual Studio 2019 (Platform 
Toolset = 'v142') cannot  
be found. To build using the v142 build tools, please install Visual Studio 
2019 build tools.  Alternat 
ively, you may upgrade to the current Visual Studio tools by selecting the 
Project menu or right-click  
the solution, and then selecting "Retarget solution". 
[D:\cpython\PCbuild\_freeze_module.vcxproj]   
0 Warning(s)
1 Error(s)
```

--
nosy: +kumaraditya303

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45816] Python does not support standalone MSVC v143 (VS 2022) Build Tools

2021-11-19 Thread Steve Dower


Steve Dower  added the comment:

Looks like the fix for those errors is to specify the arguments to the linker 
in PCbuild/pyproject.props

 /OPT:REF,NOICF 
/CGTHREADS:1 /PDBTHREADS:1 %(AdditionalOptions)

I don't particularly know what a good number of threads is for this. One seems 
safe, but maybe we can get faster builds with more?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45816] Python does not support standalone MSVC v143 (VS 2022) Build Tools

2021-11-17 Thread Ma Lin


Ma Lin  added the comment:

They are LNK1268 error:

LINK : fatal error LNK1268: inconsistent option 'pdbthreads:5' specified with 
/USEPROFILE but not with /GENPROFILE [e:\dev\cpython\PCbuild\_queue.vcx
proj]

LINK : fatal error LNK1268: inconsistent option 'pdbthreads:1' specified with 
/USEPROFILE but not with /GENPROFILE [e:\dev\cpython\PCbuild\_asyncio.v
cxproj]

LINK : fatal error LNK1268: inconsistent option 'pdbthreads:5' specified with 
/USEPROFILE but not with /GENPROFILE [e:\dev\cpython\PCbuild\_elementtr
ee.vcxproj]

LINK : fatal error LNK1268: inconsistent option 'cgthreads:8' specified with 
/USEPROFILE but not with /GENPROFILE [e:\dev\cpython\PCbuild\_hashlib.vc
xproj]

...

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45816] Python does not support standalone MSVC v143 (VS 2022) Build Tools

2021-11-17 Thread Steve Dower


Steve Dower  added the comment:

Could you post the errors?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45816] Python does not support standalone MSVC v143 (VS 2022) Build Tools

2021-11-17 Thread Ma Lin


Ma Lin  added the comment:

There are 5 link errors when building the PGO build.
Command: build --pgo

--
nosy: +malin

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45816] Python does not support standalone MSVC v143 (VS 2022) Build Tools

2021-11-16 Thread theeshallnotknowethme


theeshallnotknowethme  added the comment:

Rephrasing: Python does not support building with standalone MSVC v143 Build 
Tools, which is the version of MS Build Tools under Visual Studio 2022 (version 
17.0). Visual Studio 2022 is the latest stable release of Visual Studio [1].

[1] 
https://devblogs.microsoft.com/visualstudio/visual-studio-2022-now-available/

--
components: +Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware
title: Python does not support building with Visual Studio 2022 -> Python does 
not support standalone MSVC v143 (VS 2022) Build Tools

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com