GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » [FIXED] error after svn update
[FIXED] error after svn update [message #14275] Tue, 18 December 2012 13:20 Go to next message
manoj.jadhav is currently offline  manoj.jadhav
Messages: 41
Registered: February 2010
Location: Mumbai, India
continuous participant
From: 14.139.97*
Hi All,
I svn-updated my pandaroot environment and when I tried to make it is showing following error,


[ 80%] Building CXX object fsim/CMakeFiles/fsim.dir/PndFastSim.cxx.o
/Users/Manoj/fairroot12/pandaroot/fsim/PndFastSim.cxx: In member function ‘virtual void PndFastSim::Exec(const Option_t*)’:
/Users/Manoj/fairroot12/pandaroot/fsim/PndFastSim.cxx:474: error: cannot allocate an object of abstract type ‘PndPidCandidate’
/Users/Manoj/fairroot12/pandaroot/pid/PidData/PndPidCandidate.h:31: note: because the following virtual functions are pure within ‘PndPidCandidate’:
/Users/Manoj/fairroot12/pandaroot/rho/RhoBase/VAbsMicroCandidate.h:59: note: virtual Int_t VAbsMicroCandidate::GetTrackBranch() const
/Users/Manoj/fairroot12/pandaroot/fsim/PndFastSim.cxx:479: error: cannot allocate an object of abstract type ‘PndPidCandidate’
/Users/Manoj/fairroot12/pandaroot/pid/PidData/PndPidCandidate.h:31: note: since type ‘PndPidCandidate’ has pure virtual functions
/Users/Manoj/fairroot12/pandaroot/fsim/PndFastSim.cxx:623: error: cannot allocate an object of abstract type ‘PndPidCandidate’
/Users/Manoj/fairroot12/pandaroot/pid/PidData/PndPidCandidate.h:31: note: since type ‘PndPidCandidate’ has pure virtual functions
make[2]: *** [fsim/CMakeFiles/fsim.dir/PndFastSim.cxx.o] Error 1
make[1]: *** [fsim/CMakeFiles/fsim.dir/all] Error 2
make: *** [all] Error 2

**************************************
**************************************

my PC configuration is,
mac os 10.6.8
GNU Fortran (GCC) 4.6.1
running with latest fairsoft version.

can any one please help me to get rid of this error?

Thank You in advance...


Manoj Jadhav
I.I.T.Bombay
Mumbai

[Updated on: Fri, 18 January 2013 14:46] by Moderator

Report message to a moderator

Re: error after svn update [message #14276 is a reply to message #14275] Wed, 19 December 2012 12:44 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
Under linux I cannot see such error,
but I am not a mac user (yet).
I have checked the code and everything seems fine. I can suggest to remove in the build the pid and rho folders (in the build, not in the trunk) and compile again.
If not, no idea...
Re: error after svn update [message #14277 is a reply to message #14275] Wed, 19 December 2012 13:48 Go to previous messageGo to next message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *gsi.de
Hi,
I don't see the problem on my Mac system (Mac OS X 10.6.8, gcc 4.2.1 from the system).

How did you install the different version of gcc on your system? Maybe the compilere is more strict then the old one.

Ciao

Florian
Re: error after svn update [message #14280 is a reply to message #14275] Thu, 20 December 2012 07:49 Go to previous messageGo to next message
manoj.jadhav is currently offline  manoj.jadhav
Messages: 41
Registered: February 2010
Location: Mumbai, India
continuous participant
From: 59.162.23*
Dear Stefano and Florian,
Firstly, as suggested by Stefano, I tried removing pid and rho folders from build but it doesn't helped me and I am still with same error.
and now about gcc, here is my versions for gcc and gfortran

Manoj$ gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664)

Manoj$ gfortran --version
GNU Fortran (GCC) 4.6.1

Any suggestions on this?

Regards


Manoj Jadhav
I.I.T.Bombay
Mumbai
Re: error after svn update [message #14281 is a reply to message #14280] Thu, 20 December 2012 08:45 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: 2.159.48*
Could you please do a "svn info" on the pandaroot folder, and copy here the output?
Re: error after svn update [message #14282 is a reply to message #14275] Thu, 20 December 2012 08:49 Go to previous messageGo to next message
manoj.jadhav is currently offline  manoj.jadhav
Messages: 41
Registered: February 2010
Location: Mumbai, India
continuous participant
From: 14.139.97*
Dear Stefano,
Thank you for reply.
Below is out put of svn info,

pandaroot Manoj$ svn info
Path: .
URL: https://subversion.gsi.de/fairroot/pandaroot/trunk
Repository Root: https://subversion.gsi.de/fairroot
Repository UUID: 0381ead4-6506-0410-b988-94b70fbc4730
Revision: 18218
Node Kind: directory
Schedule: normal
Last Changed Author: gboca
Last Changed Rev: 17563
Last Changed Date: 2012-10-17 00:15:04 +0530 (Wed, 17 Oct 2012)




Manoj Jadhav
I.I.T.Bombay
Mumbai
Re: error after svn update [message #14283 is a reply to message #14280] Thu, 20 December 2012 08:59 Go to previous messageGo to next message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *gsi.de
Dear Manoj,

Concerning the compilers, the setup you use is exactly the same I am using. I am nearly sure that the problem is not the compiler.

I think something is strange with you pandaroot installation.

URL: https://subversion.gsi.de/fairroot/pandaroot/trunk
Repository Root: https://subversion.gsi.de/fairroot
Repository UUID: 0381ead4-6506-0410-b988-94b70fbc4730
Revision: 18218
Node Kind: directory
Schedule: normal
Last Changed Author: gboca
Last Changed Rev: 17563
Last Changed Date: 2012-10-17 00:15:04 +0530 (Wed, 17 Oct 2012)


The most recent revision at the time you did "svn info" was 18218 but the last changed revision in your working dir is rev 17563 from 17-Oct-2012.
Could you please do a "svn stat -u" in your pandaroot directory. If you can see many "*" in the first line of the output it means that something goes wrong with your update. If this is the case please do an "svn update" and post the result.

Ciao

Florian
Re: error after svn update [message #14284 is a reply to message #14275] Thu, 20 December 2012 11:03 Go to previous messageGo to next message
manoj.jadhav is currently offline  manoj.jadhav
Messages: 41
Registered: February 2010
Location: Mumbai, India
continuous participant
From: 14.139.97*
Thank You Florian and Stefano,
Now I got the point. Actually there was a geometry file which I kept in geometry folder w/o revision and that why svn update stops at that point. Now I removed it and updated it once again and it runs fine and also compiled well.
Now out put of svn info is,

Manoj$ svn info
Path: .
URL: https://subversion.gsi.de/fairroot/pandaroot/trunk
Repository Root: https://subversion.gsi.de/fairroot
Repository UUID: 0381ead4-6506-0410-b988-94b70fbc4730
Revision: 18223
Node Kind: directory
Schedule: normal
Last Changed Author: tstockm
Last Changed Rev: 18221
Last Changed Date: 2012-12-20 14:39:46 +0530 (Thu, 20 Dec 2012)


Regards.


Manoj Jadhav
I.I.T.Bombay
Mumbai
Re: error after svn update [message #14285 is a reply to message #14284] Thu, 20 December 2012 12:42 Go to previous messageGo to next message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *gsi.de
Does it also compile now???

Ciao

Florian
Re: error after svn update [message #14286 is a reply to message #14285] Thu, 20 December 2012 13:41 Go to previous messageGo to next message
manoj.jadhav is currently offline  manoj.jadhav
Messages: 41
Registered: February 2010
Location: Mumbai, India
continuous participant
From: 59.162.23*
Yes, it is compiled without error.

ciao.


Manoj Jadhav
I.I.T.Bombay
Mumbai
Re: error after svn update [message #14323 is a reply to message #14286] Fri, 11 January 2013 10:37 Go to previous messageGo to next message
Karin Schönning
Messages: 65
Registered: August 2012
Location: Uppsala University
continuous participant
From: *physics.uu.se
I have a similar problem: my working copy is not properly updated when doing "svn update".
This is what "svn info" gives:

Repository Root: https://subversion.gsi.de/fairroot
Repository UUID: 0381ead4-6506-0410-b988-94b70fbc4730
Revision: 18275
Node Kind: directory
Schedule: normal
Last Changed Author: asanchez
Last Changed Rev: 16305
Last Changed Date: 2012-07-26 16:12:09 +0200 (Thu, 26 Jul 2012)

and the output from "svn stat -u" is shown below. Is there a trick for this? The original problem in this thread seemed to be solved by deleting files, but is there any other way?

X parbase
X eventdisplay
X geobase
X base
X genfit
X dbase
X geane
X GenfitTools/trackrep/LSLtrackRep
X GenfitTools/trackrep/RKTrackRep
X GenfitTools/trackrep/GeaneTrackRep2
X trackbase
? macro/pid/points_sttcombi.root
? macro/pid/digi_sttcombi.root
? macro/pid/pid_sttcombi.root
? macro/pid/FairRunInfo_digi_sttcombi.root
? macro/pid/FairRunInfo_pid_sttcombi.root
? macro/pid/FairRunInfo_points_sttcombi.root
? macro/pid/params_sttcombi.root
? macro/pid/gphysi.dat
? macro/pid/reco_sttcombi.root
? macro/pid/FairRunInfo_reco_sttcombi.root
X generators
X cmake
X ora
X fairtools
? buildPanda
Status against revision: 18275

Performing status on external item at 'GenfitTools/trackrep/LSLtrackRep'
Status against revision: 400

Performing status on external item at 'GenfitTools/trackrep/GeaneTrackRep2'
Status against revision: 400

Performing status on external item at 'GenfitTools/trackrep/RKTrackRep'
Status against revision: 400

Performing status on external item at 'base'
Status against revision: 16039

Performing status on external item at 'generators'
Status against revision: 15929

Performing status on external item at 'geobase'
Status against revision: 15929

Performing status on external item at 'ora'
Status against revision: 15929

Performing status on external item at 'parbase'
Status against revision: 15929

Performing status on external item at 'cmake'
Status against revision: 16039

Performing status on external item at 'geane'
Status against revision: 15929

Performing status on external item at 'eventdisplay'
Status against revision: 15929

Performing status on external item at 'trackbase'
Status against revision: 15929

Performing status on external item at 'fairtools'
Status against revision: 15929

Performing status on external item at 'dbase'
Status against revision: 15929

Performing status on external item at 'genfit'
Status against revision: 400

Any idea?
Cheers,
/Karin
Re: error after svn update [message #14326 is a reply to message #14323] Fri, 11 January 2013 11:46 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: 2.158.122*
It looks fine to me. What is your crash?
Re: error after svn update [message #14327 is a reply to message #14326] Fri, 11 January 2013 12:24 Go to previous messageGo to next message
Karin Schönning
Messages: 65
Registered: August 2012
Location: Uppsala University
continuous participant
From: *physics.uu.se
I have problem compiling the venet generator.


-- Found Subversion: /usr/bin/svn (found version "1.6.17")
-- FairRoot Revision - 18275 Branch - https://subversion.gsi.de/fairroot/pandaroot/release/july12
[ 0%] Built target svnheader
[ 0%] Built target FairTools
[ 4%] Built target Base
[ 7%] Built target GeoBase
[ 8%] Built target ParBase
[ 12%] Built target FairDB
[ 12%] Built target generalTools
[ 13%] Built target buffers
[ 17%] Built target PndData
[ 18%] Built target Passive
[ 20%] Built target Field
[ 21%] Built target Gen
[ 22%] Built target PGen
[ 22%] Built target DpmEvtGen
[ 22%] Built target DpmEvtGen_exe
[ 25%] Built target Photos
Linking Fortran shared library ../../lib/libEvtGen.so
/usr/bin/ld: cannot find -lPythia6
collect2: ld returned 1 exit status
make[2]: *** [lib/libEvtGen.so.0.0.0] Error 1
make[1]: *** [pgenerators/EvtGen/CMakeFiles/EvtGen.dir/all] Error 2
make: *** [all] Error 2
Re: error after svn update [message #14328 is a reply to message #14327] Fri, 11 January 2013 14:05 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: *gsi.de
Hallo,

Is there a "libPythia6.so" in your $SIMPATH/lib or $SIMPATH/generators/lib directory?

Mohammad
Re: error after svn update [message #14329 is a reply to message #14328] Fri, 11 January 2013 15:30 Go to previous messageGo to next message
Karin Schönning
Messages: 65
Registered: August 2012
Location: Uppsala University
continuous participant
From: *physics.uu.se
The problem seems to be that when I compiled the "new" external packages (sep12), then I was asked to specify a directory for the compilation. I don't remember exactly how it was formulated but I got the impression that the "sep12" top directory itself was not suitable so I created a subdirectory "build" where all .so files ended up. This I must have overlooked when editing the config.sh before compiling which may explain why it doesn't find the file. I'll rewrite the config.sh file and try again and see if the situation is improved. Or had it been better to simply state the sep12 as the compilation directory for the external packages? Is it better to reconfigure the external packages instead of changing the paths i config.sh in pandaroot?
Re: error after svn update [message #14330 is a reply to message #14329] Fri, 11 January 2013 15:50 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
Hi,
you don't have to change config.sh. You have only to export your SIMPATH to the sep12 build folder, and when you do the cmake command the config.sh is automatically generated. Probably you have screwed it during modification.
Re: error after svn update [message #14331 is a reply to message #14330] Fri, 11 January 2013 16:15 Go to previous messageGo to next message
Karin Schönning
Messages: 65
Registered: August 2012
Location: Uppsala University
continuous participant
From: *physics.uu.se
OK, I exported the SIMPATH, reran cmake and had a look into the new config.sh. However, there are still paths therein which point to directories which do not exist, e.g. sep12/generators/lib . Apparently no "lib" directories were created in the subdirectories (e.g. generators) when compiling sep12 so the location of the files seems a little weird.
Re: error after svn update [message #14332 is a reply to message #14331] Fri, 11 January 2013 16:54 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
SIMPATH should be sep12/build (or how you have called it) and not only sep12. Have you checked it?

Re: error after svn update [message #14335 is a reply to message #14332] Mon, 14 January 2013 10:42 Go to previous messageGo to next message
Karin Schönning
Messages: 65
Registered: August 2012
Location: Uppsala University
continuous participant
From: *physics.uu.se
Yes, i have checked SIMPATH and it is correct. What seems to go wrong is that the config.sh generated by cmake contain paths wich do not match the location of the files. The structure obtained by configuring the sep12 external packages does not seem compatible with the structure of the config.sh file generated by cmake. Should I instead edit some input file to cmake, or should I reconfigure sep12 with another installation directory?
Re: error after svn update [message #14336 is a reply to message #14335] Mon, 14 January 2013 10:50 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: *gsi.de
Hallo,

The cmake need usually the SIMPATH to generate the config.sh, so if now you are sure that the SIMPATH is set properly then delete the config.sh in your build directory and be sure that you have a clean PATH and LD_LIBRARY_PATH and when yo call the cmake it will generate a new config.sh.

In case this does not work then reconfigure the sep12 with a new installation directory.

Mohammad

Re: error after svn update [message #14337 is a reply to message #14336] Mon, 14 January 2013 11:15 Go to previous messageGo to next message
Karin Schönning
Messages: 65
Registered: August 2012
Location: Uppsala University
continuous participant
From: *physics.uu.se
I did, but the structure is still the same. SIMPATH in config.sh is correct, but the geant4 libraries, for example, are in the wrong place.

Example:

---------------------------
export Linux_Flavour_="Ubuntu 12.04 LTS n l"
export System_="x86_64"
source /export/home/schonnin/panda/pandaroot/buildPanda/check_system.sh
if [ "$same_system" == "1" ]; then
export SIMPATH="/export/home/schonnin/panda/sep12/build"
export ROOTSYS="/export/home/schonnin/panda/sep12/build"
if (true); then
export GEANT4_LIBRARY_DIR="/export/home/schonnin/panda/sep12/transport/geant4/lib "

etc.
------------------------------

There is however no directory /export/home/schonnin/panda/sep12/transport/geant4/lib ,instead the geant4 libraries are in /export/home/schonnin/panda/sep12/build/lib

I did not have this problem with the previous external packages and then, as as I remember, one did not have to specify a special installation directory during configuration.

Re: error after svn update [message #14338 is a reply to message #14337] Mon, 14 January 2013 11:48 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
Try to remove also CMakeCache.txt before doing again the cmake.
Re: error after svn update [message #14340 is a reply to message #14338] Mon, 14 January 2013 12:21 Go to previous messageGo to next message
Karin Schönning
Messages: 65
Registered: August 2012
Location: Uppsala University
continuous participant
From: *physics.uu.se
Thanks, now that problem seems solved, but at the very end of the compilation a new error occured:

[ 95%] Building CXX object lmd/CMakeFiles/LmdFit.dir/LmdFit/PndLmdLumiFit.cxx.o
/export/home/schonnin/panda/pandaroot/lmd/LmdFit/PndLmdLumiFit.cxx: In member function ‘double PndLmdLumiFit::LumiFit(TH1D*)’:
/export/home/schonnin/panda/pandaroot/lmd/LmdFit/PndLmdLumiFit.cxx:153:3 : error: ‘cout’ was not declared in this scope
/export/home/schonnin/panda/pandaroot/lmd/LmdFit/PndLmdLumiFit.cxx:153:3 : note: suggested alternative:
/usr/include/c++/4.6/iostream:62:18: note: ‘std::cout’
/export/home/schonnin/panda/pandaroot/lmd/LmdFit/PndLmdLumiFit.cxx:157:1 3: error: ‘endl’ was not declared in this scope
/export/home/schonnin/panda/pandaroot/lmd/LmdFit/PndLmdLumiFit.cxx:157:1 3: note: suggested alternative:
/usr/include/c++/4.6/ostream:543:5: note: ‘std::endl’
make[2]: *** [lmd/CMakeFiles/LmdFit.dir/LmdFit/PndLmdLumiFit.cxx.o] Error 1
make[1]: *** [lmd/CMakeFiles/LmdFit.dir/all] Error 2
make: *** [all] Error 2


Re: error after svn update [message #14345 is a reply to message #14340] Mon, 14 January 2013 15:35 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
Can you try to add at the beginning of PndLmdLumiFit.cxx the line:

using namespace std;


and recompile?
Re: error after svn update [message #14346 is a reply to message #14345] Mon, 14 January 2013 16:36 Go to previous message
Karin Schönning
Messages: 65
Registered: August 2012
Location: Uppsala University
continuous participant
From: *physics.uu.se
Thanks! Now the compilation - and running! - works.
Previous Topic: [WARN] Removing candidates while looping over TCandList
Next Topic: make for PndTools/MVA
Goto Forum:
  


Current Time: Fri Mar 29 05:53:08 CET 2024

Total time taken to generate the page: 0.01089 seconds