[Pw_forum] compilation problem

Davide Ceresoli ceresoli at sissa.it
Wed May 2 18:23:06 CEST 2007


Vivek Ranjan wrote:
> Hello !
> 
> I have been running program on a IBM power4 machine for a while. Recently,
> I discovered that the results of the programme are sensitive to the
> compilation options. I compiled the programme with three following options
> and got three different results :
> 
> (1) ./configure
> (2) ./configure LDFLAGS="-L/u2/wes/PET_HOME/MATH/IBM/lib64 -llapack -lessl
> -q64"
> (3) ./configure LDFLAGS="-L/u2/wes/PET_HOME/MATH/IBM/lib64 -lessl -llapack
> -q64"
> 
> Even with options (2) and (3), "LAPACK_LIBS    = -lessl  -llapack" is set.
> The system administrators had suggested me that I keep "-lessl" after
> "-llapack" for these machines. The problem is that for versions 3.2 and
> the latest cvs versions I can compile only with option (1). For,
> options(2) and (3) I get an error message, which runs like this :
> 
> *******************************************************************************************************************
>        ( cd clib ; if test "make" = "" ; then make  TLDEPS= all ;  else
> make  TLDEPS= all ; fi )
>        xlc_r -q64 -O2 -D__AIX -D__XLF -D__ESSL -D__MASS -D__MPI -D__PARA
> -I../include   -c c_mkdir.c
> "c_mkdir.c", line 42.5: 1506-033 (S) Function F77_FUNC_ is not valid.
> Function cannot return a function.

Can you please inspect the file include/c_defs.h ?

Here is as it should look like (for the IBM AIX!):
#define F77_FUNC(name,NAME) name
#define F77_FUNC_(name,NAME) name

Try to configure this way (instead of setting the LDFLAGS)
./configure LIBDIRS="/u2/wes/PET_HOME/MATH/IBM/lib64"

HTH

Davide



More information about the users mailing list