Re: Package of GCC 12 on CentOS 7

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

On 2022-06-20 05:03, Pete Biggs wrote:
On Mon, 2022-06-20 at 09:31 +0100, david allan finch wrote:
Is there an rpm of GCC 12 (or at least higher than 9) available to
download and install, or is it a case of downloading and build from the
source yourself?

That's what Software Collections is for.

Specifically you need one of the devtoolset collections - it goes up to
11 which, unsurprisingly, provides gcc-11 on CentOS 7. So:

# yum install centos-release-scl
# yum install devtoolset-11
# scl enable devtoolset-11 bash

and gives:

# gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap
--with-bugurl= --enable-shared
--enable-threads=posix --enable-checking=release --enable-multilib
--with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-linker-build-id --with-gcc-major-version-only
--with-default-libstdcxx-abi=gcc4-compatible --enable-plugin
--enable-gnu-indirect-function --with-tune=generic
--with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.2.1 20210728 (Red Hat 11.2.1-1) (GCC)



As David was asking about obtaining and installing GCC 12, wouldn't installing GCC 11, as noted above, leave him downlevel?

Mike Burger

"It's always suicide-mission this, save-the-planet that. No one ever just stops by to say 'hi' anymore." --Colonel Jack O'Neill, SG1
CentOS mailing list

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]

  Powered by Linux