I am looking to make use of gcc 8/9 on CentOS 7, which is currently with gcc 4.8.5. How do I go about doing this? SCL repository provides the same as part of devtoolset8, but devtoolset8 libstdc++-devel i686 package is missing, without which I can not build 32 bit applications. Are there any repository sources from where I can get this? Otherwise, I am open to building the packages from sources. Please let me know how can one go about this. Any suggestions and pointers appreciated.
On 12/27/19 11:43 PM, sthustfo wrote:> I am looking to make use of gcc 8/9 on CentOS 7, which is currently with > gcc 4.8.5. How do I go about doing this? SCL repository provides the same > as part of devtoolset8, but devtoolset8 libstdc++-devel i686 package is > missing, without which I can not build 32 bit applications. > > Are there any repository sources from where I can get this? Otherwise, I am > open to building the packages from sources. Please let me know how can one > go about this.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/ -------------- 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/20200102/8b12ce30/attachment-0002.sig>
> > 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 tocompile 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? Further, where can I find the srpm file for the devtoolset-8 packages. One way would be to use the srpm to rebuild.