Scalapack-1.8.0 undefined reference problem

Post here if you have a question about linking your program with LAPACK or ScaLAPACK library

Scalapack-1.8.0 undefined reference problem

Postby prabhuchakra » Mon Feb 27, 2012 6:38 am

Hi,

I'm trying to compile sclapack-1.8.0 and while doing doing "make exe", i'm getting the following error.

/lustre/home/murugan/sgi/scalapack-1.8.0/libscalapack.a(pssyev.o): In function `pssyev_':
pssyev.f:(.text+0xe5c): undefined reference to `psgemr2d_'
/lustre/home/murugan/sgi/scalapack-1.8.0/libscalapack.a(pssyntrd.o): In function `pssyntrd_':
pssyntrd.f:(.text+0x717): undefined reference to `pstrmr2d_'
pssyntrd.f:(.text+0x8f0): undefined reference to `pstrmr2d_'
/lustre/home/murugan/sgi/scalapack-1.8.0/libscalapack.a(pslamr1d.o): In function `pslamr1d_':
pslamr1d.f:(.text+0xca): undefined reference to `psgemr2d_'
make[1]: *** [/lustre/home/murugan/sgi/scalapack-1.8.0/TESTING/xssep] Error 1
make[1]: Leaving directory `/lustre/home/murugan/sgi/scalapack-1.8.0/TESTING/EIG'
make: *** [scalapackexe] Error 2[/b]


With reference to your old post, i tried doing "make lib" or "make redistlib" and then "make exe" which doesn't work.

Please find the below SLmake.inc for your reference and appreciate your help.

====================================================================================================

SHELL = /bin/sh
#
# The complete path to the top level of ScaLAPACK directory, usually
# $(HOME)/SCALAPACK
#
home = /lustre/home/murugan/sgi/scalapack-1.8.0
#
# The platform identifier to suffix to the end of library names
#
PLAT = LINUX
#
# BLACS setup. All version need the debug level (0 or 1),
# and the directory where the BLACS libraries are
#
BLACSDBGLVL = 0
BLACSdir = /lustre/home/murugan/sgi/BLACS/LIB
#
# MPI setup; tailor to your system if using MPIBLACS
# Will need to comment out these 6 lines if using PVM
#
USEMPI = -DUsingMpiBlacs
SMPLIB = /lustre/home/murugan/sgi/mpich2/lib/libmpich.a
BLACSFINIT = $(BLACSdir)/blacsF77init_MPI-$(PLAT)-$(BLACSDBGLVL).a
BLACSCINIT = $(BLACSdir)/blacsCinit_MPI-$(PLAT)-$(BLACSDBGLVL).a
BLACSLIB = $(BLACSdir)/blacs_MPI-$(PLAT)-$(BLACSDBGLVL).a
TESTINGdir = /lustre/home/murugan/sgi/scalapack-1.8.0/TESTING

#
# PVMBLACS setup, uncomment next 6 lines if using PVM
#
#USEMPI =
#SMPLIB = $(PVM_ROOT)/lib/$(PLAT)/libpvm3.a
#BLACSFINIT =
#BLACSCINIT =
#BLACSLIB = $(BLACSdir)/blacs_PVM-$(PLAT)-$(BLACSDBGLVL).a
#TESTINGdir = $(HOME)/pvm3/bin/$(PLAT)

CBLACSLIB = $(BLACSCINIT) $(BLACSLIB) $(BLACSCINIT)
FBLACSLIB = $(BLACSFINIT) $(BLACSLIB) $(BLACSFINIT)

#
# The directories to find the various pieces of ScaLapack
#
PBLASdir = /lustre/home/murugan/sgi/scalapack-1.8.0/PBLAS
SRCdir = /lustre/home/murugan/sgi/scalapack-1.8.0/SRC
TESTdir = /lustre/home/murugan/sgi/scalapack-1.8.0/TESTING
PBLASTSTdir = $(TESTINGdir)
TOOLSdir = /lustre/home/murugan/sgi/scalapack-1.8.0/TOOLS
REDISTdir = /lustre/home/murugan/sgi/scalapack-1.8.0/REDIST
REDISTTSTdir = $(TESTINGdir)
#
# The fortran and C compilers, loaders, and their flags
#
F77 = mpif77
CC = mpicc
NOOPT =
F77FLAGS = -funroll-all-loops -O3 $(NOOPT)
DRVOPTS = $(F77FLAGS)
CCFLAGS = -O4
SRCFLAG =
F77LOADER = $(F77)
CCLOADER = $(CC)
F77LOADFLAGS =
CCLOADFLAGS =
#
# C preprocessor defs for compilation
# (-DNoChange, -DAdd_, -DUpCase, or -Df77IsF2C)
#
CDEFS = -DF77lib -DNO_IEEE $(USEMPI)
#
# The archiver and the flag(s) to use when building archive (library)
# Also the ranlib routine. If your system has no ranlib, set RANLIB = echo
#
ARCH = ar
ARCHFLAGS = cr
RANLIB = ranlib
#
# The name of the libraries to be created/linked to
#
SCALAPACKLIB = /lustre/home/murugan/sgi/scalapack-1.8.0/libscalapack.a
BLASLIB = /lustre/home/murugan/sgi/lapack-3.3.1/blas_LINUX.a
LAPACKLIB = /lustre/home/murugan/sgi/lapack-3.3.1/lapack_LINUX.a
#
PBLIBS = $(SCALAPACKLIB) $(FBLACSLIB) $(LAPACKLIB) $(BLASLIB) $(SMPLIB)
PRLIBS = $(SCALAPACKLIB) $(CBLACSLIB) $(SMPLIB)
RLIBS = $(SCALAPACKLIB) $(FBLACSLIB) $(CBLACSLIB) $(LAPACKLIB) $(BLASLIB) $(SMPLIB)
LIBS = $(PBLIBS)
================================================================================================================

Mpi used - MPICH2

Regards,
N.Chakravarthy.
prabhuchakra
 
Posts: 1
Joined: Mon Feb 27, 2012 6:26 am

Re: Scalapack-1.8.0 undefined reference problem

Postby admin » Mon Feb 27, 2012 3:14 pm

Hi,
could you download the latest ScaLAPACK release and try again.
ScaLAPACK 2.0.1 is available at http://www.netlib.org/scalapack/
Julie
admin
Site Admin
 
Posts: 501
Joined: Wed Dec 08, 2004 7:07 pm


Return to Linking Problem

Who is online

Users browsing this forum: chengjun583 and 1 guest