Compile error using RDataFrame: fatal error: 'vdt/vdtMath.h' file not found


I cannot compile any file containing '#include “ROOT/RDataFrame.hxx” on the ROOT command line:

[file: toto.cpp]
#include "ROOT/RDataFrame.hxx"

void toto() {}


  | Welcome to ROOT 6.20/05               |
  | (c) 1995-2020, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for linuxx8664gcc on May 11 2020, 09:45:00                 |
  | From heads/v6-20-00-patches@v6-20-04-49-gc916bee956              |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q'       |

root [0] .L toto.cpp+
Info in <TUnixSystem::ACLiC>: creating shared library
In file included from input_line_11:6:
In file included from ././toto.cpp:1:
In file included from /home/frankland/software/install/root-v6-20-00/include/ROOT/RDataFrame.hxx:20:
In file included from /home/frankland/software/install/root-v6-20-00/include/ROOT/RDF/RInterface.hxx:15:
In file included from /home/frankland/software/install/root-v6-20-00/include/ROOT/RDF/ActionHelpers.hxx:17:
/home/frankland/software/install/root-v6-20-00/include/ROOT/RVec.hxx:48:10: fatal error: 'vdt/vdtMath.h' file not found
#include <vdt/vdtMath.h>
rootcling: /home/frankland/software/sources/root/interpreter/cling/lib/Interpreter/IncrementalParser.cpp:403: cling::IncrementalParser::~IncrementalParser(): Assertion `(T->getState() == Transaction::kCommitted || T->getState() == Transaction::kRolledBackWithErrors || T->getState() == Transaction::kNumStates || T->getState() == Transaction::kRolledBack) && "Not committed?"' failed.
Aborted (core dumped)
Error in <ACLiC>: Dictionary generation failed!

What am I doing wrong?


Please read tips for efficient and successful posting and posting code

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided

Hi John,
It seems that at the time ROOT was compiled, vdt was available on the system, but now ROOT can’t find it back at runtime. You can check where ROOT expects to find libvdt with ldd $ROOTSYS/lib/ | grep vdt. For example, if you built ROOT yourself, this might have happened if you had another ROOT installation active while configuring/building this ROOT version, and reconfiguring with cmake -Dbuiltin_vdt=ON . and re-building will fix the problem.

What ROOT version and what operating system are you on, and how did you install ROOT?


Hi Enrico
I compiled the tip of the 6.20 branch last week, just after updating to Ubuntu 20.04
(see ROOT splash at start of output in my post for details, git commit etc.)

$ ldd $ROOTSYS/lib/ | grep vdt

gives nothing, so it doesn’t look like the library was accidentally linked with something it shouldn’t. On the other hand,

$ locate vdtMath.h

As you can see I have several other versions of ROOT installed also, and some of these have “vdt” in them. I will try a rebuild (of the current tip of the 6.20 branch) adding option builitin_vdt as you suggest.


Cheers Enrico, that did the trick!
Best regards

1 Like

Very well! I think what happened was indeed that you had one of those other ROOT installations activated while configuring the build for this one, so cmake found vdt “in the system” and decided there was no reason to build it itself.


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