Hi all,
I wanted to install SCALAPACK and i have installed all the necessary packages for installing it ( MPI,BLACS, LAPACK). All were successfully installed and now i was trying to install SCALAPACK.
From the SCALAPACK directory i executed the command "make" it was successful.
But there was an error when i am trying to execute the command "make exe"
This is the error that is being displayed at the terminal
[root@athena SCALAPACK]$ make exe
( cd /root/scalapack/SCALAPACK/PBLAS/TESTING; make single double complex complex16 )
make[1]: Entering directory `/root/scalapack/SCALAPACK/PBLAS/TESTING'
rm -f PB_Cwarn.c PB_Cwarn.o
ln -s /root/scalapack/SCALAPACK/PBLAS/SRC/PTOOLS/PB_Cwarn.c PB_Cwarn.c
/opt/MPICH2/bin/mpicc -c -O4 -Df77IsF2C -DNO_IEEE -DTestingPblas PB_Cwarn.c
rm -f PB_Cabort.c PB_Cabort.o
ln -s /root/scalapack/SCALAPACK/PBLAS/SRC/PTOOLS/PB_Cabort.c PB_Cabort.c
/opt/MPICH2/bin/mpicc -c -O4 -Df77IsF2C -DNO_IEEE -DTestingPblas PB_Cabort.c
/opt/MPICH2/bin/mpif77 -o /root/scalapack/SCALAPACK/TESTING/xspblas1tst psblas1tst.o psblastst.o slamch.o pblastst.o PB_Cwarn.o PB_Cabort.o /root/scalapack/SCALAPACK/libscalapack.a /root/scalapack/BLACS/LIB/blacsF77init_MPI-LINUX-0.a /root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a /root/scalapack/BLACS/LIB/blacsF77init_MPI-LINUX-0.a /usr/lib/libblas.a /opt/MPICH2/lib/libmpich.a
/usr/bin/ld: warning: i386 architecture of input file `/usr/lib/libblas.a(isamax.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/usr/lib/libblas.a(sasum.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/usr/lib/libblas.a(saxpy.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/usr/lib/libblas.a(scopy.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/usr/lib/libblas.a(sdot.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/usr/lib/libblas.a(sgemm.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/usr/lib/libblas.a(sgemv.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/usr/lib/libblas.a(sger.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/usr/lib/libblas.a(sscal.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/usr/lib/libblas.a(sswap.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/usr/lib/libblas.a(ssymm.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/usr/lib/libblas.a(ssymv.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/usr/lib/libblas.a(ssyr.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/usr/lib/libblas.a(ssyr2.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/usr/lib/libblas.a(ssyr2k.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/usr/lib/libblas.a(ssyrk.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/usr/lib/libblas.a(strmm.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/usr/lib/libblas.a(strmv.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/usr/lib/libblas.a(strsm.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/usr/lib/libblas.a(strsv.o)' is incompatible with i386:x86-64 output
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(sgesd2d_.o)(.text+0x2d): In function `sgesd2d_':
: undefined reference to `lam_mpi_float'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(sgerv2d_.o)(.text+0x37): In function `sgerv2d_':
: undefined reference to `lam_mpi_float'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(igebs2d_.o)(.text+0xc6): In function `igebs2d_':
: undefined reference to `lam_mpi_int'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(sgebs2d_.o)(.text+0xc6): In function `sgebs2d_':
: undefined reference to `lam_mpi_float'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(igebr2d_.o)(.text+0xd6): In function `igebr2d_':
: undefined reference to `lam_mpi_int'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(sgebr2d_.o)(.text+0xd6): In function `sgebr2d_':
: undefined reference to `lam_mpi_float'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(igsum2d_.o)(.text+0x147): In function `igsum2d_':
: undefined reference to `lam_mpi_int'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(igsum2d_.o)(.text+0x156): In function `igsum2d_':
: undefined reference to `lam_mpi_int'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(igsum2d_.o)(.text+0x3bb): In function `igsum2d_':
: undefined reference to `lam_mpi_sum'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(igsum2d_.o)(.text+0x4a8): In function `igsum2d_':
: undefined reference to `lam_mpi_sum'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(igamx2d_.o)(.text+0x230): In function `igamx2d_':
: undefined reference to `lam_mpi_int'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(igamx2d_.o)(.text+0x23c): In function `igamx2d_':
: undefined reference to `lam_mpi_unsigned_short'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(igamx2d_.o)(.text+0x46b): In function `igamx2d_':
: undefined reference to `lam_mpi_int'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(igamx2d_.o)(.text+0x479): In function `igamx2d_':
: undefined reference to `lam_mpi_int'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(sgamx2d_.o)(.text+0x22c): In function `sgamx2d_':
: undefined reference to `lam_mpi_float'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(sgamx2d_.o)(.text+0x238): In function `sgamx2d_':
: undefined reference to `lam_mpi_unsigned_short'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(sgamx2d_.o)(.text+0x47e): In function `sgamx2d_':
: undefined reference to `lam_mpi_float'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(sgamx2d_.o)(.text+0x48c): In function `sgamx2d_':
: undefined reference to `lam_mpi_float'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(sgamn2d_.o)(.text+0x22c): In function `sgamn2d_':
: undefined reference to `lam_mpi_float'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(sgamn2d_.o)(.text+0x238): In function `sgamn2d_':
: undefined reference to `lam_mpi_unsigned_short'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(sgamn2d_.o)(.text+0x47e): In function `sgamn2d_':
: undefined reference to `lam_mpi_float'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(sgamn2d_.o)(.text+0x48c): In function `sgamn2d_':
: undefined reference to `lam_mpi_float'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(blacs_get_.o)(.text+0xa3): In function `blacs_get__':
: undefined reference to `lam_mpi_comm_world'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(blacs_gridmap_.o)(.text+0x2bb): In function `blacs_gridmap__':
: undefined reference to `lam_mpi_float'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(blacs_gridmap_.o)(.text+0x2e0): In function `blacs_gridmap__':
: undefined reference to `lam_mpi_double'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(sgesd2d_.C)(.text+0x38): In function `Csgesd2d':
: undefined reference to `lam_mpi_float'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(sgerv2d_.C)(.text+0x38): In function `Csgerv2d':
: undefined reference to `lam_mpi_float'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(igebs2d_.C)(.text+0xb4): In function `Cigebs2d':
: undefined reference to `lam_mpi_int'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(sgebs2d_.C)(.text+0xb4): In function `Csgebs2d':
: undefined reference to `lam_mpi_float'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(igebr2d_.C)(.text+0xb6): In function `Cigebr2d':
: undefined reference to `lam_mpi_int'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(sgebr2d_.C)(.text+0xb6): In function `Csgebr2d':
: undefined reference to `lam_mpi_float'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(sgsum2d_.C)(.text+0x138): In function `Csgsum2d':
: undefined reference to `lam_mpi_float'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(sgsum2d_.C)(.text+0x144): In function `Csgsum2d':
: undefined reference to `lam_mpi_float'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(sgsum2d_.C)(.text+0x3be): In function `Csgsum2d':
: undefined reference to `lam_mpi_sum'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(sgsum2d_.C)(.text+0x494): In function `Csgsum2d':
: undefined reference to `lam_mpi_sum'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(sgamx2d_.C)(.text+0x20a): In function `Csgamx2d':
: undefined reference to `lam_mpi_float'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(sgamx2d_.C)(.text+0x216): In function `Csgamx2d':
: undefined reference to `lam_mpi_unsigned_short'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(sgamx2d_.C)(.text+0x451): In function `Csgamx2d':
: undefined reference to `lam_mpi_float'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(sgamx2d_.C)(.text+0x45f): In function `Csgamx2d':
: undefined reference to `lam_mpi_float'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(blacs_get_.C)(.text+0x7e): In function `Cblacs_get':
: undefined reference to `lam_mpi_comm_world'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(blacs_get_.C)(.text+0xa8): In function `Cblacs_get':
: undefined reference to `lam_mpi_comm_world'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(blacs_get_.C)(.text+0x19e): In function `Cblacs_get':
: undefined reference to `lam_mpi_comm_world'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(Csys2blacs_handle_.C)(.text+0x66): In function `Csys2blacs_handle':
: undefined reference to `lam_mpi_comm_world'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(Csys2blacs_handle_.C)(.text+0xb5): In function `Csys2blacs_handle':
: undefined reference to `lam_mpi_comm_world'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(BI_BlacsAbort.o)(.text+0x1e): more undefined references to `lam_mpi_comm_world' follow
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(BI_Pack.o)(.text+0x63): In function `BI_Pack':
: undefined reference to `lam_mpi_packed'
collect2: ld returned 1 exit status
make[1]: *** [/root/scalapack/SCALAPACK/TESTING/xspblas1tst] Error 1
make[1]: Leaving directory `/root/scalapack/SCALAPACK/PBLAS/TESTING'
make: *** [pblasexe] Error 2
[root@athena SCALAPACK]$
I thought it was a problem in the SCALAPACK/PBLAS/TESTING directory and i executed the command "make" in that directory. But there was a error
[root@athena TESTING]$ make
rm -f PB_Cwarn.c PB_Cwarn.o
ln -s /root/scalapack/SCALAPACK/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/scalapack/SCALAPACK/PBLAS/SRC/PTOOLS/PB_Cabort.c PB_Cabort.c
mpicc -c -O4 -Df77IsF2C -DNO_IEEE -DUsingMpiBlacs -DTestingPblas PB_Cabort.c
mpif77 -o /root/scalapack/SCALAPACK/TESTING/xspblas1tst psblas1tst.o psblastst.o slamch.o pblastst.o PB_Cwarn.o PB_Cabort.o /root/scalapack/SCALAPACK/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 /usr/lib/libblas.a /opt/MPICH2/lib/libmpich.a
g77: /root/BLACS/LIB/blacsF77init_MPI-LINUX-0.a: No such file or directory
g77: /root/BLACS/LIB/blacs_MPI-LINUX-0.a: No such file or directory
g77: /root/BLACS/LIB/blacsF77init_MPI-LINUX-0.a: No such file or directory
make: *** [/root/scalapack/SCALAPACK/TESTING/xspblas1tst] Error 1
edited the file SLmake.inc and executed the command "make" from SCALAPACK/PBLACS/TESTING directory....but there was an undefined reference error and i could'nt figure out the reason for the error.
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(sgsum2d_.C)(.text+0x3be): In function `Csgsum2d':
: undefined reference to `lam_mpi_sum'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(sgsum2d_.C)(.text+0x494): In function `Csgsum2d':
: undefined reference to `lam_mpi_sum'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(sgamx2d_.C)(.text+0x20a): In function `Csgamx2d':
: undefined reference to `lam_mpi_float'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(sgamx2d_.C)(.text+0x216): In function `Csgamx2d':
: undefined reference to `lam_mpi_unsigned_short'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(sgamx2d_.C)(.text+0x451): In function `Csgamx2d':
: undefined reference to `lam_mpi_float'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(sgamx2d_.C)(.text+0x45f): In function `Csgamx2d':
: undefined reference to `lam_mpi_float'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(blacs_get_.C)(.text+0x7e): In function `Cblacs_get':
: undefined reference to `lam_mpi_comm_world'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(blacs_get_.C)(.text+0xa8): In function `Cblacs_get':
: undefined reference to `lam_mpi_comm_world'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(blacs_get_.C)(.text+0x19e): In function `Cblacs_get':
: undefined reference to `lam_mpi_comm_world'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(Csys2blacs_handle_.C)(.text+0x66): In function `Csys2blacs_handle':
: undefined reference to `lam_mpi_comm_world'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(Csys2blacs_handle_.C)(.text+0xb5): In function `Csys2blacs_handle':
: undefined reference to `lam_mpi_comm_world'
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(BI_BlacsAbort.o)(.text+0x1e): more undefined references to `lam_mpi_comm_world' follow
/root/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a(BI_Pack.o)(.text+0x63): In function `BI_Pack':
: undefined reference to `lam_mpi_packed'
collect2: ld returned 1 exit status
make: *** [/root/scalapack/SCALAPACK/TESTING/xspblas1tst] Error 1
[root@athena TESTING]$
I would be glad if anyone could help me out in solving this problem.
Thank you,
Jagadish

