RE: [fluka-discuss]: Installation hiccup / problem(s)

From: Eugene Galyaev <egalyaev_at_gmail.com>
Date: Tue, 11 Mar 2014 17:38:51 -0600

  Dear Vittorio,

 

Thank you very much! Of course, all worked like a charm.

Your help is much appreciated! Thank you!

 

Sincerely,

Eugene.

 

From: Vittorio Boccone [mailto:dr.vittorio.boccone_at_ieee.org]
Sent: Tuesday, March 11, 2014 4:52 PM
To: Eugene Galyaev
Cc: fluka-discuss_at_fluka.org
Subject: Re: [fluka-discuss]: Installation hiccup / problem(s)

 

Errata corrige for my terrible mistake in the environment variable name
during the cut and paste with the iphone.

 

>

Same story for the g77 version (just define only the

FLUPRO and be sure that GFORFLU GFLUFOR are empty)

Same story for the g77 version (just define only the

FLUPRO and be sure that GFORFLU and FLUFOR are empty)

Best,

V.

 

On Tue, Mar 11, 2014 at 11:46 PM, Vittorio Boccone
<dr.vittorio.boccone_at_ieee.org> wrote:

Hi Eugene,

 I do have it up and running on SL6... with g77 or gfortran on lxplus...
with devtoolset-1.1

 

For example on the cern lxplus ( i use csh and not bash, but this is a
detail):

[boccone_at_lxplus0032 ~]$ 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

 

[boccone_at_lxplus0032 ~]$ scl enable devtoolset-1.1 csh

[boccone_at_lxplus0032 ~]$ 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

 

[boccone_at_lxplus0032 ~/]$ which gfortran

/opt/rh/devtoolset-1.1/root/usr/bin/gfortran

 

From http://www.fluka.org/fluka.php?id=ins_run
<http://www.fluka.org/fluka.php?id=ins_run&mm2=3> &mm2=3:

* GFORFLU (optional): set to specify the specific version of gfortran
to be used if more than one is available (i.e. if on your machinegfortran
points to a version < 4.6, and gfortran46 points to version 4.6, you can set
GFORFLU to gfortran46 and happily use the FLUKA gfortran 64 bits version).

I think you forgot to set GFORFLU to the place where the new gfortran,
which you can find by doing

and to enable the repository before compiling and running.

 

For example, I just downloaded the new one, went to lxplus, enable the
devtoolset "scl enable devtoolset-1.1 csh" and follow the basic instruction
on the site and this is what I get:

 

[boccone_at_lxplus0032 fluka64]$ setenv FLUFOR gfortran

[boccone_at_lxplus0032 fluka64]$ setenv GFORFLU
/opt/rh/devtoolset-1.1/root/usr/bin/gfortran

[boccone_at_lxplus0032 fluka64]$ setenv FLUPRO /tmp/boccone/fluka64

[boccone_at_lxplus0032 fluka64]$ make

FLUPRO=/tmp/boccone/fluka64 flutil/lfluka -o flukahp -m fluka

$FLUPRO = /tmp/boccone/fluka64

 now linking

/tmp/boccone/fluka64

/opt/rh/devtoolset-1.1/root/usr/bin/gfortran

ar x /tmp/boccone/fluka64/libflukahp.a fluka.o

/opt/rh/devtoolset-1.1/root/usr/bin/gfortran -msse2 -mfpmath=sse -fPIC -O3
-g -mtune=generic -fexpensive-optimizations -funroll-loops -fstrength-reduce
-Wall -Wuninitialized -W

 

[many line after]

 

