Containers: Add gcc-multilib for IA32 cross-compilation support#572
Merged
apop5 merged 2 commits intoMay 4, 2026
Merged
Conversation
Contributor
|
These need to target the files under .sync/containers. https://github.com/microsoft/mu_devops/tree/main/.sync/containers the Container files are synced through a github action so that the GCC version and other things are pulled from version.njk |
Add gcc-multilib to .sync/containers/ Nunjucks templates for both Ubuntu-22 and Ubuntu-24 images. This provides 32-bit glibc headers required for IA32 (-m32) builds with GCC. The container images already install cross-compilation toolchains for ARM, AArch64, and RISC-V but lack the 32-bit x86 equivalent. On x86_64 hosts, compiling for IA32 uses the native GCC with -m32, which requires the multilib package for 32-bit headers and libraries.
a946e74 to
35601fe
Compare
apop5
approved these changes
May 4, 2026
makubacki
reviewed
May 4, 2026
makubacki
approved these changes
May 4, 2026
AGESA's IdsIdGen.pl uses XML::Simple and XML::Parser to generate header files (e.g. IdsNvIdWH.h) at build time. Without these Perl modules, CBS library compilation fails with missing headers.
5ec34f4 to
9970158
Compare
Contributor
Author
|
@microsoft-github-policy-service agree company="Microsoft" |
apop5
pushed a commit
that referenced
this pull request
May 5, 2026
## Description Reverts the Ubuntu-22 Dockerfile changes from #572. These packages (gcc-multilib, g++-multilib, libxml-parser-perl, libxml-simple-perl) are only needed for the Ubuntu-24 container image. **Why revert Ubuntu-22:** - No known consumer uses Ubuntu-22 for IA32 cross-compilation - The multilib packages conflict with \gcc-12-x86-64-linux-gnux32\ causing a failure with exit code 100 - The Perl XML modules were added for AGESA CBS header generation which only runs in the Ubuntu-24 pipeline ## Changes - Removes \libxml-parser-perl\ and \libxml-simple-perl\ from Ubuntu-22 Dockerfile template - Removes \g++-\-multilib\ and \gcc-\-multilib\ from Ubuntu-22 Dockerfile template ## Testing Ubuntu-24 container is unaffected (retains all additions from #572). Co-authored-by: Ansen Huang <ansenhuang@microsoft.com>
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.
Description
The Ubuntu-22 and Ubuntu-24 build container templates (.sync/containers/) are missing several packages required for IA32 cross-compilation and AGESA firmware builds.
Problem
IA32 builds fail with atal error: bits/libc-header-start.h: No such file or directory
AGESA CBS builds fail with atal error: IdsNvIdWH.h: No such file or directory
Root Cause
The container images already install cross-compilation toolchains for ARM, AArch64, and RISC-V architectures, but lack:
Changes
Added to .sync/containers/Ubuntu-22/Dockerfile and .sync/containers/Ubuntu-24/Dockerfile:
Testing
Validated against a Project MU AMD platform build targeting IA32+X64 architectures with TOOL_CHAIN_TAG=GCC. Without these packages: