Skip to content

[ci-scan] Build break: minipal/thread.c undeclared pthread_threadid_np on Apple mono build #132391

Closed

Description

@github-actions

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1554343
Build error leg or test failing: iossimulator-arm64 Release AllSubsets_Mono - Build product (mono.proj cmake install)

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

The mono runtime build on Apple targets (iossimulator-arm64 AllSubsets_Mono, and other Apple legs) in runtime-extra-platforms (definition 154) fails to compile src/native/minipal/thread.c. The pthread functions pthread_threadid_np / pthread_setname_np are used without a declaration in scope, and under -Werror the implicit-function-declaration diagnostic breaks the build:

/Users/runner/work/1/s/src/native/minipal/thread.c:56:5: error: call to undeclared function 'pthread_threadid_np'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
/Users/runner/work/1/s/src/native/minipal/thread.c:100:12: error: call to undeclared function 'pthread_setname_np'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
##[error]src/mono/mono.proj(572,5): error MSB3073: The command " cmake --build . --target install --config Release" exited with code 1.
Build FAILED.

This is a hard build break: the leg fails during native build before any Helix work is sent. It first appeared in build 1553120 (finished 2026-08-14T07:19Z); the prior build 1551332 (2026-08-13) did not have this build-product failure. It reproduces in every subsequent build including the follow-up build 1554672.

Error Message

{
  "ErrorMessage": "thread.c:56:5: error: call to undeclared function 'pthread_threadid_np'",
  "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


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.

Generated by CI Outer-Loop Failure Scanner · opus48 · 684.1 AIC · ⌖ 19.2 AIC · ⊞ 20.5K · ◷

Report

Build Repository Step Name Console log Pull Request
1556412 dotnet/runtime Build product Log
1555560 dotnet/runtime Build product Log
1555007 dotnet/runtime Build product Log

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
2 3 3

Activity

  1. jkotas commented on Aug 17, 2026

    @jkotas
    Member

    Introduced by #132113

  2. locked and limited conversation to collaborators on Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

  • Status
    No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions