compilation problem on powerpc-ibm-aix5.2.0.0--Xlf

Dear all,

I am not sure whether I am in the right forum, but... I am trying to compile a program on aix5.2.0.0 which requires the use of blas, lapack, blacs scalapack. I am getting the following error msg whcih I can't get rid off!

ld: 0711-317 ERROR: Undefined symbol: .zhegvx
ld: 0711-317 ERROR: Undefined symbol: .zlaed0
ld: 0711-317 ERROR: Undefined symbol: .zlacrm
ld: 0711-317 ERROR: Undefined symbol: .dsygvx

I think these are lapack subroutines, but can't see what the problem is?

Here also is my make file:

.SUFFIXES:
.SUFFIXES: .f .F .o .a .f90 .F90

ARCH=powerpc-ibm-aix5.2.0.0--Xlf

FPP=
FPP_OUTPUT=
FC=mpxlf90
RANLIB=ranlib

SYS=xlf

SP_KIND=1
DP_KIND=8
KINDS=$(SP_KIND) $(DP_KIND)

FFLAGS=-g -O3 -qarch=auto -qtune=auto -qcache=auto -qnolm
FPPFLAGS= -WF,-DMPI -WF,-DFC_HAVE_ABORT
CPPFLAGS= -WF, -DHAS ZHEGVX
LDFLAGS=

ARFLAGS_EXTRA=

FCFLAGS_fixed_f=-qfixed -qsuffix=cpp=f
FCFLAGS_free_f90=
FPPFLAGS_fixed_F=-qfixed -qsuffix=cpp=F
FPPFLAGS_free_F90=

BLAS_LIBS=-lblas
LAPACK_LIBS=-llapack
BLACS_LIBS=-lblacs
SCALAPACK_LIBS=-lscalapack

COMP_LIBS=

NETCDF_LIBS=
NETCDF_INTERFACE=

LIBS=$(SCALAPACK_LIBS) $(BLACS_LIBS) $(LAPACK_LIBS) $(BLAS_LIBS) $(NETCDF_LIBS)

MPI_INTERFACE=libmpi_f90.a
MPI_INCLUDE=.

Any help or advice would be greatly appreciated!!

Many thanks indeed,

Pauli.

Some thoughts/guesses:

  1. "ld" cannot find your blas/lapack etc libraries in the paths it is searching.
  2. Mismatch between 32-bit/64-bit libraries. E.g. trying to compile for one but libraries are for the other.
  3. Running "truss" on the linking process may show which paths it is searching.

Upgrade, AIX 5.2 is past the end of service date.