fix(gnu.org/gcc/v8): make usable as a build compiler + add aarch64#13733
Merged
Conversation
gcc 8 is needed from source to build legacy C++ that modern gcc rejects (e.g. MySQL 5.7, pantry#13062). Two blockers today: 1. `provides:` was commented out, so a downstream recipe that build-depends on gnu.org/gcc/v8 gets no `gcc`/`g++` on PATH and silently falls back to the default gcc — which then fails on the legacy sources. Publish the toolchain binaries so it can actually be selected as the build compiler. 2. Only `linux` (implicitly x86-64) was listed; add linux/aarch64 so arm64 consumers can use it too. Also switch the ar/nm/ranlib shims to direct relative symlinks into the binutils bottle (the previous pkgx-wrapper form broke under bazel/strict action envs), and tidy the version test. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.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.
What
Make
gnu.org/gcc/v8usable as a build-time compiler for downstream recipes, and addlinux/aarch64.Why
gcc 8 is required from source to build legacy C++ that modern gcc (14/15/16) rejects — MySQL 5.7 being the immediate consumer (#13062). Two problems block that today:
provides:is commented out. A recipe thatbuild.dependencies: gnu.org/gcc/v8therefore gets nogcc/g++onPATHand silently falls back to the default gcc, which then fails on the old sources. This publishes the toolchain binaries so v8 can actually be selected as the build compiler. (The prior comment — "not wise to publish, users invoke explicitly" — is about end-user PATH; but a build-dep genuinely needs the binaries exposed.)linux(x86-64 in practice) was listed; addlinux/aarch64.Also switches the
ar/nm/ranlibshims to direct relative symlinks into the binutils bottle (the pkgx-wrapper form broke under bazel/strict action envs) and tidies the version test.Notes
Extracted from #13062 so the compiler change can land and be reviewed independently; #13062 will then just build-depend on it.
🤖 Generated with Claude Code