-- Stefan E. Mueller Department of Information Services and Computing - Computational Science and Institute of Radiation Physics Helmholtz-Zentrum Dresden-Rossendorf Tel: +49 (0351) 260 3847 Stefan.Mueller_at_hzdr.de http://www.hzdr.de Vorstand: Prof. Dr. Sebastian M. Schmidt, Dr. Diana Stiller Vereinsregister: VR 1693 beim Amtsgericht Dresden On Tue, 19 Jan 2021, Yi Zhuang wrote: > Hi, > I have updated to gfortran8.4 and set FLRFOR and FLUPRO before the make but > it still fails. > It seems that I can manually compile using gfortran-8 -o hpadd.o hpadd.f, > but even though I already set the FLUFOR, it fails to identify gfortran-8. > > echo_at_DESKTOP-UNQ1Q2G:~$ dpkg --list | grep compiler > ii  g++-8                  8.4.0-1ubuntu1~18.04       >   amd64     GNU C++ compiler > ii  gcc-8                  8.4.0-1ubuntu1~18.04       >   amd64     GNU C compiler > ii  gfortran-8               8.4.0-1ubuntu1~18.04       >   amd64     GNU Fortran compiler > ii  libllvm10:amd64             1:10.0.0-4ubuntu1~18.04.2     >  amd64     Modular compiler and toolchain technologies, runtime library > ii  libllvm6.0:amd64            1:6.0-1ubuntu2          >   amd64     Modular compiler and toolchain technologies, runtime library > ii  libxkbcommon0:amd64           0.8.2-1~ubuntu18.04.1       >  amd64     library interface to the XKB compiler - shared library > echo_at_DESKTOP-UNQ1Q2G:~$ cd fluka > echo_at_DESKTOP-UNQ1Q2G:~/fluka$ $FLUPRO > -bash: /home/echo/fluka: Is a directory > echo_at_DESKTOP-UNQ1Q2G:~/fluka$ $FLUFOR --version > GNU Fortran (Ubuntu 8.4.0-1ubuntu1~18.04) 8.4.0 > Copyright (C) 2018 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > echo_at_DESKTOP-UNQ1Q2G:~/fluka$ make > FLUPRO=/home/echo/fluka flutil/lfluka -o flukahp -m fluka > $FLUPRO = /home/echo/fluka >  now linking > /home/echo/fluka > g77 > ar x /home/echo/fluka/libflukahp.a fluka.o > rm: cannot remove 'flukahp.map': No such file or directory > g77 -mtune=nocona -msse2 -mfpmath=sse -O3 -g -fexpensive-optimizations > -funroll-loops -fstrength-reduce -Wall -fno-automatic -fno-silent > -ffortran-bounds-check -I/home/echo/fluka/flukapro > -I/home/echo/fluka/aamodmvax -v -o flukahp -Xlinker -Map -Xlinker > flukahp.map fluka.o -L/home/echo/fluka -lflukahp > flutil/lfluka: 157: flutil/lfluka: g77: not found > cd flutil; FLUPRO=/home/echo/fluka make all; cd .. > make[1]: Entering directory '/home/echo/fluka/flutil' > /home/echo/fluka/flutil/fff -N hpadd.f > /home/echo/fluka/flutil/fff: 119: /home/echo/fluka/flutil/fff: [[: not found > /home/echo/fluka/flutil/fff: 129: /home/echo/fluka/flutil/fff: g77: not > found > /home/echo/fluka/flutil/fff -N hpc.f > /home/echo/fluka/flutil/fff: 119: /home/echo/fluka/flutil/fff: [[: not found > /home/echo/fluka/flutil/fff: 129: /home/echo/fluka/flutil/fff: g77: not > found > /home/echo/fluka/flutil/fff -N hpfor.f > /home/echo/fluka/flutil/fff: 119: /home/echo/fluka/flutil/fff: [[: not found > /home/echo/fluka/flutil/fff: 129: /home/echo/fluka/flutil/fff: g77: not > found > gfortran  -o hpadd hpadd.o > make[1]: gfortran: Command not found > makefile:60: recipe for target 'hpadd' failed > make[1]: *** [hpadd] Error 127 > make[1]: Leaving directory '/home/echo/fluka/flutil' > > On Mon, Jan 18, 2021 at 3:08 AM Stefan E. Mueller <stefan.mueller_at_hzdr.de> > wrote: > Dear Yi Zhuang, > > the version of the GNU Fortran compiler is very important when > installing > FLUKA. In the Download/Section of www.fluka.org, you should > select the > package built for the Fortran compiler that is present on your > system. > > Currently (at version fluka2020.0.5), FLUKA packages do not > support > GFortran 7.3 - there are packages for GFortran 8, GFortran 9 and > GFortran > 10 provided. One should always make sure that one selects the > package that > corresponds to the gfortran compiler present on the system. > > This is hinted at in the message "Cannot read module file > ‘aamdmd.mod’ > opened at (1), because it was created by a different version of > GNU > Fortran". > > You should install gfortran8 (or higher) on your Ubuntu system > (if it is > not already there), and then build the FLUKA package. > > I hope this information helps to solve the problem. > > Stefan > > -- > Stefan E. Mueller > Department of Information Services and Computing - Computational > Science > and Institute of Radiation Physics > Helmholtz-Zentrum Dresden-Rossendorf > Tel: +49 (0351) 260 3847 > Stefan.Mueller_at_hzdr.de > http://www.hzdr.de > > Vorstand: Prof. Dr. Sebastian M. Schmidt, Dr. Diana Stiller > Vereinsregister: VR 1693 beim Amtsgericht Dresden > > On Tue, 5 Jan 2021, Yi Zhuang wrote: > > Hi, > Could anyone provide any possible solution? > The following is the error code. > > echo_at_DESKTOP-UNQ1Q2G:~/fluka$ make > cd flutil; FLUPRO=/home/echo/fluka make all; cd .. > make[1]: Entering directory '/home/echo/fluka/flutil' > /home/echo/fluka/flutil/fff -N usrsuw.f > /home/echo/fluka/flutil/fff: 119: /home/echo/fluka/flutil/fff: > [[: not > found > (USMDMD):24:9: > > Fatal Error: Cannot read module file ‘aamdmd.mod’ opened at (1), > because > it > was created by a different version of GNU Fortran > compilation terminated. > /home/echo/fluka/flutil/fff -N usrsuwev.f > /home/echo/fluka/flutil/fff: 119: /home/echo/fluka/flutil/fff: > [[: not > found > (USMDMD):24:9: > > Fatal Error: Cannot read module file ‘aamdmd.mod’ opened at (1), > because > it > was created by a different version of GNU Fortran > compilation terminated. > > > The following is gfortran and ubuntu version > > echo_at_DESKTOP-UNQ1Q2G:~$ lsb_release -a > No LSB modules are available. > Distributor ID: Ubuntu > Description: Ubuntu 18.04.5 LTS > Release: 18.04 > Codename: bionic > echo_at_DESKTOP-UNQ1Q2G:~$ gfortran --version > GNU Fortran (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 > Copyright (C) 2017 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. > There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A > PARTICULAR > PURPOSE. > > Thanks, > Yi Zhuang > > >
This archive was generated by hypermail 2.3.0 : Wed Jan 20 2021 - 11:14:14 CET