Re: problems with making flutil/actdline on Fedora 15

From: Vittorio Boccone <boccone_at_cern.ch>
Date: Tue, 8 Nov 2011 17:01:04 +0100

Just a follow-up

The gfortran version (only for 64 bit machines) should compile out of
the box on FC15-x86_64 and does not require the installation of
additional packages.
The g77 version requires the installation of the g77 package from
earlier fedora together with 32bit compatibility libraries.
To check if you system is truly 64 bit do a "uname -a".

I recall also few important notes about the gfortran version from the
release note (RELEASE-NOTES.fluka2011.2):

-- INSTRUCTIONS FOR THE GFORTRAN VERSION --

The gfortran (64 bits) version is for x86_64 machines and cannot be run
on 32 bit architectures. The FLUKA scripts recognize which version the
user is running according to the following:

a) The FLUFOR environmental variable, which can take the values "g77"
     or "gfortran"
b) If FLUFOR is not set, if the directory name contain the "gfor" string
     gfortran is assumed, g77 otherwise
c) If gfortran is selected by means of a) or b), the additional variable
     GFORFLU can be set to specify the specific version of gfortran to be
     used if more than one is available. Please note that gfortran>= 4.4
     is required. For example, if on your machine "gfortran" points to a
     version< 4.4, and "gfortran44" points to version 4.4, you can set
     GFORFLU to "gfortran44" and happily use the FLUKA gfortran (64 bits)
     version

On 04/11/2011 18:41, Vittorio Boccone wrote:
> 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
   Office  :   bld. 864/2-D01 (Prevessin)
   Address :   CERN, CH-1211 Geneve 23, Switzerland
   E-mail  :   vittorio.boccone_at_cern.ch
   Phone   :   75821   [from outside +41(0)22 767 5821 ]
   GSM     :   16-5737 [from outside +41(0)76 487 5737 ]
   FAX     :   68019   [from outside +41(0)22 766 8019 ]
Received on Tue Nov 08 2011 - 17:55:31 CET

This archive was generated by hypermail 2.2.0 : Tue Nov 08 2011 - 17:55:32 CET