GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » Fairroot » General Discussion » New update of fairroot not building properly
New update of fairroot not building properly [message #13359] Tue, 17 April 2012 17:50 Go to next message
Raghav Kunnawalkam is currently offline  Raghav Kunnawalkam
Messages: 63
Registered: February 2012
Location: Stony Brook, New York
continuous participant
From: *physics.sunysb.edu
Hi All

I just updated my fairroot (after a break of about 3 weeks) and now it is giving me a lot of errors particularly in the examples, Tutorial1, 2 and rutherford.

Scanning dependencies of target Tutorial1
[ 59%] Building CXX object example/Tutorial1/src/CMakeFiles/Tutorial1.dir/FairTutorialDet.o
[ 59%] Building CXX object example/Tutorial1/src/CMakeFiles/Tutorial1.dir/FairTutorialDetContFact.o
[ 60%] Building CXX object example/Tutorial1/src/CMakeFiles/Tutorial1.dir/FairTutorialDetGeoPar.o
[ 60%] Building CXX object example/Tutorial1/src/CMakeFiles/Tutorial1.dir/FairTutorialDetPoint.o
[ 60%] Building CXX object example/Tutorial1/src/CMakeFiles/Tutorial1.dir/FairTutorial1Dict.o
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx : In function ‘void G__cpp_setup_inheritanceFairTutorial1Dict()’:
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1443: error: ‘FairBasePoint’ was not declared in this scope
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1443: error: ‘G__Lpbase’ was not declared in this scope
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1443: error: expected primary-expression before ‘)’ token
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1443: error: expected `;' before ‘G__Lderived’
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1447: error: ‘FairTimeStamp’ was not declared in this scope
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1447: error: ‘G__Lpbase’ was not declared in this scope
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1447: error: expected primary-expression before ‘)’ token
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1447: error: expected `;' before ‘G__Lderived’
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1455: error: ‘FairLinkedData’ was not declared in this scope
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1455: error: ‘G__Lpbase’ was not declared in this scope
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1455: error: expected primary-expression before ‘)’ token
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1455: error: expected `;' before ‘G__Lderived’
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1536: error: ‘FairLinkedData’ was not declared in this scope
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1536: error: ‘G__Lderived’ was not declared in this scope
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1537: error: expected primary-expression before ‘)’ token
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1537: error: expected `;' before numeric constant
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1547: error: ‘FairLinkedData’ was not declared in this scope
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1547: error: ‘G__Lpbase’ was not declared in this scope
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1547: error: expected primary-expression before ‘)’ token
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1547: error: expected `;' before ‘G__Lderived’
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1556: error: ‘FairTimeStamp’ was not declared in this scope
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1556: error: ‘G__Lderived’ was not declared in this scope
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1557: error: expected primary-expression before ‘)’ token
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1557: error: expected `;' before numeric constant
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1563: error: ‘FairLinkedData’ was not declared in this scope
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1563: error: ‘G__Lpbase’ was not declared in this scope
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1563: error: expected primary-expression before ‘)’ token
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1563: error: expected `;' before ‘G__Lderived’
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1572: error: ‘FairBasePoint’ was not declared in this scope
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1572: error: ‘G__Lderived’ was not declared in this scope
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1573: error: expected primary-expression before ‘)’ token
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1573: error: expected `;' before numeric constant
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1575: error: ‘FairTimeStamp’ was not declared in this scope
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1575: error: ‘G__Lpbase’ was not declared in this scope
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1575: error: expected primary-expression before ‘)’ token
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1575: error: expected `;' before ‘G__Lderived’
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1583: error: ‘FairLinkedData’ was not declared in this scope
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1583: error: ‘G__Lpbase’ was not declared in this scope
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1583: error: expected primary-expression before ‘)’ token
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1583: error: expected `;' before ‘G__Lderived’
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1595: error: ‘FairBasePoint’ was not declared in this scope
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1595: error: ‘G__Lpbase’ was not declared in this scope
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1595: error: expected primary-expression before ‘)’ token
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1595: error: expected `;' before ‘G__Lderived’
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1599: error: ‘FairTimeStamp’ was not declared in this scope
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1599: error: ‘G__Lpbase’ was not declared in this scope
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1599: error: expected primary-expression before ‘)’ token
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1599: error: expected `;' before ‘G__Lderived’
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1607: error: ‘FairLinkedData’ was not declared in this scope
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1607: error: ‘G__Lpbase’ was not declared in this scope
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1607: error: expected primary-expression before ‘)’ token
/Users/raghav/fairroot/build/example/Tutorial1/src/FairTutorial1Dict.cxx :1607: error: expected `;' before ‘G__Lderived’
make[2]: *** [example/Tutorial1/src/CMakeFiles/Tutorial1.dir/FairTutorial1Dict.o] Error 1
make[1]: *** [example/Tutorial1/src/CMakeFiles/Tutorial1.dir/all] Error 2
make: *** [all] Error 2



I dont know if i can change anything in the fairtutorial1dict.cxx file because it is generated by cmake.

Any help would be greatly appreciated.
Cheers
Raghav
Re: New update of fairroot not building properly [message #13360 is a reply to message #13359] Tue, 17 April 2012 18:05 Go to previous messageGo to next message
Raghav Kunnawalkam is currently offline  Raghav Kunnawalkam
Messages: 63
Registered: February 2012
Location: Stony Brook, New York
continuous participant
From: *physics.sunysb.edu
Just wanted to add here that i also tried to update pandaroot (so that i can start working on getting to see tracks for my eicdetector by looking at how it is done in panda) and i am getting the same error when building pandaroot:

[ 52%] Building CXX object emc/CMakeFiles/Emc.dir/PndEmcContFact.cxx.o
[ 53%] Building CXX object emc/CMakeFiles/Emc.dir/PndEmcDict.cxx.o
/Users/raghav/pandaroot/build/emc/PndEmcDict.cxx: In function ‘void G__cpp_setup_inheritancePndEmcDict()’:
/Users/raghav/pandaroot/build/emc/PndEmcDict.cxx:22519: error: ‘FairBasePoint’ was not declared in this scope
/Users/raghav/pandaroot/build/emc/PndEmcDict.cxx:22519: error: ‘G__Lpbase’ was not declared in this scope
/Users/raghav/pandaroot/build/emc/PndEmcDict.cxx:22519: error: expected primary-expression before ‘)’ token
/Users/raghav/pandaroot/build/emc/PndEmcDict.cxx:22519: error: expected `;' before ‘G__Lderived’
/Users/raghav/pandaroot/build/emc/PndEmcDict.cxx:22531: error: ‘FairLinkedData’ was not declared in this scope
....


