RE: VOXEL geometry

From: Vasilis Vlachoudis <Vasilis.Vlachoudis_at_cern.ch>
Date: Mon, 9 Jan 2012 16:20:55 +0100

Hi Lior

The problem is that you are trying to compile the writect.f as a FLUKA executable.
The writect.f is a standalone program in order to convert the ascii_ct.txt
to the ct.vxl
To compile it as a standalone from the command line (not inside flair) do the following:

fff writect.f
lfluka -o writect -m writect

Then run the writect program
./writect
which will generate the ct.vxl

Cheers
Vasilis Vlachoudis, CERN
CH-1211 GENEVA 23
SWITZERLAND

Phone: +41-22 767 9851=0A=
GSM: +41-76 487 4378=0A=
Fax: +41-22 766 9644=0A=
=0A=
=0A=
________________________________________=0A=
From: owner-fluka-discuss_at_mi.infn.it [owner-fluka-discuss_at_mi.infn.it] on be=
half of Lior Cahana [cahana_at_bgu.ac.il]=0A=
Sent: 08 January 2012 14:55=0A=
To: fluka-discuss_at_fluka.org=0A=
Subject: VOXEL geometry=0A=
=0A=
Hello,=0A=
I've been trying to use voxel geometry in FLUKA. I've tried using the examp=
le from the=0A=
course (attached) it compiles ok but I get an error during the "build" proc=
ess: "Error linking executable"=0A=
bellow is the flair output.=0A=
thank you=0A=
Lior Cahana=0A=
=0A=
=0A=
The flair output:=0A=
Compiling: /home/lior/FLUKA/flutil/fff -b -N writect.f=0A=
=0A=
/home/lior/FLUKA/flutil/fff: 118: [[: not found=0A=
writect:=0A=
=0A=
   Linking: /home/lior/FLUKA/flutil/lfluka -o ct -m fluka writect.o=0A=
$FLUPRO =3D /home/lior/FLUKA=0A=
   now linking=0A=
=0A=
/home/lior/FLUKA=0A=
g77=0A=
ar x /home/lior/FLUKA/libflukahp.a fluka.o=0A=
g77 -m32 -O3 -g -fexpensive-optimizations -funroll-loops -fstrength-reduce =
-Wall -fno-automatic -fno-silent -ffortran-bounds-check=0A=
-I/home/lior/FLUKA/flukapro -v -o ct -Xlinker -Map -Xlinker ct.map fluka.o =
writect.o -L/home/lior/FLUKA -lflukahp=0A=
Driving: g77 -m32 -O3 -g -fexpensive-optimizations -funroll-loops -fstrengt=
h-reduce -Wall -fno-automatic -fno-silent=0A=
-ffortran-bounds-check -I/home/lior/FLUKA/flukapro -v -o ct -Xlinker -Map -=
Xlinker ct.map fluka.o writect.o -L/home/lior/FLUKA=0A=
-lflukahp -lfrtbegin -lg2c -lm -shared-libgcc=0A=
Reading specs from /usr/lib/gcc/i486-linux-gnu/3.4.6/specs=0A=
Configured with: ../src/configure -v --enable-languages=3Dc,c++,f77,pascal =
--prefix=3D/usr --libexecdir=3D/usr/lib=0A=
--with-gxx-include-dir=3D/usr/include/c++/3.4 --enable-shared --with-system=
-zlib --enable-nls --without-included-gettext=0A=
--program-suffix=3D-3.4 --enable-__cxa_atexit --enable-clocale=3Dgnu --enab=
le-libstdcxx-debug --with-tune=3Dpentium4 i486-linux-gnu=0A=
Thread model: posix=0A=
gcc version 3.4.6 (Ubuntu 3.4.6-6ubuntu5)=0A=
   /usr/lib/gcc/i486-linux-gnu/3.4.6/collect2 --eh-frame-hdr -m elf_i386 -dy=
namic-linker /lib/ld-linux.so.2 -o ct=0A=
/usr/lib/gcc/i486-linux-gnu/3.4.6/../../../../lib/crt1.o /usr/lib/gcc/i486-=
linux-gnu/3.4.6/../../../../lib/crti.o=0A=
/usr/lib/gcc/i486-linux-gnu/3.4.6/crtbegin.o -L/home/lior/FLUKA -L/usr/lib/=
gcc/i486-linux-gnu/3.4.6=0A=
-L/usr/lib/gcc/i486-linux-gnu/3.4.6 -L/usr/lib/gcc/i486-linux-gnu/3.4.6/../=
../../../lib -L/usr/lib/gcc/i486-linux-gnu/3.4.6/../../..=0A=
-L/lib/../lib -L/usr/lib/../lib -Map ct.map fluka.o writect.o -lflukahp -lf=
rtbegin -lg2c -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc=0A=
/usr/lib/gcc/i486-linux-gnu/3.4.6/crtend.o /usr/lib/gcc/i486-linux-gnu/3.4.=
6/../../../../lib/crtn.o=0A=
writect.o: In function `MAIN__':=0A=
/home/lior/inp/vxl/writect.f:1: multiple definition of `MAIN__'=0A=
fluka.o:/home/alfredo/flupro/mainmvax/fluka.f:6: first defined here=0A=
collect2: ld returned 1 exit status=0A=
Received on Mon Jan 09 2012 - 16:48:58 CET

This archive was generated by hypermail 2.2.0 : Mon Jan 09 2012 - 16:48:59 CET