This repository was archived by the owner on Sep 4, 2025. It is now read-only.
Ensure version alignment of multi-arch GCC base libraries to prevent libc6:arm64 / libgcc-s1 conflicts during cross-compilation setup #1019
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.
My…
What does this PR do?
[Provide a clear, concise description of the changes]This PR fixes version conflicts when installing the arm64 cross-compilation toolchain on an amd64 Ubuntu host. The root cause was that certain core libraries, such as
libgcc-s1,gcc-*-base, are marked Multi-Arch: same, which means they must be installed at the exact same version across all enabled architectures (here amd64 (the host) and arm64). Previously, while installinglibc6:arm64, the apt could resolve aibgcc-s1:arm64to a different or newer version thanlibgcc-s1:amd64, leading to conflicts.The original CI failure was
[Any additional context, screenshots, or information that helps reviewers]See the original error here
[Any additional context, screenshots, or information that helps reviewers]GitHub issue number?
[Link to the GitHub issue this PR addresses]Pre-merge Checklist
CHANGELOG.mdfor product changes (features, bug fixes, UI/UX, updated dependencies).\eng\common\spelling\Invoke-Cspell.ps1README.mddocumentation/docs/azmcp-commands.md/docs/e2eTestPrompts.mdeng/tools/ToolDescriptionEvaluatortool and obtained a result >= 0.4crypto mining, spam, data exfiltration, etc.)/azp run azure - mcpto run Live Test Pipeline