Skip to content

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

Description

@mdboom

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

Activity

  1. colesbury commented on Aug 19, 2024

    @colesbury
    Contributor

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

  2. mdboom commented on Aug 19, 2024

    @mdboom
    ContributorAuthor

    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.

  3. added 2 commits that reference this issue on Oct 16, 2024
  4. added a commit that references this issue on Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions