gcc 4.7 or Red Hat Developer Toolset equivalent for Centos?

Issues related to software problems.
jjmcwill
Posts: 1
Joined: 2012/09/27 18:00:12

gcc 4.7 or Red Hat Developer Toolset equivalent for Centos?

Post by jjmcwill » 2012/09/27 18:02:13

I just discovered that Red Hat offers something called the Red Hat Developer Toolset for both EL5 and EL6. It provides gcc/g++ 4.7, and a new gdb and binutils.

Is there something equivalent to this for CentOS?

Thanks,

Jeff

User avatar
toracat
Forum Moderator
Posts: 7444
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

gcc 4.7 or Red Hat Developer Toolset equivalent for Centos?

Post by toracat » 2012/09/27 18:28:08

A test version is available here:

http://people.centos.org/tru/devtools/

Thanks to [b]tru_tru[/b].

newport_j
Posts: 257
Joined: 2012/06/01 16:30:08

Re: gcc 4.7 or Red Hat Developer Toolset equivalent for Centos?

Post by newport_j » 2012/11/29 18:04:34

I have Centos 6.3 64 bit, so which package do I download.? There are many listed.

Any help appreciated. Thanks in advance.

Newport_j

User avatar
toracat
Forum Moderator
Posts: 7444
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: gcc 4.7 or Red Hat Developer Toolset equivalent for Centos?

Post by toracat » 2012/11/29 21:03:53

First set up the devtools repo by downloading http://people.centos.org/tru/devtools/devtools.repo .

Then if, for example, you wish to install gcc, run this command:

yum --enablerepo=testing-devtools-6 install devtoolset-1.0-gcc

Or you can install the whole set by:

yum --enablerepo=testing-devtools-6 install devtoolset-1.0

_ck_
Posts: 89
Joined: 2012/08/10 23:00:35

Re: gcc 4.7 or Red Hat Developer Toolset equivalent for Centos?

Post by _ck_ » 2012/12/28 07:47:16

This thread helped me out too.

Thanks because gcc apparently takes hours to compile manually.

Looks like redhat is working on [url=https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Developer_Toolset/1-Beta/html/1.1_Release_Notes/ch-Changes_in_This_Release.html]devtoolset 1.1 with gcc 4.72[/url]

_ck_
Posts: 89
Joined: 2012/08/10 23:00:35

Re: gcc 4.7 or Red Hat Developer Toolset equivalent for Centos?

Post by _ck_ » 2013/01/26 13:43:58

Looks like 1.1 was released with gcc 4.7.2

https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Developer_Toolset/1/html/1.1_Release_Notes/ch-Features.html

I hope Tru can find some time to build and make it available if possible.

tru_tru
Posts: 35
Joined: 2007/10/05 21:12:09
Location: France

Re: gcc 4.7 or Red Hat Developer Toolset equivalent for Centos?

Post by tru_tru » 2013/01/27 22:39:17

Hi,

initial rebuild at http://people.centos.org/tru/devtools-1.1 for CentOS 5/6 x86_64.

Please test and report so that we can push it to the main repositories.

Tru

needgcc472
Posts: 2
Joined: 2013/01/29 11:35:44

Re: gcc 4.7 or Red Hat Developer Toolset equivalent for Centos?

Post by needgcc472 » 2013/01/29 11:43:22

Thanks for the devtools-1.1.
However, I get an urlopen error for the last two packages when downloading the whole set.
I run centos 5, 64bit.
[code]
Error Downloading Packages:
devtoolset-1.1-gcc-4.7.2-5.el5.x86_64:
failure: devtoolset-1.1-gcc-4.7.2-5.el5.x86_64.rpm from testing-1.1-devtools-5: [Errno 256]
No more mirrors to try.
1:devtoolset-1.1-valgrind-3.8.1-3.2.el5.x86_64:
failure: devtoolset-1.1-valgrind-3.8.1-3.2.el5.x86_64.rpm from testing-1.1-devtools-5: [Errno 256]
No more mirrors to try.[/code]

tru_tru
Posts: 35
Joined: 2007/10/05 21:12:09
Location: France

Re: gcc 4.7 or Red Hat Developer Toolset equivalent for Centos?

Post by tru_tru » 2013/01/29 12:52:58

It just works for me:

[tru@liberte ~]$ cat /etc/yum.repos.d/devtools-1.1.repo
[testing-1.1-devtools-$releasever]
name=testing 1.1 devtools for CentOS $releasever
baseurl=http://people.centos.org/tru/devtools-1.1/$releasever/$basearch/RPMS
gpgcheck=0

