[Wien] Compiler error

Gavin Abo gsabo at crimson.ua.edu
Sat Dec 23 16:45:31 CET 2017


As the error messages say, -fsloppy-char and -freal-loops are not 
recognized as flags by gfortran.  So try removing them in the siteconfig 
compiler settings.

At https://www.myroms.org/forum/viewtopic.php?f=31&t=1047&view=next , it 
says:

The -ffree-line-length-huge option is g95-specific. The gfortran 
counterpart is -ffree-line-length-none.

The g95 compiler has a -ffree-line-length-huge flag: 
http://www.g95.org/docs.shtml

The gfortran compiler has -ffree-line-length-none: 
https://gcc.gnu.org/onlinedocs/gfortran/Fortran-Dialect-Options.html#Fortran-Dialect-Options

So try replacing -ffree-line-length-huge with -ffree-line-length-none [ 
https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg12387.html 
].

On 12/23/2017 2:43 AM, GOUTAM KUMAR GUPTA wrote:
>
> Dear wien2k user
>
> Kindly suggest to resolve this issue during installation of wien 2k 
> 17.1 in my computer which has i5 processor with 8Gb ram. I am using 
> Gfortran compiler.
>
> if [ -f .parallel ]; then \
>            rm -f .parallel modules.o W2kinit.o fft_modules.o 
> reallocate.o energy.o getff1.o getfft.o gtfnam.o lapw0.o outerr.o 
> rean0.o rean3.o rean4.o setff1.o setff2.o setfft.o xcpot1.o xcpot3.o 
> eramps.o  *.mod; \
>         fi
> touch .sequential
> make ./lapw0 FORT=gfortran FFLAGS=' -ffree-form 
> -ffree-line-length-huge -fsloppy-char -O2 -fno-second-underscore 
> -freal-loops  '
> make[1]: Entering directory `/home/student/wien2k/SRC_lapw0'
> gfortran -ffree-form -ffree-line-length-huge -fsloppy-char -O2 
> -fno-second-underscore -freal-loops   -c modules.F
> gfortran: error: argument to ‘-ffree-line-length-’ should be a 
> non-negative integer
> gfortran: error: unrecognized command line option ‘-fsloppy-char’
> gfortran: error: unrecognized command line option ‘-freal-loops’
> make[1]: *** [modules.o] Error 1
> make[1]: Leaving directory `/home/student/wien2k/SRC_lapw0'
> make: *** [seq] Error 2
> make: *** No rule to make target `complex'.  Stop.
> compile.msg (END)
>
>
> Thanks
>
> -- 
> Goutam Kumar Gupta
> Research scholar
> IIT Jodhpur
> Mob:8561995547
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://zeus.theochem.tuwien.ac.at/pipermail/wien/attachments/20171223/dc1ed9b9/attachment.html>


More information about the Wien mailing list