Windows GitHub Action runners failing with `could not build module 'ucrt'`
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 30/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- github-actions, swift
- 领域
- ci-cd, devops, operating-systems
调研方向
从链接的 GitHub Actions 运行记录和 swiftlang/github-workflows 中的 Windows 工作流定义开始。在列出的 Swift 版本中重现 ucrt 和 _visualc_intrinsics 模块失败,并将其与 Docker 变通方案进行比较。当 Windows actions 能够成功运行且不需要 Docker(包括无法在容器内进行测试的仓库)时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
The Windows GitHub actions on swift-format are failing with the following error (on 6.0, nightly, nightly-6.1). I think GitHub recently updated their Windows runners. Eg. https://github.com/swiftlang/swift-format/actions/runs/13572154457/job/38021583870
C:\Users\runneradmin\AppData\Local\Programs\Swift\Platforms\6.0.2\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\shims/LibcOverlayShims.h:27:10: note: while building module 'ucrt' imported from C:\Users\runneradmin\AppData\Local\Programs\Swift\Platforms\6.0.2\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\shims/LibcOverlayShims.h:27:
25 | #endif
26 | #if defined(_WIN32) && !defined(__CYGWIN__)
27 | #include <errno.h>
| `- note: while building module 'ucrt' imported from C:\Users\runneradmin\AppData\Local\Programs\Swift\Platforms\6.0.2\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\shims/LibcOverlayShims.h:27:
28 | #include <io.h>
30 | #if defined(__clang__) && (defined(_M_ARM64) || defined(_M_ARM64EC))
31 | #include <arm_neon.h>
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\include\intrin.h:35:18: error: could not build module '_visualc_intrinsics'
33 |
34 | #if (defined (_M_IX86) || defined (_M_X64) || (defined(_M_ARM64) && defined(USE_SOFT_INTRINSICS))) && !defined(_CHPE_ONLY_) && (!defined(_M_ARM64EC) || !defined(_DISABLE_SOFTINTRIN_))
35 | #include <immintrin.h>
| `- error: could not build module '_visualc_intrinsics'
36 | #include <ammintrin.h>
37 | #endif
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "LibcOverlayShims.h"
| `- note: in file included from <module-includes>:1:
2 |
<unknown>:0: error: could not build C module 'SwiftOverlayShims'
C:\Users\runneradmin\AppData\Local\Programs\Swift\Platforms\6.0.2\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\shims/LibcOverlayShims.h:27:10: error: could not build module 'ucrt'
25 | #endif
26 | #if defined(_WIN32) && !defined(__CYGWIN__)
27 | #include <errno.h>
| `- error: could not build module 'ucrt'
28 | #include <io.h>
29 | typedef int mode_t;
I was able to work around this by running tests inside Docker container on Windows again but that adds 5-10 minutes to CI time and eg. the VS Code extension repo can’t run their tests inside a Docker container.
- 主要语言
- Swift
- 星标
- 115
- 派生
- 57
- 平均合并
- 1 天 8 小时
- 30 天内合并 PR
- 3
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
swiftlang/github-workflows 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
swiftlang/github-workflows#305 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
swiftlang/github-workflows#261 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
swiftlang/github-workflows#258 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 68/100
swiftlang/github-workflows#312 ·
-
难度 3/5 1-2 天 新手友好度 58/100
swiftlang/github-workflows#277 · 1 条评论 ·
查看 swiftlang/github-workflows 的全部 Issue
相似的 Issue
-
task
难度 2/5 1-3 小时 新手友好度 70/100
vsanthanam/JBird#429 ·
-
needs-triage
难度 2/5 1-3 小时 新手友好度 75/100
nightscout/Trio#1574 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
pending-maintainer-response pending-triage
难度 2/5 1-3 小时 新手友好度 75/100
-
area:build bug good first issue P2
难度 2/5 1-3 小时 新手友好度 75/100
uttrflow/uttrflow-swift#1412 ·