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
3
votes
1 answer

How to disable devtoolset-8?

I have a bash script that executes the command scl enable devtoolset-8 'echo -e "%__ld $(which ld)\n%__nm $(which nm)\n%__objcopy $(which objcopy)\n%__objdump $(which objdump)\n%__strip $(which strip)"' After completing the assembly, I need to "turn…
R. Key
  • 178
  • 7
3
votes
2 answers

Enable devtoolset-8 for zsh on Centos 7

I run Centos 7, and I installed devtoolset-8 in order to get gcc 8. Here I found how to enable it for bash, which is done simply by adding source scl_source enable devtoolset-8 to .bashrc. If I append this to the .zshrc, or run that command from…
berberto
  • 91
  • 1
  • 8
3
votes
2 answers

Install older gcc/g++ versions in CentOS 8

I've been struggling with this for the past 2h. In CentOS 8 I can't find the devtoolset packages to install older gcc/g++ versions. There is no longer a scl repo for CentOS 8. I need gcc/g++ 4.9x installed along the current gcc/g++ 8.x and I need to…
one-liner
  • 791
  • 1
  • 9
  • 19
3
votes
1 answer

devtoolset-3 not found on Centos 6

This failed all of a sudden. Anyone know how to circumvent it? Thanks. [cktan@ckrh6 ~]$ sudo yum install -y devtoolset-3 Loaded plugins: fastestmirror, security Setting up Install Process Loading mirror speeds from cached hostfile * base:…
cktan
  • 109
  • 2
  • 5
3
votes
1 answer

CentOS 6 and Devtoolset-3

Trying to install C++ from Devtoolset-3 to my CentOS6 system I've ran into dependencies problem: bash-4.2# yum install devtoolset-3-gcc-c++ Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.dhakacom.com *…
zaufi
  • 6,811
  • 26
  • 34
3
votes
1 answer

Eclipse / g++ not recognizing "-std=c++11" flag

I am running CentOS 6.6 x64 with Eclipse Luna and g++ 4.7.2 (provided by devtoolset-2). I'm using Eclipse's built in automatic Makefile generation. I've enabled g++ 4.7.2 using scl enable devtoolset-2 bash [me@dev ~]# g++ --version g++ (GCC)…
thaspius
  • 1,135
  • 3
  • 17
  • 33
3
votes
1 answer

gcc 4.8.2 on Linux - Simple program using thread crashes

I have just installed gcc 4.8.2 on Centos (I am using devtoolset-2). I wrote a very simple program using thread. It compiles fine but crashes when executed? #include #include void test() { std::cout << "test\n"; } …
user18490
  • 3,546
  • 4
  • 33
  • 52
2
votes
1 answer

Using devtoolset in gitlab CI/CD

I have created a CentOS 7 image with the relevant packages needed to run a CI/CD pipeline on gitlab.com. One of the requirements is to use gcc 8. I am using devtoolset-8 for that. The image is stored on dockerhub. I have added the following to…
Lieuwe
  • 1,734
  • 2
  • 27
  • 41
2
votes
1 answer

Pointing to libstdc++ from devtoolset - software collection

I have an application program "Cprog" that requires GCC 4.9 and C++11's libstdc++.so. To fulfill this requirement on CentOS 6, I am using Red Hat's devtoolset-6. This lib is located at: $ scl enable devtoolset-6…
slkuser
  • 63
  • 1
  • 6
2
votes
1 answer

nm devtoolset's .so files gives File format not recognized

I am just curious why nm complains: File format not recognized if I do: $ nm /opt/rh/devtoolset-8/root/usr/lib/gcc/x86_64-redhat-linux/8/libstdc++.so nm: /opt/rh/devtoolset-8/root/usr/lib/gcc/x86_64-redhat-linux/8/libstdc++.so: File format not…
HCSF
  • 2,387
  • 1
  • 14
  • 40
2
votes
1 answer

How to install devtoolset-7 i686 on CentOS 6?

To install devtoolset-7.x86_64 on CentOS6 is pretty easy: yum install -y centos-release-scl yum install -y devtoolset-7-toolchain However, i686 is not available for download: http://mirror.centos.org/centos/6/sclo/ So I found…
uilianries
  • 3,363
  • 15
  • 28
2
votes
2 answers

Enable redhats devtoolset in fish shell

Is there an appropriate way to enable devtoolset or any of the rh tools in the fish shell on startup? Normally in Zsh (~/.zshrc) or Bash (~/.bashrc) you would add lines similar to: source /opt/rh/devtoolset-7/enable or source scl_source enable…
S Grey
  • 589
  • 2
  • 7
  • 12
2
votes
3 answers

Install Obsolete Devtoolset Collection for CentOS

At present time Devtoolset-5 (and earlier) cannot be istalled from Software Collection Repository (centos-release-scl) using yum (only Devtoolset-6 and 7 are available). Nevertheless, this collection can be downloaded as a list of rpm-packages. Is…
1
vote
0 answers

Visual Studio Code Intellisense highlighting using scl enable devtoolset-8 and Cmake

I am working on a c++/cuda program using a Linux CentOS 7.9.2009 Server via VS Code SSH-Remote. The default compiler on the Linux machine is g++ (GCC) 4.8.5 but to use the cuda libraries I need a higher version (supporting std=c++14) which is…
1
vote
1 answer

error: Failed dependencies: /usr/lib/libc.so is needed by devtoolset-8-systemtap-testsuite-3.3-1.el7.x86_64

I was trying to install devtoolset-8 in my slave node with no active internet connection running centos7. I am using all .rpm packages required as dependencies. During installation through rpm -ivh * I get [root@node3 install]# rpm -ivh * warning:…