# Warning cling

**URL:** <https://root-forum.cern.ch/t/warning-cling/56943>\
**Category:** ROOT\
**Created:** [October 31, 2023, 8:50pm UTC](https://root-forum.cern.ch/t/warning-cling/56943 "2023-10-31T20:50:02Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Ako\_b](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/9f8e36/32.png) [@Ako\_b](https://root-forum.cern.ch/u/Ako_b)\
**Post date:** [November 1, 2023, 11:11am UTC](https://root-forum.cern.ch/t/warning-cling/56943/4 "2023-11-01T11:11:13Z")

</div>

First of all, do you still have folder where you built ROOT and, less importantly, source folder? If not, then the only way would be to build from scratch again like you mentioned you did earlier. In such a case I assume it would be reasonable to use latest version ([Releases · root-project/root · GitHub](https://github.com/root-project/root/releases)).

Regarding simple upgrade, I’m afraid that in your case you have to build from scratch, according to [Easy way to update ROOT?](https://root-forum.cern.ch/t/easy-way-to-update-root/40348/5):

> [@Easy way to update ROOT?](https://root-forum.cern.ch/t/easy-way-to-update-root/40348/5):
>
> Compiling ROOT from source like you did is the best way to customize ROOT, but then you have the responsibility to manage that ROOT installation. If you have not installed ROOT in system directories such as `/usr/local` after compilation (you can check where your ROOT installation resides with `which root`, for example), then upgrading should be a matter of removing your current installation (e.g. removing the build/install directory) and compiling again. If you did install ROOT in system directories, you have to manually remove it from there.

As for rebuilding only cling, the simplest hack might be this:

1. Backup install and build directories of ROOT.
2. Remove contents of install directory.
3. cd to your build directory and remove `interpreter/cling` directory here.
4. Run cmake command with your appropriate flags.
5. Run build and install commands.

This is not guaranteed to work. There were more elaborated instruction:

> [@Remove cling warning](https://root-forum.cern.ch/t/remove-cling-warning/22090/5):
>
> Solution: (Ubuntu) Remove all folders and files in your Ubuntu with llvm, clang, cling and Cmake in the name. Re-install Cmake. sudo apt-get install cmake Go to this site: [https://raw.githubusercontent.com/karies/cling-all-in-one/master/clone.sh](https://raw.githubusercontent.com/karies/cling-all-in-one/master/clone.sh) and execute the script in your Ubuntu. Cling will work fine again. For avoid problems, you can update Cmake before execute the script. Cheers, Usori.

To sum up, I suggest that instead of investing time into exploring how to rebuild only cling, you could, with more reliable results, just rebuild from scratch (may be with a newer version of ROOT to justify time investment) or [install from a pre-compiled binaries available for Ubuntu](https://root.cern/install/#download-a-pre-compiled-binary-distribution).

Alternatively, you can simply downgrade gcc, delaying the upgrade of both ROOT and gcc.

---

_[View the full topic](https://root-forum.cern.ch/t/warning-cling/56943)._
