# ROOT v6.22.06 build error with Docker and gcc 7.3.1

**URL:** <https://root-forum.cern.ch/t/root-v6-22-06-build-error-with-docker-and-gcc-7-3-1/42593>\
**Category:** ROOT\
**Created:** [December 4, 2020, 9:01am UTC](https://root-forum.cern.ch/t/root-v6-22-06-build-error-with-docker-and-gcc-7-3-1/42593 "2020-12-04T09:01:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ecatanzani](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ecatanzani/32/24189_2.png) [@ecatanzani](https://root-forum.cern.ch/u/ecatanzani)\
**Post date:** [December 4, 2020, 9:01am UTC](https://root-forum.cern.ch/t/root-v6-22-06-build-error-with-docker-and-gcc-7-3-1/42593/1 "2020-12-04T09:01:58Z")

</div>

Dear root experts,  
I’m issuing a problem building the latest v6.22.06 on a docker with cents 7 using devtoolset-7.  
I saw this topic has been touched in the past: [V6-22-00 compilation error on CentOS 7 Docker container (g++ 7.3.1)](https://root-forum.cern.ch/t/v6-22-00-compilation-error-on-centos-7-docker-container-g-7-3-1/40426)

This is a snip of the Dockerfile:

```auto
RUN source scl_source enable devtoolset-7 \
    && cd /tmp \
    && wget https://root.cern/download/root_v6.22.06.source.tar.gz \
    && gzip -dc root_v6.22.06.source.tar.gz | tar -xf - \
    && cd /ROOT6 \
    && cmake3 /tmp/root-6.22.06 -DCMAKE_CXX_STANDARD=14 -Dbuiltin_xrootd=ON \
    && cmake3 --build . -- -j$(nproc)

```

[CMake\_configure.txt](https://root-forum.cern.ch/uploads/short-url/pqHMdFkZOdbJclbAXo0wmpdPKRE.txt) (11.7 KB)

The error message is the following:

```auto
[82%] Built target Matrix
[82%] Generating G__Physics.cxx, ../../lib/Physics.pcm
[82%] Generating G__Quadp.cxx, ../../lib/Quadp.pcm
[82%] Generating G__Hist.cxx, ../../lib/Hist.pcm
[82%] Generating G__ROOTHist.cxx, ../../lib/ROOTHist.pcm
In file included from input_line_16:3:
/ROOT6/include/ROOT/RAxis.hxx:57:4: error: exception specification of explicitly defaulted default constructor does not match the calculated one
   RAxisBase() noexcept = default;
   ^
Error: /ROOT6/bin/rootcling: compilation failure (/ROOT6/lib/libROOTHist07fa140e77_dictUmbrella.h)
gmake[2]: *** [hist/histv7/CMakeFiles/G __ROOTHist.dir/build.make:108: hist/histv7/G__ ROOTHist.cxx] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:22302: hist/histv7/CMakeFiles/G__ROOTHist.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
[82%] Linking CXX shared library ../../lib/libROOTNTuple.so
[82%] Built target ROOTNTuple
[82%] Linking CXX shared library ../../lib/libTree.so
[82%] Built target Tree
Scanning dependencies of target G__Physics
Scanning dependencies of target G__Quadp
[82%] Building CXX object math/physics/CMakeFiles/G __Physics.dir/G__ Physics.cxx.o
[82%] Building CXX object math/quadp/CMakeFiles/G __Quadp.dir/G__ Quadp.cxx.o
Scanning dependencies of target G__Hist
[82%] Building CXX object hist/hist/CMakeFiles/G __Hist.dir/G__ Hist.cxx.o
[82%] Built target G__Physics
[82%] Built target G__Quadp
[82%] Built target G__Hist
gmake: *** [Makefile:172: all] Error 2

```

I know ROOT is not tested on devtoolset and that I can anyhow install using conda but I would like to investigate the issue.

Thanks for your support  
Enrico

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [December 4, 2020, 1:26pm UTC](https://root-forum.cern.ch/t/root-v6-22-06-build-error-with-docker-and-gcc-7-3-1/42593/2 "2020-12-04T13:26:31Z")

</div>

Hi,  
this particular compilation issue is explained and fixed at [https://github.com/root-project/root/pull/6912](https://github.com/root-project/root/pull/6912) .

However, as you say, ROOT is not tested on devtoolset (and some incompatibilities between ROOT’s C++ interpreter and devtoolsets are expected) so it’s not recommended to use ROOT+devtoolset.  
Also see the discussion [here](https://root-forum.cern.ch/t/root-config-glibs-output-does-not-match-files-in-libs-directory/39921/12) for more context.

Cheers,  
Enrico 😃

---

<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:** [December 18, 2020, 1:33pm UTC](https://root-forum.cern.ch/t/root-v6-22-06-build-error-with-docker-and-gcc-7-3-1/42593/3 "2020-12-18T13:33:09Z")

</div>

Closed on December 18, 2020, 1:33pm UTC

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