And the funny thing is that it is the same function inside the Dict.cxx file which is showing up will all the problems.
Re: New update of fairroot not building properly [message #13361 is a reply to message #13360] Tue, 17 April 2012 18:07 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *to.infn.it
I have compiled pandaroot 30 minutes ago and everything was running nicely.
Just clean the build folder and compile there again.
Re: New update of fairroot not building properly [message #13362 is a reply to message #13361] Tue, 17 April 2012 18:13 Go to previous messageGo to next message
Raghav Kunnawalkam is currently offline  Raghav Kunnawalkam
Messages: 63
Registered: February 2012
Location: Stony Brook, New York
continuous participant
From: *physics.sunysb.edu
Hi Stefano,

thanks for the quick reply.
this may be a dumb question but when you mean clean the build folder, do i just delete all the things which there and make it look like how it was when i first downloaded it?

Cheers
Raghav
Re: New update of fairroot not building properly [message #13363 is a reply to message #13362] Tue, 17 April 2012 18:15 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *to.infn.it
In general I remove everything (rm -r build/*), just to be sure.
Re: New update of fairroot not building properly [message #13364 is a reply to message #13363] Tue, 17 April 2012 18:26 Go to previous messageGo to next message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *dip.t-dialin.net
Hi,

This is due to the last changes(we remove some classes and re-design some),

there is two ways to solve that:

1. in your source directory:

find . -name "*LinkDef*" -exec touch {} \;

then call make

2. remove everything in the build directory and call cmake and make again.

regards,
Mohammad
Re: New update of fairroot not building properly [message #13365 is a reply to message #13364] Tue, 17 April 2012 18:38 Go to previous messageGo to next message
Raghav Kunnawalkam is currently offline  Raghav Kunnawalkam
Messages: 63
Registered: February 2012
Location: Stony Brook, New York
continuous participant
From: *physics.sunysb.edu
Hi

Thanks a lot guys. Looks like its working now.

So is it better if i do this every time i do an update. rather than just building it, first deleting everything and then creating it.
Cheers
Raghav
Re: New update of fairroot not building properly [message #13366 is a reply to message #13365] Tue, 17 April 2012 18:53 Go to previous messageGo to next message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *dip.t-dialin.net
Hi,

Quote:

So is it better if i do this every time i do an update. rather than just building it, first deleting everything and then creating it.


NO, not at all. this is an exceptional case. We tried to avoid this but we had no chance it was a change in the base classes for the MC points and Hits. It was also announced in the Panda computing meeting on Monday.

Cheers,

Mohammad
Re: New update of fairroot not building properly [message #13367 is a reply to message #13365] Tue, 17 April 2012 18:54 Go to previous message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: 94.163.60*
No,
you will loose too much time. You can clean when you see errors with the dictionary, but maybe just deleting the crashing packages could be enough.
Previous Topic: Multiple input files / trees
Next Topic: Detector materials with radiation length not equal to zero
Goto Forum:
  


Current Time: Tue Mar 19 08:24:44 CET 2024

Total time taken to generate the page: 0.01028 seconds