Repository navigation
Conversation
|
Azure Pipelines: Successfully started running 3 pipeline(s). 12 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @dotnet/runtime-infrastructure |
am11
force-pushed
the
feature/crosstool-ng-rootfs
branch
4 times, most recently
from
November 28, 2026 07:47
a536d13 to
dfa8a86
Compare
am11
force-pushed
the
feature/crosstool-ng-rootfs
branch
3 times, most recently
from
November 28, 2026 13:34
1f1ac67 to
a170ce5
Compare
This was referenced Nov 28, 2026
Open
Add `eng/common/cross/crosstool-ng-build-rootfs.sh`, which builds a glibc rootfs for cross-compiling with the host clang, without depending on a Linux distribution's package archive. The rootfs is only read at build time (headers, crt objects and link-time libraries); nothing in it is executed. That makes it possible to choose every dependency precisely and independently: - **C/C++ ABI floor:** glibc, the GCC runtime (`libstdc++`, `libgcc_s`) and the kernel UAPI headers are built from source with [crosstool-ng](https://crosstool-ng.github.io/). Their versions set the `GLIBC_*`/`GLIBCXX_*` floor of the produced binaries explicitly, instead of inheriting whatever a distro release ships. - **Other dependencies:** OpenSSL, ICU, krb5, lttng-ust (with userspace-rcu) and the LLDB headers are built from pinned upstream tarballs, installing only headers and libraries. - **Single table:** every input is verified by sha256 and listed in one table, where an architecture can override a version, add a dependency or drop one without special casing in the script. Compared to the Ubuntu-based rootfs, the result contains only what the build reads: about 85 MB (arm64) instead of about 740 MB (Ubuntu-based x64), without the perl, python, gcc/binutils and LLVM packages that apt pulls in but the build never uses.
am11
force-pushed
the
feature/crosstool-ng-rootfs
branch
from
November 29, 2026 00:14
a507f28 to
7f847fc
Compare
This branch has not been deployed
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.
Testing upstream PR dotnet/dotnet-buildtools-prereqs-docker#1845
Add
eng/common/cross/crosstool-ng-build-rootfs.sh, which builds a glibc rootfs for cross-compiling with the host clang, without depending on a Linux distribution's package archive.The rootfs is only read at build time (headers, crt objects and link-time libraries); nothing in it is executed. That makes it possible to choose every dependency precisely and independently:
libstdc++,libgcc_s) and the kernel UAPI headers are built from source with crosstool-ng. Their versions set theGLIBC_*/GLIBCXX_*floor of the produced binaries explicitly, instead of inheriting whatever a distro release ships.Compared to the Ubuntu-based rootfs, the result contains only what the build reads: about 85 MB (arm64) instead of about 740 MB (Ubuntu-based x64), without the perl, python, gcc/binutils and LLVM packages that apt pulls in but the build never uses.