[tru@liberte ~]$ sudo yum clean all
Loaded plugins: fastestmirror
Cleaning up Everything
[tru@liberte ~]$ sudo yum install devtoolset-1.1
Loaded plugins: fastestmirror
...
testing-1.1-devtools-5 | 951 B 00:00
testing-1.1-devtools-5/primary | 11 kB 00:00
testing-1.1-devtools-5 39/39
...
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package devtoolset-1.1.noarch 0:1-13.el5 set to be updated
--> Processing Dependency: devtoolset-1.1-gdb for package: devtoolset-1.1
--> Processing Dependency: devtoolset-1.1-gcc for package: devtoolset-1.1
--> Processing Dependency: devtoolset-1.1-valgrind for package: devtoolset-1.1
--> Processing Dependency: devtoolset-1.1-dwz for package: devtoolset-1.1
--> Processing Dependency: devtoolset-1.1-elfutils for package: devtoolset-1.1
--> Processing Dependency: devtoolset-1.1-binutils for package: devtoolset-1.1
--> Processing Dependency: devtoolset-1.1-systemtap for package: devtoolset-1.1
--> Processing Dependency: devtoolset-1.1-gcc-gfortran for package: devtoolset-1.1
--> Processing Dependency: devtoolset-1.1-oprofile for package: devtoolset-1.1
--> Processing Dependency: devtoolset-1.1-gcc-c++ for package: devtoolset-1.1
--> Running transaction check
---> Package devtoolset-1.1-binutils.x86_64 0:2.23.51.0.3-3.el5 set to be updated
--> Processing Dependency: devtoolset-1.1-runtime for package: devtoolset-1.1-binutils
---> Package devtoolset-1.1-dwz.x86_64 0:0.7-1.el5 set to be updated
---> Package devtoolset-1.1-elfutils.x86_64 0:0.154-6.el5 set to be updated
--> Processing Dependency: devtoolset-1.1-elfutils-libs-x86_64 = 0.154-6.el5 for package: devtoolset-1.1-elfutils
--> Processing Dependency: devtoolset-1.1-elfutils-libelf-x86_64 = 0.154-6.el5 for package: devtoolset-1.1-elfutils
--> Processing Dependency: libdw.so.1(ELFUTILS_0.138)(64bit) for package: devtoolset-1.1-elfutils
--> Processing Dependency: libelf.so.1(ELFUTILS_1.6)(64bit) for package: devtoolset-1.1-elfutils
--> Processing Dependency: libelf.so.1(ELFUTILS_1.5)(64bit) for package: devtoolset-1.1-elfutils
--> Processing Dependency: libdw.so.1(ELFUTILS_0.148)(64bit) for package: devtoolset-1.1-elfutils
--> Processing Dependency: libdw.so.1(ELFUTILS_0.144)(64bit) for package: devtoolset-1.1-elfutils
--> Processing Dependency: libdw.so.1(ELFUTILS_0.149)(64bit) for package: devtoolset-1.1-elfutils
---> Package devtoolset-1.1-gcc.x86_64 0:4.7.2-5.el5 set to be updated
---> Package devtoolset-1.1-gcc-c++.x86_64 0:4.7.2-5.el5 set to be updated
--> Processing Dependency: devtoolset-1.1-libstdc++-devel = 4.7.2-5.el5 for package: devtoolset-1.1-gcc-c++
---> Package devtoolset-1.1-gcc-gfortran.x86_64 0:4.7.2-5.el5 set to be updated
--> Processing Dependency: devtoolset-1.1-libquadmath-devel = 4.7.2-5.el5 for package: devtoolset-1.1-gcc-gfortran
---> Package devtoolset-1.1-gdb.x86_64 0:7.5.0.20120926-26.el5 set to be updated
---> Package devtoolset-1.1-oprofile.x86_64 0:0.9.7-6.el5 set to be updated
---> Package devtoolset-1.1-systemtap.x86_64 0:1.8-8.el5 set to be updated
--> Processing Dependency: devtoolset-1.1-systemtap-client = 1.8-8.el5 for package: devtoolset-1.1-systemtap
--> Processing Dependency: devtoolset-1.1-systemtap-devel = 1.8-8.el5 for package: devtoolset-1.1-systemtap
---> Package devtoolset-1.1-valgrind.x86_64 1:3.8.1-3.2.el5 set to be updated
--> Running transaction check
---> Package devtoolset-1.1-elfutils-libelf.x86_64 0:0.154-6.el5 set to be updated
---> Package devtoolset-1.1-elfutils-libs.x86_64 0:0.154-6.el5 set to be updated
---> Package devtoolset-1.1-libquadmath-devel.x86_64 0:4.7.2-5.el5 set to be updated
---> Package devtoolset-1.1-libstdc++-devel.x86_64 0:4.7.2-5.el5 set to be updated
...
testing-1.1-devtools-5/filelists | 67 kB 00:00
updates/filelists_db | 353 kB 00:00
---> Package devtoolset-1.1-runtime.noarch 0:1-13.el5 set to be updated
--> Processing Dependency: scl-utils for package: devtoolset-1.1-runtime
---> Package devtoolset-1.1-systemtap-client.x86_64 0:1.8-8.el5 set to be updated
--> Processing Dependency: devtoolset-1.1-systemtap-runtime = 1.8-8.el5 for package: devtoolset-1.1-systemtap-client
---> Package devtoolset-1.1-systemtap-devel.x86_64 0:1.8-8.el5 set to be updated
--> Running transaction check
---> Package devtoolset-1.1-systemtap-runtime.x86_64 0:1.8-8.el5 set to be updated
---> Package scl-utils.x86_64 0:20120927-2.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================
Package Arch Version Repository Size
=====================================================================================
Installing:
devtoolset-1.1 noarch 1-13.el5 testing-1.1-devtools-5 3.6 k
Installing for dependencies:
devtoolset-1.1-binutils x86_64 2.23.51.0.3-3.el5 testing-1.1-devtools-5 5.7 M
devtoolset-1.1-dwz x86_64 0.7-1.el5 testing-1.1-devtools-5 101 k
devtoolset-1.1-elfutils x86_64 0.154-6.el5 testing-1.1-devtools-5 565 k
devtoolset-1.1-elfutils-libelf x86_64 0.154-6.el5 testing-1.1-devtools-5 304 k
devtoolset-1.1-elfutils-libs x86_64 0.154-6.el5 testing-1.1-devtools-5 262 k
devtoolset-1.1-gcc x86_64 4.7.2-5.el5 testing-1.1-devtools-5 21 M
devtoolset-1.1-gcc-c++ x86_64 4.7.2-5.el5 testing-1.1-devtools-5 7.1 M
devtoolset-1.1-gcc-gfortran x86_64 4.7.2-5.el5 testing-1.1-devtools-5 7.3 M
devtoolset-1.1-gdb x86_64 7.5.0.20120926-26.el5 testing-1.1-devtools-5 2.7 M
devtoolset-1.1-libquadmath-devel x86_64 4.7.2-5.el5 testing-1.1-devtools-5 157 k
devtoolset-1.1-libstdc++-devel x86_64 4.7.2-5.el5 testing-1.1-devtools-5 2.1 M
devtoolset-1.1-oprofile x86_64 0.9.7-6.el5 testing-1.1-devtools-5 2.7 M
devtoolset-1.1-runtime noarch 1-13.el5 testing-1.1-devtools-5 15 k
devtoolset-1.1-systemtap x86_64 1.8-8.el5 testing-1.1-devtools-5 27 k
devtoolset-1.1-systemtap-client x86_64 1.8-8.el5 testing-1.1-devtools-5 2.3 M
devtoolset-1.1-systemtap-devel x86_64 1.8-8.el5 testing-1.1-devtools-5 2.0 M
devtoolset-1.1-systemtap-runtime x86_64 1.8-8.el5 testing-1.1-devtools-5 228 k
devtoolset-1.1-valgrind x86_64 1:3.8.1-3.2.el5 testing-1.1-devtools-5 42 M
scl-utils x86_64 20120927-2.el5 base 11 k

