Skip to content

Follow-up to #5490: preserve sysroot compatibility and validate GCC runtimes - #5491

Closed
phlax with Copilot wants to merge 2 commits into
copilot/gcc-toolchain-hermetic-fixfrom
copilot/copilotgcc-toolchain-hermetic-fix-again
Closed

phlax with Copilot wants to merge 2 commits into
copilot/gcc-toolchain-hermetic-fixfrom
copilot/copilotgcc-toolchain-hermetic-fix-again

Conversation

Copilot AI commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Layers review follow-ups onto copilot/gcc-toolchain-hermetic-fix, retaining hermetic GCC 13.4.0, a shared base sysroot, and static C++ runtimes. Preserves downstream compatibility while providing a migration path away from libstdc++ sysroot variants.

  • Legacy sysroots: Restore stdcc_version, published hashes, and download URLs. Pin deprecated variants to their existing release; preserve release metadata without rebuilding them.
  • Runtime exports: Add public GCC :libstdcxx and :libgcc targets, CcInfo analysis coverage, and prefixer migration guidance:
    copts = ["-nostdinc++", "-stdlib=libstdc++"],
    deps = ["@gcc_linux_x86_64//:libstdcxx"],
  • Registration and execution: Make internal GCC registrations dev-only. Remove the unusable arm64 GCC execution platform; aarch64 GCC builds cross-compile on x86_64 workers.
  • ABI enforcement: Centralize GCC pins, add static-runtime compatibility checks, and document measured GLIBC requirements and compiler search paths. Add a linked wee8 probe to GCC CI, retaining archive-name checks as a pre-filter.

Release dependency: Rebuild both wee8 libstdc++ archives and publish their hashes in the next bins-v* release. The linked probe remains hash-gated until the incompatible x86_64 prebuilt is replaced; aarch64 awaits its first archive.

@phlax
phlax added this pull request to stack #5492 October 25, 2026 20:10
…untimes

Co-authored-by: phlax <454682+phlax@users.noreply.github.com>
Copilot AI changed the title [WIP] Update GCC toolchain for backward compatibility with libstdc++ Follow-up to #5490: preserve sysroot compatibility and validate GCC runtimes Oct 25, 2026
Copilot AI requested a review from phlax October 25, 2026 20:26
@phlax phlax closed this Oct 26, 2026
@phlax
phlax deleted the copilot/copilotgcc-toolchain-hermetic-fix-again branch October 26, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants