🌐
GitHub
github.com › gcc-mirror › gcc › releases
Releases · gcc-mirror/gcc
gcc-mirror / gcc Public mirror ... · Releases · gcc-mirror/gcc · You can create a release to package software, along with release notes and links to binary files, for other people to use....
Author   gcc-mirror
🌐
GitHub
github.com › gcc-mirror › gcc
GitHub - gcc-mirror/gcc
Contribute to gcc-mirror/gcc development by creating an account on GitHub.
Starred by 10.7K users
Forked by 4.7K users
Languages   C++ 30.1% | C 29.3% | Ada 14.0% | D 5.9% | Go 5.3% | HTML 3.6%
🌐
GNU
gcc.gnu.org › git.html
GCC: Anonymous read-only Git access - GNU Project
Git allows you to share the git object repository between multiple working directories, each tracking a different branch. For instance, to create a worktree for a release branch, do · git worktree add ../gcc-9 releases/gcc-9 To create a worktree for a new project branch based on master, do
🌐
GitHub
github.com › xpack-dev-tools › gcc-xpack
GitHub - xpack-dev-tools/gcc-xpack: A binary distribution of the GNU Compiler Collection (GCC)
A standalone, cross-platform (Windows, ... to the project website. The source code of the current release is available on GitHub tag v15.2.0-1.1 tree....
Starred by 50 users
Forked by 5 users
Languages   MDX 82.3% | TypeScript 7.1% | Shell 6.4% | CSS 2.6% | JavaScript 1.6%
🌐
GitHub
github.com › huangguiyang › gcc-0.9
GitHub - huangguiyang/gcc-0.9: The first available release, on March 22, 1987.
The first available release, on March 22, 1987. Contribute to huangguiyang/gcc-0.9 development by creating an account on GitHub.
Starred by 75 users
Forked by 18 users
Languages   C 84.5% | GCC Machine Description 6.5% | C++ 4.4% | Yacc 3.7% | Makefile 0.5% | TeX 0.4%
🌐
GitHub
gist.github.com › yosoufe › ad45f45c10fe08abecbf53000d0d199f
Compile and install gcc-9.3.0 · GitHub
Compile and install gcc-9.3.0. GitHub Gist: instantly share code, notes, and snippets.
🌐
Rust-gcc
rust-gcc.github.io › 2023 › 04 › 24 › gccrs-and-gcc13-release.html
GCC 13 and the state of gccrs | Alternative Rust Compiler for GCC
We aim to distribute the Rust 1.49 version of the standard library with our compiler in the next major GCC release, GCC 14, and hope to backport enough changes to the GCC 13 branch to get the core crate working in time for the GCC 13.2 release. This will enable users to easily start experimenting ...
🌐
GitHub
github.com › simonjwright › distributing-gcc › releases
Releases · simonjwright/distributing-gcc
... This is GCC 14.2.0-1 built as cross-compilers from macOS to arm-eabi or riscv64-elf, on macOS Sonoma (14, Darwin 23) but able to run on Monterey, for aarch64 silicon, with Command Line Utilities 15.3.0 and Python 3.9.13.
Author   simonjwright
🌐
Jmeubank
jmeubank.github.io › tdm-gcc
tdm-gcc
The latest release is based on GCC 10.3.0.
Find elsewhere
🌐
GitHub
github.com › apple-opensource-mirror › gcc
GitHub - apple-opensource-mirror/gcc: Mirror of Apple's open source release of gcc
Mirror of Apple's open source release of gcc. Contribute to apple-opensource-mirror/gcc development by creating an account on GitHub.
Author   apple-opensource-mirror
🌐
GitHub
github.com › topics › gcc-compiler
gcc-compiler · GitHub Topics · GitHub
Script collection to build ready to use GCC 13.1.0 cross and/or native toolchains: C and C++ for all, (Fortran, ADA, D and GO for native compiler only).
🌐
GitHub
github.com › gcc-mirror › gcc › blob › master › README
gcc/README at master · gcc-mirror/gcc
This directory contains the GNU Compiler Collection (GCC).
Author   gcc-mirror
🌐
Jwakely
jwakely.github.io › pkg-gcc-latest
Binary packages for GCC snapshots - GitHub Pages
... GCC 16-20251221 Snapshot This snapshot has been generated from the GCC 16 git branch with the following options: git://gcc.gnu.org/git/gcc.git branch master revision abf3f0b24c4d · RPM packages for Fedora, RHEL, CentOS, and openSUSE are built and hosted in the jwakely/gcc-latest COPR.
🌐
GitHub
github.com › marketplace › actions › install-gcc
Install GCC - GitHub Marketplace
This table should be updated periodically; it's a work-in-progress. (Note to self: the list of available GCC versions can be found here and in the PPA repo.)
🌐
GNU
gcc.gnu.org
GCC, the GNU Compiler Collection - GNU Project
The GNU Compiler Collection includes front ends for C, C++, Objective-C, Objective-C++, Fortran, Ada, Go, D, Modula-2, COBOL, Rust, and Algol 68 as well as libraries for these languages (libstdc++,...). GCC was originally written as the compiler for the GNU operating system.
🌐
GitHub
github.com › BobSteagall › gcc-builder
GitHub - BobSteagall/gcc-builder: A collection of scripts for building GCC on Linux
In the following text, the version numbers will be referred to as 15.X.0 or 15X0, depending on the usage and context. The 'X' refers to GCC's minor version number; e.g., if 'X' is '2', then you intend to build, install, and use GCC 15.2.0. In order to run these scripts, the following prerequisites must be installed: a. lsb_release on Linux b.
Starred by 64 users
Forked by 15 users
Languages   Shell 97.5% | Makefile 2.5%
Top answer
1 of 2
3

For the linux build you can use the following build step to switch the default gcc to gcc-10.

- name: switch to gcc-10 on linux
  if: matrix.configurations.os == "ubuntu-latest"
  run: |
    sudo apt install gcc-10 g++-10
    sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10 --slave /usr/bin/gcov gcov /usr/bin/gcov-10
    sudo update-alternatives --set gcc /usr/bin/gcc-10

The first 2 lines in the script should be optional, as gcc-10 is already installed in ubuntu-latest. But it doesn't hurt much to have them there and it might help to make clear what is happening and how to reproduce the build locally. You can check the manpage for update-alternatives if you are interested how this works.

windows-latest uses visual-studio as it's default compiler, but since you only asked about gcc I suppose that it already supports the c++ features you are using?

2 of 2
1

@wirew0rm posted an excellent answer, which works very well generically. It's useful to note that one is allowed to use sudo on the GitHub CI runners, and so one simply needs to install the desired packages:

sudo apt install gcc-10 g++-10

# or
sudo apt install gcc-11 g++-11

# or, for very recent Clang:
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 12
sudo apt-get install libc++-12-dev libc++abi-12-dev

Then, because I was using CMake, I could set the CXX environment variable instead of using sudo update-alternatives:

echo "CXX=g++-10" >> $GITHUB_ENV

The subsequent CMake configure step would then select g++-10 as the C++ compiler.

🌐
Jmeubank
jmeubank.github.io › tdm-gcc › articles › 2021-05 › 10.3.0-release
TDM-GCC 10.3.0 release | tdm-gcc
TDM-GCC 10.3.0 is now available, along with GDB 10.2, binutils 2.36.1, andnew versions of the MinGW.org and MinGW-w64 runtime distributions. Thanks foryour p...
🌐
Rust-gcc
rust-gcc.github.io
GCC Front-End For Rust | Alternative Rust Compiler for GCC
Going forward, we will be happy to see more LLVM vs GCC graphs in respect to compilation speed, resulting code size and performance. The project is still in an early phase with the goal to compile the offical Rust test suite. While there is no borrow-checker included with the compiler yet, we plan to integrate with the polonius effort and leverage its borrow-checking algorithms. You can find compiler status reports over on: https://github...