Windows GitHub Action runners failing with `could not build module 'ucrt'`
まだ誰も着手していません。
評価
- 難易度
- 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 の回避策と比較します。Docker を必要とせずに Windows actions が正常に実行され、コンテナ内でテストできないリポジトリも含まれる状態を完了とします。
索引モデルが 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時間
- マージ済み PR(30日)
- 3
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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
-
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 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
-
T-Defect
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
element-hq/element-x-ios#6191 ·