Transaction Summary
=====================================================================================
Install 20 Package(s)
Upgrade 0 Package(s)

Total download size: 97 M
Is this ok [y/N]: y
Downloading Packages:
(1/20): devtoolset-1.1-1-13.el5.noarch.rpm | 3.6 kB 00:00
(3/20): devtoolset-1.1-runtime-1-13.el5.noarch.rpm | 15 kB 00:00
(4/20): devtoolset-1.1-systemtap-1.8-8.el5.x86_64.rpm | 27 kB 00:00
(5/20): devtoolset-1.1-dwz-0.7-1.el5.x86_64.rpm | 101 kB 00:00
(6/20): devtoolset-1.1-libquadmath-devel-4.7.2-5.el5.x86_64.rpm | 157 kB 00:00
(7/20): devtoolset-1.1-systemtap-runtime-1.8-8.el5.x86_64.rpm | 228 kB 00:00
(8/20): devtoolset-1.1-elfutils-libs-0.154-6.el5.x86_64.rpm | 262 kB 00:00
(9/20): devtoolset-1.1-elfutils-libelf-0.154-6.el5.x86_64.rpm | 304 kB 00:00
(10/20): devtoolset-1.1-elfutils-0.154-6.el5.x86_64.rpm | 565 kB 00:00
(11/20): devtoolset-1.1-systemtap-devel-1.8-8.el5.x86_64.rpm | 2.0 MB 00:00
(12/20): devtoolset-1.1-libstdc++-devel-4.7.2-5.el5.x86_64.rpm | 2.1 MB 00:00
(13/20): devtoolset-1.1-systemtap-client-1.8-8.el5.x86_64.rpm | 2.3 MB 00:00
(14/20): devtoolset-1.1-oprofile-0.9.7-6.el5.x86_64.rpm | 2.7 MB 00:00
(15/20): devtoolset-1.1-gdb-7.5.0.20120926-26.el5.x86_64.rpm | 2.7 MB 00:00
(16/20): devtoolset-1.1-binutils-2.23.51.0.3-3.el5.x86_64.rpm | 5.7 MB 00:01
(17/20): devtoolset-1.1-gcc-c++-4.7.2-5.el5.x86_64.rpm | 7.1 MB 00:01
(18/20): devtoolset-1.1-gcc-gfortran-4.7.2-5.el5.x86_64.rpm | 7.3 MB 00:01
(19/20): devtoolset-1.1-gcc-4.7.2-5.el5.x86_64.rpm | 21 MB 00:03
(20/20): devtoolset-1.1-valgrind-3.8.1-3.2.el5.x86_64.rpm | 42 MB 00:07
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 4.0 MB/s | 97 MB 00:24
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
. Installing : devtoolset-1.1-elfutils-libelf 1/20
Installing : devtoolset-1.1-elfutils-libs 2/20
Installing : scl-utils 3/20
Installing : devtoolset-1.1-runtime 4/20
Installing : devtoolset-1.1-gcc 5/20
Installing : devtoolset-1.1-valgrind 6/20
Installing : devtoolset-1.1-binutils 7/20
Installing : devtoolset-1.1-oprofile 8/20
Installing : devtoolset-1.1-dwz 9/20
Installing : devtoolset-1.1-gdb 10/20
Installing : devtoolset-1.1-elfutils 11/20
Installing : devtoolset-1.1-systemtap-devel 12/20
Installing : devtoolset-1.1-libquadmath-devel 13/20
Installing : devtoolset-1.1-gcc-gfortran 14/20
Installing : devtoolset-1.1-libstdc++-devel 15/20
Installing : devtoolset-1.1-gcc-c++ 16/20
Installing : devtoolset-1.1-systemtap-runtime 17/20
Installing : devtoolset-1.1-systemtap-client 18/20
Installing : devtoolset-1.1-systemtap 19/20
Installing : devtoolset-1.1 20/20

