Installing root in Linux Mint 19.1. fatal error: vdt/tanh.h: No such file or directory

I get the following error message when trying to compile root-6.16.00. Can anyone help?

[ 84%] Building CXX object tmva/tmva/CMakeFiles/TMVA.dir/src/DNN/Architectures/Cpu.cxx.o
In file included from /cern/root-6.16.00/tmva/tmva/src/DNN/Architectures/Cpu.cxx:18:0:
/cern/root-6.16.00/tmva/tmva/src/DNN/Architectures/Cpu/ActivationFunctions.cxx:21:10: fatal error: vdt/tanh.h: No such file or directory
#include “vdt/tanh.h”
compilation terminated.
tmva/tmva/CMakeFiles/TMVA.dir/build.make:4273: recipe for target ‘tmva/tmva/CMakeFiles/TMVA.dir/src/DNN/Architectures/Cpu.cxx.o’ failed
make[2]: *** [tmva/tmva/CMakeFiles/TMVA.dir/src/DNN/Architectures/Cpu.cxx.o] Error 1
CMakeFiles/Makefile2:29361: recipe for target ‘tmva/tmva/CMakeFiles/TMVA.dir/all’ failed
make[1]: *** [tmva/tmva/CMakeFiles/TMVA.dir/all] Error 2

ROOT Version: root-6.16.00
Platform: Linux Mint 19.1
Compiler: gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04)

That probably means you have vdt <= 0.4, please update vdt and try again. The vdt/tanh.h header is needed by TMVA and is only present in vdt 0.4 and above. There is already a JIRA issue for this problem if you want to track progress. I plan to add a better check for vdt in the next release of ROOT to catch this problem at configuration time.

Thanks for the answer, but the problem is not with external VDT. I’m trying to compile the standard root distribution with built-in VDT.

I studied the problem a bit and found out that it appears only in Mint 19.1 with the most recent updates (I don’t know exactly which updated package is guilty, maybe it was the Linux kernel headers or something like that).

I tried to compile root on another computer which had the same Linux Mint 19.1, but without updates. root-6.14.06 and root-6.16.00 were compiled without problems. After applying the updates root-14.06 still compiles, but root-6.16.00 produces the error which is in the title of the topic.

The difference between 6.14 and 6.16 is the default value of vdt (OFF vs ON). Are you building 6.16 from scratch?

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