Problem installing 10.7.1 on CentOS with PTL

Hello all!

I successfully compiled Geant4 on Windows, Ubuntu but I have troubles to build it on CentOS7… I get the error message:

In file included from …geant4-10.7.1/source/externals/ptl/include/PTL/TBBTaskGroup.hh:32:0,
from …geant4-10.7.1/source/externals/ptl/include/PTL/TaskRunManager.hh:28,
from …geant4-10.7.1/source/externals/ptl/src/TaskRunManager.cc:22:
…geant4-10.7.1/source/externals/ptl/include/PTL/TaskGroup.hh:125:24: error: function ‘PTL::JoinFunction<void, void>::JoinFunction(PTL::JoinFunction<void, void>&&)’ defaulted on its first declaration with an exception-specification that differs from the implicit declaration ‘PTL::JoinFunction<void, void>::JoinFunction(PTL::JoinFunction<void, void>&&)’
PTL_DEFAULT_OBJECT(JoinFunction)
^
…geant4-10.7.1/source/externals/ptl/include/PTL/TaskGroup.hh:59:9: note: in definition of macro ‘PTL_DEFAULT_OBJECT’
NAME(NAME&&) noexcept = default;
^
…geant4-10.7.1/source/externals/ptl/include/PTL/TaskGroup.hh:61:15: error: function ‘PTL::JoinFunction<void, void>& PTL::JoinFunction<void, void>::operator=(PTL::JoinFunction<void, void>&&)’ defaulted on its first declaration with an exception-specification that differs from the implicit declaration ‘PTL::JoinFunction<void, void>& PTL::JoinFunction<void, void>::operator=(PTL::JoinFunction<void, void>&&)’
NAME& operator=(NAME&&) noexcept = default;
^
…geant4-10.7.1/source/externals/ptl/include/PTL/TaskGroup.hh:125:5: note: in expansion of macro ‘PTL_DEFAULT_OBJECT’
PTL_DEFAULT_OBJECT(JoinFunction)
^
make[2]: *** [source/externals/ptl/CMakeFiles/ptl-shared.dir/src/TaskRunManager.cc.o] Error 1
make[1]: *** [source/externals/ptl/CMakeFiles/ptl-shared.dir/all] Error 2

What can be wrong??
I use GCC 9.3 + CMAKE 3.17.5

Sincerely Yours,
Vyacheslav

Could you post the cmake commands/arguments used, and its output, along with the full compiler command line for the file causing the first error please?

Dear Benjamin.

I put some CMAKE-generated filesCMakeOutput.txt (48.2 KB) CMakeCache.txt (26.6 KB) from my computer.

But I see in CMakeOutput.log what everywhere “gcc 4.8.5” is mentioned, BUT we have GCC 9.3 build from source and installed on the computer!

Could it be a reason???

Sincerely Yours,
Vyacheslav Porosev