# ROOT 6.18/04 will not compile - vdt dependency error

**URL:** <https://root-forum.cern.ch/t/root-6-18-04-will-not-compile-vdt-dependency-error/36211>\
**Category:** ROOT\
**Created:** [October 2, 2019, 9:33pm UTC](https://root-forum.cern.ch/t/root-6-18-04-will-not-compile-vdt-dependency-error/36211 "2019-10-02T21:33:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![whanlon](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/w/91b2a8/32.png) [@whanlon](https://root-forum.cern.ch/u/whanlon)\
**Post date:** [October 2, 2019, 9:33pm UTC](https://root-forum.cern.ch/t/root-6-18-04-will-not-compile-vdt-dependency-error/36211/1 "2019-10-02T21:33:15Z")

</div>

* * *

_ROOT Version:_ 6.18/04  
_Platform:_ linux  
_Compiler:_ gcc (GCC) 9.2.1

* * *

I just pulled ROOT 6.18/04 from the git repository and tried building using CMAKE, but it will not install due to the following error:

```auto
gmake[2]: *** No rule to make target '/opt/root/include/vdt/asin.h', needed by 'math/vecops/G__ROOTVecOps.cxx'. Stop.
gmake[1]: *** [CMakeFiles/Makefile2:21387: math/vecops/CMakeFiles/ROOTVecOps.dir/all] Error 2
gmake: *** [Makefile:152: all] Error 2

```

I had a similar problem when installing v6.18/02 and following the advice in [ROOT production release v6.14/00 is out!](https://root-forum.cern.ch/t/root-production-release-v6-14-00-is-out/29360/17) used then and tried here to build the VDT dependency first using:

```auto
cmake --build . --target VDT -- -j4
cmake --build . -- -j4

```

But now I can not even build VDT (I could in the older ROOT version):

```auto
cmake --build . --target VDT -- -j4
gmake: *** No rule to make target 'VDT'. Stop.

```

Is the only way to build now by users hand editing the cmake files? This seems like a long standing bug that hasn’t been fixed (since at least v 6.14).

---

<div class="post-metadata">

**Author:** ![whanlon](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/w/91b2a8/32.png) [@whanlon](https://root-forum.cern.ch/u/whanlon)\
**Post date:** [October 2, 2019, 10:35pm UTC](https://root-forum.cern.ch/t/root-6-18-04-will-not-compile-vdt-dependency-error/36211/2 "2019-10-02T22:35:28Z")

</div>

I figured out that I need to explicitly configure root to make vdt first. I don’t think the vdt build option’s default setting was OFF previously, but it seems that it is now.

Here is how I got it to build:

```auto
# explicitly configure VDT build option, for me that results in it using builtin_vdt
cmake -Dminuit2=ON -Dvdt=ON -DCMAKE_INSTALL_PREFIX=/opt/root ../root
# build VDT first, not sure if this step is still needed but it worked
cmake --build . --target VDT -- -j4
# build ROOT
cmake --build . -- -j4
# install
sudo cmake --build . --target install

```

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [October 3, 2019, 8:05am UTC](https://root-forum.cern.ch/t/root-6-18-04-will-not-compile-vdt-dependency-error/36211/3 "2019-10-03T08:05:31Z")

</div>

Hi, was this in a clean (previously empty) build directory? Or was it an incremental build in a build directory used for a previous ROOT version?

---

<div class="post-metadata">

**Author:** ![whanlon](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/w/91b2a8/32.png) [@whanlon](https://root-forum.cern.ch/u/whanlon)\
**Post date:** [October 3, 2019, 2:29pm UTC](https://root-forum.cern.ch/t/root-6-18-04-will-not-compile-vdt-dependency-error/36211/4 "2019-10-03T14:29:58Z")

</div>

This was all done in a clean build directory.

---

<div class="post-metadata">

**Author:** ![amadio](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/amadio/32/12562_2.png) [@amadio](https://root-forum.cern.ch/u/amadio)\
**Post date:** [October 4, 2019, 12:38pm UTC](https://root-forum.cern.ch/t/root-6-18-04-will-not-compile-vdt-dependency-error/36211/5 "2019-10-04T12:38:31Z")

</div>

Please post a recipe to reproduce the problem. I will investigate what’s going on.

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [October 18, 2019, 12:51pm UTC](https://root-forum.cern.ch/t/root-6-18-04-will-not-compile-vdt-dependency-error/36211/6 "2019-10-18T12:51:54Z")

</div>

Closed on October 18, 2019, 12:51pm UTC

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