ROOT v6.22.06 build error with Docker and gcc 7.3.1

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)

This is a snip of the Dockerfile:

RUN source scl_source enable devtoolset-7 \
    && cd /tmp \
    && wget \
    && 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 (11.7 KB)

The error message is the following:

[ 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/
[ 82%] Built target ROOTNTuple
[ 82%] Linking CXX shared library ../../lib/
[ 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

this particular compilation issue is explained and fixed at .

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 for more context.

Enrico :smiley:

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