Re: Again Floating-point exception - erroneous arithmetic operation.

From: Francesco Cerutti <Francesco.Cerutti_at_cern.ch>
Date: Mon, 10 Jun 2013 19:07:57 +0200

Dear Francesca,

actually you need a gfortran version >=4.6 (as announced on the occasion
of the Fluka2011.2b release:
http://www.fluka.org/web_archive/earchive/new-fluka-discuss/5388.html
and discussed afterwards:
http://www.fluka.org/web_archive/earchive/new-fluka-discuss/5391.html)

Apparently you first used gfortran 4.4.0 (for which, contrary to
expectations, you seem to have succeeded in creating the executable, that
however is not supposed to work properly) and then you moved to 4.5.1
(where the linker failed as expected: undefined reference to [...]).

Ciao

Francesco

**************************************************
Francesco Cerutti
CERN-EN/STI
CH-1211 Geneva 23
Switzerland
tel. ++41 22 7678962
fax ++41 22 7668854

On Mon, 10 Jun 2013, francesca.belloni_at_libero.it wrote:

> Dear fluka developers,
> I downloaded fluka2011.2b-linux-gfor64bitAA.tar.gz on a 64 bits
> system
> (Linux dapint 2.6.18-194.11.4.el5 #1 SMP Tue Sep 21 06:46:41 EDT 2010 x86_64
> x86_64 x86_64 GNU/Linux) and
> in my .tcshrc set
>
> setenv FLUPRO /home/gpfs/manip/mnt23/mnm/ntof/fbelloni/FLUKA_2011
> setenv FLUFOR gfortran
> setenv GFORFLU my-gfortran
>
> with
>
> [11:52][dapint:~] > my-gfortran -v
> Using built-in specs.
> Target: x86_64-unknown-linux-gnu
> Configured with: ../configure --
> prefix=/home/gpfs/manip/mnt23/mnm/ntof/programs/usr --enable-languages=c,c++,
> fortran --with-gmp=/home/gpfs/manip/mnt23/mnm/ntof/programs/usr/ --with-
> mpfr=/home/gpfs/manip/mnt23/mnm/ntof/programs/usr/ --with-
> mpc=/home/gpfs/manip/mnt23/mnm/ntof/programs/usr/ --program-prefix=my-
> Thread model: posix
> gcc version 4.4.0 (GCC)
>
> After digiting make > & my.txt FLUKA is compiled, though some warnings are
> given (my.txt).
> But when I run my simulation (in attachment: files
> FluLib.cpp
> Makefile
> mgdraw.f
> PXMG.inp
> source.f
> usrout.f)
>
> I still obtain the same mistake
> (PXMG001.err
> PXMG001.log
> ranPXMG002
> )
>
>
>
>
> Since at https://www.fluka.org/fluka.php?id=secured_intro is written that
>
> "This version of the code should be run on the platforms for which it has been
> released, which are:
> GNU/Linux (i686 and x86_64) requires gcc/g77 (version >= 3.4)
> GNU/Linux (x86_64) beta version, requires gcc/gfortran (version >= 4.5) "
>
> I tried to compile fluka against gfortran 4.5.1 by setting
>
> setenv FLUPRO /home/gpfs/manip/mnt23/mnm/ntof/fbelloni/FLUKA_2011
> setenv FLUFOR gfortran
> setenv GFORFLU mio-gfortran
>
> with
>
> [12:03][dapint:~] > mio-gfortran -v
> Using built-in specs.
> COLLECT_GCC=mio-gfortran
>
> COLLECT_LTO_WRAPPER=/home/gpfs/manip/mnt23/mnm/ntof/fbelloni/Programs/libexec/gcc/x86_64-
> unknown-linux-gnu/4.5.1/lto-wrapper
> Target: x86_64-unknown-linux-gnu
> Configured with: ../configure --
> prefix=/home/gpfs/manip/mnt23/mnm/ntof/fbelloni/Programs/ --enable-languages=c,
> c++,fortran --with-gmp=/home/gpfs/manip/mnt23/mnm/ntof/programs/usr/ --with-
> mpfr=/home/gpfs/manip/mnt23/mnm/ntof/programs/usr/ --with-
> mpc=/home/gpfs/manip/mnt23/mnm/ntof/programs/usr/ --program-prefix=mio-
> Thread model: posix
> gcc version 4.5.1 (GCC)
>
>
> but in this case the compilation, though finishes, gives more errors (see mio.
> txt) and
> when I try to run the simulation (with mio-gfortran instead of my-gfortran in
> my Makefile), the compilation crashes
> (see mio-crash.txt).
>
>
> Could you please tell me what I am doing wrong?
>
> Thank you.
> Best regards,
> Francesca
>
Received on Mon Jun 10 2013 - 20:16:30 CEST

This archive was generated by hypermail 2.3.0 : Mon Jun 10 2013 - 20:16:31 CEST