Skip to content

Pin gcc to a release tarball - #835

Open
JuliusBairaktaris wants to merge 1 commit into
shinchiro:masterfrom
JuliusBairaktaris:gcc-release-tarball
Open

Pin gcc to a release tarball#835
JuliusBairaktaris wants to merge 1 commit into
shinchiro:masterfrom
JuliusBairaktaris:gcc-release-tarball

Conversation

@JuliusBairaktaris

Copy link
Copy Markdown

The pinned snapshot predates the __cpp_char8_t guard in libcody, so u8" " deduces as char8_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.

Copilot AI review requested due to automatic review settings August 1, 2026 01:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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_HASH accordingly.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread toolchain/gcc/gcc.cmake Outdated
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>
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