Re: [Wien] Compiler error

2017-12-23 Thread Gavin Abo
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=1047=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
___
Wien mailing list
Wien@zeus.theochem.tuwien.ac.at
http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien
SEARCH the MAILING-LIST at:  
http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html


[Wien] Compiler error

2017-12-23 Thread GOUTAM KUMAR GUPTA
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
___
Wien mailing list
Wien@zeus.theochem.tuwien.ac.at
http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien
SEARCH the MAILING-LIST at:  
http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html