
On Wed, 11 May 2022 08:48:22 -0500 "David C. Rankin" <drankinatty@gmail.com> wrote:
I really do not want to have two differing versions of gcc installed (no good comes from that), but don't see getting much mileage out of gcc 7.5 when C++20 is needed.
It's a long-standing problem. When a compiler is used in building a system - e.g. to compile a kernel module - then you must have the same version that was used originally to build the system (e.g. kernel). So that is always installed and often becomes quite old (but still supported). Various other independent software may require a newer version of the compiler (e.g. a work project). So distros and languages provide mechanisms to allow multiple versions of compilers to exist on a system.
Any chance gcc will get an update before the 15.4 release (gcc 11 is fine, no need to jump on the bleeding edge of 12). If not, is there a safe way to have a non-conflicting gcc install generally available in a 15.4 install?
As others have said, yes.