Repository navigation
Fix public/unofficial CI NativeAOT cross-build for ARM/ARM64/musl legs - #67252
Merged
wtgodbe merged 1 commit intoJun 17, 2026
Merged
Conversation
The dotnet-dev-certs/dotnet-user-secrets/dotnet-user-jwts tools now publish NativeAOT for every bundled RID (added by VMR backflow dotnet#66933). The ARM, ARM64 and musl Build legs in ci-public.yml and ci-unofficial.yml lacked a native cross toolchain, so ILC's lld cross-link failed (missing Scrt1.o / --sysroot / clang). Run these 5 legs in the dotnet-buildtools azurelinux cross-prereq containers (clang + /crossrootfs/<arch>), set ROOTFS_DIR, and pass /p:CrossBuild=true so LocateNativeCompiler.targets sets SysRoot=$(ROOTFS_DIR) and ILC emits --sysroot/--target. Mirrors the internal ci.yml fix from dotnet#67158. Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the public and unofficial Azure Pipelines definitions to run the Linux ARM/ARM64 and musl cross-build legs inside the AzureLinux cross-prereq containers and to enable NativeAOT cross-build configuration, preventing NativeAOT cross-link failures due to missing sysroot/toolchain on those legs.
Changes:
- ci-public.yml: switches the affected Linux ARM/ARM64/musl legs to AzureLinux cross-prereq container images, sets
ROOTFS_DIR, and passes-p:CrossBuild=true. - ci-unofficial.yml: adds named cross-prereq container resources and updates the same five legs to use them with per-leg
ROOTFS_DIRplus-p:CrossBuild=true.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| .azure/pipelines/ci-public.yml | Runs cross-build legs in AzureLinux cross-prereq containers and enables CrossBuild + ROOTFS_DIR for NativeAOT cross-linking. |
| .azure/pipelines/ci-unofficial.yml | Adds cross container resources and updates the five cross-build legs to use them with ROOTFS_DIR + CrossBuild. |
DamianEdwards
approved these changes
Jun 17, 2026
wtgodbe
enabled auto-merge (squash)
June 17, 2026 00:07
Open
3 tasks
cincuranet
approved these changes
Jun 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports the fix from #67158 (which only touched the internal
ci.yml) toci-public.yml(def 83) andci-unofficial.yml.Why
Codeflow #66933 (preview.6.26280, ~Jun 1) made
dotnet-dev-certs,dotnet-user-secrets, anddotnet-user-jwtspublish NativeAOT for every bundled RID. The cross Build legs (Linux ARM/ARM64/musl-x64/musl-arm/musl-arm64) lacked a cross toolchain + sysroot, so ILC's lld cross-link fails withld.lld: cannot open Scrt1.o/unable to find library -ldl/-lrt/-lm/-lgcc. This breaks those 5 legs on every public-CI build.Fix
Run the affected legs in the azurelinux cross-prereq containers with
ROOTFS_DIR=/crossrootfs/<arch>and-p:CrossBuild=true, mirroring #67158:ci-public.yml: inline cross images + per-legROOTFS_DIRvariable +-p:CrossBuild=true(ARM64 leg threads CrossBuild through its inline./eng/build.shscript).ci-unofficial.yml: adds the 5 named cross container resources and references them per-leg with the sameROOTFS_DIR+-p:CrossBuild=true.Co-authored-by: Copilot [email protected]