Dear lapack/scalapack user,
I have met some problem when compiling Scalapack with Scalapack_installer_0.96 on Ubuntu 10.04. I wonder if anyone could help me about it.
I have compiled Blas(with gfortran), Lapack(with gfortran), and Blacs(with mpif77, mpicc) respectively. I used the software MPICH2 for MPI library.
------------------------------------------------------------------------------------------------------------------------
cd scalapack_installer_0.96
sudo ./setup.py --prefix=/opt/scalapack --mpibindir=/opt/mpich/bin --blacslib=/usr/lib/libblacs.a --blacsf77=/usr/lib/libblacsf77.a --blacsclib=/usr/lib/libblacsc.a --blaslib=/usr/lib/atlas/libblas.a --lapacklib=/usr/lib/atlas/liblapack.a
I got:
========================================
BLAS installation/verification
========================================
Checking if provided BLAS works... yes
========================================
Lapack installation/verification
========================================
Checking if provided LAPACK works... yes
========================================
BLACS installation/verification
========================================
Checking if provided BLACS works...
BLACS: provided BLACS cannot be used! aborting...
error is:
****************************************
/tmp/ccyk8TA3.o: In function `MAIN__':
tmpf.f:(.text+0x28): undefined reference to `blacs_pinfo_'
tmpf.f:(.text+0x4a): undefined reference to `blacs_get_'
tmpf.f:(.text+0x74): undefined reference to `blacs_gridinit_'
tmpf.f:(.text+0x7f): undefined reference to `blacs_gridexit_'
collect2: ld returned 1 exit status
------------------------------------------------------------------------------------------------------
Blas and Lapack seem to work well, but Blacs fails as it counters the 'undefined reference ' problem.
I have no idea how to solve it. Any help would be appreciated.
regards
flameflash