ROOT6 - fatal error: malformed or corrupted AST file

Hi!

I was about to give ROOT6 a try using commit 5412d8d5f94b5 - but unfortunately it doesn’t work:

[code]sschmitt@dopamine:~/local/bin$ source thisroot.sh
sschmitt@dopamine:~/local/bin$ ./root -l
./root: can’t start ROOT – check that ~/local/bin/root.exe exists!
sschmitt@dopamine:~/local/bin$ ls ~/local/bin/root.exe
/afsuser/sschmitt/local/bin/root.exe
sschmitt@dopamine:~/local/bin$ ./root.exe
ERROR in cling::CIFactory::createCI():
resource directory ~/local/etc/cling/lib/clang/3.4 not found!
error: unable to read PCH file ~/local/etc/allDict.cxx.pch: 'No such file or directory’
fatal error: malformed or corrupted AST file: ‘Unable to load module “~/local/etc/allDict.cxx.pch”: module file not found’

*** Break *** segmentation violation
Error in TUnixSystem::StackTrace script ~/local/etc/gdb-backtrace.sh is missing
Segmentation fault

sschmitt@dopamine:~/local/bin$ du -h ~/local/etc/allDict.cxx.pch
27M /afsuser/sschmitt/local/etc/allDict.cxx.pch
[/code]

Anything I can do about it or is ROOT6 not mature enough for some beta tests?

Thanks,

Sebastian

Hi!

I found the problem. It originates from the way the directory is checked in cling/lib/Interpreter/CIFactory.cpp:

if (!llvm::sys::fs::is_directory(resource_path.str())) { llvm::errs() << "ERROR in cling::CIFactory::createCI():\n resource directory " << resource_path.str() << " not found!\n"; resource_path = ""; }

Apparently “is_directory” does not handle “~”. If I configure with absolute paths

ROOT6 does start.

Best,

Sebastian

Hi Sebastian,

That’s a bug, now tracked as sft.its.cern.ch/jira/browse/ROOT-5880. I have added you (or a person with identical name :slight_smile: as watcher.

Cheers, Axel.

Hi!

Sorry that I didn’t update my posting - I also reported the bug via JIRA yesterday:

sft.its.cern.ch/jira/browse/ROOT-5904

Can you mark one of them as duplicate of the other?

Best,

Sebastian

PS: You mean sft.its.cern.ch/jira/browse/ROOT-5907, right?