Installed:
devtoolset-1.1.noarch 0:1-13.el5

Dependency Installed:
devtoolset-1.1-binutils.x86_64 0:2.23.51.0.3-3.el5 devtoolset-1.1-dwz.x86_64 0:0.7-1.el5
devtoolset-1.1-elfutils.x86_64 0:0.154-6.el5 devtoolset-1.1-elfutils-libelf.x86_64 0:0.154-6.el5
devtoolset-1.1-elfutils-libs.x86_64 0:0.154-6.el5 devtoolset-1.1-gcc.x86_64 0:4.7.2-5.el5
devtoolset-1.1-gcc-c++.x86_64 0:4.7.2-5.el5 devtoolset-1.1-gcc-gfortran.x86_64 0:4.7.2-5.el5
devtoolset-1.1-gdb.x86_64 0:7.5.0.20120926-26.el5 devtoolset-1.1-libquadmath-devel.x86_64 0:4.7.2-5.el5
devtoolset-1.1-libstdc++-devel.x86_64 0:4.7.2-5.el5 devtoolset-1.1-oprofile.x86_64 0:0.9.7-6.el5
devtoolset-1.1-runtime.noarch 0:1-13.el5 devtoolset-1.1-systemtap.x86_64 0:1.8-8.el5
devtoolset-1.1-systemtap-client.x86_64 0:1.8-8.el5 devtoolset-1.1-systemtap-devel.x86_64 0:1.8-8.el5
devtoolset-1.1-systemtap-runtime.x86_64 0:1.8-8.el5 devtoolset-1.1-valgrind.x86_64 1:3.8.1-3.2.el5
scl-utils.x86_64 0:20120927-2.el5

Complete!

needgcc472
Posts: 2
Joined: 2013/01/29 11:35:44

Re: gcc 4.7 or Red Hat Developer Toolset equivalent for Centos?

Post by needgcc472 » 2013/01/29 14:16:54

I finally managed to install it by manually downloading the two missing packages. These are packages 19/20 and 20/20 in your installation log above. Then I could run the yum-install script without errors. Strange...

But thank you anyway.

Post Reply

Return to “CentOS 5 - Software Support”