Score:0

What is the general process and timeline for providing latest gcc compiler versions in an LTS release?

in flag

For example Ubuntu 20.04 provides gcc-10 packages but it is still missing gcc-11. Both Ubuntu 21.04 and 21.10 provide gcc-11 packages. When does 20.04 get gcc-11? I am aware there are other ways to install gcc-11, but I am interested in finding out it's general availability in 20.04.

guiverc avatar
cn flag
Does this answer your question? [Why don't the Ubuntu repositories have the latest versions of software?](https://askubuntu.com/questions/151283/why-dont-the-ubuntu-repositories-have-the-latest-versions-of-software)
in flag
Not really, 20.04 provides gcc-10 over and above gcc-9. Question is more about how and when compiler packages with higher version make into the 20.04 repositories. @mchid answer is helpful in that it may never get a release.
guiverc avatar
cn flag
Upgrades occur when security fixes are required; in most cases that means security patches are back-ported to existing packages - but there are rare exceptions where it's more work to backport fixes than to provide & fully QA-test the newer version; in which case the newer version will replace the older package. That has occurred twice thus for with *focal* (or 20.04); but it's rare. No-one has a crystal ball; but yeah it's unlikely security-flaws in gcc-9 will be that bad that it'll be replaced with gcc-10.
Score:3
bo flag

When does 20.04 get gcc-11?

Probably never. For example, 20.04 has gcc-10 but 18.04 only has up to gcc-8.

In order to gain access to newer versions of gcc, the generally accepted method is to use the ubuntu-toolchain-r/test ppa:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.