Windows GitHub Action runners failing with `could not build module 'ucrt'`
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 30/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- github-actions, swift
- Lĩnh vực
- ci-cd, devops, operating-systems
Hướng nghiên cứu
Bắt đầu với lần chạy GitHub Actions được liên kết và các định nghĩa workflow Windows trong swiftlang/github-workflows. Tái hiện các lỗi mô-đun ucrt và _visualc_intrinsics trên các phiên bản Swift được liệt kê, đồng thời so sánh chúng với workaround Docker. Được xem là hoàn tất khi các actions Windows chạy thành công mà không yêu cầu Docker, bao gồm cả các repository không thể kiểm thử bên trong container.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Swift
- Star
- 115
- Fork
- 57
- Merge trung bình
- 1 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 3
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của swiftlang/github-workflows
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
swiftlang/github-workflows#305 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
swiftlang/github-workflows#261 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
swiftlang/github-workflows#258 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
swiftlang/github-workflows#312 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
swiftlang/github-workflows#277 · 1 bình luận ·
Tất cả issue của swiftlang/github-workflows
Issue tương tự
-
task
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
vsanthanam/JBird#429 ·
-
Bolus validation button text Đang mởneeds-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
nightscout/Trio#1574 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
pending-maintainer-response pending-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
make notarise-dmg notarises whichever dist/ image sorts last, not the one make dmg just built Đang mởarea:build bug good first issue P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
uttrflow/uttrflow-swift#1412 ·