Skip to content

Add GCC 11 #3280

@EwoutH

Description

@EwoutH

Today GCC 11.1 was released, the first stable release of GCC 11.

Currently GCC gets installed using the gcc.sh installer script, using the versions in the toolset-2004.json and toolset-1804.json files. It uses the ubuntu-toolchain-r/test repository, which doesn't have gcc-11 available.

At this moment, a stable GCC 11 version is not yet available on either Ubuntu packages (so not for focal-updates) or Debian packages (only on experimental), which is where the complication starts.

Options to install GCC-11:

  • Building from source
  • Building once and caching/hosting somewhere
  • Using experimental toolchain
  • Waiting for package managers to update
  • More?

Lets use this issue to discuss how GCC 11 can be installed best on the Ubuntu images.

Tool information

Area for Triage: C/C++

Question, Bug, or Feature?: Feature

Virtual environments affected

  • Ubuntu 18.04
  • Ubuntu 20.04

Can this tool be installed during the build?
Yes

Tool installation time in runtime
Probably about the same other GCC versions

Are you willing to submit a PR?
Depends

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions