-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Th buildrelease.bat from CPython 3.14.0 alpha 3 on Windows 11 failed with error MSB8020 #128797
Comments
It looks like you need to install some sort of build tool for VS. cc @zooba as the Windows guru. |
See also #106765 I remember that have to select arm64 for installation in VS |
The MSBuild tool is part of Visual Studio. No needs for any additional tool. And it built other projects what buildrelease.bat calls, for example this: F:\GitHubPy\cpython\Tools\msi>"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\msbuild.exe" "F:\GitHubPy\cpython\PCbuild\pcbuild.proj" /t:Rebuild /m /nologo /v:m /clp:summary /p:Configuration=Debug /p:Platform=x64 /p:IncludeExternals=true /p:IncludeCTypes=true /p:IncludeSSL=true /p:IncludeTkinter=true /p:DisableGil= /p:UseTestMarker= /p:GIT="C:\Git\cmd\git.exe" /p:UseJIT= /p:UseTIER2= /p:PyStats= _freeze_module.c Build succeeded. Time Elapsed 00:00:52.94 |
I looked at Visual Studio installer and could not see any options to select "MSVC v14x - VS 20xx C++ ARM64/ARM64EC build tools" (please see screenshot in attachment). What am I missing? |
You might have to go to the full component list and search for ARM64 to find it. I'm pretty sure it hasn't been put on the front page yet. The installer needs the ARM64 compiler for one component of the |
Thanks a lot for the hint! I enabled all build components "arm64" and "arm64EC" (it was under VS installer tab "Individual components"). F:\GitHubPy\cpython\Tools\msi\doc\doc.wxs(12): error LGHT0094: Unresolved reference to symbol 'WixComponentGroup:doc_html' in section 'Product:'. [F:\GitHubPy\cpython\Tools\msi\doc\doc.wixproj] F:\GitHubPy\cpython\Tools\msi\tcltk\tcltk.wxs(47): warning LGHT1076: ICE69: Mismatched component reference. Entry 'IDLE' of the Shortcut table belongs to component 'idle_shortcut'. However, the formatted string in column 'Arguments' references file 'Lib_idlelib_idle.pyw' which belongs to component 'Lib_idlelib_idle.pyw'. Components are in the same feature. [F:\GitHubPy\cpython\Tools\msi\tcltk\tcltk.wixproj] The error looks strange because I set flag to skip building documentation (--skip-doc) in call buildrelease.bat and do not set flag -doc in call build.bat. |
I guess docs can't actually be excluded from the installer, which makes sense, that's not a configuration we'd ever release. Skipping the rebuild is just to save time, so you probably need to build once without The tcltk warnings are expected. It's probably fixable, but not a real issue, so just ignore them. |
Bug report
Bug description:
I updated Windows and Visual Studio Community Edition 2022 to latest version and I tried to build CPython 3.14.0 alpha 3 on windows via command `Tools/msi/buildrelease.bat buildrelease.bat -o pyinstaller -x64 --skip-doc --skip-zip'.
It failed with the following error messages (error MSB8020).
Project "F:\GitHubPy\cpython\Tools\msi\launcher\launcher.wixproj" (1) is building "F:\GitHubPy\cpython\PCbuild\pyshellext.vcxproj" (4:2) on node 1 (Build target(s)).
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(456,5): error MSB8020: The build tools for v143 (Platform Toolset = 'v143') cannot be found. To build using the v143 build tools, please install v143 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [F:\GitHubPy\cpython\PCbuild\pyshellext.vcxproj]
Done Building Project "F:\GitHubPy\cpython\PCbuild\pyshellext.vcxproj" (Build target(s)) -- FAILED.
_CleanRecordFileWrites:
Creating directory "F:\GitHubPy\cpython\PCbuild\obj\314win32_Release\msi_launcher".
Done Building Project "F:\GitHubPy\cpython\Tools\msi\launcher\launcher.wixproj" (default targets) -- FAILED.
Build FAILED.
"F:\GitHubPy\cpython\Tools\msi\launcher\launcher.wixproj" (default target) (1) ->
"F:\GitHubPy\cpython\PCbuild\pyshellext.vcxproj" (Build target) (4:2) ->
(PrepareForBuild target) ->
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(456,5): error MSB8020: The build tools for v143 (Platform Toolset = 'v143') cannot be found. To build using the v143 build tools, please install v143 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [F:\GitHubPy\cpython\PCbuild\pyshellext.vcxproj]
Time Elapsed 00:00:04.23
CPython versions tested on:
Main branch 3.14.0 alpha 3
Operating systems tested on:
Edition Windows 11 Pro
Version 24H2
OS build 26100.2605
Experience Windows Feature Experience Pack 1000.26100.36.0
Microsoft Visual Studio Community 2022 (64-bit)
Version 17.12.3
VisualStudio.17.Release/17.12.3+35527.113
Microsoft .NET Framework
Version 4.8.09032
Visual C++ 2022 00476-80000-00000-AA052
Microsoft Visual C++ 2022
CPython versions tested on:
CPython main branch
Operating systems tested on:
Windows
The text was updated successfully, but these errors were encountered: