Re: rootfluka example

From: Vassili Maroussov <>
Date: Mon, 22 Feb 2010 20:41:19 +0100

For completeness it worth to mention, that root was compiled with old
gcc-3.4.6 in order to avoid potential incompatibility with FLUKA object

[testuser_at_Ezhik-HDX18-i386 example]$ root-config --config
--with-cc=gcc34 --with-cxx=g++34 --with-f77=g77 --with-ld=g++34
--enable-fftw3 --enable-mathmore --enable-minuit2
[testuser_at_Ezhik-HDX18-i386 example]$ root-config --arch
[testuser_at_Ezhik-HDX18-i386 example]$ root-config --cflags
-pthread -m32 -I/usr/local/ROOT/26.00-g34/include

Also "make" shows no errors while building the "rootfluka":

[testuser_at_Ezhik-HDX18-i386 example]$ make clean
[testuser_at_Ezhik-HDX18-i386 example]$ make
g++34 -O -Wall -fPIC -pthread -m32 -I/usr/local/ROOT/26.00-g34/include
-c Results.cpp
Generating dictionary ResultsDict.cpp...
g++34 -O -Wall -fPIC -pthread -m32 -I/usr/local/ROOT/26.00-g34/include
-c ResultsDict.cpp
g++34 -shared -O Results.o ResultsDict.o -L/usr/local/ROOT/26.00-g34/lib
-lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint
-lPostscript -lMatrix -lPhysics -lMathCore -lThread -lGui -pthread -lm
-ldl -rdynamic -o done
Generating Library FluLib.o...
g++ -c FluLib.cpp -pthread -m32 -I/usr/local/ROOT/26.00-g34/include
/home/testuser/fluka/2008.3c/flutil/fff usrini.f
g77 -o usrini.o -c -O3 -g -mcpu=pentiumpro -fexpensive-optimizations
-funroll-loops -fstrength-reduce -Wall -fno-automatic -fno-silent -m32
-ffortran-bounds-check -I/home/testuser/fluka/2008.3c/flukapro usrini.f
/home/testuser/fluka/2008.3c/flutil/fff usrout.f
g77 -o usrout.o -c -O3 -g -mcpu=pentiumpro -fexpensive-optimizations
-funroll-loops -fstrength-reduce -Wall -fno-automatic -fno-silent -m32
-ffortran-bounds-check -I/home/testuser/fluka/2008.3c/flukapro usrout.f
/home/testuser/fluka/2008.3c/flutil/fff mgdraw.f
g77 -o mgdraw.o -c -O3 -g -mcpu=pentiumpro -fexpensive-optimizations
-funroll-loops -fstrength-reduce -Wall -fno-automatic -fno-silent -m32
-ffortran-bounds-check -I/home/testuser/fluka/2008.3c/flukapro mgdraw.f
/home/testuser/fluka/2008.3c/flutil/lfluka -o rootfluka -m fluka
usrini.o usrout.o mgdraw.o FluLib.o
$FLUPRO = /home/testuser/fluka/2008.3c
ar x /home/testuser/fluka/2008.3c/libflukahp.a fluka.o
g77 -O3 -g -mcpu=pentiumpro -fexpensive-optimizations -funroll-loops
-fstrength-reduce -Wall -fno-automatic -fno-silent -m32
-ffortran-bounds-check -I/home/testuser/fluka/2008.3c/flukapro -v -o
rootfluka -Xlinker -Map -Xlinker fluka.o usrini.o usrout.o
mgdraw.o FluLib.o -L/home/testuser/fluka/2008.3c -lflukahp
Driving: g77 -O3 -g -mcpu=pentiumpro -fexpensive-optimizations
-funroll-loops -fstrength-reduce -Wall -fno-automatic -fno-silent -m32
-ffortran-bounds-check -I/home/testuser/fluka/2008.3c/flukapro -v -o
rootfluka -Xlinker -Map -Xlinker fluka.o usrini.o usrout.o
mgdraw.o FluLib.o -L/home/testuser/fluka/2008.3c -lflukahp
-lfrtbegin -lg2c -lm -shared-libgcc
Reading specs from /usr/lib/gcc/i686-redhat-linux/3.4.6/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-languages=c,c++,f77
--disable-libgcj --host=i686-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-18)
  /usr/libexec/gcc/i686-redhat-linux/3.4.6/collect2 --eh-frame-hdr -m
elf_i386 -dynamic-linker /lib/ -o rootfluka
-L/home/testuser/fluka/2008.3c -L/usr/lib/gcc/i686-redhat-linux/3.4.6
-L/usr/lib/gcc/i686-redhat-linux/3.4.6/../../.. -Map
fluka.o usrini.o usrout.o mgdraw.o FluLib.o -lflukahp
-lfrtbegin -lg2c -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc
[testuser_at_Ezhik-HDX18-i386 example]$

On 02/22/2010 07:33 PM, Vassili Maroussov wrote:
> Dear FLUKA users and maintainers,
> I cannot make working the rootfluka example
> ( using
> files given in
> The "make" produces the rootfluka executable, but it hangs up (becomes
> zombie) while trying to run with Flair, then timed out. Below is the
> session (with some comments) with use of "rfluka":
> *** Checking if a proper environment variables are set ***
> [testuser_at_Ezhik-HDX18-i386 example]$ env | grep ROOT
> LD_LIBRARY_PATH=/usr/local/ROOT/26.00-g34/lib:.
> PATH=/usr/local/ROOT/26.00-g34/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/testuser/bin
> ROOTSYS=/usr/local/ROOT/26.00-g34
> [testuser_at_Ezhik-HDX18-i386 example]$ env | grep FLU
> FLUTIL=/home/testuser/fluka/2008.3c/flutil
> FLUPRO=/home/testuser/fluka/2008.3c
> *** Running rfluka ***
> [testuser_at_Ezhik-HDX18-i386 example]$ $FLUTIL/rfluka -e rootfluka -N0
> -M1 root.inp
> $FLUPRO = /home/testuser/fluka/2008.3c
> /home/testuser/fluka/2008.3c/libec_thihecufealw_10t.pemf
> Initial seed already existing
> Running fluka in /home/testuser/fluka/example/fluka_28581
> ======================= Running FLUKA for cycle # 1
> =======================
> [testuser_at_Ezhik-HDX18-i386 example]$
> *** End of the session ***
> So neither way produces the output expected. I'm using FLUKA 2008.3c.0
> and ROOT 5.26.00 on Fedora 12 i686 (32-bit) installed on Sun
> VirtualBox 3.1.4 r57640 The standard FLUKA executable runs with no
> problems on this machine.
> What's wrong? How can I make the rootfluka example running?
> Regards,
> Vassili
Received on Mon Feb 22 2010 - 22:05:57 CET

This archive was generated by hypermail 2.2.0 : Mon Feb 22 2010 - 22:05:58 CET