Repository navigation
Build universal DBI from mirrored runtime source - #6159
Merged
max-charlamb merged 12 commits intoOct 28, 2026
Merged
max-charlamb merged 12 commits into
max-charlamb merged 12 commits into
Conversation
Co-authored-by: Copilot <[email protected]> Copilot-Session: 6297d10c-2f94-48bb-b897-bc0b3e1a855f
Mirror the current runtime DBI closure, reproduce the runtime PAL, debug, and DLL CMake scopes, and exclude the unrelated PAL event provider from the standalone graph. Co-authored-by: Copilot <[email protected]> Copilot-Session: 6297d10c-2f94-48bb-b897-bc0b3e1a855f
max-charlamb
marked this pull request as draft
October 27, 2026 13:55
The universal DBI does not use CoreCLR's in-process crash reporting. Remove the mirrored implementation and keep it out of the standalone DBI build graph. Co-authored-by: Copilot <[email protected]> Copilot-Session: 6297d10c-2f94-48bb-b897-bc0b3e1a855f
max-charlamb
force-pushed
the
dev/max-charlamb/build-universal-dbi
branch
from
October 27, 2026 14:06
bdb5c5b to
29dfc64
Compare
added 9 commits
October 27, 2026 10:15
Universal DBI is built from mirrored runtime source, so diagnostics no longer consumes the runtime-specific cDAC transport packages. Co-authored-by: Copilot <[email protected]> Copilot-Session: 6297d10c-2f94-48bb-b897-bc0b3e1a855f
The repository-wide Debug ignore rule excluded the DBI debugger implementation and PAL debug source from source-sync commits. Narrowly unignore the manifest-owned paths and add the missing files. Co-authored-by: Copilot <[email protected]> Copilot-Session: 6297d10c-2f94-48bb-b897-bc0b3e1a855f
Bring in the automated runtime source update and the merged Debug ignore cleanup. Co-authored-by: Copilot <[email protected]> Copilot-Session: 6297d10c-2f94-48bb-b897-bc0b3e1a855f
Load the mirrored runtime snapshot's CMake probe results when configuring universal DBI as a cross build. This keeps PAL try_run values aligned with the runtime sources and avoids executing target probes on the build host. Co-authored-by: Copilot <[email protected]> Copilot-Session: 6297d10c-2f94-48bb-b897-bc0b3e1a855f
Detect whether the cross-build kernel headers define the private expedited membarrier commands. Supply their stable Linux UAPI values for minipal when older diagnostics root filesystems do not provide them. Co-authored-by: Copilot <[email protected]> Copilot-Session: 6297d10c-2f94-48bb-b897-bc0b3e1a855f
Co-authored-by: Copilot <[email protected]> Copilot-Session: 6297d10c-2f94-48bb-b897-bc0b3e1a855f
Co-authored-by: Copilot <[email protected]> Copilot-Session: 6297d10c-2f94-48bb-b897-bc0b3e1a855f
Co-authored-by: Copilot <[email protected]> Copilot-Session: 6297d10c-2f94-48bb-b897-bc0b3e1a855f
Co-authored-by: Copilot <[email protected]> Copilot-Session: 6297d10c-2f94-48bb-b897-bc0b3e1a855f
max-charlamb
marked this pull request as ready for review
October 27, 2026 20:12
steveisok
approved these changes
Oct 28, 2026
This was referenced Oct 31, 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.
Summary
mscordbi_universaldirectly from the mirrored dotnet/runtime source instead of consumingMicrosoft.DotNet.Cdac.Transporttry_runcache when cross-compiling the DBIThe standalone CMake entry point reproduces the runtime PAL, debug, and DLL directory scopes while excluding unrelated PAL products. It does not include CoreCLR's in-process crash-report implementation because universal DBI has no crash-report callers.
The runtime source closure is maintained separately by the automated mirror. #6162 updated the mirror to runtime commit
9f06f271b8aa0cbb073b2bb6f85b16da576e6eaa, including the full debugger source closure needed by this build.The resulting Windows and Linux DBI compiler commands match the normal dotnet/runtime universal DBI build after normalizing source, intermediate, object, PDB, and dependency-file paths.
Validation
.\build.cmd -skipmanaged -architecture x64 -configuration Debugmscordbi_universal.dllSHA256 hashes matchedtryrun.cmakelibmscordbi_universal.soandlibmscordbi_universal.so.dbgHAVE_CLOCK_THREAD_CPUTIME_EXITCODEerror reported by CI, while the updated configuration succeeds<elf.h>withoutEM_RISCVand a<linux/membarrier.h>without the private expedited command identifiersaotminipalandmscordbi_universalcompleted all 364 build stepsaotminipalandmscordbi_universalcompleted all 362 build stepsazurelinux-3.0-net10.0-cross-amd64./build.sh -skipmanaged -cross -architecture x64 -configuration Debugcxxexception.cppandlibmscordbi_universal.soazurelinux-3.0-net10.0-cross-arm64./build.sh -skipmanaged -cross -architecture arm64 -configuration Debugcxxexception.cppandlibmscordbi_universal.solinux-musl-x64target RIDlibmscordbi_universal.socmake --build artifacts\obj\coreclr\windows.x64.Debug --target coreclr mscordbi_universalcmake --build artifacts/obj/coreclr/linux.x64.Release --target coreclr mscordbi_universalMicrosoft.DotNet.Cdac.TransportorCdacTransportreferences9f06f271b8aa0cbb073b2bb6f85b16da576e6eaagit diff --checkpassed for the authored PR changesNote
This pull request description was generated with GitHub Copilot.