Pin gcc to a release tarball - #835
Open
JuliusBairaktaris wants to merge 1 commit into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the GCC source used by the build toolchain to pin to a stable GCC release tarball rather than a snapshot, avoiding snapshot pruning and fixing build failures on hosts defaulting to C++20.
Changes:
- Switch GCC download URL from a sourceware snapshot tarball to the official GCC 14.4.0 release tarball on ftp.gnu.org.
- Update the pinned SHA512
URL_HASHaccordingly.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| mingw-w64-headers | ||
| URL https://mirrorservice.org/sites/sourceware.org/pub/gcc/snapshots/14-20251205/gcc-14-20251205.tar.xz | ||
| URL https://ftp.gnu.org/gnu/gcc/gcc-14.4.0/gcc-14.4.0.tar.xz | ||
| # https://mirrorservice.org/sites/sourceware.org/pub/gcc/snapshots/13-20240309/sha512.sum |
The snapshot tarballs are rotated off sourceware after a while, so the pinned URL 404s once that happens and the build breaks. Point at the GCC 14.4.0 release on ftp.gnu.org instead. Drop the checksum-source comment rather than repoint it: GNU publishes GPG .sig files for the releases, not an sha512.sum listing, so there is no equivalent file to link. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
JuliusBairaktaris
force-pushed
the
gcc-release-tarball
branch
from
August 1, 2026 09:46
7ab992c to
ad27f18
Compare
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.
The pinned snapshot predates the
__cpp_char8_tguard in libcody, sou8" "deduces aschar8_t[]and libcody fails to compile on hosts that now default to C++20 — the archlinux container's gcc 16 does. Snapshots also get pruned from sourceware eventually.14.4.0 has the guard, and the ftp.gnu.org URL is permanent. Verified by building the x86_64-w64-mingw32 toolchain in ghcr.io/shinchiro/archlinux:latest.