<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<META content="MSHTML 6.00.2800.1141" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello.</FONT></DIV>
<DIV><FONT face=Arial size=2>I would like to compile PWscf 1.2.0 for Linux (Red
Hat and Mandrake) for both a single processor and the Linux cluster using NAG
compiler F95, version 4.2. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>As for now, I have chosen several compiler options,
and have to make minor changes in some routines to prevent the
error messages "Implicit type...". </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have now the problems at the stage
of linking the lapack and fftw libraries. The 'nm' command gives that one
underscore is present for lapack (same for lapack compiled with g77 and NAG
f95) and two underscores are present for fftw (compiled with g77). The
option "-DADD_BLAS_ONE_UNDERSCORE" does not help. I was trying to put something
in make.sys and machine.h, but nothing works. Here is what I
have as a result:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>(A) with </FONT></DIV>
<DIV><FONT face=Arial
size=2>
-DFFTW </FONT></DIV>
<DIV><FONT face=Arial
size=2>
-DADD_BLAS_ONE_UNDERSCORE
\<BR>
-D"FFTWND_F77_ONE=fftwnd_f77_one"
\<BR>
-D"FFTW3D_F77_CREATE_PLAN=fftw3d_f77_create_plan"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>(only part of the output: two underscores for
lapack, one for fftw)</FONT></DIV></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>update_pot.o: In function
`extrapolate_charge_':
<BR>update_pot.o(.text+0x5d5): undefined reference to `daxpy__'
<BR><BR></FONT><FONT face=Arial size=2></FONT></DIV>
<DIV><FONT face=Arial size=2>and </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>cft_fftw.o: In function
`cft_2s_':
<BR>cft_fftw.o(.text+0xa15): undefined reference to
`fftw_f77_create_plan_'<BR>cft_fftw.o(.text+0xaa1): undefined reference to
`fftw_f77_' </FONT></DIV>
<DIV><FONT face=Arial
size=2>------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2>(B) no CPP flags for underscores and only -DFFTW
(part of the output: one underscore for both)</FONT></DIV>
<DIV><FONT face=Arial size=2><BR>dtrtri.o(.text+0x30a): undefined reference to
`dtrmm_' </FONT></DIV>
<DIV><FONT face=Arial
size=2>------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2>(C) The NAG compiler has the option "-f77" (man
f95: "Make external linkages compatible with the native f77
compiler where possible. On AIX, HP-UX and VMS, this suppresses the
trailing underscore for those external names that do not clash with C language
keywords </FONT><FONT face=Arial size=2>or library functions.")(FAQ for NAG f95:
"NAGWare f95 has limited binary compatibility with g77/f2c compilers, on Linux
-f77 option must be used if any procedure names contain underscores").
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This "-f77" option does not help.</FONT></DIV>
<DIV><FONT face=Arial
size=2>-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Please help. Thank you.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Goranka Bilalbegovic</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV></BODY></HTML>