Re: [fluka-discuss]: 'make error

From: Andrea Fontana <andrea.fontana_at_pv.infn.it>
Date: Mon, 15 Apr 2019 19:38:10 +0200

Ciao Lorenzo,
    I think that Sujoy's idea was to make sure that you have gfortran
installed and running when you link the Fluka executable.

Indeed from your output, it looks that g77 is invoked by make.

To explicitly avoid this, you should define the environmental variable
FLUFOR and this depends on the shell you are using. If you have bash,
you must type:

export FLUFOR=gfortran

and then type:

make

I invite you to read the README file in the Fluka directory before
installing the program: important information is written there.

Just to be sure, could you check the gfortran version you have with:

gfortran --version

Try this and let us know.

Andrea

On 15/04/2019 17:10, AURELI, LORENZO wrote:
> Dear Sujoy, I tried with your suggestion but I got the same error.
> Do you have any other idea to make installation?
>
> Best
> Lorenzo
>
>
> Il giorno ven 12 apr 2019 alle ore 06:07 Sujoy Chatterjee
> <sujoy_at_vecc.gov.in <mailto:sujoy_at_vecc.gov.in>> ha scritto:
>
> Dear Lorenzo,
> before 'make' command, write 'FLUFOR=gfortran' in command line
>
> with regards,
> डॉ. सुजय चटर्जी/Dr. Sujoy Chatterjee
> Alt. Email: sujoy_at_barc.gov.in <mailto:sujoy_at_barc.gov.in>
>
> -----owner-fluka-discuss_at_mi.infn.it
> <mailto:owner-fluka-discuss_at_mi.infn.it> wrote: -----
> To: fluka-discuss_at_fluka.org <mailto:fluka-discuss_at_fluka.org>
> From: "AURELI, LORENZO"
> Sent by: owner-fluka-discuss_at_mi.infn.it
> <mailto:owner-fluka-discuss_at_mi.infn.it>
> Date: 04/12/2019 01:16AM
> Subject: [fluka-discuss]: 'make error
>
> Dear Fluka team,
> I'm approaching to the installation of fluka with gfortran on
> linux mint.
> I  am trying to intall FLUKA, I have uncompressed the tar.gz and
> now I am trying to compile the flutils, link and install FLUKA by
> typing:
>     '> make'
> but I got the error below:
> Thanks in advance
> Best
> Lorenzo
> user_at_user-N552VW ~/Scaricati/fluka/FLUPRO $ make
> FLUPRO=/home/user/Scaricati/fluka/FLUPRO flutil/lfluka -o flukahp
> -m fluka
> $FLUPRO = /home/user/Scaricati/fluka/FLUPRO
>  now linking
> /home/user/Scaricati/fluka/FLUPRO
> g77
> ar x /home/user/Scaricati/fluka/FLUPRO/libflukahp.a fluka.o
> rm: cannot remove 'flukahp.map': No such file or directory
> g77 -m32 -mcpu=pentiumpro -O3 -g -fexpensive-optimizations
> -funroll-loops -fstrength-reduce -Wall -fno-automatic -fno-silent
> -ffortran-bounds-check
> -I/home/user/Scaricati/fluka/FLUPRO/flukapro -v -o flukahp
> -Xlinker -Map -Xlinker flukahp.map fluka.o
> -L/home/user/Scaricati/fluka/FLUPRO -lflukahp
> flutil/lfluka: 157: flutil/lfluka: g77: not found
> cd flutil; FLUPRO=/home/user/Scaricati/fluka/FLUPRO make all; cd ..
> make[1]: Entering directory '/home/user/Scaricati/fluka/FLUPRO/flutil'
> /home/user/Scaricati/fluka/FLUPRO/flutil/fff -N actdline.f
> /home/user/Scaricati/fluka/FLUPRO/flutil/fff: 119:
> /home/user/Scaricati/fluka/FLUPRO/flutil/fff: [[: not found
> /home/user/Scaricati/fluka/FLUPRO/flutil/fff: 129:
> /home/user/Scaricati/fluka/FLUPRO/flutil/fff: g77: not found
> /home/user/Scaricati/fluka/FLUPRO/flutil/fff -N hpadd.f
> /home/user/Scaricati/fluka/FLUPRO/flutil/fff: 119:
> /home/user/Scaricati/fluka/FLUPRO/flutil/fff: [[: not found
> /home/user/Scaricati/fluka/FLUPRO/flutil/fff: 129:
> /home/user/Scaricati/fluka/FLUPRO/flutil/fff: g77: not found
> /home/user/Scaricati/fluka/FLUPRO/flutil/fff -N hpc.f
> /home/user/Scaricati/fluka/FLUPRO/flutil/fff: 119:
> /home/user/Scaricati/fluka/FLUPRO/flutil/fff: [[: not found
> /home/user/Scaricati/fluka/FLUPRO/flutil/fff: 129:
> /home/user/Scaricati/fluka/FLUPRO/flutil/fff: g77: not found
> /home/user/Scaricati/fluka/FLUPRO/flutil/fff -N hpfor.f
> /home/user/Scaricati/fluka/FLUPRO/flutil/fff: 119:
> /home/user/Scaricati/fluka/FLUPRO/flutil/fff: [[: not found
> /home/user/Scaricati/fluka/FLUPRO/flutil/fff: 129:
> /home/user/Scaricati/fluka/FLUPRO/flutil/fff: g77: not found
> gfortran  -o actdline actdline.o
> gfortran: error: actdline.o: No such file or directory
> makefile:61: recipe for target 'actdline' failed
> make[1]: *** [actdline] Error 1
> make[1]: Leaving directory '/home/user/Scaricati/fluka/FLUPRO/flutil'
>

-- 
========================================================================
Dr. Andrea Fontana                    tel: +39 0382 987991
Istituto Nazionale                    fax: +39 0382 423241
di Fisica Nucleare
Sezione di Pavia                      e-mail: andrea.fontana_at_pv.infn.it
Via Bassi 6                           web   : www.pv.infn.it/~fontana
27100 PAVIA, Italy
========================================================================
__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Mon Apr 15 2019 - 20:41:26 CEST

This archive was generated by hypermail 2.3.0 : Mon Apr 15 2019 - 22:32:39 CEST