Skip to content

Free-threaded builds with PGO fail to build on Windows #123153

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

Closed
mdboom opened this issue Aug 19, 2024 · 2 comments
Closed

Free-threaded builds with PGO fail to build on Windows #123153

mdboom opened this issue Aug 19, 2024 · 2 comments
Labels
OS-windows topic-free-threading type-bug An unexpected behavior, bug, or error

Comments

@mdboom
Copy link
Contributor

mdboom commented Aug 19, 2024

Bug report

Bug description:

I don't consider this a high-priority bug, since free threading remains experimental, however it does prevent us from getting accurate benchmarking figures for free-threaded builds on Windows.

Building with

PCbuild\build.bat --pgo   --disable-gil -c Release

currently fails with an internal compiler error:

C:\actions-runner\_work\benchmarking\benchmarking\cpython\Python\ceval.c(761): fatal error C1001: Internal compiler error. [C:\actions-runner\_work\benchmarking\benchmarking\cpython\PCbuild\pythoncore.vcxproj]
(compiler file 'D:\a\_work\1\s\src\vctools\Compiler\Utc\src\p2\main.c', line 224)
    To work around this problem, try simplifying or changing the program near the locations listed above.
   If possible please provide a repro here: https://developercommunity.visualstudio.com 
   Please choose the Technical Support command on the Visual C++ 
    Help menu, or open the Technical Support help file for more information
     link!InvokeCompilerPass()+0x10e636
     link!InvokeCompilerPass()+0x10e636
     link!InvokeCompilerPass()+0x10e373
     link!InvokeCompilerPass()+0x10b310
     link!InvokeCompilerPass()+0x10b215
     link!InvokeCompilerPass()+0x102cea

Full build log here

CPython versions tested on:

CPython main branch

Operating systems tested on:

Windows

Linked PRs

@mdboom mdboom added type-bug An unexpected behavior, bug, or error OS-windows topic-free-threading labels Aug 19, 2024
@colesbury
Copy link
Contributor

Given that it's an Internal compiler error, maybe worth reporting the bug to Visual Studio?

@mdboom
Copy link
Contributor Author

mdboom commented Aug 19, 2024

Given that it's an Internal compiler error, maybe worth reporting the bug to Visual Studio?

Sorry, I should have said so, but I plan to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS-windows topic-free-threading type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants