🌐
GNU
gcc.gnu.org › gcc-11
GCC 11 Release Series - GNU Project
July 19, 2024 - This release is a bug-fix release, containing fixes for regressions in GCC 11.4 relative to previous releases of GCC. GCC 11.5 · July 19, 2024 (changes, documentation) GCC 11.4 · May 29, 2023 (changes, documentation) GCC 11.3 · April 21, 2022 (changes, documentation) GCC 11.2 · July 28, 2021 ...
🌐
GNU
gcc.gnu.org › releases.html
GCC Releases - GNU Project
April 30, 2026 - GCC releases may be downloaded from our mirror sites. Important: these are source releases, so will be of little use if you do not already have a C++ compiler installed. As one option, there are pre-compiled binaries. for various platforms. You can also retrieve our sources using Git. The table is sorted by date...
🌐
LinuxReviews
linuxreviews.org › GCC_11_Will_Be_Set_In_Stone_On_November_15th
GCC 11 Will Be Set In Stone On November 15th - LinuxReviews
The long bug-fixing cycle following GCC's feature-freeze is typical five to six months long. That places the final GCC 11 release around April/May 2021.
🌐
GNU
gcc.gnu.org › pipermail › gcc › 2021-April › 235922.html
GCC 11.1 Released - GCC, the GNU Compiler Collection
April 27, 2021 - Jakub Jelinek jakub@redhat.com Tue Apr 27 12:28:37 GMT 2021 ... The GCC developers are proud to announce another major GCC release, 11.1. This release switches the default debugging format to DWARF 5 [1] on most targets and switches the default C++ language version to -std=gnu++17.
🌐
SUSE
documentation.suse.com › sbp › devel-tools › html › SBP-GCC-11 › index.html
Advanced Optimization and New Capabilities of GCC 11 | SUSE Linux Enterprise Server 15 SP3
March 14, 2022 - The first release of the GNU Compiler Collection (GCC) with the major version 11, GCC 11.1, took place in March 2021. In late May of the same year, the entire openSUSE Tumbleweed Linux distribution was rebuilt with it and shipped to users.
🌐
Wikidata
wikidata.org › wiki › Q178940
GNU Compiler Collection - Wikidata
GCC 11.2 Released (English) publication date · 28 July 2021 · 11.3 · publication date · 21 April 2022 · version type · bug-fix release · download URL · https://ftpmirror.gnu.org/gcc/gcc-11.3.0/ 1 reference · reference URL · ...
🌐
GNU
gcc.gnu.org › gcc-11 › changes.html
GCC 11 Release Series — Changes, New Features, and Fixes - GNU Project
This is the list of problem reports (PRs) from GCC's bug tracking system that are known to be fixed in the 11.1 release.
🌐
Red Hat
developers.redhat.com › blog › 2021 › 01 › 28 › static-analysis-updates-in-gcc-11
Static analysis updates in GCC 11 | Red Hat Developer
February 8, 2021 - GCC 11 will be in Fedora 34, which should also be out in the spring of 2021. For simple code examples, you can play around with the new GCC online at godbolt.org. Select your GCC "trunk" and add -fanalyzer to the compiler options.
🌐
LinuxReviews
linuxreviews.org › GCC_11.1_Is_Released
GCC 11.1 Is Released - LinuxReviews
April 28, 2021 - © CC BY · GCC compiling a simple "hello world" program. The GNU Compiler Collection 11.1 release is not, as the version number would imply, a bug-fix release for GCC 11. There was no GCC 11.0, there never are any .0 GCC releases.
Find elsewhere
🌐
GNU
gcc.gnu.org › pipermail › gcc › 2021-July › 236904.html
GCC 11.2 Released - GCC, the GNU Compiler Collection
July 28, 2021 - Previous message (by thread): GCC 11.2.1 Status Report (2021-07-28) ... The GNU Compiler Collection version 11.2 has been released. GCC 11.2 is a bug-fix release from the GCC 11 branch containing important fixes for regressions and serious bugs in GCC 11.1 with more than 95 bugs fixed since ...
🌐
GNU
lists.gnu.org › archive › html › info-gnu › 2021-04 › msg00011.html
GCC 11.1 Released
The GCC developers are proud to announce another major GCC release, 11.1. This release switches the default debugging format to DWARF 5 [1] on most targets and switches the default C++ language version to -std=gnu++17.
🌐
NetPC
techrights.org › o › 2021 › 07 › 28 › gcc-11-2-released
Links 28/7/2021: GCC 11.2 Released
July 28, 2021 - Coming three months after GCC 11.1 as what was the first stable version of GCC 11, GCC 11.2 was released this morning as a standard point release.
🌐
GNU
gcc.gnu.org › develop.html
GCC Development Plan - GNU Project
April 30, 2026 - | +-- GCC 3.0 branch created ------+ ... (2018-07-26) GCC 9 Stage 3 (starts 2018-11-12) \ | v GCC 9 Stage 4 (starts 2019-01-07) GCC 8.3 release (2019-02-22) | \ | v | GCC 8.4 release (2020-03-04) | \ | v | GCC 8.5 release (2021-05-14) +-- GCC 9 branch created --------+ | \ | ...
🌐
GNU
gcc.gnu.org › pipermail › gcc › 2021-April › 235829.html
GCC 11.1 Release Candidate available from gcc.gnu.org
It has been generated from git revision r11-8265-g246abba01f302eb453475b650ba839ec905be76d. I have so far bootstrapped and tested the release candidate on x86_64-linux and i686-linux. Please test it and report any issues to bugzilla. If all goes well, I'd like to release 11.1 on Tuesday, April 27th.
🌐
LWN.net
lwn.net › Articles › 854572
GCC 11.1 released [LWN.net]
April 27, 2021 - -- If you have a working or partly working program that you'd like to offer to the GNU project as a GNU package, see https://www.gnu.org/help/evaluation.html. Posted Apr 27, 2021 21:22 UTC (Tue) by arnd (subscriber, #8866) [Link] I saw the release announcement just as I uploaded the set of ...
🌐
GNU
gcc.gnu.org › pipermail › gcc › 2021-April › 235923.html
GCC 11.1.1 Status Report (2021-04-27)
Jakub Jelinek jakub@redhat.com Tue Apr 27 15:41:00 GMT 2021 ... Status ====== GCC 11.1 has been released, the releases/gcc-11 branch is open again for regression and documentation bugfixing. GCC 11.2 can be expected in 2-3 months from now unless something serious changes the plans.
🌐
GNU
gcc.gnu.org › pipermail › gcc-announce › 2021 › 000166.html
GCC 11.1 Released
April 27, 2021 - Jakub Jelinek jakub@redhat.com Tue Apr 27 12:28:56 GMT 2021 ... The GCC developers are proud to announce another major GCC release, 11.1. This release switches the default debugging format to DWARF 5 [1] on most targets and switches the default C++ language version to -std=gnu++17.
Top answer
1 of 4
71
sudo apt install build-essential manpages-dev software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update && sudo apt install gcc-11 g++-11

