8000 Build failure on MSVC 1935 with JIT enabled · Issue #125207 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

Build failure on MSVC 1935 with JIT enabled #125207

New issue

Have a question about this project? Sig 10000 n 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 Oct 9, 2024 · 0 comments
Closed

Build failure on MSVC 1935 with JIT enabled #125207

mdboom opened this issue Oct 9, 2024 · 0 comments
Assignees
Labels
OS-windows type-bug An unexpected behavior, bug, or error

Comments

@mdboom
Copy link
Contributor
mdboom commented Oct 9, 2024

Bug report

Bug description:

Building on MSVC 1935 currently fails when building with the JIT, because that compiler does not support empty array initializers ({}).

PCbuild\build.bat --experimental-jit -c Release

...

C:\actions-runner\_work\benchmarking\benchmarking\cpython\PCbuild\obj\314amd64_PGInstrument\pythoncore\jit_stencils.h(23145,68): error C2059: syntax error: '}' (compiling source file ..\Python\jit.c) [C:\actions-runner\_work\benchmarking\benchmarking\cpython\PCbuild\pythoncore.vcxproj]

This line in jit_stencils.h looks like:

static const StencilGroup trampoline = {emit_trampoline, 273, 24, {}};
                                                                   ^

This was introduced recently in #123872. All of the uses of empty initializers should use {0} instead.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Windows

Linked PRs

@mdboom mdboom added the type-bug An unexpected behavior, bug, or error label Oct 9, 2024
@mdboom mdboom self-assigned this Oct 9, 2024
mdboom added a commit to mdboom/cpython that referenced this issue Oct 9, 2024
mdboom added a commit that referenced this issue Oct 18, 2024
* gh-125207: Use {0} array initializers

* Simplify, as suggested in PR

* Revert change to explicitly specify length
@mdboom mdboom closed this as completed Oct 18, 2024
pablogsal pushed a commit to pablogsal/cpython that referenced this issue Oct 18, 2024
* pythongh-125207: Use {0} array initializers

* Simplify, as suggested in PR

* Revert change to explicitly specify length

Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
pablogsal pushed a commit to pablogsal/cpython that referenced this issue Oct 21, 2024
* pythongh-125207: Use {0} array initializers

* Simplify, as suggested in PR

* Revert change to explicitly specify length

Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
pablogsal pushed a commit to pablogsal/cpython that referenced this issue Oct 21, 2024
* pythongh-125207: Use {0} array initializers

* Simplify, as suggested in PR

* Revert change to explicitly specify length

Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
ebonnal pushed a commit to ebonnal/cpython that referenced this issue Jan 12, 2025
* pythongh-125207: Use {0} array initializers

* Simplify, as suggested in PR

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

No branches or pull requests

1 participant
0