[Wien] Re: compiling Wien with lf95

Dr. Sharat Chandra sharat at igcar.ernet.in
Fri Dec 17 05:59:07 CET 2004


Dear Michel

Most likely the problem is that you are not using the --nfix option. The 
problem is that if the file extension is *.f, lf95 take it to be a fixed 
format file and we have to tell it that it is a free format F90 file that 
we are trying to compile. By default the options are:

FPOPT:--nfix -O
LDFLAGS:-L../SRC_lib
DPARALLEL:'-DParallel'
R_LIBS:-llapack_lapw -lblas_lapw -llapack_lapw -lblas_lapw
RP_LIBS:-L /usr/local/SCALAPACK -L /usr/local/BLACS/LIB -lpblas -lredist -ltools -lscalapack -lfblacs -lblacs -lmpi

You can check the current options by reading the OPTIONS file in the 
wien2k root directory.

So either use the siteconfig_lapw script to update your options, or use a 
fresh directory to set up the wien code by first gunzipping and untarring 
the files in that directory and then running the siteconfig_lapw script. 
You will have to run the userconfig_lapw script after the compilation is 
over. 

Hope this solves the problem.
Regards
Sharat Chandra

On Thu, 16 Dec 2004, Michel Jaouen wrote:

> rm -f spacegroup.o
> clean
> lf95 -c -O spacegroup.f
>    1110-S: "param.inc", line 3, column 64: Missing name.
>    1302-S: "param.inc", line 4: Not a valid FORTRAN statement.
>    1110-S: "param.inc", line 6, column 67: Missing name.
>    1302-S: "param.inc", line 7: Not a valid FORTRAN statement.
>    1302-S: "param.inc", line 8: Not a valid FORTRAN statement.
>    1302-S: "param.inc", line 9: Not a valid FORTRAN statement.
>    1302-S: "param.inc", line 10: Not a valid FORTRAN statement.
>    2005-W: "spacegroup.f", line 27: ndim is used but never set.
>    1104-S: "spacegroup.f", line 47, column 73: Invalid delimiter.
>    1302-S: "spacegroup.f", line 48: Not a valid FORTRAN statement.
>    1110-S: "param.inc", line 3, column 64: Missing name.
>    1302-S: "param.inc", line 4: Not a valid FORTRAN statement.
>    1110-S: "param.inc", line 6, column 67: Missing name.
>    1302-S: "param.inc", line 7: Not a valid FORTRAN statement.
>    1302-S: "param.inc", line 8: Not a valid FORTRAN statement.
>    1302-S: "param.inc", line 9: Not a valid FORTRAN statement.
>    1302-S: "param.inc", line 10: Not a valid FORTRAN statement.
>    1113-S: "spacegroup.f", line 135, column 73: Syntax error in data 
> statement value list.
>    1302-S: "spacegroup.f", line 136: Not a valid FORTRAN statement.
>    1113-S: "spacegroup.f", line 137, column 73: Syntax error in data 
> statement value list.
>    1302-S: "spacegroup.f", line 138: Not a valid FORTRAN statement.
>    1113-S: "spacegroup.f", line 175, column 73: Syntax error in data 
> statement value list.
>    1302-S: "spacegroup.f", line 176: Not a valid FORTRAN statement.
>    1113-S: "spacegroup.f", line 177, column 73: Syntax error in data 
> statement value list.
>    1302-S: "spacegroup.f", line 178: Not a valid FORTRAN statement.
>    1110-S: "param.inc", line 3, column 64: Missing name.
>    1302-S: "param.inc", line 4: Not a valid FORTRAN statement.
>    1110-S: "param.inc", line 6, column 67: Missing name.
>    1302-S: "param.inc", line 7: Not a valid FORTRAN statement.
>    1302-S: "param.inc", line 8: Not a valid FORTRAN statement.
>    1302-S: "param.inc", line 9: Not a valid FORTRAN statement.
>    1302-S: "param.inc", line 10: Not a valid FORTRAN statement.
>    1233-S: "spacegroup.f", line 228, column 73: Invalid statement 
> specified in IF statement.
>    1302-S: "spacegroup.f", line 229: Not a valid FORTRAN statement.
>    1233-S: "spacegroup.f", line 236, column 71: Invalid statement 
> specified in IF statement.
>    2005-W: "spacegroup.f", line 266: ndim is used but never set.
>    1104-S: "spacegroup.f", line 267, column 22: Invalid delimiter.
>    1130-S: "spacegroup.f", line 299, column 7: ELSE statement appears 
> in invalid position.
>    1104-S: "spacegroup.f", line 306, column 20: Invalid delimiter.
>    1130-S: "spacegroup.f", line 308, column 7: END IF statement 
> appears in invalid position.
>    1035-S: "spacegroup.f", line 325, column 64: Invalid operator.
>    1302-S: "spacegroup.f", line 326: Not a valid FORTRAN statement.
>    1302-S: "spacegroup.f", line 327: Not a valid FORTRAN statement.
>    1110-S: "param.inc", line 3, column 64: Missing name.
>    1302-S: "param.inc", line 4: Not a valid FORTRAN statement.
>    1110-S: "param.inc", line 6, column 67: Missing name.
>    1302-S: "param.inc", line 7: Not a valid FORTRAN statement.
>    1302-S: "param.inc", line 8: Not a valid FORTRAN statement.
>    1302-S: "param.inc", line 9: Not a valid FORTRAN statement.
>    1302-S: "param.inc", line 10: Not a valid FORTRAN statement.
>    1035-S: "spacegroup.f", line 394, column 59: Invalid operator.
>    1302-S: "spacegroup.f", line 395: Not a valid FORTRAN statement.
>    0102-U: "spacegroup.f", line 395: Compilation terminated - too many 
> serious errors.
> Encountered 51 errors, 2 warnings in file spacegroup.f.
> make: *** [spacegroup.o] Error 1
> 
> In fact it is the same for all files: it seems that the compiler 
> doesn't recognize the file as being Fortran! Looking at the .f file 
> under vi, I don't see anything special.
> 
> Any hints?
> 
> Regards
> 
> Michel Jaouen
> 




More information about the Wien mailing list