In the thread there is a suggestion that perhaps you can follow. The alternative is to avoid building this executable (it is not essential) by commenting this line:
Thanks for the hint and your help.
Trying that, I noticed that, while I have the same error message, the cause is with another part of the code (I think), namely something in TCling.cxx that makes build fail after reaching 50%. Here’s the error message I get:
[ 50%] Linking CXX executable ../../bin/rootcling
../meta/CMakeFiles/MetaLLVM.dir/src/TCling.cxx.o: In function `TCling::MapCppName(char const*) const':
/home/zatoichi/downloads/root/6.06.02/src/core/meta/src/TCling.cxx:6141: undefined reference to `__cxa_thread_atexit'
../meta/CMakeFiles/MetaLLVM.dir/src/TCling.cxx.o: In function `TCling::ClassInfo_FullName(ClassInfo_t*) const':
/home/zatoichi/downloads/root/6.06.02/src/core/meta/src/TCling.cxx:6960: undefined reference to `__cxa_thread_atexit'
../meta/CMakeFiles/MetaLLVM.dir/src/TCling.cxx.o: In function `TCling::BaseClassInfo_FullName(BaseClassInfo_t*) const':
/home/zatoichi/downloads/root/6.06.02/src/core/meta/src/TCling.cxx:7089: undefined reference to `__cxa_thread_atexit'
../meta/CMakeFiles/MetaLLVM.dir/src/TCling.cxx.o: In function `TCling::DataMemberInfo_ValidArrayIndex(DataMemberInfo_t*) const':
/home/zatoichi/downloads/root/6.06.02/src/core/meta/src/TCling.cxx:7249: undefined reference to `__cxa_thread_atexit'
../meta/CMakeFiles/MetaLLVM.dir/src/TCling.cxx.o: In function `TCling::MethodInfo_GetMangledName(MethodInfo_t*) const':
/home/zatoichi/downloads/root/6.06.02/src/core/meta/src/TCling.cxx:7607: undefined reference to `__cxa_thread_atexit'
../meta/CMakeFiles/MetaLLVM.dir/src/TClingClassInfo.cxx.o:/home/zatoichi/downloads/root/6.06.02/src/core/meta/src/TClingClassInfo.cxx:1296: more undefined references to `__cxa_thread_atexit' follow
c++: error: linker command failed with exit code 1 (use -v to see invocation)
core/utils/CMakeFiles/rootcling.dir/build.make:785: recipe for target 'bin/rootcling' failed
gmake[2]: *** [bin/rootcling] Error 1
CMakeFiles/Makefile2:16798: recipe for target 'core/utils/CMakeFiles/rootcling.dir/all' failed
gmake[1]: *** [core/utils/CMakeFiles/rootcling.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
gmake: *** [all] Error 2
[quote=“mato”]In the thread there is a suggestion that perhaps you can follow. The alternative is to avoid building this executable (it is not essential) by commenting this line: