Build Issue with ROOT 6.16.00 (TIOFeatures / TTree)


When building the recent 6.16.00 build on Ubuntu 18.04 I run into the following error message:

In file included from input_line_12:38:                                                                                                                                     
In file included from /root/software/root/6.16.00/build/include/TNtupleD.h:24:                                                                                              
/root/software/root/6.16.00/build/include/TTree.h:106:30: error: field of type 'TTree::TIOFeatures' (aka 'ROOT::TIOFeatures') has private constructor                          
   TIOFeatures    fIOFeatures{0};         ///<  IO features to define for newly-written baskets and branches.                                                                                            
/root/software/root/6.16.00/build/include/ROOT/TIOFeatures.hxx:89:4: note: declared private here 
TIOFeatures(UChar_t IOBits) : fIOBits(IOBits) {}                                                                                                                            
Error: /root/software/root/6.16.00/build/bin/rootcling: compilation failure (/root/software/root/6.16.00/build/lib/libTree342aa8a489_dictUmbrella.h)                        
tree/tree/CMakeFiles/G__Tree.dir/build.make:165: recipe for target 'tree/tree/G__Tree.cxx' failed                                                                           
make[2]: *** [tree/tree/G__Tree.cxx] Error 1                                                                                                                                
CMakeFiles/Makefile2:21766: recipe for target 'tree/tree/CMakeFiles/G__Tree.dir/all' failed                                                                                 
make[1]: *** [tree/tree/CMakeFiles/G__Tree.dir/all] Error 2                                                                                                                 
Makefile:151: recipe for target 'all' failed                                                                                                                                
make: *** [all] Error 2               

Any help would be appreciated.


ROOT Version: 6.16.00
Platform: Ubuntu 18.04
Compiler: gcc 7.3.0

That is strange. We do not see this error and TTree is marker (line 63 in TIOFeatures.hxx as a friend of the class TIOFeatures. How did you configure ROOT/cmake?

Nothing special

cmake ../root-6.16.00 -DCMAKE_INSTALL_PREFIX=/opt/root/6.16.00

I’m also getting a number of warnings like this:

/root/software/root/6.16.00/build/include/TBranch.h:1:4096: warning: null character ignored [-Wnull-character]                             

humm … sometimes must have gone wrong when downloading the source file (and is likely the cause of the error you first mentioned as the ‘friend’ declaration must be directing to a wrongly spelled name).

Try wiping out (or setting aside) all the source and build directory and restart from scratch.

You are correct, seems to have been a corrupted build.

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