Re: problems with making flutil/actdline on Fedora 15

From: Vittorio Boccone <boccone_at_cern.ch>
Date: Fri, 4 Nov 2011 18:41:06 +0100

Hi,
which version did you download gfortran or g77?

Both should compile on FC15 "out of the box". In FC15 the fluka-gfortran
version does not require the installation of additional packages.

1st error: If you want to compile the 32bit version using g77 you must
be sure to have the 32 bit libraries as well (and to download the g77
version).

2nd error: After you try to compile with g77 (and before you try
gfortran) be sure to do a "make clean".

V.

On 01/11/2011 20:10, REDDELL, BRANDON D. (JSC-EV511) wrote:
> Hello,
>
> I've installed Fedora 15 on a 64bit machine and am putting FLUKA on it. Whe=
> n I type 'make' in $FLUPRO/flutil to compile those codes, I get the followi=
> ng error messages (for both g77 and gFortran). Any help on how to resolve t=
> his?
>
> Thanks,
>
>
> Using g77:
> [breddell_at_Radiation flutil]$ make
> /home/breddell/FLUKA/flutil/fff -N actdline.f
> actdline:
> lstnbl:
> /home/breddell/FLUKA/flutil/fff -N hpadd.f
> hpadd:
> lstnbl:
> /home/breddell/FLUKA/flutil/fff -N hpc.f
> hpc:
> hpc.f: In program `hpc':
> In file included from hpc.f:0:
> hpc.f:5: warning: unused variable 'chlc'
> hpc.f:5: warning: unused variable 'chuc'
> lstnbl:
> uctolc:
> lctouc:
> /home/breddell/FLUKA/flutil/fff -N hpfor.f
> hpfor:
> hpfor.f: In program `hpfor':
> In file included from hpfor.f:0:
> hpfor.f:5: warning: unused variable 'chlc'
> hpfor.f:5: warning: unused variable 'chuc'
> lstnbl:
> uctolc:
> lctouc:
> g77 -O3 -g -mcpu=3Dpentiumpro -fexpensive-optimizations -funroll-loops -fst=
> rength-reduce -Wall -fno-automatic -fno-silent -ffortran-bounds-check -m32=
> -o actdline actdline.o
> /usr/bin/ld: cannot find crt1.o: No such file or directory
> /usr/bin/ld: cannot find crti.o: No such file or directory
> /usr/bin/ld: skipping incompatible /usr/lib64/libm.so when searching for -l=
> m
> /usr/bin/ld: cannot find -lm
> /usr/bin/ld: skipping incompatible /usr/lib64/libc.so when searching for -l=
> c
> /usr/bin/ld: cannot find -lc
> /usr/bin/ld: cannot find crtn.o: No such file or directory
> collect2: ld returned 1 exit status
> make: *** [actdline] Error 1
>
>
>
> Using gFortran:
> [breddell_at_Radiation flutil]$ make
> /home/breddell/FLUKA/flutil/fff -N actdline.f
> actdline:
> lstnbl:
> /home/breddell/FLUKA/flutil/fff -N hpadd.f
> hpadd:
> lstnbl:
> /home/breddell/FLUKA/flutil/fff -N hpc.f
> hpc:
> hpc.f: In program `hpc':
> In file included from hpc.f:0:
> hpc.f:5: warning: unused variable 'chlc'
> hpc.f:5: warning: unused variable 'chuc'
> lstnbl:
> uctolc:
> lctouc:
> /home/breddell/FLUKA/flutil/fff -N hpfor.f
> hpfor:
> hpfor.f: In program `hpfor':
> In file included from hpfor.f:0:
> hpfor.f:5: warning: unused variable 'chlc'
> hpfor.f:5: warning: unused variable 'chuc'
> lstnbl:
> uctolc:
> lctouc:
> gfortran -o actdline actdline.o
> /usr/bin/ld: i386 architecture of input file `actdline.o' is incompatible w=
> ith i386:x86-64 output
> /usr/lib/gcc/x86_64-redhat-linux/4.6.1/../../../../lib64/crt1.o: In functio=
> n `_start':
> (.text+0x20): undefined reference to `main'
> actdline.o: In function `MAIN__':
> /home/breddell/FLUKA/flutil/actdline.f:5: undefined reference to `f_open'
> /home/breddell/FLUKA/flutil/actdline.f:6: undefined reference to `f_open'
> /home/breddell/FLUKA/flutil/actdline.f:16: undefined reference to `s_wsfe'
> /home/breddell/FLUKA/flutil/actdline.f:16: undefined reference to `do_fio'
> /home/breddell/FLUKA/flutil/actdline.f:16: undefined reference to `e_wsfe'
> /home/breddell/FLUKA/flutil/actdline.f:9: undefined reference to `s_rsfe'
> /home/breddell/FLUKA/flutil/actdline.f:9: undefined reference to `do_fio'
> /home/breddell/FLUKA/flutil/actdline.f:9: undefined reference to `e_rsfe'
> /home/breddell/FLUKA/flutil/actdline.f:16: undefined reference to `s_wsfe'
> /home/breddell/FLUKA/flutil/actdline.f:16: undefined reference to `do_fio'
> /home/breddell/FLUKA/flutil/actdline.f:16: undefined reference to `e_wsfe'
> /home/breddell/FLUKA/flutil/actdline.f:9: undefined reference to `s_rsfe'
> /home/breddell/FLUKA/flutil/actdline.f:9: undefined reference to `do_fio'
> /home/breddell/FLUKA/flutil/actdline.f:9: undefined reference to `e_rsfe'
> /home/breddell/FLUKA/flutil/actdline.f:18: undefined reference to `s_wsle'
> /home/breddell/FLUKA/flutil/actdline.f:18: undefined reference to `e_wsle'
> /home/breddell/FLUKA/flutil/actdline.f:9: undefined reference to `s_rsfe'
> /home/breddell/FLUKA/flutil/actdline.f:22: undefined reference to `s_stop'
> /home/breddell/FLUKA/flutil/actdline.f:18: undefined reference to `s_wsle'
> /home/breddell/FLUKA/flutil/actdline.f:18: undefined reference to `e_wsle'
> /home/breddell/FLUKA/flutil/actdline.f:16: undefined reference to `s_rnge'
> actdline.o: In function `lstnbl_':
> /home/breddell/FLUKA/flutil/actdline.f:28: undefined reference to `s_cmp'
> /home/breddell/FLUKA/flutil/actdline.f:28: undefined reference to `s_cmp'
> /home/breddell/FLUKA/flutil/actdline.f:28: undefined reference to `s_cmp'
> /home/breddell/FLUKA/flutil/actdline.f:28: undefined reference to `s_cmp'
> /home/breddell/FLUKA/flutil/actdline.f:28: undefined reference to `s_rnge'
> /home/breddell/FLUKA/flutil/actdline.f:28: undefined reference to `s_rnge'
> collect2: ld returned 1 exit status
> make: *** [actdline] Error 1
>

-- 
   Vittorio Boccone
   EN/STI - CERN
   Address :   CERN, CH-1211 Geneve 23, Switzerland
   E-mail  :   vittorio.boccone_at_cern.ch
   Phone   :  +41(0)22 767 5821
   GSM     :  +41(0)76 487 5737
Received on Tue Nov 08 2011 - 16:27:25 CET

This archive was generated by hypermail 2.2.0 : Tue Nov 08 2011 - 16:27:36 CET