Compiling ROOT 6.06.04 with GCC-6.1.0

Hello,

I am trying to compile ROOT-6.06.04 with GCC-6.1.0 under CentOS-6.5 using cmake-3.5.2.
The commands I execute are the following:

mkdir $HOME/bin/root-6.06.04.build
cd    $HOME/bin/root-6.06.04.build
cmake ../root-6.06.04.source

The “cmake” command fails with the following error:

Could you please let me know if I am doing something wrong or it is a bug?

Thank you,
Siarhei.

Hello. What is your version of gcc or LLVM?

Hi,

That’s weird. Could you post the full output of the CMake configuration?

Cheers, Axel.

Thank you for your reply, Axel!

I think, I understand the problem now: it is not enough to put gcc and other compile tools into the $PATH. I need to explicitly specify them to cmake:

cmake -DCMAKE_CXX_COMPILER=$HOME/bin/gcc-6.1.0/bin/g++ -DCMAKE_C_COMPILER=$HOME/bin/gcc-6.1.0/bin/gcc -DCMAKE_Fortran_COMPILER=$HOME/bin/gcc-6.1.0/bin/gfortran -Dcxx11=ON ...

But then with gcc-6.1.0 I get the following error:

I parallel, I am compiling with gcc-4.9.3 as well. So far it is making progress.

Hi,

Thanks. Sounds like bug; I have created sft.its.cern.ch/jira/browse/ROOT-8184

You can disable xrootd in the cmake config if you don’t need it.

Cheers, Axel.