Questions tagged [devtoolset]

Developer Toolset Software Collection for Red Hat Enterprise Linux and its derivates.

Developer Toolsets provides updated versions of the GNU Compiler Collection, GNU Debugger and other development tools for use on CentOS or Red Hat Enterprise Linux. They are released using optional Software Collections.

68 questions
12
votes
1 answer

how to install devtoolset-8 / GCC 8 on Amazon Linux 2

On an Amazon Linux 2 Docker image, "yum install gcc" installs gcc 7.3.1. I want to install gcc 8. It seems it normally can be installed as part of "devtoolset-8" (https://www.softwarecollections.org/en/scls/rhscl/devtoolset-8/), but the…
lznt
  • 2,330
  • 2
  • 22
  • 27
12
votes
1 answer

(How) Can I use the new C++ 11 ABI with devtoolset-7 on Centos/RHEL?

My goal is to use gcc 7.2 (and clang 6) on Centos 7 to build executables compatible with Centos 7 targets without devtoolset installed but * using the newer C++ ABI *. The newer ABI fixed a couple of deficiencies in the lib that weren't able to be…
Paul
  • 161
  • 1
  • 6
10
votes
2 answers

Enabling "Software collections". RedHat developer toolset

I just found out that RedHat provides this "Developer toolset" which allows me to install (and of course use) the most up-to-date gcc-4.7.2. I use it on Centos, but the process is the same. Once installed, you can start a new bash session with this…
Alejandro
  • 1,064
  • 1
  • 8
  • 22
9
votes
1 answer

C++ project compiled with modern compiler, but linked against outdated libstdc++

Consider the situation when a C++ project is built and shipped within a Centos 7 virtual machine or container. Default gcc for Centos 7 is 4.8. In order to allow developers to use modern C++, the more recent version of gcc (for example, 6.3) is…
Vitaly Isaev
  • 5,392
  • 6
  • 45
  • 64
7
votes
0 answers

RPM build fails locating libelf.so.dts.1 when using Developer Toolset 7

I am compiling software for Red Hat/CentOS 7 (running on CentOS) using the compiler from Developer Toolset 7, and when I try to create an RPM, rpmbuild fails with the following error: + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz…
nafmo
  • 448
  • 4
  • 19
7
votes
2 answers

CentOS: Using GCC 4.7 from devtoolset results in linking libstdc++ incorrectly (undefined symbols)

I am using the devtoolset-1.0 for CentOS 6.3 in order to upgrade temporarily the GCC version. Although I am now able to compile my C++ application, the final binary is missing some symbols: $ ldd -d -r myapp $ [..] $ libstdc++.so.6 =>…
labrassbandito
  • 535
  • 12
  • 25
6
votes
1 answer

RedHat devtoolset - implications for distributing compiled code

I'm running CentOS 6.4 and need a later version of the C++ compiler to build my development tools (Qt Creator in this case). I'm unclear on the implications of using devtools and I'm hoping someone can explain. If I compile programs using devtools,…
TSG
  • 4,242
  • 9
  • 61
  • 121
5
votes
7 answers

Signed Integer value overflow in C++?

I have a legacy codebase which we are trying to migrate from devtoolset-4 to devtoolset-7. I noticed an interesting behaviour regarding overflow of signed integers (int64_t, to be specific). There is a code snippet which is used to detect integer…
Still-InBeta
  • 383
  • 2
  • 9
5
votes
0 answers

How can libstdc++ from devtoolset-7 be linked against when building on CentOS 7?

I would like to use devtoolset-7 to build a C++11 application on CentOS 7. I am trying to use the library, but the version of libstdc++ included natively with CentOS 7, 4.8.4, does not support it. I have followed the following instructions…
phoenix
  • 7,988
  • 6
  • 39
  • 45
4
votes
4 answers

Updating /usr/include/c++ in CentOS-7

I have installed the devtoolset-10 package on CentOS 7 and run the /opt/rh/devtoolset-10/enable script so that now when I do this: g++ --version I get this: g++ (GCC) 10.2.1 20210130 (Red Hat 10.2.1-11) Great. Trouble is, the headers under…
Eric Niebler
  • 5,927
  • 2
  • 29
  • 43
4
votes
1 answer

How to `scl enable devtoolset-8 bash` when login in?

In my centos7, I tried to put scl enable devtoolset-8 bash command to ~/.bashrc but When I login in, processes of scl enable devtoolset-8 bash are started again and again until the process number reaches the user max process number. So what should…
GOGO
  • 619
  • 2
  • 7
  • 17
4
votes
2 answers

_GLIBCXX_USE_CXX11_ABI disabled on RHEL6 and RHEL7?

I have gcc 5.2.1 on RHEL6 and RHEL7, and it looks like _GLIBCXX_USE_CXX11_ABI gets disabled. It's not working even if I manually run -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++14. This means I won't get small string optimization feature. For example, the…
Derek
  • 557
  • 1
  • 4
  • 16
4
votes
1 answer

Undefined reference to std::__sso_string::__sso_string under Centos7 and devtoolset-7

I've got Centos 7 (CentOS Linux release 7.4.1708 (Core)) with installed devtoolset-7 (gcc/g++ 7.2.1) and I'm trying to build application in debug mode using conan and cmake : cmake .. -DCMAKE_BUILD_TYPE=Debug && make Compilation goes fine, but when…
miqelm
  • 354
  • 4
  • 13
4
votes
1 answer

How to configure Qt Creator to use devtoolset-2 from RH on centos 6.7?

I have installed the devtoolset-2 package on my Centos 6.7 64 bits. As recommanded by RH,when i want to switch from gcc 4.4.7 to gcc 4.8.2, i open a terminal and type either scl enable devtoolset-2 'bash' if i wanna run gcc in another shell or…
Fryz
  • 2,119
  • 2
  • 25
  • 45
3
votes
0 answers

Segmentation fault using devtoolset-10 with boost 1.73 static libraries complied with gcc 7.5.0

I have boost 1.73 static libraries (.a) and RHEL devtoolset-10 installed,I do the following steps scl enable devtoolset-10 bash Check the LD_LIBRARY_PATH points…
1
2 3 4 5