make[1]: Leaving directory `/tmp/boccone/fluka64/flutil'

[boccone_at_lxplus0032 fluka64]$ ll

total 607860

[many lines]

-rwxr-xr-x. 1 boccone sm 44180013 Mar 11 23:35 flukahp

 

[many lines]

[boccone_at_lxplus0032 fluka64]$

 

 

Same story for the g77 version (just define only the

FLUPRO and be sure that GFORFLU GFLUFOR are empty)

 

No magic

 

Best,

V.

 

On Tue, Mar 11, 2014 at 6:51 PM, Eugene Galyaev <egalyaev_at_gmail.com> wrote:

   Dear Vittorio,

 

Thank you very much for your reply.

Indeed, I did grab the gfortran version at first
(fluka2011.2b-linux-gfor64bitAA.tar.gz), while trying to use g77.

 

Having said that, I actually did install the compatibility libraries / do
have those installed, got the g77 version.

Cannot compile.

I did install the SL6 devtoolset-2 which would have gfortran I imagine.

Anyway, neither set of permutations and combinations still allows me to
compile Fluka in SL6.

Does anyone have it installed and working in Scientific Linux 6? What steps
should I take to disambiguate this issue?

 

When I am trying to make it (fluka2011.2b-linuxAA.tar.gz, FLUFOR=g77) with
g77, it tells me that the

/usr/lib64/crt1.o: could not read symbols: File in wrong format et cetera.

When I am trying to make it (fluka2011.2b-linux-gfor64bitAA.tar.gz,
FLUFOR=gfortran) with gfortran, it tell me that

gfortran >= 4.6 is required for running FLUKA!!

. and how am I supposed to get gfortran >= 4.6??? In SL6?

 

 

Could someone please help / disambiguate, and tell me how to resolve the
situation?

Thank you in advance,

Eugene.

 

 

 

 

$ gfortran -v

Using built-in specs.

Target: x86_64-redhat-linux

Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla
--enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
--disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--enable-libgcj-multifile --enable-java-maintainer-mode
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
--with-ppl --with-cloog --with-tune=generic --with-arch_32=i686
--build=x86_64-redhat-linux

Thread model: posix

gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC)

 

$ g77 -v

Reading specs from /usr/lib/gcc/x86_64-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=x86_64-redhat-linux

Thread model: posix

gcc version 3.4.6 20060404 (Red Hat 3.4.6-19.el6)

 

 

 

 

From: Vittorio Boccone [mailto:dr.vittorio.boccone_at_ieee.org]
Sent: Friday, March 07, 2014 1:15 AM
To: Eugene Galyaev
Cc: fluka-discuss_at_fluka.org
Subject: Re: [fluka-discuss]: Installation hiccup / problem(s)

 

Dear Eugene,

 it appears from the log that your system is a bit confused.

Which version are you trying to install? the standard compiler of the SL is
not good enough so you have two options:

get the compatibility libraries and install the g77 version

 

Or you install another compiler with the devtoolset options of the SL

 http://linux.web.cern.ch/linux/devtoolset/

 

devtoolset 1.1 is sufficient to compile with gfortran

 

Please check the installation instruction carefully once you decide which
version you want to install

http://www.fluka.org/fluka.php?id=ins_run
<http://www.fluka.org/fluka.php?id=ins_run&mm2=3> &mm2=3

 

This

now linking

/home/egalyaev/Install/fluka

g77

tells me you are compiling with g77

 

But this

/usr/bin/ld: crt1.o: No such file: No such file or directory

collect2: ld returned 1 exit status

cd flutil; FLUPRO=/home/egalyaev/Install/fluka make all; cd ..

make[1]: Entering directory `/home/egalyaev/Install/fluka/flutil'

gfortran -o actdline actdline.o

also tells me that hes tring to compile something with gfortran

 

In addition this

gcc -lc -lgcc_s_32 -lgcc /usr/lib/gcc/x86_64-redhat-linux/3.4.6/32/crtend.o
/usr/lib64/crtn.o

/usr/lib64/crt1.o: could not read symbols: File in wrong format

collect2: ld returned 1 exit status

tells me you are trying have only 64 bit libs installed.

 

 

Best V.

 

On Wed, Mar 5, 2014 at 11:36 PM, Eugene Galyaev <egalyaev_at_gmail.com> wrote:

   Dear FLUKA experts,

 

I am just trying to start up / learn using FLUKA, and immediately have
gotten myself in trouble with inability to install.

The error I get in the execution of make that looks like this (log is
attached):

 

gcc -lc -lgcc_s_32 -lgcc /usr/lib/gcc/x86_64-redhat-linux/3.4.6/32/crtend.o
/usr/lib64/crtn.o

/usr/lib64/crt1.o: could not read symbols: File in wrong format

collect2: ld returned 1 exit status

 

lib and lib64 locations have been added to $LIBRARY_PATH etc.

gcc version is gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)

I am running CERN Scientific Linux 6.

All of the devel headers have been installed...

 

Could you please suggest a solution?

Thanks to everyone in the community -

Eugene.

 

 

 

 

 
Received on Wed Mar 12 2014 - 00:38:51 CET

This archive was generated by hypermail 2.3.0 : Wed Mar 12 2014 - 01:49:48 CET