Then use update-alternatives to set default gcc...

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90 --slave /usr/bin/g++ g++ /usr/bin/g++-9 --slave /usr/bin/gcov gcov /usr/bin/gcov-9 --slave /usr/bin/gcc-ar gcc-ar /usr/bin/gcc-ar-9 --slave /usr/bin/gcc-ranlib gcc-ranlib /usr/bin/gcc-ranlib-9  --slave /usr/bin/cpp cpp /usr/bin/cpp-9 && \

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 110 --slave /usr/bin/g++ g++ /usr/bin/g++-11 --slave /usr/bin/gcov gcov /usr/bin/gcov-11 --slave /usr/bin/gcc-ar gcc-ar /usr/bin/gcc-ar-11 --slave /usr/bin/gcc-ranlib gcc-ranlib /usr/bin/gcc-ranlib-11  --slave /usr/bin/cpp cpp /usr/bin/cpp-11;

To sample check settings to see which gcc is default you can run the following, if they show correct resuslts then the rest are fine...

gcc --version;g++ --version;gcov --version;

To reconfigure to any previous gcc version...

sudo update-alternatives --config gcc

You can do this on any version of ubuntu,... enjoy!

Here are my 6 different gcc's living side by side with the default being gcc-11:

$ sudo update-alternatives --config gcc
There are 6 choices for the alternative gcc (providing /usr/bin/gcc).

  Selection    Path             Priority   Status
------------------------------------------------------------
* 0            /usr/bin/gcc-11   1010      auto mode
  1            /usr/bin/gcc-10   1000      manual mode
  2            /usr/bin/gcc-11   1010      manual mode
  3            /usr/bin/gcc-5    40        manual mode
  4            /usr/bin/gcc-7    700       manual mode
  5            /usr/bin/gcc-8    800       manual mode
  6            /usr/bin/gcc-9    900       manual mode

Press <enter> to keep the current choice[*], or type selection number:
2 of 4
18

On Ubuntu 20.04, I followed the instructions here:

  • https://packages.ubuntu.com/hirsute/amd64/gcc-11-multilib/download

Which is to:

  1. Update the listed mirrors by adding a line to your /etc/apt/sources.list like this:

    sudo add-apt-repository 'deb http://mirrors.kernel.org/ubuntu hirsute main universe'

    Choose a mirror based on your location from the list. I chose the kernel mirror as I am in North America.

  2. sudo apt-get update

  3. sudo apt-get install gcc-11

After that which gcc-11 should produce a path to gcc-11. On my machine it was:

which gcc-11

produces: /usr/bin/gcc-11