The LAPACK forum has moved to https://github.com/Reference-LAPACK/lapack/discussions.

Installing Scalapack: problem with "make exe"

Open discussion regarding features, bugs, issues, vendors, etc.

Installing Scalapack: problem with "make exe"

Postby alex » Fri Feb 01, 2008 12:55 pm

Hi,
I am trying to install scalapack. The "make" command was successful.
I have the following error when i am running "make exe" command:


[root@localhost scalapack-1.8.0]#make exe
( cd /root/numerical/scalapack-1.8.0/PBLAS/TESTING; make single double complex complex16 )
make[1]: Entering directory `/root/numerical/scalapack-1.8.0/PBLAS/TESTING'
rm -f PB_Cwarn.c PB_Cwarn.o
ln -s /root/numerical/scalapack-1.8.0/PBLAS/SRC/PTOOLS/PB_Cwarn.c PB_Cwarn.c
mpicc -c -O4 -Df77IsF2C -DNO_IEEE -DUsingMpiBlacs -DTestingPblas PB_Cwarn.c
rm -f PB_Cabort.c PB_Cabort.o
ln -s /root/numerical/scalapack-1.8.0/PBLAS/SRC/PTOOLS/PB_Cabort.c PB_Cabort.c
mpicc -c -O4 -Df77IsF2C -DNO_IEEE -DUsingMpiBlacs -DTestingPblas PB_Cabort.c
mpif77 -o /root/numerical/scalapack-1.8.0/TESTING/xspblas1tst psblas1tst.o psblastst.o slamch.o pblastst.o PB_Cwarn.o PB_Cabort.o /root/numerical/scalapack-1.8.0/libscalapack.a /root/BLACS/LIB/blacsF77init_MPI-LINUX-0.a /root/BLACS/LIB/blacs_MPI-LINUX-0.a /root/BLACS/LIB/blacsF77init_MPI-LINUX-0.a /root/local/atlas/lib/liblapack.a /root/local/atlas/lib/libf77blas.a /usr/local/lib/libmpich.a
/root/local/atlas/lib/libf77blas.a(ATL_F77wrap_sscal.o): In function `atl_f77wrap_sscal__':ATL_F77wrap_scal.c:(.text+0x3e): référence indéfinie vers « ATL_sscal »
/root/local/atlas/lib/libf77blas.a(ATL_F77wrap_sasum.o): In function `atl_f77wrap_sasum__':ATL_F77wrap_asum.c:(.text+0x34): référence indéfinie vers « ATL_sasum »
/root/local/atlas/lib/libf77blas.a(ATL_F77wrap_isamax.o): In function `atl_f77wrap_isamax__':ATL_F77wrap_amax.c:(.text+0x36): référence indéfinie vers « ATL_isamax »
/root/local/atlas/lib/libf77blas.a(ATL_F77wrap_saxpy.o): In function `atl_f77wrap_saxpy__':ATL_F77wrap_axpy.c:(.text+0x63): référence indéfinie vers « ATL_saxpy »
:ATL_F77wrap_axpy.c:(.text+0xb9): référence indéfinie vers « ATL_saxpy »
:ATL_F77wrap_axpy.c:(.text+0xfc): référence indéfinie vers « ATL_saxpy »
/root/local/atlas/lib/libf77blas.a(ATL_F77wrap_scopy.o): In function `atl_f77wrap_scopy__':ATL_F77wrap_copy.c:(.text+0x55): référence indéfinie vers « ATL_scopy »
:ATL_F77wrap_copy.c:(.text+0x9f): référence indéfinie vers « ATL_scopy »
:ATL_F77wrap_copy.c:(.text+0xd7): référence indéfinie vers « ATL_scopy »
/root/local/atlas/lib/libf77blas.a(ATL_F77wrap_sswap.o): In function `atl_f77wrap_sswap__':ATL_F77wrap_swap.c:(.text+0x55): référence indéfinie vers « ATL_sswap »
:ATL_F77wrap_swap.c:(.text+0x9f): référence indéfinie vers « ATL_sswap »
:ATL_F77wrap_swap.c:(.text+0xd7): référence indéfinie vers « ATL_sswap »
/root/local/atlas/lib/libf77blas.a(ATL_F77wrap_sdot.o): In function `atl_f77wrap_sdot__':ATL_F77wrap_dot.c:(.text+0x55): référence indéfinie vers « ATL_sdot »
:ATL_F77wrap_dot.c:(.text+0xa2): référence indéfinie vers « ATL_sdot »
:ATL_F77wrap_dot.c:(.text+0xe2): référence indéfinie vers « ATL_sdot »
/root/local/atlas/lib/libf77blas.a(ATL_F77wrap_sgemv.o): In function `atl_f77wrap_sgemv__':ATL_F77wrap_gemv.c:(.text+0xaf): référence indéfinie vers « ATL_sgemv »
:ATL_F77wrap_gemv.c:(.text+0x135): référence indéfinie vers « ATL_sgemv »
/root/local/atlas/lib/libf77blas.a(ATL_F77wrap_sger.o): In function `atl_f77wrap_sger__':ATL_F77wrap_ger.c:(.text+0x82): référence indéfinie vers « ATL_sger »
/root/local/atlas/lib/libf77blas.a(ATL_F77wrap_ssymv.o): In function `atl_f77wrap_ssymv__':ATL_F77wrap_symv.c:(.text+0x88): référence indéfinie vers « ATL_ssymv »
/root/local/atlas/lib/libf77blas.a(ATL_F77wrap_ssyr.o): In function `atl_f77wrap_ssyr__':ATL_F77wrap_syr.c:(.text+0x60): référence indéfinie vers « ATL_ssyr »
/root/local/atlas/lib/libf77blas.a(ATL_F77wrap_ssyr2.o): In function `atl_f77wrap_ssyr2__':ATL_F77wrap_syr2.c:(.text+0x82): référence indéfinie vers « ATL_ssyr2 »
/root/local/atlas/lib/libf77blas.a(ATL_F77wrap_strmv.o): In function `atl_f77wrap_strmv__':ATL_F77wrap_trmv.c:(.text+0x60): référence indéfinie vers « ATL_strmv »
/root/local/atlas/lib/libf77blas.a(ATL_F77wrap_strsv.o): In function `atl_f77wrap_strsv__':ATL_F77wrap_trsv.c:(.text+0x60): référence indéfinie vers « ATL_strsv »
/root/local/atlas/lib/libf77blas.a(ATL_F77wrap_sgemm.o): In function `atl_f77wrap_sgemm__':ATL_F77wrap_gemm.c:(.text+0xa7): référence indéfinie vers « ATL_sgemm »
:ATL_F77wrap_gemm.c:(.text+0x14f): référence indéfinie vers « ATL_ssyrk »
:ATL_F77wrap_gemm.c:(.text+0x17a): référence indéfinie vers « ATL_ssyreflect »
/root/local/atlas/lib/libf77blas.a(ATL_F77wrap_ssymm.o): In function `atl_f77wrap_ssymm__':ATL_F77wrap_symm.c:(.text+0x81): référence indéfinie vers « ATL_ssymm »
/root/local/atlas/lib/libf77blas.a(ATL_F77wrap_ssyr2k.o): In function `atl_f77wrap_ssyr2k__':ATL_F77wrap_syr2k.c:(.text+0x81): référence indéfinie vers « ATL_ssyr2k »
/root/local/atlas/lib/libf77blas.a(ATL_F77wrap_ssyrk.o): In function `atl_f77wrap_ssyrk__':ATL_F77wrap_syrk.c:(.text+0x6f): référence indéfinie vers « ATL_ssyrk »
/root/local/atlas/lib/libf77blas.a(ATL_F77wrap_strmm.o): In function `atl_f77wrap_strmm__':ATL_F77wrap_trmm.c:(.text+0x79): référence indéfinie vers « ATL_strmm »
/root/local/atlas/lib/libf77blas.a(ATL_F77wrap_strsm.o): In function `atl_f77wrap_strsm__':ATL_F77wrap_trsm.c:(.text+0x79): référence indéfinie vers « ATL_strsm »
collect2: ld a retourné 1 code d'état d'exécution
make[1]: *** [/root/numerical/scalapack-1.8.0/TESTING/xspblas1tst] Erreur 1
make[1]: Leaving directory `/root/numerical/scalapack-1.8.0/PBLAS/TESTING'
make: *** [pblasexe] Erreur 2
[root@localhost scalapack-1.8.0]#




