Hello.
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. 

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...". 

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:

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
(A) with 
          -DFFTW 
          -DADD_BLAS_ONE_UNDERSCORE        \
          -D"FFTWND_F77_ONE=fftwnd_f77_one" \
          -D"FFTW3D_F77_CREATE_PLAN=fftw3d_f77_create_plan"

(only part of the output: two underscores for lapack, one for fftw)

update_pot.o: In function `extrapolate_charge_':            
update_pot.o(.text+0x5d5): undefined reference to `daxpy__' 


and 

cft_fftw.o: In function `cft_2s_':                                     
cft_fftw.o(.text+0xa15): undefined reference to `fftw_f77_create_plan_'
cft_fftw.o(.text+0xaa1): undefined reference to `fftw_f77_'        
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
(B) no CPP flags for underscores and only -DFFTW (part of the output: one 
underscore for both)

dtrtri.o(.text+0x30a): undefined reference to `dtrmm_'      
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
(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 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"). 

This "-f77" option does not help.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Please help. Thank you.

Goranka Bilalbegovic

-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/attachments/20030316/25dbf943/attachment.htm 

Reply via email to