# ROOT v6.04.18.Linux-slc6-x86\_64-gcc4.9 with Software Colections devtoolset-3

**URL:** <https://root-forum.cern.ch/t/root-v6-04-18-linux-slc6-x86-64-gcc4-9-with-software-colections-devtoolset-3/27752>\
**Category:** ROOT\
**Created:** [January 31, 2018, 10:39am UTC](https://root-forum.cern.ch/t/root-v6-04-18-linux-slc6-x86-64-gcc4-9-with-software-colections-devtoolset-3/27752 "2018-01-31T10:39:49Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![barbet](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/dc4da7/32.png) [@barbet](https://root-forum.cern.ch/u/barbet)\
**Post date:** [January 31, 2018, 10:39am UTC](https://root-forum.cern.ch/t/root-v6-04-18-linux-slc6-x86-64-gcc4-9-with-software-colections-devtoolset-3/27752/1 "2018-01-31T10:39:49Z")

</div>

Hello,

I am trying to install a binary distribution on Scientific Linux 6. I downloaded the binary [https://root.cern.ch/download/root\_v6.04.18.Linux-slc6-x86\_64-gcc4.9.tar.gz](https://root.cern.ch/download/root_v6.04.18.Linux-slc6-x86_64-gcc4.9.tar.gz). I was thinking that I could run it if I used the Software collections devtoolset-3 which brings gcc 4.9 but nope

scl enable devtoolset-3 bash  
echo $LD\_LIBRARY\_PATH  
/opt/rh/devtoolset-3/root/usr/lib64:/opt/rh/devtoolset-3/root/usr/lib:/usr/remote/prive/root/SL6-x86\_64/root\_v6.04.18.Linux-slc6-x86\_64-gcc4.9/lib  
which gcc  
/opt/rh/devtoolset-3/root/usr/bin/gcc

. /path//root\_v6.04.18.Linux-slc6-x86\_64-gcc4.9/bin/thisroot.sh

root  
root: /usr/lib64/libstdc++.so.6: version `CXXABI\_1.3.8’ not found (required by root)

=\> Does this means that the path to the library libstdc++.so.6 is fixed in the compile code and it cannot use the libstdc++.so.6 that comes from gcc-4.9 and is listed in LD\_LIBRARY\_PATH.

JMB

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [January 31, 2018, 2:29pm UTC](https://root-forum.cern.ch/t/root-v6-04-18-linux-slc6-x86-64-gcc4-9-with-software-colections-devtoolset-3/27752/2 "2018-01-31T14:29:25Z")

</div>

Hi JMB,

That’s due to the way that devtoolset “patches” libstdc++. We don’t support it for the time being. You’re likely better off with docker, a VM or a more recent distro.

Cheers, Axel.

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [January 31, 2018, 2:33pm UTC](https://root-forum.cern.ch/t/root-v6-04-18-linux-slc6-x86-64-gcc4-9-with-software-colections-devtoolset-3/27752/3 "2018-01-31T14:33:13Z")

</div>

What about:

> [@Compiling root v6.12.04 on CentOS 6.6 using gcc v4.9.2 and cmake v3.10.2](https://root-forum.cern.ch/t/compiling-root-v6-12-04-on-centos-6-6-using-gcc-v4-9-2-and-cmake-v3-10-2/27708/7):
>
> I believe this is the real problem: – Performing Test GLIBCXX\_USE\_CXX11\_ABI – Performing Test GLIBCXX\_USE\_CXX11\_ABI - Failed The failure about string\_view is because [it is from C++17](http://en.cppreference.com/w/cpp/string/basic_string_view), but you are compiling with C++11. The real issue is the ABI incompatibility between the C++ standard library from your system and GCC 4.9.2. You may find this page useful: [https://gcc.gnu.org/onlinedocs/libstdc++/manual/using\_dual\_abi.html](https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html) If you choose an old ABI explicitly, you may be able to make things wor…

---

<div class="post-metadata">

**Author:** ![barbet](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/dc4da7/32.png) [@barbet](https://root-forum.cern.ch/u/barbet)\
**Post date:** [February 1, 2018, 1:19pm UTC](https://root-forum.cern.ch/t/root-v6-04-18-linux-slc6-x86-64-gcc4-9-with-software-colections-devtoolset-3/27752/4 "2018-02-01T13:19:19Z")

</div>

Thanks,

So in short : I need a platform with gcc 4.9 natively installed with the system right ?

BTW: Why is that that recent ROOT6 binaries are not built for scientific linux 6 ? Has the decision been made at some point to drop builds for SL6 ?

JM

---

<div class="post-metadata">

**Author:** ![adrian\_sev](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/adrian_sev/32/13169_2.png) [@adrian\_sev](https://root-forum.cern.ch/u/adrian_sev)\
**Post date:** [February 1, 2018, 10:30pm UTC](https://root-forum.cern.ch/t/root-v6-04-18-linux-slc6-x86-64-gcc4-9-with-software-colections-devtoolset-3/27752/5 "2018-02-01T22:30:14Z")

</div>

Hi JM!  
If you make the change to devtoolset “permanent” like having  
`source /opt/rh/devtoolset-3/enable` in .bashrc you could compile root with the new gcc but you should not forget that all further usage is tied to devtoolset …  
For usage in a cluster within job submission you have to take care either to source your profile or to enable the devtoolset in the submission script

---

<div class="post-metadata">

**Author:** ![barbet](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/dc4da7/32.png) [@barbet](https://root-forum.cern.ch/u/barbet)\
**Post date:** [February 2, 2018, 8:12am UTC](https://root-forum.cern.ch/t/root-v6-04-18-linux-slc6-x86-64-gcc4-9-with-software-colections-devtoolset-3/27752/6 "2018-02-02T08:12:51Z")

</div>

Hi Adrian,

Thanks !

The idea was to use a binary package and avoid recompilation.

As I understand the situation, the best for us is to start providing  
CentOS7 platforms to our researchers.

JM

---

<div class="post-metadata">

**Author:** ![adrian\_sev](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/adrian_sev/32/13169_2.png) [@adrian\_sev](https://root-forum.cern.ch/u/adrian_sev)\
**Post date:** [February 5, 2018, 12:38am UTC](https://root-forum.cern.ch/t/root-v6-04-18-linux-slc6-x86-64-gcc4-9-with-software-colections-devtoolset-3/27752/7 "2018-02-05T00:38:33Z")

</div>

Hi! Yeah, i already migrated a small cluster for personal analysis to centos7 with the planning that after i am comfortable with it to migrate also the grid cluster. Given the latest trends in vectorization, FMV - Function Multi Versioning from gcc 6.4 i believe and also support for the new hardware a newer os + compiler is really needed…

---

<div class="post-metadata">

**Author:** ![amadio](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/amadio/32/12562_2.png) [@amadio](https://root-forum.cern.ch/u/amadio)\
**Post date:** [February 5, 2018, 1:29pm UTC](https://root-forum.cern.ch/t/root-v6-04-18-linux-slc6-x86-64-gcc4-9-with-software-colections-devtoolset-3/27752/8 "2018-02-05T13:29:57Z")

</div>

The problem with SLC6 is that the system compiler (GCC 4.4.7) is too old, so it’s not enough to build ROOT. Since ROOT needs C++11, you need at least GCC 4.8.5 to build ROOT, but the ABI might be different than the system compiler, so everything that uses ROOT needs to be compiled with the same compiler.

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [February 5, 2018, 5:15pm UTC](https://root-forum.cern.ch/t/root-v6-04-18-linux-slc6-x86-64-gcc4-9-with-software-colections-devtoolset-3/27752/9 "2018-02-05T17:15:34Z")

</div>

> [@barbet](#):
>
> As I understand the situation, the best for us is to start providing
> 
> CentOS7 platforms to our researchers.

My short answer: yes, that would be the easiest. I would expect all software out there to work with CentOS7 these days…

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [February 19, 2018, 5:15pm UTC](https://root-forum.cern.ch/t/root-v6-04-18-linux-slc6-x86-64-gcc4-9-with-software-colections-devtoolset-3/27752/10 "2018-02-19T17:15:41Z")

</div>

Closed on February 19, 2018, 5:15pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
