# Can not build Garfield after upgrade ROOT

**URL:** <https://root-forum.cern.ch/t/can-not-build-garfield-after-upgrade-root/57347>\
**Category:** Garfield++\
**Tags:** root\
**Created:** [December 1, 2023, 3:39am UTC](https://root-forum.cern.ch/t/can-not-build-garfield-after-upgrade-root/57347 "2023-12-01T03:39:49Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Crisps](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/crisps/32/39101_2.png) [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Post date:** [December 1, 2023, 3:39am UTC](https://root-forum.cern.ch/t/can-not-build-garfield-after-upgrade-root/57347/1 "2023-12-01T03:39:50Z")

</div>

Dear Experts

I accidentally upgrade ROOT from 6.22.08 to 6.30.00, so I need to rebuild Garfield++. But when I try to build I got such error when I run `cmake $GARFIELD_HOME`:

```auto
CMake Error at /Applications/CMake.app/Contents/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Vdt (missing: VDT_INCLUDE_DIR VDT_LIBRARY)
Call Stack (most recent call first):
  /Applications/CMake.app/Contents/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  /opt/homebrew/Cellar/root/6.30.00/share/root/cmake/modules/FindVdt.cmake:63 (find_package_handle_standard_args)
  /Applications/CMake.app/Contents/share/cmake-3.23/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /opt/homebrew/Cellar/root/6.30.00/share/root/cmake/ROOTConfig.cmake:132 (find_dependency)
  CMakeLists.txt:71 (find_package)

```

Is this an issue or I did something wrong? I didn’t do anything instead of accidentally upgrade ROOT version…

MacOS  
ROOT 6.30.00  
CXX: Clang 13.1.6  
Fortran: GNU 13.2.0

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [December 1, 2023, 9:40am UTC](https://root-forum.cern.ch/t/can-not-build-garfield-after-upgrade-root/57347/2 "2023-12-01T09:40:59Z")

</div>

Maybe @hschindl can take a look

---

<div class="post-metadata">

**Author:** ![hschindl](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/977dab/32.png) [@hschindl](https://root-forum.cern.ch/u/hschindl)\
**Post date:** [December 3, 2023, 12:30pm UTC](https://root-forum.cern.ch/t/can-not-build-garfield-after-upgrade-root/57347/3 "2023-12-03T12:30:15Z")

</div>

No idea, sorry. Is this problem specific to building Garfield? Or do you get the same error when you build a ROOT-based application without any Garfield-dependency?

---

<div class="post-metadata">

**Author:** ![Crisps](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/crisps/32/39101_2.png) [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Post date:** [December 4, 2023, 4:15am UTC](https://root-forum.cern.ch/t/can-not-build-garfield-after-upgrade-root/57347/4 "2023-12-04T04:15:46Z")

</div>

I tried to rebuild Geant4 examples, but no error came out…  
Maybe you can try to build Garfield++ with ROOT 6.30.00 and if there is no error then it should be something else 😰

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [December 4, 2023, 7:11am UTC](https://root-forum.cern.ch/t/can-not-build-garfield-after-upgrade-root/57347/5 "2023-12-04T07:11:27Z")

</div>

OK a GitHub issue has been open [cmake find\_package ROOT broken with 6.30, nlohmann and vdt are builtin but not found · Issue #14163 · root-project/root · GitHub](https://github.com/root-project/root/issues/14163)"  
But:

> Note: if I “source” root before calling cmake, then the VDT error disappears.

---

<div class="post-metadata">

**Author:** ![Crisps](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/crisps/32/39101_2.png) [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Post date:** [December 4, 2023, 7:27am UTC](https://root-forum.cern.ch/t/can-not-build-garfield-after-upgrade-root/57347/6 "2023-12-04T07:27:46Z")

</div>

I tried to `source thisroot.sh` before calling cmake, but error still come out ☹

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [December 4, 2023, 7:29am UTC](https://root-forum.cern.ch/t/can-not-build-garfield-after-upgrade-root/57347/7 "2023-12-04T07:29:07Z")

</div>

So I propose to try to install VDT on your system (if available), or downgrade ROOT until a proper solution is found

---

<div class="post-metadata">

**Author:** ![Crisps](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/crisps/32/39101_2.png) [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Post date:** [December 5, 2023, 3:20am UTC](https://root-forum.cern.ch/t/can-not-build-garfield-after-upgrade-root/57347/8 "2023-12-05T03:20:51Z")

</div>

Thank you! 🙂 I think I will downgrade ROOT

---

<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:** [December 19, 2023, 3:21am UTC](https://root-forum.cern.ch/t/can-not-build-garfield-after-upgrade-root/57347/9 "2023-12-19T03:21:07Z")

</div>

Closed on December 19, 2023, 3:21am UTC

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