and here is my SLmake.inc file:

############################################################################
#
# Program: ScaLAPACK
#
# Module: SLmake.inc
#
# Purpose: Top-level Definitions
#
# Creation date: February 15, 2000
#
# Modified:
#
# Send bug reports, comments or suggestions to scalapack@cs.utk.edu
#
############################################################################
#
SHELL = /bin/sh
#
# The complete path to the top level of ScaLAPACK directory, usually
# $(HOME)/SCALAPACK
#
home = /root/numerical/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 = $(HOME)/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 = /usr/local/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 = $(home)/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 = $(home)/PBLAS
SRCdir = $(home)/SRC
TESTdir = $(home)/TESTING
PBLASTSTdir = $(TESTINGdir)
TOOLSdir = $(home)/TOOLS
REDISTdir = $(home)/REDIST
REDISTTSTdir = $(TESTINGdir)
#
# The fortran and C compilers, loaders, and their flags
#
F77 = mpif77
CC = mpicc
NOOPT = -m32
F77FLAGS = -m32
DRVOPTS = $(F77FLAGS)
CCFLAGS = -O4
SRCFLAG =
F77LOADER = $(F77)
CCLOADER = $(CC)
F77LOADFLAGS =
CCLOADFLAGS =
#
# C preprocessor defs for compilation
# (-DNoChange, -DAdd_, -DUpCase, or -Df77IsF2C)
#
CDEFS = -Df77IsF2C -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 = $(home)/libscalapack.a
BLASLIB = /root/local/atlas/lib/libf77blas.a
LAPACKLIB = /root/local/atlas/lib/liblapack.a
#
PBLIBS = $(SCALAPACKLIB) $(FBLACSLIB) $(LAPACKLIB) $(BLASLIB) $(SMPLIB)
PRLIBS = $(SCALAPACKLIB) $(CBLACSLIB) $(SMPLIB)
RLIBS = $(SCALAPACKLIB) $(FBLACSLIB) $(CBLACSLIB) $(LAPACKLIB) $(BLASLIB) $(SMPLIB)
LIBS = $(PBLIBS)



