Warning cling

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).

Regarding simple upgrade, I’m afraid that in your case you have to build from scratch, according to Easy way to update ROOT?:

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:

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.

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

1 Like