Linear Collider Forum



Home » Simulation » Mokka » Problem with installing Mokka (Mokka installation stops with an error when linking)
Problem with installing Mokka [message #2173] Wed, 22 June 2011 02:19 Go to next message
Robin
Messages: 4
Registered: June 2011
Location: Vienna
Hi everyone,

Maybe someone knows this problem and can help me.

I tried to install Mokka on my SL5 (64Bit) mashine, but it always stops with an error when linking.

I am using:

CLHEP: 2.0.4.5
GEANT4: 9.3.p02
g++: 4.1.2


This is my environment:

CLHEP_LIB_DIR=/usr/local/lib
G4LEVELGAMMADATA=/opt/geant4/9.3.p02/data/PhotonEvaporation2 .0
GEAR=/scratch/ilcsoft/v01-11/gear/v00-17
SSH_AGENT_PID=3272
HOSTNAME=hdpc049.hephy.local
DESKTOP_STARTUP_ID=
G4INSTALL=/opt/geant4/9.3.p02
TERM=xterm
SHELL=/bin/bash
HISTSIZE=1000
KDE_NO_IPV6=1
G4VIS_BUILD_VRML_DRIVER=1
GTK_RC_FILES=/etc/gtk/gtkrc:/home/robin/.gtkrc-1.2-gnome2
WINDOWID=24117328
LCIO=/scratch/ilcsoft/v01-11/lcio/v01-51-02
OLDPWD=/scratch/ilcsoft/v01-11/Mokka/mokka-07-06-p02/source
QTDIR=/usr/lib64/qt-3.3
QTINC=/usr/lib64/qt-3.3/include
G4LEDATA=/opt/geant4/9.3.p02/data/G4EMLOW6.9
USER=robin
LD_LIBRARY_PATH=/opt/CLHEP/2.1.0.1/CLHEP
XMFLAGS=
XMLIBS=
G4NEUTRONHPDATA=/opt/geant4/9.3.p02/data/G4NDL3.13
SSH_AUTH_SOCK=/tmp/ssh-sUQHBD3233/agent.3233
KDEDIR=/usr
SESSION_MANAGER=local/hdpc049.hephy.local:/tmp/.ICE-unix/323 3
G4RADIOACTIVEDATA=/opt/geant4/9.3.p02/data/RadioactiveDecay3 .2
G4ABLADATA=/opt/geant4/9.3.p02/data/G4ABLA3.0
PATH=/usr/lib64/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin: /usr/bin:/bin:/usr/X11R6/bin:/home/robin/bin
G4VIS_USE_DAWN=1
G4LIB=/opt/geant4/9.3.p02/lib
G4VIS_BUILD_RAYTRACERX_DRIVER=1
QT_IM_MODULE=scim
GDM_XSERVER_LOCATION=local
G4LIB_BUILD_SHARED=1
INPUTRC=/etc/inputrc
PWD=/
XMODIFIERS=@im=SCIM
G4LIB_BUILD_STATIC=1
CLHEP_BASE_DIR=/usr/local
KDE_IS_PRELINKED=1
LANG=en_US.UTF-8
PS1=\u@\h \w $
G4LIB_BUILD_ZLIB=1
GDMSESSION=default
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
G4UI_USE_TCSH=1
G4LIB_USE_GRANULAR=1
G4VIS_USE_RAYTRACERX=1
CLHEP_INCLUDE_DIR=/usr/local/include
SHLVL=2
G4DEBUG=1
G4REALSURFACEDATA=/opt/geant4/9.3.p02/data/RealSurface1.0
G4SYSTEM=Linux-g++
GNOME_DESKTOP_SESSION_ID=Default
XAWLIBS=
LOGNAME=robin
QTLIB=/usr/lib64/qt-3.3/lib
CVS_RSH=ssh
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-CqdPWfbnA8, guid=bf37293bcad3239758f0c5004e01ad2e
G4VIS_BUILD_DAWN_DRIVER=1
G4VIS_USE_VRML=1
CLHEP_LIB=CLHEP
GTK_IM_MODULE=scim-bridge
XAWFLAGS=
G4LIB_USE_ZLIB=1
G_BROKEN_FILENAMES=1
COLORTERM=gnome-terminal



And here comes the ERROR:

Compiling Visu.cc ...
Compiling VisuMessenger.cc ...
Creating shared library /opt/geant4/9.3.p02/tmp/Linux-g++/Mokka/libMokka.so ...
Creating/replacing object files in /opt/geant4/9.3.p02/tmp/Linux-g++/Mokka/libMokka.a ...
ar: creating /opt/geant4/9.3.p02/tmp/Linux-g++/Mokka/libMokka.a
Compiling Mokka.cc ...
Using granular libraries ...
Linking Mokka
/opt/geant4/9.3.p02/tmp/Linux-g++/Tesla/libTesla.so: undefined reference to `Yoke05::BuildRPC1PlugShape(G4Polyhedra*, muonSD*, int, G4UserLimits*, Database*, CGAGeometryEnvironment const&)'
collect2: ld returned 1 exit status
gmake[1]: *** [/opt/geant4/9.3.p02/bin/Linux-g++/Mokka] Error 1
gmake[1]: Leaving directory `/scratch/ilcsoft/v01-11/Mokka/mokka-07-06-p02/source/Kernel '
gmake: *** [all] Error 2



If you need any furhter detail, please let me know.

With kind regards, Robin Glattauer (Hephy Vienna)

Re: Problem with installing Mokka [message #2174 is a reply to message #2173] Wed, 22 June 2011 03:57 Go to previous messageGo to next message
engels
Messages: 106
Registered: August 2006
Hi Robin,

I don't know if this is really the problem, but you have in your environment:

G4LIB=/opt/geant4/9.3.p02/lib


which could mean that you are trying to link against the 32bit libraries of geant4. As far as I know geant4 usually creates 64bit libraries under lib64 and sharedlib64.

Another thing which I find strange is that you do not seem to have the variable G4WORKDIR set, which causes the Mokka object files to be created under /opt/geant4/9.3.p02/tmp/Linux-g++/ and the Mokka binary under /opt/geant4/9.3.p02/bin/Linux-g++/Mokka which is probably something you do not want.

Cheers, Jan.

[Updated on: Wed, 22 June 2011 03:58]

Re: Problem with installing Mokka [message #2176 is a reply to message #2174] Wed, 22 June 2011 14:21 Go to previous messageGo to next message
Robin
Messages: 4
Registered: June 2011
Location: Vienna
You are right, I forgot to set the G4WORKDIR. Thanks!

Concerning the libraries: I've got neither the lib64 nor the sharedlib64 folder. Maybe I did something very wrong with installing Geant4.

This is what I did:

- I downloaded the tarball from the Geant4 homepage and unpacked it in /opt/GEANT4.
- For the data files I made a directory named data and unpacked them there.
- Then I used ./Configure -build to install.
- Afterwards I used ./Configure to create env.sh.
- I executed env.sh.

Result: No lib64 or sharedlib64, though I use SL5 64 Bit. I just installed it on my Ubuntu (64 Bit!) Laptop and there too got only the lib folder, nothing with 64.
I know that in the Desy AFS Geant4 has those folders, so where did I go wrong?

(I can't wait to find out the simple mistake, that I oversaw here.)


Cheers, Robin
Re: Problem with installing Mokka [message #2177 is a reply to message #2173] Sat, 25 June 2011 03:44 Go to previous messageGo to next message
sailer
Messages: 34
Registered: February 2009
Hi Robin,

I think the error you see is actually an error in Mokka, not with your system. The Yoke05::BuildRPC1PlugShape function is not implemented,but in the code it is (roughly):
Line 187 (Yoke05.cc, Revision197)
unsigned int nLayerPlug = 0;
[...]
for(i=0; i < nLayerPlug; ++i){
[...]
  Yoke05::BuildRPC1PlugShape();
[...]
}
with gcc 4.3.2 (and I think -O2) no error shows up during linking (compilation always works), because the loop is never entered and thrown out by the compiler.
If I set nLayerPlug = 1, then I get the same error as you.

Which compiler version are you using?

Cheers,
Andre

Re: Problem with installing Mokka [message #2178 is a reply to message #2177] Mon, 27 June 2011 08:41 Go to previous messageGo to next message
Robin
Messages: 4
Registered: June 2011
Location: Vienna
Thank you,

I deleted the for loop and now it works.
This solution may be a bit harsh and I maybe should also try if the -O2 option when compiling makes a difference, but for the moment it works and as the loop isn't used anyway...


So, thank you!


Still, I'm wondering, if I need the Geant4 lib64 folder and why it isn't there. If anyone has some insight on this, please let me know.


Btw: My g++ /gcc version is 4.1.2.


Cheers, Robin
Re: Problem with installing Mokka [message #2179 is a reply to message #2178] Tue, 28 June 2011 03:01 Go to previous messageGo to next message
engels
Messages: 106
Registered: August 2006
Hi Robin,

if Mokka linked correctly than everything should be ok with your geant4 installation. In case you still want to check if you have 32 or 64bit libraries installed, you can use the file commando on one of your geant4 shared libraries.

Cheers, Jan.
Re: Problem with installing Mokka [message #2180 is a reply to message #2179] Tue, 28 June 2011 04:23 Go to previous messageGo to next message
Robin
Messages: 4
Registered: June 2011
Location: Vienna
Thanks, the file commando is more useful than I knew.

My libraries are 64 Bit, as they should be.


Cheers, Robin
Re: Problem with installing Mokka [message #2214 is a reply to message #2173] Tue, 21 February 2012 07:57 Go to previous messageGo to next message
tonyprice1877
Messages: 16
Registered: September 2010
Location: Birmingham
Hi,

Sorry to revive this thread but I have been trying to install iLCSoft v01-13-03 and was also having troubles with the MOKKA install. After reading this I removed the same loop and now everything has built fine. I am using mokka-07-07-p05 (release 282??) should this still be an issue or am I doing something wrong?

I am using CLHEP 2.1.0.1 and Geant4.9.4.p03, g++ 4.1.2

Tony
Re: Problem with installing Mokka [message #2215 is a reply to message #2214] Tue, 21 February 2012 08:22 Go to previous messageGo to next message
engels
Messages: 106
Registered: August 2006
Hi Tony,

Steve has already fixed this issue in the 'trunk'. Unfortunately it has not yet been released..

Cheers, Jan.
Re: Problem with installing Mokka [message #2216 is a reply to message #2215] Wed, 22 February 2012 02:26 Go to previous messageGo to next message
tonyprice1877
Messages: 16
Registered: September 2010
Location: Birmingham
Hi Jan,

Thank you for clearing this up for me. I was mostly just worried about having a wrong setup in my installation but I will not be using Tesla anyway so should not be an issue

Tony
Re: Problem with installing Mokka [message #2217 is a reply to message #2216] Wed, 22 February 2012 02:31 Go to previous message
engels
Messages: 106
Registered: August 2006
Hi Tony,

no problem. Thank you for your feedback anyways Smile

Cheers, Jan
Previous Topic:mokka "skip events" from stdhep input?
Next Topic:Mokka Simulation Times
Goto Forum:
  

[ PDF ]

Current Time: Wed Nov 13 17:37:14 Pacific Standard Time 2019
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.1.
Copyright ©2001-2010 FUDforum Bulletin Board Software