[PATCH 1/3] Introduce gdb::unique_ptr

Jan Kratochvil jan.kratochvil@redhat.com
Thu Oct 13 09:07:00 GMT 2016


On Wed, 12 Oct 2016 14:03:06 +0200, Eli Zaretskii wrote:
> That may all be true, but changing the system compiler is still a
> serious decision, unrelated to distribution and/or update speeds, and
> not always even in the hands of the user who wants to build his or her
> GDB which was just released.
> 
> The nuisance of having to upgrade half of your system just because you
> want to have one package of the latest release is real for users who
> need to do during most of their day something other than debug build
> failures and install updated dependencies.  I was hoping we didn't
> want to increase those annoyances.

GCC 4.8.1 has been released in May 2013 so any Linux distributions with at
least annual releases already have it.  The only exception are LTS
	https://en.wikipedia.org/wiki/Long-term_support
distributions:

{RHEL,CentOS}-5.0: gcc-4.1.1-52.el5
  But there is Developer Toolset 2.1 compatible with RHEL-5 which provides:
    devtoolset-2-gcc-4.8.2-15.el5
  DevToolset 2.1 is still available in RHN channel for RHEL-5 customers.
  Unfortunately it is currently unavailable for CentOS-5 users, hopefully it
  will become available soon on this URL but I sure cannot guarantee anything:
    https://www.softwarecollections.org/en/scls/?search=toolset

{RHEL,CentOS}-6.0: gcc-4.4.4-13.el6
  There is DevToolset available in RHN channel and for CentOS it is freely at:
    https://www.softwarecollections.org/en/scls/rhscl/devtoolset-4/
    http://mirror.centos.org/centos/6/sclo/x86_64/rh/devtoolset-4/devtoolset-4-gcc-5.2.1-2.2.el6.x86_64.rpm

{RHEL,CentOS}-7.0: gcc-4.8.2-16.el7

Debian stable:
  https://packages.debian.org/stable/gcc = 4:4.9.2-2

Ubuntu LTSes:
  https://en.wikipedia.org/wiki/Ubuntu_(operating_system)#Releases
  http://packages.ubuntu.com/search?keywords=gcc
  12.04LTS = 4:4.6.3-1ubuntu5
    I am not aware of anything like DevToolset for Ubuntu.
  14.04LTS = 4:4.8.2-1ubuntu6

DevToolset is an add-on packaging in /opt/rh/ running independently from
system GCC producing binaries compatible even with RHELs without DevToolset.
Therefore there is no need of "changing the system compiler" or "upgrade half
of your system" to compile C++11 there.

As Pedro said the C++11 requirement is becoming common among other packages so
it is probable one needs to install DevToolset anyway.

Then there are systems without package management - like MS-Windows - where
all the recent compilers are available installable into separate
subdirectories.


Jan



More information about the Gdb-patches mailing list