[ci-scan] Build break: Apple x64 NativeAOT apps cannot link CryptoKit SHA3 symbols

Đang mở
#137,150 7 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@agocke đang làm issue này rồi.

Từ ngày 9/11/2026.

  • #137222 của @agocke — đang mở

Đá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
38/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
csharp, swift
Lĩnh vực
build-system, ci-cd

Hướng nghiên cứu

Start with the failing iOS-simulator-x64 and MacCatalyst-x64 NativeAOT build logs linked in the issue, then trace the CryptoKit SHA3 references in libSystem.Security.Cryptography.Native.Apple.a and the Apple NativeAOT build path. Confirm the linker failure on an affected build and identify why the x86_64 SHA3 symbols are missing; done when both affected legs link successfully.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

agentic-workflows area-System.Security blocking-clean-ci Known Build Error os-macos untriaged

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1668850
Build error leg or test failing: iossimulator-x64 Release AllSubsets_NativeAOT-AppleHybrid.Tests
Also affected: maccatalyst-x64 Release AllSubsets_NativeAOT, queue osx.15.amd64.open.
Pipeline: runtime-extra-platforms, definition 154, main.
First build it occurred: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1665174 (finished 2026-11-05; earliest verified occurrence in the sampled window, not a proven introducing build).
Follow-up build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1669782 (finished 2026-11-08), same linker diagnostic.

KBE authoring guidance (ci-failure-scan)
  • Error Details is for readers. Paste the full exception, stack trace, or build error excerpt so the failure is understandable without opening the raw log.
  • Build Analysis parses only the single JSON block under Error Message.
  • ErrorMessage is a case-sensitive ordinal String.Contains substring copied verbatim from the failing log.
  • Set BuildRetry to true only for a clear infrastructure retry case. ExcludeConsoleLog disables Helix console-log scanning.

Error Details

Apple NativeAOT test applications fail to link CryptoKit SHA3 symbols from libSystem.Security.Cryptography.Native.Apple.a. In the source build, 172 of 175 iOS-simulator-x64 work items and 173 of 176 MacCatalyst-x64 work items fail with this diagnostic (over 98% of each leg). This is one shared linker failure, not hundreds of independent test failures.

The diagnostic was verified in four distinct builds: 1665174, 1667020, 1668850, and follow-up 1669782. Ten prior completed build monitors were inspected; older inventories without an affected console do not establish a passing affected test.

Representative linker output below omits run-specific paths and MSBuild project suffixes:

error MSB4018:   "nominal type descriptor for CryptoKit.SHA3_256", referenced from:
error MSB4018:       type metadata accessor for CryptoKit.HashedAuthenticationCode<CryptoKit.SHA3_256> in libSystem.Security.Cryptography.Native.Apple.a[2](pal_swiftbindings.o)
error MSB4018:   "nominal type descriptor for CryptoKit.SHA3_384", referenced from:
error MSB4018:   "nominal type descriptor for CryptoKit.SHA3_512", referenced from:
error MSB4018: ld: symbol(s) not found for architecture x86_64
error MSB4018: clang: error: linker command failed with exit code 1 (use -v to see invocation)
error MSB4018: ** BUILD FAILED **
error MSB4018:    at Utils.RunProcess(TaskLoggingHelper logger, String path, String args, IDictionary`2 envVars, String workingDir, Boolean ignoreErrors, Boolean silent, MessageImportance debugMessageImportance)
error MSB4018:    at Xcode.BuildAppBundle(String xcodePrjPath, Boolean optimized, String devTeamProvisioning)
error MSB4018:    at AppleAppBuilderTask.Execute()

Error Message

{
  "ErrorMessage": "\"nominal type descriptor for CryptoKit.SHA3_256\", referenced from:",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}
Agentic workflow metadata (ci-failure-scan)

Workflow artifact: ci-failure-scan
Artifact kind: kbe-verification
Verified match count: 1 hits in failure.log

The literal diagnostic matches the saved AppleHybrid.Tests source console and the follow-up console, with no passing or skipped matches. The complete source failure inventory was grouped before selecting this representative.


Filed by ci-failure-scan (detection only). ci-failure-fix walks open [ci-scan] KBEs and either opens a small fix PR or comments here to loop in owners — it never disables the test.

[!NOTE]
Generated by GitHub Copilot.

Generated by CI Outer-Loop Failure Scanner · copilot · gpt61 · ~347 AIC · ⌖ ~14 AIC · ⊞ 33.3K · ◷

Report
Build Repository Test Pull Request
1670305 dotnet/runtime System.Runtime.Numerics.Tests.WorkItemExecution
Summary
24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 1 1
Ngôn ngữ chính
C#
Star
18.4k
Fork
5.8k
Merge trung bình
2 ngày 14 giờ
Pull request đã merge (30 ngày)
585

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của dotnet/runtime

Tất cả issue của dotnet/runtime

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.