Re: FLUKA 2011.2b.3 installation problem

From: Giuseppe Battistoni <giuseppe.battistoni_at_mi.infn.it>
Date: Thu, 11 Jul 2013 15:28:51 +0200

You have not set the Environment variable FLUFOR to gfortran.
Therfore g77 is called by default.
Please read carefully the RELEASE-NOTES in your $FLUPRO directory
for instructions.
(there you find also alternative sugggestions on the way to set the use of gfortran)
Other thing: of course your architecture must be a 64-bit one.

        Giuseppe Battistoni

On 07/11/2013 02:44 PM, Fabio Pozzi wrote:
> Dear FLUKA users,
>
> I have some problems in installing the new FLUKA respin. Before installing it, I have installed the following gfortran version from the Developer Toolset at CERN:
> * gcc/g++/gfortran - GNU Compiler Collection - version 4.7.2
> As soon as I type the "make" in the fluka folder i get the following error messages and thus I cannot generate the flukahp file. Has anyone any idea?
>
>
> make
> FLUPRO=/home/fpozzi/Software/fluka flutil/lfluka -o flukahp -m fluka
> $FLUPRO = /home/fpozzi/Software/fluka
> now linking
> /home/fpozzi/Software/fluka
> g77
> ar x /home/fpozzi/Software/fluka/libflukahp.a fluka.o
> g77 -m32 -mcpu=pentiumpro -O3 -g -fexpensive-optimizations -funroll-loops -fstrength-reduce -Wall -fno-automatic -fno-silent -ffortran-bounds-check -I/home/fpozzi/Software/fluka/flukapro -v -o flukahp fluka.o -L/home/fpozzi/Software/fluka -lflukahp
> Driving: g77 -m32 -mcpu=pentiumpro -O3 -g -fexpensive-optimizations -funroll-loops -fstrength-reduce -Wall -fno-automatic -fno-silent -ffortran-bounds-check -I/home/fpozzi/Software/fluka/flukapro -v -o flukahp fluka.o -L/home/fpozzi/Software/fluka -lflukahp -lfrtbegin -lg2c -lm -shared-libgcc
> 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)
> /usr/libexec/gcc/x86_64-redhat-linux/3.4.6/collect2 --eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o flukahp /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib/crt1.o /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib/crti.o /usr/lib/gcc/x86_64-redhat-linux/3.4.6/32/crtbegin.o -L/home/fpozzi/Software/fluka -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6/32 -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6 -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6/32 -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6 -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../.. -L/lib/../lib -L/usr/lib/../lib fluka.o -lflukahp -lfrtbegin -lg2c -lm -lgcc_s_32 -lgcc -lc -lgcc_s_32 -lgcc /usr/lib/gcc/x86_64-redhat-linux/3.4.6/32/crtend.o /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib/crtn.o
> /opt/rh/devtoolset-1.1/root/usr/bin/ld: skipping incompatible /home/fpozzi/Software/fluka/libflukahp.a when searching for -lflukahp
> /opt/rh/devtoolset-1.1/root/usr/bin/ld: cannot find -lflukahp
> collect2: ld returned 1 exit status
> cd flutil; FLUPRO=/home/fpozzi/Software/fluka make all; cd ..
> make[1]: Entering directory `/home/fpozzi/Software/fluka/flutil'
> gfortran -o actdline actdline.o
> /opt/rh/devtoolset-1.1/root/usr/libexec/gcc/x86_64-redhat-linux/4.7.2/ld: i386 architecture of input file `actdline.o' is incompatible with i386:x86-64 output
> /usr/lib/../lib64/crt1.o: In function `_start':
> (.text+0x20): undefined reference to `main'
> actdline.o: In function `MAIN__':
> /home/fpozzi/Software/fluka/flutil/actdline.f:5: undefined reference to `f_open'
> /home/fpozzi/Software/fluka/flutil/actdline.f:6: undefined reference to `f_open'
> /home/fpozzi/Software/fluka/flutil/actdline.f:16: undefined reference to `s_wsfe'
> /home/fpozzi/Software/fluka/flutil/actdline.f:16: undefined reference to `do_fio'
> /home/fpozzi/Software/fluka/flutil/actdline.f:16: undefined reference to `e_wsfe'
> /home/fpozzi/Software/fluka/flutil/actdline.f:9: undefined reference to `s_rsfe'
> /home/fpozzi/Software/fluka/flutil/actdline.f:9: undefined reference to `do_fio'
> /home/fpozzi/Software/fluka/flutil/actdline.f:9: undefined reference to `e_rsfe'
> /home/fpozzi/Software/fluka/flutil/actdline.f:16: undefined reference to `s_wsfe'
> /home/fpozzi/Software/fluka/flutil/actdline.f:16: undefined reference to `do_fio'
> /home/fpozzi/Software/fluka/flutil/actdline.f:16: undefined reference to `e_wsfe'
> /home/fpozzi/Software/fluka/flutil/actdline.f:9: undefined reference to `s_rsfe'
> /home/fpozzi/Software/fluka/flutil/actdline.f:9: undefined reference to `do_fio'
> /home/fpozzi/Software/fluka/flutil/actdline.f:9: undefined reference to `e_rsfe'
> /home/fpozzi/Software/fluka/flutil/actdline.f:18: undefined reference to `s_wsle'
> /home/fpozzi/Software/fluka/flutil/actdline.f:18: undefined reference to `e_wsle'
> /home/fpozzi/Software/fluka/flutil/actdline.f:9: undefined reference to `s_rsfe'
> /home/fpozzi/Software/fluka/flutil/actdline.f:22: undefined reference to `s_stop'
> /home/fpozzi/Software/fluka/flutil/actdline.f:18: undefined reference to `s_wsle'
> /home/fpozzi/Software/fluka/flutil/actdline.f:18: undefined reference to `e_wsle'
> /home/fpozzi/Software/fluka/flutil/actdline.f:16: undefined reference to `s_rnge'
> actdline.o: In function `lstnbl_':
> /home/fpozzi/Software/fluka/flutil/actdline.f:28: undefined reference to `s_cmp'
> /home/fpozzi/Software/fluka/flutil/actdline.f:28: undefined reference to `s_cmp'
> /home/fpozzi/Software/fluka/flutil/actdline.f:28: undefined reference to `s_cmp'
> /home/fpozzi/Software/fluka/flutil/actdline.f:28: undefined reference to `s_cmp'
> /home/fpozzi/Software/fluka/flutil/actdline.f:28: undefined reference to `s_rnge'
> /home/fpozzi/Software/fluka/flutil/actdline.f:28: undefined reference to `s_rnge'
> collect2: error: ld returned 1 exit status
> make[1]: *** [actdline] Error 1
> make[1]: Leaving directory `/home/fpozzi/Software/fluka/flutil
>
> Thank you for your help.
>
> Kind regards,
>
> Fabio Pozzi
>
Received on Thu Jul 11 2013 - 16:18:44 CEST

This archive was generated by hypermail 2.3.0 : Thu Jul 11 2013 - 16:18:45 CEST