GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fail to build with tail cail optimization on Windows · Issue #141937 · python/cpython

Fail to build with tail cail optimization on Windows #141937

New issue
Copy link
New issue
Copy link
Closed as duplicate
Closed as duplicate
Fail to build with tail cail optimization on Windows#141937
Copy link
Labels
OS-windowsbuildThe build process and cross-buildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@winapiadmin
winapiadmin
opened on Nov 25, 2025
Issue body actions

Bug report

Bug description:

Building CPython with tail call optimization makes this error related to tail call optimization:

...
C:\cpython\Python\opcode_targets.h(282,38): error C2085: '_TAIL_CALL_BINARY_OP_SUBSCR_STR_INT': not in formal parameter list [C:\cpython\PCbuild\pythoncore.vcxproj]
C:\cpython\Python\opcode_targets.h(283,1): error C2061: syntax error: identifier '__attribute__' [C:\cpython\PCbuild\pythoncore.vcxproj]
C:\cpython\Python\opcode_targets.h(284,1): error C2143: syntax error: missing ')' before '(' [C:\cpython\PCbuild\pythoncore.vcxproj]
C:\cpython\Python\opcode_targets.h(284,1): error C2059: syntax error: ')' [C:\cpython\PCbuild\pythoncore.vcxproj]
C:\cpython\Python\opcode_targets.h(284,21): error C2143: syntax error: missing ')' before 'type' [C:\cpython\PCbuild\pythoncore.vcxproj]
C:\cpython\Python\opcode_targets.h(284,1): error C2091: function returns function [C:\cpython\PCbuild\pythoncore.vcxproj]
C:\cpython\Python\opcode_targets.h(284,38): error C2085: '_TAIL_CALL_BINARY_OP_SUBTRACT_FLOAT': not in formal parameter list [C:\cpython\PCbuild\pythoncore.vcxproj]
C:\cpython\Python\opcode_targets.h(285,1): error C2061: syntax error: identifier '__attribute__' [C:\cpython\PCbuild\pythoncore.vcxproj]
C:\cpython\Python\opcode_targets.h(286,1): error C2143: syntax error: missing ')' before '(' [C:\cpython\PCbuild\pythoncore.vcxproj]
C:\cpython\Python\opcode_targets.h(286,1): error C2059: syntax error: ')' [C:\cpython\PCbuild\pythoncore.vcxproj]
C:\cpython\Python\opcode_targets.h(286,21): error C2143: syntax error: missing ')' before 'type' [C:\cpython\PCbuild\pythoncore.vcxproj]
C:\cpython\Python\opcode_targets.h(286,1): error C2091: function returns function [C:\cpython\PCbuild\pythoncore.vcxproj]
C:\cpython\Python\opcode_targets.h(286,38): error C2085: '_TAIL_CALL_BINARY_SLICE': not in formal parameter list [C:\cpython\PCbuild\pythoncore.vcxproj]
C:\cpython\Python\opcode_targets.h(287,1): error C2061: syntax error: identifier '__attribute__' [C:\cpython\PCbuild\pythoncore.vcxproj]
C:\cpython\Python\opcode_targets.h(288,1): error C2143: syntax error: missing ')' before '(' [C:\cpython\PCbuild\pythoncore.vcxproj]
C:\cpython\Python\opcode_targets.h(288,1): error C2059: syntax error: ')' [C:\cpython\PCbuild\pythoncore.vcxproj]
C:\cpython\Python\opcode_targets.h(288,1): error C1003: error count exceeds 100; stopping compilation [C:\cpython\PCbuild\pythoncore.vcxproj]

While building without it works!

CPython versions tested on:

3.14

Operating systems tested on:

Windows

Activity

  1. winapiadmin
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Nov 25, 2025
  2. sergey-miryanov
    added
    buildThe build process and cross-buildThe build process and cross-build
    on Nov 25, 2025
  3. sergey-miryanov commented on Nov 25, 2025

    @sergey-miryanov
    sergey-miryanov
    on Nov 25, 2025
    Contributor
    More actions

    How do you build it?

    On 3.14 it fails with message: Tail calling not supported for MSVC.
    On main it fails with message: You need at least VS 2026 / PlatformToolset v145 for tail calling.

  4. StanFromIreland
    added
    OS-windows
    on Nov 25, 2025
  5. chris-eibl commented on Nov 25, 2025

    @chris-eibl
    chris-eibl
    on Nov 25, 2025
    Member
    More actions

    Tail calling for MSVC is not supported in 3.14 and fails with the given error above on latest 3.14.

    #139922 will implement it for 3.15.

    @winapiadmin I think we can close this?

  6. winapiadmin commented on Nov 25, 2025

    @winapiadmin
    winapiadmin
    on Nov 25, 2025
    Author
    More actions

    probably make it part of 3.14.1 (or 3.15)

  7. winapiadmin
    closed this as a duplicateof Tail calling interpreter for MSVC #139922 on Nov 25, 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

    Labels

    OS-windowsbuildThe build process and cross-buildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.