Repository navigation
Fix internal CI NativeAOT cross-build for ARM/ARM64/musl legs - #67158
Merged
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 internal-only ARM, ARM64 and musl build legs lacked a native cross toolchain, so ILC's lld cross-link failed (missing --sysroot / no 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 how the VMR builds these RIDs. Co-authored-by: Copilot <[email protected]>
SamMonoRT
approved these changes
Jun 11, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the internal CI build legs that cross-build Linux ARM/ARM64 and linux-musl (x64/arm/arm64) so they run in Azure Linux cross-compilation prereq containers that include clang and a prebuilt sysroot. This aligns internal CI behavior with VMR builds and fixes NativeAOT cross-link failures introduced by newly-added NativeAOT publishing for additional bundled RIDs.
Changes:
- Add Azure Linux cross-compilation container resources for ARM/ARM64 and musl variants.
- Switch the internal Linux ARM/ARM64 and linux-musl build legs to those containers and set
ROOTFS_DIR. - Pass
-p:CrossBuild=trueso NativeAOT uses the sysroot/target appropriately during ILC linking.
Member
Author
|
Public CI doesn't execute this path - merging |
wtgodbe
added a commit
that referenced
this pull request
Jun 17, 2026
#67252) The dotnet-dev-certs/dotnet-user-secrets/dotnet-user-jwts tools now publish NativeAOT for every bundled RID (added by VMR backflow #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 #67158. Co-authored-by: Copilot <[email protected]>
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.
The dotnet-dev-certs/dotnet-user-secrets/dotnet-user-jwts tools now publish NativeAOT for every bundled RID (added by VMR backflow #66933). The internal-only ARM, ARM64 and musl build legs lacked a native cross toolchain, so ILC's lld cross-link failed (missing --sysroot / no clang).
Run these 5 legs in the dotnet-buildtools azurelinux cross-prereq containers (clang + /crossrootfs/), set ROOTFS_DIR, and pass /p:CrossBuild=true so LocateNativeCompiler.targets sets SysRoot=$(ROOTFS_DIR) and ILC emits --sysroot/--target. Mirrors how the VMR builds these RIDs.