I would tell you that I obtained Blas automatically by installing Atlas.
therefore, I set the BLASLIB variable to /root/local/atlas/lib/libf77blas.a
and not to libblas.a
because Atlas didn't create the libblas.a library.

I would be glad if i can get some help regarding this error.

Thanks in advance,
alex
alex
 
Posts: 8
Joined: Sun Jan 27, 2008 8:58 pm

Postby Julie » Fri Feb 01, 2008 1:02 pm

Alex,
BLASLIB = /root/local/atlas/lib/libf77blas.a


should be set to :
BLASLIB = /root/local/atlas/lib/libf77blas.a /root/local/atlas/lib/libcblas.a /root/local/atlas/lib/libatlas.a


just for your information, we released a BLACS/ScaLAPACK installer that is supposed hopefully to install everything correctly on your machine.
You can get it form the Netlib website: http://www.netlib.org/scalapack/
hope it helps
Julie
Julie
 
Posts: 299
Joined: Wed Feb 23, 2005 12:32 am
Location: ICL, Denver. Colorado

done

Postby alex » Fri Feb 01, 2008 1:17 pm

Thank you very much Julie, you are so helpful

alex
alex
 
Posts: 8
Joined: Sun Jan 27, 2008 8:58 pm


Return to User Discussion

Who is online

Users browsing this forum: No registered users and 5 guests