# Compiling root v6.12.04 on CentOS 6.6 using gcc v4.9.2 and cmake v3.10.2

**URL:** <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>\
**Category:** ROOT\
**Created:** [January 26, 2018, 12:59am UTC](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 "2018-01-26T00:59:28Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [January 26, 2018, 9:04am UTC](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 "2018-01-26T09:04:13Z")

</div>

I believe this is the real problem:

```auto
– 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 work (i.e. by adding `-fabi-version=6` or other number to your compilation flags), or you could use, for instance, a compiler installed from the devtoolset-6: [https://www.softwarecollections.org/en/scls/rhscl/devtoolset-6](https://www.softwarecollections.org/en/scls/rhscl/devtoolset-6).

---

_[View the full topic](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)._
