[CentOS] gcc 8/9 on CentOS 7

Mon Jan 6 17:36:01 UTC 2020
Johnny Hughes <johnny at centos.org>

On 1/3/20 9:37 AM, sthustfo wrote:
>>
>> You will need to use the devtoolset builds to do this:
>>
>>
>> There is a gcc 8 .. but not gcc 9
>>
>> https://www.softwarecollections.org/en/scls/rhscl/devtoolset-8/
>>
>> I did install gcc 8 from devtoolset-8 (SCL repo). However I am unable to
> compile 32-bit programs because devtoolset-8-libstdc++-devel.i686 package
> is missing from CentOS SCL repository. This is mentioned here
> <https://bugzilla.redhat.com/show_bug.cgi?id=1642077> as well.
> 
> g++ -m32 helloworld.cpp
> /opt/rh/devtoolset-8/root/usr/libexec/gcc/x86_64-redhat-linux/8/ld:
> skipping incompatible
> /opt/rh/devtoolset-8/root/usr/lib/gcc/x86_64-redhat-linux/8/libstdc++_nonshared.a
> when searching for -lstdc++_nonshared
> /opt/rh/devtoolset-8/root/usr/libexec/gcc/x86_64-redhat-linux/8/ld: cannot
> find -lstdc++_nonshared
> collect2: error: ld returned 1 exit status
> 
> Are there any plans to add the missing i686 package? Otherwise, what other
> options does one have to get to gcc 8/9?

I have built the i686 devtoolset-8 items here:

https://buildlogs.centos.org/c7-devtoolset-8.x86_64/

That is what we use to build items that require devtoolset for the base
OS and is not for release purposes .. but if you can use it, it is
available.

> 
> Further, where can I find the srpm file for the devtoolset-8 packages. One
> way would be to use the srpm to rebuild.

You can get the srpms here:

https://cbs.centos.org/repos/sclo7-devtoolset-8-rh-release/source/SRPMS/

WRT devtoolset-9, I am not building that right now for c7 .. it is not
something they are building the any base os things on in RHEL-7 right
now, so I have not tried to build it for CentOS-7.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.centos.org/pipermail/centos/attachments/20200106/fb2ceca7/attachment-0004.sig>