Re: FLUKA 64-bit gfortran compiling thread

From: Oscar Frasciello <oscar.frasciello_at_lnf.infn.it>
Date: Wed, 03 Aug 2011 13:39:18 +0200

Ok, i found the trick!
During make the compiler search for flutil/actdline but in /flutil the
file is named actdline.f .
Simply renaming it to flutil/actdline gets make working good and fluka
be compiled!
I run also flair and all seems to work good.
Let me know if this could be a good stuff for fixing issue.
Regards
Oscar

Il 03/08/2011 12:45, David Sinuela Pastor ha scritto:
> Hi Oscar,
>
> In my tests I was running these two commands before running make
>
> export FLUPRO=$PATH
> export FLUFOR=gfortran
>
> It seems that the logics inferring gfortran from the folder name is
> broken.
>
> Let me know the results, thanks for the feedback!
>
> On 08/03/2011 12:36 PM, Oscar Frasciello wrote:
>> In which file?
>> Il 03/08/2011 12:08, David Sinuela Pastor ha scritto:
>>> Could you try setting FLUFOR=gfortran before running make?
>>>
>>> On 08/03/2011 11:06 AM, Oscar Frasciello wrote:
>>>> Hi.
>>>> First of all thanks for your prompt reply.
>>>> I read the documentation and as i did previously i setted $FLUPRO
>>>> to the correct dir,
>>>> which contains the string "gfor" (it's named gforfluka) and setted
>>>> FLUFOR accordingly.
>>>> I tried both your attached files and the distributed ones, but i
>>>> still get on make:
>>>>
>>>> FLUPRO=/home/gladioacuto/Physics/gforfluka flutil/lfluka -o flukahp
>>>> -m fluka
>>>> $FLUPRO = /home/gladioacuto/Physics/gforfluka
>>>> now linking
>>>> /home/gladioacuto/Physics/gforfluka
>>>> g77
>>>> ar x /home/gladioacuto/Physics/gforfluka/libflukahp.a fluka.o
>>>> rm: impossibile rimuovere "flukahp.map": File o directory non
>>>> esistente
>>>> g77 -m32 -mcpu=pentiumpro -O3 -g -fexpensive-optimizations
>>>> -funroll-loops -fstrength-reduce -Wall -fno-automatic -fno-silent
>>>> -ffortran-bounds-check
>>>> -I/home/gladioacuto/Physics/gforfluka/flukapro -v -o flukahp
>>>> -Xlinker -Map -Xlinker flukahp.map fluka.o
>>>> -L/home/gladioacuto/Physics/gforfluka -lflukahp
>>>> flutil/lfluka: 157: g77: not found
>>>> cd flutil; FLUPRO=/home/gladioacuto/Physics/gforfluka make all; cd ..
>>>> make[1]: Entering directory
>>>> `/home/gladioacuto/Physics/gforfluka/flutil'
>>>> /home/gladioacuto/Physics/gforfluka/flutil/fff -N actdline.f
>>>> /home/gladioacuto/Physics/gforfluka/flutil/fff: line 121: g77:
>>>> command not found
>>>> /home/gladioacuto/Physics/gforfluka/flutil/fff -N hpadd.f
>>>> /home/gladioacuto/Physics/gforfluka/flutil/fff: line 121: g77:
>>>> command not found
>>>> /home/gladioacuto/Physics/gforfluka/flutil/fff -N hpc.f
>>>> /home/gladioacuto/Physics/gforfluka/flutil/fff: line 121: g77:
>>>> command not found
>>>> /home/gladioacuto/Physics/gforfluka/flutil/fff -N hpfor.f
>>>> /home/gladioacuto/Physics/gforfluka/flutil/fff: line 121: g77:
>>>> command not found
>>>> gfortran-4.6 -o actdline actdline.o
>>>> gfortran-4.6: error: actdline.o: File o directory non esistente
>>>> make[1]: *** [actdline] Error 1
>>>> make[1]: Leaving directory
>>>> `/home/gladioacuto/Physics/gforfluka/flutil'
>>>>
>>>> Don't know if i'm wrong, but it seems to me it's calling the
>>>> compiler two time, one with g77 and then gfortran. Anyway ye, i'm
>>>> running Debian Wheezy (testing) distro.
>>>> In $FLUPRO/flutil/ffluka.sh i also tried to change GFORFLU=gfortran
>>>> to GFORFLU=gfortran-4.6 which is the compiler version which
>>>> /usr/bin/gfortran points to.
>>>> In $FLUPRO/makeflags i did the same.
>>>>
>>>> Cheers
>>>> Oscar
>>>>
>>>>
>>>> Il 03/08/2011 10:06, David Sinuela Pastor ha scritto:
>>>>> Hello,
>>>>>
>>>>> First of all, please read the documentation carefully, there is a
>>>>> section in the RELEASE notes file explaining how to set up the
>>>>> environment variables to compile with gfortran: FLUPRO and FLUFOR.
>>>>>
>>>>> Apart from that, the distributed scripts seem to rely on the fact
>>>>> that in most systems /bin/sh points to /bin/bash but it is not the
>>>>> case in some distributions, are you using debian maybe? I'm
>>>>> working on a fix for this but it's not yet complete. I've attached
>>>>> the modified flutil/fff and flutil/ffluka.sh scripts I've tested
>>>>> and work on most of the systems. Could you tell me if those work
>>>>> for you?
>>>>>
>>>>> Cheers
>>>>>
>>>>> On 08/02/2011 05:24 PM, Oscar Frasciello wrote:
>>>>>> I'm trying to install the new 64-bit FLUKA release in my machine
>>>>>> (CPU:
>>>>>> Intel i5 x86_64, installed compilers gfortran-4.4/4.5/4.6), but
>>>>>> "make"
>>>>>> command returns these errors:
>>>>>>
>>>>>> FLUPRO=/home/gladioacuto/Physics/flukagfor flutil/lfluka -o
>>>>>> flukahp -m
>>>>>> fluka
>>>>>> $FLUPRO = /home/gladioacuto/Physics/flukagfor
>>>>>> now linking
>>>>>> /home/gladioacuto/Physics/flukagfor
>>>>>> g77
>>>>>> ar x /home/gladioacuto/Physics/flukagfor/libflukahp.a fluka.o
>>>>>> rm: impossibile rimuovere "flukahp.map": File o directory non
>>>>>> esistente
>>>>>> g77 -m32 -mcpu=pentiumpro -O3 -g -fexpensive-optimizations
>>>>>> -funroll-loops -fstrength-reduce -Wall -fno-automatic -fno-silent
>>>>>> -ffortran-bounds-check
>>>>>> -I/home/gladioacuto/Physics/flukagfor/flukapro -v
>>>>>> -o flukahp -Xlinker -Map -Xlinker flukahp.map fluka.o
>>>>>> -L/home/gladioacuto/Physics/flukagfor -lflukahp
>>>>>> flutil/lfluka: 157: g77: not found
>>>>>> cd flutil; FLUPRO=/home/gladioacuto/Physics/flukagfor make all;
>>>>>> cd ..
>>>>>> make[1]: Entering directory
>>>>>> `/home/gladioacuto/Physics/flukagfor/flutil'
>>>>>> /home/gladioacuto/Physics/flukagfor/flutil/fff -N actdline.f
>>>>>> /home/gladioacuto/Physics/flukagfor/flutil/fff: 118: [[: not found
>>>>>> /home/gladioacuto/Physics/flukagfor/flutil/fff: 121: g77: not found
>>>>>> /home/gladioacuto/Physics/flukagfor/flutil/fff -N hpadd.f
>>>>>> /home/gladioacuto/Physics/flukagfor/flutil/fff: 118: [[: not found
>>>>>> /home/gladioacuto/Physics/flukagfor/flutil/fff: 121: g77: not found
>>>>>> /home/gladioacuto/Physics/flukagfor/flutil/fff -N hpc.f
>>>>>> /home/gladioacuto/Physics/flukagfor/flutil/fff: 118: [[: not found
>>>>>> /home/gladioacuto/Physics/flukagfor/flutil/fff: 121: g77: not found
>>>>>> /home/gladioacuto/Physics/flukagfor/flutil/fff -N hpfor.f
>>>>>> /home/gladioacuto/Physics/flukagfor/flutil/fff: 118: [[: not found
>>>>>> /home/gladioacuto/Physics/flukagfor/flutil/fff: 121: g77: not found
>>>>>> gfortran -o actdline actdline.o
>>>>>> gfortran: error: actdline.o: File o directory non esistente
>>>>>> make[1]: *** [actdline] Error 1
>>>>>> make[1]: Leaving directory
>>>>>> `/home/gladioacuto/Physics/flukagfor/flutil'
>>>>>>
>>>>>> I also tried 'brutal' way, making symbolic link g77 to gfortran but
>>>>>> doesn't help.
>>>>>> The $FLUPRO/flutil/ffluka.sh routine should automatically set
>>>>>> arch and
>>>>>> compiler variables, but it seems this does not happen,
>>>>>> because "make" still calls g77, and even with the brutal workaround
>>>>>> some files (actdline.o) are created for 32-bit instead for
>>>>>> 64-bit arch.
>>>>>> Any suggestion?
>>>>>> Thanks in advance
>>>>>> Oscar Frasciello
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>
>
>
Received on Wed Aug 03 2011 - 21:58:57 CEST

This archive was generated by hypermail 2.2.0 : Wed Aug 03 2011 - 21:58:58 CEST