# Older Root Package

**URL:** <https://root-forum.cern.ch/t/older-root-package/52823>\
**Category:** ROOT\
**Created:** [December 19, 2022, 6:44pm UTC](https://root-forum.cern.ch/t/older-root-package/52823 "2022-12-19T18:44:55Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![blessed](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/blessed/32/32314_2.png) [@blessed](https://root-forum.cern.ch/u/blessed)\
**Post date:** [December 19, 2022, 6:44pm UTC](https://root-forum.cern.ch/t/older-root-package/52823/1 "2022-12-19T18:44:55Z")

</div>

I think I am done with this new trial version of ROOT. I tried to get rid of the path to the ROOT headers, but the make command still tracks the history and picks up the root headers from where it first found them, even though I have removed all reference to the path from my CMakeLists.txt.

Please recommend a workable ROOT version prior to this newer error-filled version, that I could use.

thanks, Neera

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [December 21, 2022, 9:20am UTC](https://root-forum.cern.ch/t/older-root-package/52823/2 "2022-12-21T09:20:08Z")

</div>

Hi,  
I am not sure I understand your problem. Can you please explain it better ?  
If you have an older version of ROOT installed, maybe it is easier to remove it if you are not using it anymore  
Best,  
Lorenzo

---

<div class="post-metadata">

**Author:** ![Emil\_R](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/emil_r/32/31255_2.png) [@Emil\_R](https://root-forum.cern.ch/u/Emil_R)\
**Post date:** [December 21, 2022, 9:57am UTC](https://root-forum.cern.ch/t/older-root-package/52823/3 "2022-12-21T09:57:18Z")

</div>

It would be good to know how you installed root. In general, I also do not understand the question, but can’t you simply delete the folder, where root was installed and afterwards install root again? There are a lot of different versions available ([https://root.cern/install/](https://root.cern/install/)). Maybe you can just install the last version that worked for you?

---

<div class="post-metadata">

**Author:** ![blessed](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/blessed/32/32314_2.png) [@blessed](https://root-forum.cern.ch/u/blessed)\
**Post date:** [December 21, 2022, 3:04pm UTC](https://root-forum.cern.ch/t/older-root-package/52823/4 "2022-12-21T15:04:32Z")

</div>

Thank you Moneta and Emil. I am just beginning to work with Geant4 and for my code, I need to access root libraries, hence I needed to install ROOT. I installed the latest version (unoffcial - the 26.10) of ROOT and used cmake and make to install it. I installed all the prerequisites prior to downloading this latest version, un-tar -ing it, and installing ROOT using cmake and make. It took a while but everything got installed.

when I ran my Geant4 code which called some of the root headers, I ran into multiple errors, originating from the headers that are called by the headers I was using. For example, the T(whatever). h called T(something else).h, which had syntax errors, undefined functions in that scope, etc. the executable state ran into pages and pages of errors, all related to root headers ( I posted some of them on the same day, in this forum).

I just want an error-free version of root that is tested and completely debugged. If you can advise which version I can install, I will Uninstall the current new version and install the older version. Thanks.

---

<div class="post-metadata">

**Author:** ![Emil\_R](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/emil_r/32/31255_2.png) [@Emil\_R](https://root-forum.cern.ch/u/Emil_R)\
**Post date:** [December 21, 2022, 3:19pm UTC](https://root-forum.cern.ch/t/older-root-package/52823/5 "2022-12-21T15:19:51Z")

</div>

I am using root 6.24 which has no problems. Version 6.26 worked fine as well. I have not used them in combination with Geant4 but they should work fine.

---

<div class="post-metadata">

**Author:** ![blessed](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/blessed/32/32314_2.png) [@blessed](https://root-forum.cern.ch/u/blessed)\
**Post date:** [December 21, 2022, 3:23pm UTC](https://root-forum.cern.ch/t/older-root-package/52823/6 "2022-12-21T15:23:01Z")

</div>

Thank you. I will try that out and see how it works.

---

<div class="post-metadata">

**Author:** ![blessed](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/blessed/32/32314_2.png) [@blessed](https://root-forum.cern.ch/u/blessed)\
**Post date:** [December 22, 2022, 7:31pm UTC](https://root-forum.cern.ch/t/older-root-package/52823/7 "2022-12-22T19:31:58Z")

</div>

Good Afternoon Emil,

I used 6.26.8 as opposed to 6.26.10. I was hoping to get fewer errors but i got the same errors as before. I wonder if I am not doing something right in giving the command:

```
^ ~~~~~~~~~~~~~~~~

```

/home/neera/root/include/TBranch.h:291:4: note: in expansion of macro ‘ClassDef’  
ClassDef(TBranch, 13); // Branch descriptor  
^ ~~~~~~~  
/home/neera/root/include/Rtypes.h:281:67: error: expected primary-expression before ‘)’ token  
::ROOT::Internal::HasConsistentHashMember(_QUOTE_(name)) ||   
^  
/home/neera/root/include/Rtypes.h:300:4: note: in expansion of macro ‘_ClassDefBase_’  
_ClassDefBase_(name,id, virtual\_keyword, overrd)   
^ ~~~~~~~~~~~~~  
/home/neera/root/include/Rtypes.h:330:4: note: in expansion of macro ‘_ClassDefOutline_’  
_ClassDefOutline_(name,id,override)   
^ ~~~~~~~~~~~~~~~~  
/home/neera/root/include/TDirectory.h:299:4: note: in expansion of macro ‘ClassDefOverride’  
ClassDefOverride(TDirectory,5) //Describe directory structure in memory  
^ ~~~~~~~~~~~~~~~  
/home/neera/root/include/Rtypes.h:281:55: error: ‘_QUOTE_’ was not declared in this scope  
/home/neera/root/include/TDatime.h: In member function ‘virtual Bool\_t TDatime::CheckTObjectHashConsistency() const’:  
/home/neera/root/include/Rtypes.h:275:11: error: ‘R\_\_likely’ was not declared in this scope  
if (R\_\_likely(recurseBlocker \>= 2)) {   
^  
/home/neera/root/include/Rtypes.h:300:4: note: in expansion of macro ‘_ClassDefBase_’  
_ClassDefBase_(name,id, virtual\_keyword, overrd)   
^ ~~~~~~~~~~~~~  
/home/neera/root/include/Rtypes.h:326:4: note: in expansion of macro ‘_ClassDefOutline_’  
_ClassDefOutline_(name,id,virtual,)   
^ ~~~~~~~~~~~~~~~~  
/home/neera/root/include/TDatime.h:95:4: note: in expansion of macro ‘ClassDef’  
ClassDef(TDatime,1) //Date and time 950130 124559  
^ ~~~~~~~  
/home/neera/root/include/Rtypes.h:281:67: error: expected primary-expression before ‘)’ token  
::ROOT::Internal::HasConsistentHashMember(_QUOTE_(name)) || \

```
^ ~~~~~~~

```

/home/neera/root/include/TDirectoryFile.h: In member function ‘virtual Bool\_t TDirectoryFile::CheckTObjectHashConsistency() const’:  
/home/neera/root/include/Rtypes.h:275:11: error: ‘R\_\_likely’ was not declared in this scope  
if (R\_\_likely(recurseBlocker \>= 2)) {

```
            ^ ~~~~~~~~~~~~~~~~

```

/home/neera/root/include/TUrl.h:98:4: note: in expansion of macro ‘ClassDef’  
ClassDef(TUrl,1) //Represents an URL  
^ ~~~~~~~  
In file included from include/RunAction.hh:42:0,  
from src/RunAction.cc:40:  
/home/neera/root/include/TTree.h: In destructor ‘virtual TTreeFriendLeafIter::~TTreeFriendLeafIter()’:  
/home/neera/root/include/TTree.h:678:29: error: ‘SafeDelete’ was not declared in this scope  
~TTreeFriendLeafIter() { SafeDelete(fLeafIter); SafeDelete(fTreeIter); }  
^ ~~~~~~~~~  
/home/neera/root/include/TTree.h:678:29: note: suggested alternative: ‘kCanDelete’  
~TTreeFriendLeafIter() { SafeDelete(fLeafIter); SafeDelete(fTreeIter); }  
^ ~~~~~~~~~  
  
from src/EventAction.cc:37:  
/home/neera/root/include/TFile.h: In member function ‘Bool\_t TFile::IsBinary() const’:  
/home/neera/root/include/TFile.h:253:50: error: ‘TestBit’ was not declared in this scope  
Bool\_t IsBinary() const { return TestBit(kBinaryFile); }  
^ ~~~~~~  
/home/neera/root/include/TFile.h:253:50: note: suggested alternative: ‘TestBits’  
Bool\_t IsBinary() const { return TestBit(kBinaryFile); }

finally the error summary:

make: \*\*\* [/opt/geant4/geant4.10.04.p02/config/common.gmk:79: /home/neera/geant4\_workdir/tmp/Linux-g++/west/EventAction.o] Error 1  
make: \*\*\* [/opt/geant4/geant4.10.04.p02/config/common.gmk:79: /home/neera/geant4\_workdir/tmp/Linux-g++/west/RunAction.o] Error 1  
[neera@vm-nii-fc27-a ~/xraywest]$

Help me decode the error, please!

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [December 22, 2022, 8:06pm UTC](https://root-forum.cern.ch/t/older-root-package/52823/10 "2022-12-22T20:06:38Z")

</div>

Attach the “`make.log.txt`” file generated by:

> [@Unofficial ROOT 6.26.10 package for Ubuntu 22.04](https://root-forum.cern.ch/t/unofficial-root-6-26-10-package-for-ubuntu-22-04/52773/16):
>
> Those errors are only seen in the case you describe. This usually indicates that there is something ‘odd/unexpected’ about the environment (quite often a much older version of ROOT is found and unintentionally used during the compilation). To get the bottom of this, we need to make a few experiment. First we need to get (one of) the command line that fails. To do, if you use make to build, do: make VERBOSE=true |& tee make.log.txt The last line before the first error is the command line we…

---

<div class="post-metadata">

**Author:** ![blessed](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/blessed/32/32314_2.png) [@blessed](https://root-forum.cern.ch/u/blessed)\
**Post date:** [December 29, 2022, 4:15pm UTC](https://root-forum.cern.ch/t/older-root-package/52823/11 "2022-12-29T16:15:16Z")

</div>

Good Morning Wile,

I typed:  
make VERBOSE=true 2\>&1 | tee make.log.txt  
and it did not work. I got the message: Ambiguous output redirect and the compilation did not start.

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [December 29, 2022, 5:21pm UTC](https://root-forum.cern.ch/t/older-root-package/52823/12 "2022-12-29T17:21:00Z")

</div>

Try:  
`make VERBOSE=true |& tee make.log.txt`

---

<div class="post-metadata">

**Author:** ![blessed](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/blessed/32/32314_2.png) [@blessed](https://root-forum.cern.ch/u/blessed)\
**Post date:** [December 29, 2022, 8:53pm UTC](https://root-forum.cern.ch/t/older-root-package/52823/13 "2022-12-29T20:53:27Z")

</div>

thanks, I will try that on Tuesday (I only go to work twice a week, so the process is slow until I can somehow convince my IT team to connect me from home.

I checked the root version which the make is using. it is 6.26.10 - so these errors of R\_\_likely not working and _QUOTE_(name) not defined in the current scope (repeated errors, but the same one) are related to this version

---

<div class="post-metadata">

**Author:** ![blessed](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/blessed/32/32314_2.png) [@blessed](https://root-forum.cern.ch/u/blessed)\
**Post date:** [January 3, 2023, 3:50pm UTC](https://root-forum.cern.ch/t/older-root-package/52823/14 "2023-01-03T15:50:14Z")

</div>

Good Morning Wile,

That command worked. It did generate the make.log.txt file, which I can email to you in a bit (got to resolve some browser issues first). what is your email id, please?

Thanks,  
Neera

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [January 3, 2023, 5:21pm UTC](https://root-forum.cern.ch/t/older-root-package/52823/15 "2023-01-03T17:21:53Z")

</div>

Attach this file here.

---

<div class="post-metadata">

**Author:** ![blessed](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/blessed/32/32314_2.png) [@blessed](https://root-forum.cern.ch/u/blessed)\
**Post date:** [January 3, 2023, 6:01pm UTC](https://root-forum.cern.ch/t/older-root-package/52823/16 "2023-01-03T18:01:46Z")

</div>

Hi Wile,

Here you go - hope you are able to open the log and figure out the issue.

[make.log.txt](https://root-forum.cern.ch/uploads/short-url/dVMMPEwbGqDjhBHdGiXQDYfavYY.txt) (14.4 KB)

Thanks,

Neera

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [January 3, 2023, 7:10pm UTC](https://root-forum.cern.ch/t/older-root-package/52823/17 "2023-01-03T19:10:50Z")

</div>

What do you get from:  
`echo ROOTSYS=${ROOTSYS}`  
`root-config --prefix`  
`root-config --cflags`

---

<div class="post-metadata">

**Author:** ![blessed](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/blessed/32/32314_2.png) [@blessed](https://root-forum.cern.ch/u/blessed)\
**Post date:** [January 3, 2023, 8:39pm UTC](https://root-forum.cern.ch/t/older-root-package/52823/18 "2023-01-03T20:39:22Z")

</div>

Hi Wile,

I am back home and will get back to you with those results on Thursday. I apologize for this stretched out plan, but this is the best I can do for now. What I am supposed to get?

Also, I would like to know if if can proceed step by step and tackle one error at a time:

/home/neera/root/include/Rtypes.h:281:67: **error: expected primary-expression before ‘)’** token  
::ROOT::Internal::HasConsistentHashMember(_QUOTE_(name)) ||   
/home/neera/root/include/Rtypes.h:281:55: **error: ‘_QUOTE_’ was not declared in this scope**  
::ROOT::Internal::HasConsistentHashMember(_QUOTE_(name)) ||   
/home/neera/root/include/Rtypes.h:275:11: **error: ‘R\_\_likely’ was not declared in this scope**  
if (R\_\_likely(recurseBlocker \>= 2)) { \

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [January 3, 2023, 8:53pm UTC](https://root-forum.cern.ch/t/older-root-package/52823/19 "2023-01-03T20:53:36Z")

</div>

It looks like your “west” (“xraywest”) application did not use your ROOT distribution at all.

---

<div class="post-metadata">

**Author:** ![blessed](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/blessed/32/32314_2.png) [@blessed](https://root-forum.cern.ch/u/blessed)\
**Post date:** [January 3, 2023, 9:02pm UTC](https://root-forum.cern.ch/t/older-root-package/52823/20 "2023-01-03T21:02:38Z")

</div>

I am not able to get to the creation of the executable at this point, due to syntax errors. I removed (or commented out) all the root headers that were not used, but the error messages did not diminish or change.

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [January 3, 2023, 9:14pm UTC](https://root-forum.cern.ch/t/older-root-package/52823/21 "2023-01-03T21:14:09Z")

</div>

This is a Geant4 application, so try: [Geant4 → User Forum](https://geant4-forum.web.cern.ch/)

Also, try to contact the author of your “west” (“xraywest”) application.

---

<div class="post-metadata">

**Author:** ![blessed](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/blessed/32/32314_2.png) [@blessed](https://root-forum.cern.ch/u/blessed)\
**Post date:** [January 3, 2023, 9:24pm UTC](https://root-forum.cern.ch/t/older-root-package/52823/22 "2023-01-03T21:24:58Z")

</div>

The author of xraywest (which uses west.cc, as you correctly noticed) is my colleague. He worked on this project five years ago, when the root version was old and somehow it worked then. Now he doesn’t use cmake, so he tried everything possible on my account but the core dumped ; it did not proceed with creation of the object files either. My version of Geant4 uses cmake and the makefile can only be created via cmake.

I successfully executed cmake. I am having issues with make. I can share the CMakeFiles.text, which I had modified to include root headers. It basically includes globs all headers and sources (very similar to the attached file, except that the project name is changed, in and out files removed and root header path added, as exampleB1 does not use root at all  
[CMakelists.txt](https://root-forum.cern.ch/uploads/short-url/1cEwZf7rE3yifwYV8Te9MipzuVH.txt) (2.5 KB)

This far I am able to provide the link to the root headers, alongwith Geant4 headers to my version of Geant4. Stuck with the errors, though

[Next page](https://root-forum.cern.ch/t/older-root-package/52823.md?page=2)
