python / python/cpython

Windows Arm64 release build fails

未关闭
#153,668 8 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

3.15 3.16 build OS-windows
主要语言
Python
星标
77.2k
派生
35.9k
PR 合并指标
PR 指标待抓取

描述

There appears to be a compiler bug that causes build failures with optimization enabled when targeting ARM64 on Windows:

        D:\a\1\s\Objects\unicodetype_db.h(4363): fatal error C1002: compiler is out of heap space in pass 2 [D:\a\1\s\PCbuild\pythoncore.vcxproj]

It repros reliably with cl /c /O2 Objects\unicodectype.c (with include dirs added), so I reported it to the C++ compiler team.

In the mean time, we'll disable optimizations for that file on ARM64 and hopefully that will get us through releases. Unless someone figures out a way to restructure the generated header to make the compiler happier, this is probably all we can do until the bug is fixed.

Linked PRs
  • gh-153669
  • gh-156081

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

先查看关联的 PR gh-153669 和 gh-156081,然后检查 PCbuild/pythoncore.vcxproj 和 Objects/unicodectype.c 附近的 ARM64 构建配置。使用 cl /c /O2 Objects\unicodectype.c 重现问题,并确认 Windows ARM64 release 构建能够在没有编译器堆错误的情况下完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
cpp
领域
build-system, operating-systems, release
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
描述清楚
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。