Re: [fluka-discuss]: FLUKA_x86_64-version_installation Problem

From: Vittorio Boccone <dr.vittorio.boccone_at_ieee.org>
Date: Thu, 20 Mar 2014 17:32:16 +0100

There's no gfortran47 only a command gfortran!
you just need to specify

export FLUPRO=\to_your_fluka_path

export FLUFOR=gfortran

as explained in the installation instruction.
best
V.



On Thu, Mar 20, 2014 at 5:05 PM, anuj <anuj_at_crl.tifr.res.in> wrote:

>
> Hello,
>
> As per your sggestions I installed devtoolset 1.1, as well this gives the
> gcc 4.7.2,
> gfortran 4.7.2. But when I am trying to install 64 bit version of fluka it
> is giving me
> the following errors.
>
> [anuj_at_G3-001 fluka_x86_64]$ make
> FLUPRO=/home/anuj/fluka_x86_64 flutil/lfluka -o flukahp -m fluka
> $FLUPRO = /home/anuj/fluka_x86_64
> /home/anuj/fluka_x86_64/flutil/ffluka.sh: line 87: gfortran47: command not
> found
> /home/anuj/fluka_x86_64/flutil/ffluka.sh: line 92: [: -le: unary operator
> expected
> now linking
> /home/anuj/fluka_x86_64
> gfortran47
> ar x /home/anuj/fluka_x86_64/libflukahp.a fluka.o
> gfortran47 -msse2 -mfpmath=sse -fPIC -O3 -g -mtune=generic
> -fexpensive-optimizations -
> funroll-loops -fstrength-reduce -Wall -Wuninitialized -Wno-tabs
> -Wline-truncation -Wno-
> unused-function -Wno-unused-parameter -Wno-unused-dummy-argument
> -Wno-unused-variable -
> Wunused-label -Waggregate-return -Wcast-align -Wsystem-headers
> -ftrapping-math -frange-
> check -fbackslash -fdump-core -fbacktrace -ffpe-trap=invalid,zero,overflow
> -finit-local-
> zero -ffixed-form -frecord-marker=4 -funderscoring -fno-automatic
> -fd-lines-as-comments
> -fbounds-check -I/home/anuj/fluka_x86_64/flukapro -v -o flukahp fluka.o -
> L/home/anuj/fluka_x86_64 -lflukahp
> flutil/lfluka: line 161: gfortran47: command not found
> cd flutil; FLUPRO=/home/anuj/fluka_x86_64 make all; cd ..
> make[1]: Entering directory `/home/anuj/fluka_x86_64/flutil'
> /home/anuj/fluka_x86_64/flutil/fff -N actdline.f
> /home/anuj/fluka_x86_64/flutil/ffluka.sh: line 87: gfortran47: command not
> found
> /home/anuj/fluka_x86_64/flutil/ffluka.sh: line 92: [: -le: unary operator
> expected
> /home/anuj/fluka_x86_64/flutil/fff: line 121: gfortran47: command not found
> /home/anuj/fluka_x86_64/flutil/fff -N hpadd.f
> /home/anuj/fluka_x86_64/flutil/ffluka.sh: line 87: gfortran47: command not
> found
> /home/anuj/fluka_x86_64/flutil/ffluka.sh: line 92: [: -le: unary operator
> expected
> /home/anuj/fluka_x86_64/flutil/fff: line 121: gfortran47: command not found
> /home/anuj/fluka_x86_64/flutil/fff -N hpc.f
> /home/anuj/fluka_x86_64/flutil/ffluka.sh: line 87: gfortran47: command not
> found
> /home/anuj/fluka_x86_64/flutil/ffluka.sh: line 92: [: -le: unary operator
> expected
> /home/anuj/fluka_x86_64/flutil/fff: line 121: gfortran47: command not found
> /home/anuj/fluka_x86_64/flutil/fff -N hpfor.f
> /home/anuj/fluka_x86_64/flutil/ffluka.sh: line 87: gfortran47: command not
> found
> /home/anuj/fluka_x86_64/flutil/ffluka.sh: line 92: [: -le: unary operator
> expected
> /home/anuj/fluka_x86_64/flutil/fff: line 121: gfortran47: command not found
> gfortran47 -o actdline actdline.o
> make[1]: gfortran47: Command not found
> make[1]: *** [actdline] Error 127
> make[1]: Leaving directory `/home/anuj/fluka_x86_64/flutil'
> [anuj_at_G3-001 fluka_x86_64]$
>
>
> Note: One problem I want to discus with you that I have installed
> devtoolset as root
> user when I type gfortran --version as root user it is giving me the
> following lines
>
> [root_at_G3-001 ~]# gfortran --version
> GNU Fortran (GCC) 4.7.2 20121015 (Red Hat 4.7.2-5)
> Copyright (C) 2012 Free Software Foundation, Inc.
>
> GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
> You may redistribute copies of GNU Fortran
> under the terms of the GNU General Public License.
> For more information about these matters, see the file named COPYING
>
> [root_at_G3-001 ~]#
>
> But if I type as a normal user then this shows the following lines:
>
> [anuj_at_G3-001 fluka_x86_64]$ gfortran --version
> GNU Fortran (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)
> Copyright (C) 2010 Free Software Foundation, Inc.
>
> GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
> You may redistribute copies of GNU Fortran
> under the terms of the GNU General Public License.
> For more information about these matters, see the file named COPYING
>
> [anuj_at_G3-001 fluka_x86_64]$
>
> Can any one you tel me why is this difference?
>
>
> Best Regards
>
> Anuj Chandra
>
>
> On Tue, 18 Mar 2014 13:07:58 +0100, Vittorio Boccone wrote
> > Dear Anuj,
> > very import thing. Keep the discussion on the list.
> >
> > Installation of the 64 bits version :
> >
> > 1. If you need to work with the 64 bit, you need you in first place
> to
> > upgrade (if you can) to CentOS 6.5 with the common "sudo yum update"
> > method. You can find dozen of tutorial on the web.
> > 2. this type of error [/home/anuj/fluka_x86_64/flutil/ffluka.sh: line
> > 92: [: -le: unary operator expected] comes from an old version of the
> awk
> > command line tool. You can fix this with a "sudo yum install gawk"
> > 3. You have to get a more recent gfortran versiion because the 4.4 is
> > not supported as written in the FLUKA download page, instruction an
> manual.
> > RedHat based distributions have a set of packages which is called
> > devtoolset which provide the gcc/gfrotran 4.7.2 and 4.8.1 (respectly
> in the
> > devtoolset 1.1 and 2.0). Here the page for the CERN devtoolset
> (compatible
> > with centos) http://linux.web.cern.ch/linux/devtoolset/. Here the
> forum
> > which points to the CentOS one
> > https://www.centos.org/forums/viewtopic.php?t=22369
> > 4. Once you have the devtoolset installed and the environment variable
> > defined enable the devtoolset and compile FLUKA
> >
> > scl enable devtoolset-[your-toolset-version] bash
> >
> > Installation of the 32 bits version:
> >
> > The other option is to install the 32 bit FLUKA from sources or from
> > the rpms (they need the same packages and configuration). A "sudo yum
> > install compat-gcc-34 compat-libf2c-34 compat-gcc-34-g77 glibc
> > glibc-devel glibc.i686 glibc-devel.i686" will give you the necessary
> > packages to install the rpm version
> >
> > Best
> >
> > V.
> >
> > *yum install compat-gcc-34 compat-libf2c-34yum up*
> > On 3/18/2014 9:50 AM, anuj wrote:
> >
> > Hii,
> >
> > here is my system configuration.
> > I am sorry for being late I was out of town and could not get connect
> with you.
> >
> > [anuj_at_G3-001 ~]$ lsb_release -a
> > LSB Version:
> :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-
> > noarch:printing-4.0-amd64:printing-4.0-noarch
> > Distributor ID: CentOS
> > Description: CentOS release 6.3 (Final)
> > Release: 6.3
> > Codename: Final
> > [anuj_at_G3-001 ~]$
> >
> > Best regards
> >
> > Anuj Chandra
> >
> > On Fri, 14 Mar 2014 20:52:59 +0100, Vittorio Boccone wrote
> >
> > Hi Anuj,
> > you didn't answer to my previous mail about which distribution you are
> > using.
> >
> > 1) Remove the "$" from the export "$FLUPRO=/home/anuj/fluka_x86_64" in
> > the ".bashrc" file. The $ symbol is not used in the definition of
> > environmental variables, only when you use them;
> > 2) You miss the definition of FLUFOR which should be "export
> > FLUFOR=gfortran";
> > 3) Your "export GFORFLU=gfortran44" tells me you are trying to use a
> > gfortran version which is not supported anymore as FLUKA requires a
> > gfortran >4.6
> >
> > I renew my previous question: which distribution are you using and which
> > version (and architecture )
> > I'm sorry, but without those information we can't really help you more.
> >
> > Best,
> > V.
> >
> > On 3/14/2014 7:58 PM, anuj wrote:
> >
> > export $FLUPRO=/home/anuj/fluka_x86_64
> > export GFORFLU=gfortran44
> >
> > --
> > Open WebMail Project (http://openwebmail.org)
>
>
> --
> Open WebMail Project (http://openwebmail.org)
>
>
Received on Thu Mar 20 2014 - 18:31:13 CET

This archive was generated by hypermail 2.3.0 : Thu Mar 20 2014 - 18:31:14 CET