GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » [FIXED] version mismatch at libgeant321.so
[FIXED] version mismatch at libgeant321.so [message #14071] Tue, 09 October 2012 23:10 Go to next message
donghee is currently offline  donghee
Messages: 385
Registered: January 2009
Location: Germnay
first-grade participant
From: *dip.t-dialin.net
Hi PANDAroot users,

I have freshly updated fairsoft(sep12) and pandaroot(oct12) and installed them successfully without error.
But I have got a crash, when I use Geant3. There is a mismatching of geant3 library with root version.
How can I get correct match between them? In fairsoft, 5.34/01 root version was set up.
Where could be some problem, do you have any hint or experience?

Best regards,
Donghee



Quote:


[INFO ] -------------- Standard Config is called ------------------------------------
Loading Geant3 libraries ...
Error in <TUnixSystem::Load>: version mismatch, /home/kang/GSI/fairsoft_sep12/lib/libgeant321.so = 52902, ROOT = 53401
Loading Geant3 libraries ... finished

MZSTOR. ZEBRA table base TAB(0) in /MZCC/ at adr 992469767 3B27E307 HEX

MZSTOR. Initialize Store 0 in /GCBANK/
with Store/Table at absolute adrs 992579109 992469767
HEX 3B298E25 3B27E307
HEX 1A72A 0
relative adrs 108330 0
with 1 Str. in 2 Links in 5300 Low words in 4999970 words.
This store has a fence of 16 words.

MZLOGL. Set Log Level 0 for store 0
1***** GEANT Version 3.21/11 Released on 100298
0***** Correction Cradle Version 0.1100

MZDIV. Initialize Division Constant in Store 0
NW/NWMAX= 20004000000, MODE/KIND= 1 2
Division 20 initialized.

MZLINK. Initialize Link Area /GCLINK/ for Store 0 NL/NS= 20 20

MZLINK. Initialize Link Area /GCSLNK/ for Store 0 NL/NS= 100 100
-I- G3Config: Geant3 with TGeo has been created.

*** Break *** segmentation violation

[Updated on: Fri, 12 October 2012 11:35] by Moderator

Report message to a moderator

Re: version mismatch at libgeant321.so [message #14073 is a reply to message #14071] Wed, 10 October 2012 09:43 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,
the "oct12" release is just for tests on the grid. Indeed it was never announced officially, I would suggest to use the trunk.
Do you have such error each time you run a simulation macro?

Can it be that you have a root version installed in some folder of your PATH, and that this is used to compile TGeant3?
Please check carefully your environment.
Re: version mismatch at libgeant321.so [message #14074 is a reply to message #14073] Wed, 10 October 2012 11:17 Go to previous messageGo to next message
donghee is currently offline  donghee
Messages: 385
Registered: January 2009
Location: Germnay
first-grade participant
From: *kph.uni-mainz.de
Hi Stefano,

In fairsoft, two patch was missed during the installation of geant3.
Installation itself should be ok, but probably 2 missed patch makes error.
How can I manually do this procedure. I found a script under /fairsoft_sep12_source/transport/geant3/Makefile.rej after installation. What I have to do with this rejected make script?

Thank you

*** Compiling Geant3 ................
patching file Makefile
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file Makefile.rej
patching file erdecks/eustep.F
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file erdecks/eustep.F.rej
patching file TGeant3/TGeant3gu.cxx
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file TGeant3/TGeant3gu.cxx.rej
*** Geant3 compiled successfully ***






Re: version mismatch at libgeant321.so [message #14075 is a reply to message #14074] Wed, 10 October 2012 12:00 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 never seens such messages in my installation.
Are you sure you don't have conflicts in your environment?
Re: version mismatch at libgeant321.so [message #14077 is a reply to message #14075] Wed, 10 October 2012 12:47 Go to previous messageGo to next message
donghee is currently offline  donghee
Messages: 385
Registered: January 2009
Location: Germnay
first-grade participant
From: *kph.uni-mainz.de
Hi Stefano,

I am testing my environment, and as you suspected, old root version was plugged in new fairsoft.
I'm doing now re-installing. I hope that should help

Thanks,
Donghee
Re: version mismatch at libgeant321.so [message #14078 is a reply to message #14077] Wed, 10 October 2012 13:51 Go to previous messageGo to next message
donghee is currently offline  donghee
Messages: 385
Registered: January 2009
Location: Germnay
first-grade participant
From: *kph.uni-mainz.de
Hi stefano,

Although correct the environment, I have still trouble because of Geant3.
I have succeed with same version at other machine, only a particular machine has such behaviour.
A detail debuging message is also posted below...

Cheers,
Donghee


Quote:


*** Compiling Geant3 ................
patching file Makefile
Hunk #1 succeeded at 91 (offset -2 lines).
patching file erdecks/eustep.F
patching file TGeant3/TGeant3gu.cxx
*** ERROR: Geant3 could not be created.
*** End installation of external packages with Errors***






Quote:


TGeant3/G3Material.cxx
In file included from TGeant3/G3Material.cxx:22:
TGeant3/G3Material.h:8:23: error: TMaterial.h: No such file or directory
In file included from TGeant3/G3Material.cxx:22:
TGeant3/G3Material.h:11: error: expected class-name before '{' token
TGeant3/G3Material.h:15: error: 'Float_t' has not been declared
TGeant3/G3Material.h:15: error: 'Float_t' has not been declared
TGeant3/G3Material.h:15: error: 'Float_t' has not been declared
TGeant3/G3Material.h:15: error: 'Float_t' has not been declared
TGeant3/G3Material.h:15: error: 'Float_t' has not been declared
TGeant3/G3Material.h:21: error: 'Int_t' does not name a type
TGeant3/G3Material.h:22: error: 'Int_t' has not been declared
TGeant3/G3Material.h:25: error: 'Int_t' does not name a type
TGeant3/G3Material.h:29: error: expected identifier before numeric constant
TGeant3/G3Material.h:29: error: expected ',' or '...' before numeric constant
TGeant3/G3Material.h:29: error: ISO C++ forbids declaration of 'ClassDef' with no type
TGeant3/G3Material.h:30: error: expected ';' before '}' token
TGeant3/G3Material.h:30: error: expected `;' before '}' token
TGeant3/G3Material.h: In member function 'virtual void G3Material::SetId(int)':
TGeant3/G3Material.h:22: error: 'fId' was not declared in this scope
TGeant3/G3Material.h: In copy constructor 'G3Material::G3Material(const G3Material&)':
TGeant3/G3Material.h:26: error: class 'G3Material' does not have any field named 'TMaterial'
TGeant3/G3Material.cxx: At global scope:
TGeant3/G3Material.cxx:25: error: expected constructor, destructor, or type conversion before 'G3Material'
TGeant3/G3Material.cxx: In member function 'virtual void G3Material::Dump() const':
TGeant3/G3Material.cxx:37: error: 'printf' was not declared in this scope
TGeant3/G3Material.cxx:38: error: 'fId' was not declared in this scope
TGeant3/G3Material.cxx:39: error: 'GetName' was not declared in this scope
TGeant3/G3Material.cxx:40: error: 'fA' was not declared in this scope
TGeant3/G3Material.cxx:41: error: 'fZ' was not declared in this scope
TGeant3/G3Material.cxx:42: error: 'fDensity' was not declared in this scope
TGeant3/G3Material.cxx:43: error: 'fRadLength' was not declared in this scope
TGeant3/G3Material.cxx:44: error: 'fInterLength' was not declared in this scope
make: *** [/local/raid0/work/kang/fairsoft_sep12_source/transport/geant3/tgt_linux x8664gcc/TGeant3/G3Material.o] Error 1
cp: cannot stat `/home/kang/GSI/fairsoft_sep12_source/transport/geant3/lib/tgt_linuxx866 4gcc/libgeant321.so': No such file or directory
**** Checking libraries in /home/kang/GSI/fairsoft_sep12/lib ****
*** ERROR: Geant3 could not be created.
*** End installation of external packages with Errors***

Re: version mismatch at libgeant321.so [message #14079 is a reply to message #14078] Wed, 10 October 2012 14: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
Try to remove the geant3 folder, do a svn update there, and run the configure.sh again.
Re: version mismatch at libgeant321.so [message #14080 is a reply to message #14078] Wed, 10 October 2012 14:08 Go to previous messageGo to next message
donghee is currently offline  donghee
Messages: 385
Registered: January 2009
Location: Germnay
first-grade participant
From: *kph.uni-mainz.de

I think that TGeant3.h is missed under transport/geant3/TGeant3/
After copy it, try to find TMaterial.h, which is not necessary at other machine....

Re: version mismatch at libgeant321.so [message #14081 is a reply to message #14080] Wed, 10 October 2012 14:13 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
The file is in svn. If you don0t have it there it means you had some problems in downloading the files. If you follow the instruction of my previous post everything should be fine.
Re: version mismatch at libgeant321.so [message #14082 is a reply to message #14079] Wed, 10 October 2012 14:27 Go to previous messageGo to next message
donghee is currently offline  donghee
Messages: 385
Registered: January 2009
Location: Germnay
first-grade participant
From: *kph.uni-mainz.de
Now bug is gone.... everything looks fine.
Thank you so much!
Re: version mismatch at libgeant321.so [message #14083 is a reply to message #14073] Wed, 10 October 2012 14:27 Go to previous message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *gsi.de
Hi Donghee,

when running the installation of the external packages please make sure that you don't have an environment variable ROOTSYS set in your environment. In this case geant3 will use the root installation from this location. Probably this is what happens in your case.

I changed the configure script already that the variable is unset in any case.

To redo the compilation delete the libgeant321.so in the lib subdir in the installation directory. In the directory transport of the sources of the external packages delete the
"geant3" directory and do an "svn update".

If you rerun the configure.sh script this should build the geant3 library again.

Ciao

Florian
Previous Topic: segmentation violation in FairPrimaryGenerator
Next Topic: [FIXED] crash in fts macro when using TreeViewer
Goto Forum:
  


Current Time: Sun Dec 22 17:54:44 CET 2024

Total time taken to generate the page: 0.00774 seconds