[Wien] Re: compiling Wien with lf95
Torsten Andersen
thor at physik.uni-kl.de
Thu Dec 16 13:47:06 CET 2004
This is just a wild guess, as I don't have experience with lf95 myself.
Maybe you need to add "-free" or something similar to the options in
order to avoid that the compiler assumes it is in fixed format with code
on columns 6-72 only??
Best regards,
Torsten Andersen.
Michel Jaouen wrote:
> Dear Dr. Chandra,
>
> Thank you for your attentio about my problem.
>
>> > I experience a lot of trouble when trying to compile
>> > WIEN2k_04 under Linux Red Hat 7.2 using Lahey lf95. I have try
>>
>>> several options, but it always failed. So my question is simple: has
>>> anybody been successful and what are the options to be used?
>>
>>
>> I am using Lahey lf95 with Fedora Core 1 and I have been able to compile
>> the codes without any problems using the default options. If you want to
>> compile the code for mpi, then you have to compile the atlas library
>> separately. I have used lf95 and gcc with the lapack and blas library
>> compiled in the SRC_lib directory. If you tell precisely what are the
>> compilation errors, I can try to help.
>
>
> Here is an example of the compile message error concerning spacegroup.f
>
> 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
--
Dr. Torsten Andersen TA-web: http://deep.at/myspace/
AG Hübner, Department of Physics, Kaiserslautern University
http://cmt.physik.uni-kl.de http://www.physik.uni-kl.de/
Symposium on Excited-state properties of solids, Mannheim 2005:
See: http://cmt.physik.uni-kl.de/Circular1.pdf
More information about the Wien
mailing list