Skip to content

bazel: Switch to hermetic gcc toolchains - #39632

Merged
phlax merged 1 commit into
envoyproxy:mainfrom
phlax:gcc-toolchain
Nov 2, 2026
Merged

phlax merged 1 commit into
envoyproxy:mainfrom
phlax:gcc-toolchain

Conversation

@phlax

@phlax phlax commented May 26, 2025 •

Copy link
Copy Markdown
Member
  • Adds explicit GCC selection, a shared hermetic sysroot, LLD linking, and host-GCC overrides.
  • Extends toolchain diagnostics, CI matrix checks, and GCC build/test modes.
  • Removes legacy GCC RBE configuration and image metadata; updates runtime dependencies, documentation, and lockfiles.

@repokitteh-read-only repokitteh-read-only Bot added the deps Approval required for changes to Envoy's external dependencies label May 26, 2025
@repokitteh-read-only

Copy link
Copy Markdown

CC @envoyproxy/dependency-shepherds: Your approval is needed for changes made to (bazel/.*repos.*\.bzl)|(bazel/dependency_imports\.bzl)|(api/bazel/.*\.bzl)|(.*/requirements\.txt)|(.*\.patch).
envoyproxy/dependency-shepherds assignee is @agrawroh

🐱

Caused by: #39632 was opened by phlax.

see: more, trace.

@phlax phlax changed the title bazel: Use a hermetic gcc toolchain [WIP] bazel: Use a hermetic gcc toolchain May 26, 2025
@phlax
phlax marked this pull request as draft May 26, 2025 17:38
@phlax
phlax force-pushed the gcc-toolchain branch 4 times, most recently from a4e8300 to f6adc64 Compare May 26, 2025 18:03
@phlax

phlax commented May 26, 2025

Copy link
Copy Markdown
Member Author

hmm, sees gcc 13 is not supported after all atm - i might try patching it to see if it can work

@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@github-actions github-actions Bot added the stale stalebot believes this issue/PR has not been touched recently label Jun 25, 2025
@phlax phlax added no stalebot Disables stalebot from closing an issue and removed stale stalebot believes this issue/PR has not been touched recently labels Jun 25, 2025
@phlax

phlax commented Jun 25, 2025

Copy link
Copy Markdown
Member Author

cc @jwendell

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The dev-only extension breaks downstream Clang/OpenSSL dependency resolution, and the documented outside-workspace GCC invocation omits required target and host C++20 options.

4 open issues
2 resolved since last review

Review effort: Balanced

Comment thread MODULE.bazel Resolved
Comment thread bazel/README.md Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The replacement GCC toolchain drops frame-pointer preservation and optimized-build section garbage-collection flags, risking truncated profiler call chains and larger binaries.

2 open issues
4 resolved since last review

Review effort: Balanced

Comment thread .bazelrc Resolved
Comment thread MODULE.bazel Resolved
@phlax
phlax force-pushed the gcc-toolchain branch 2 times, most recently from 6e7c704 to 8879fd0 Compare October 30, 2026 18:36
@phlax
phlax requested a balanced review from Copilot October 30, 2026 18:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The version bump leaves both dependency metadata files with the outdated release date 2026-10-15 instead of 2026-10-30, contrary to the required update.

3 open issues

Review effort: Balanced

Comment thread MODULE.bazel Resolved
@phlax phlax changed the title [WIP] bazel: Switch to hermetic gcc toolchains bazel: Switch to hermetic gcc toolchains Oct 30, 2026
@phlax
phlax marked this pull request as ready for review October 30, 2026 19:17
@phlax

phlax commented Nov 1, 2026

Copy link
Copy Markdown
Member Author

/retest flakey example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deps Approval required for changes to Envoy's external dependencies no stalebot Disables stalebot from closing an issue workflows:untested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants