From: sss2 on
Hello Jeff

I am compiling one of DOD benchmark called OOCORE.It needs BLAS BLACS
and SCALPACK lib.
While building using mpif77 It is giving me following errors.

Although I have blacks and scalpack both build successfully using
mpich.

I saw your name if few old post and I thought of contacting you if you
can put some light on this...as I am kind of stuck on this for long
time now.Thanks




{{{
home/ssikachi/src/cdc/mpich/trunk/bin/mpicc -c -DNoChange
-DUsingMpiBlacs -O4 -ggdb3 lard.c
/home/ssikachi/src/cdc/mpich/trunk/bin/mpicc -c -DNoChange
-DUsingMpiBlacs -O4 -ggdb3 lawr.c
/home/ssikachi/src/cdc/mpich/trunk/bin/mpicc -c -DNoChange
-DUsingMpiBlacs -O4 -ggdb3 bitvec.c
/home/ssikachi/src/cdc/mpich/trunk/bin/mpicc -c -DNoChange
-DUsingMpiBlacs -O4 -ggdb3 dlseek.c
/home/ssikachi/src/cdc/mpich/trunk/bin/mpicc -c -DNoChange
-DUsingMpiBlacs -O4 -ggdb3 Findex2.c
/home/ssikachi/src/cdc/mpich/trunk/bin/mpicc -c -DNoChange
-DUsingMpiBlacs -O4 -ggdb3 laread.c
/home/ssikachi/src/cdc/mpich/trunk/bin/mpicc -c -DNoChange
-DUsingMpiBlacs -O4 -ggdb3 lawrite.c
/home/ssikachi/src/cdc/mpich/trunk/bin/mpicc -c -DNoChange
-DUsingMpiBlacs -O4 -ggdb3 laopen.c
/home/ssikachi/src/cdc/mpich/trunk/bin/mpicc -c -DNoChange
-DUsingMpiBlacs -O4 -ggdb3 laclose.c
/home/ssikachi/src/cdc/mpich/trunk/bin/mpicc -c -DNoChange
-DUsingMpiBlacs -O4 -ggdb3 laio_info.c
/home/ssikachi/src/cdc/mpich/trunk/bin/mpif77
/usr/lib64/libgfortran.so.0 -o ../bin/testzdriver \
testzdriver.o \
driverinfo.o \
pgztrsm.o pfzmatgen.o pfzlaprnt.o pfzlaprnt2.o pfzgemm.o
pfztrsm.o pfzlatrsm.o pfzgeqrf.o pfzqrfact2.o pfzqrapply.o pfzgeqrs.o
pfzqrsolve.o pfzunmqr.o pfzcopytau.o pfzgetrf.o pfzgetf2.o pfzoclu.o
pfzgelup.o pfzgetrs.o pfzlusolve.o pfzpotrf.o pfzpotrs.o pfzchfact.o
pfzuchfact.o pfzlchfact.o pishift.o pdshift.o psshift.o pzshift.o
pcshift.o pcbmatgen.o pcmatgen.o pdbmatgen.o pdmatgen.o pmatgeninc.o
psbmatgen.o psmatgen.o pzbmatgen.o pzmatgen.o setupblacs.o fpcgemr2d.o
fpdgemr2d.o fpsgemr2d.o fpzgemr2d.o fpigemr2d.o checkalign.o assert.o
ifill.o icopy.o dfill.o sfill.o cfill.o zfill.o numrocinv.o numroc2.o
chcalsize.o calcolsize.o pfdescinit.o pfmaxsize.o pfmax2size.o
mapblock.o lard.o lawr.o bitvec.o dlseek.o Findex2.o laread.o lawrite.o
laopen.o laclose.o laio_info.o \
/home/ssikachi/dodapps/SCALAPACK/libscalapack.a
/home/ssikachi/dodapps/BLACS/LIB/blacsF77init_MPI-Linux-0.a
/home/ssikachi/dodapps/BLACS/LIB/blacs_MPI-Linux-0.a
/nfs/share/mikehpl/libgoto_opt64-r0.94.so
-L/home/ssikachi/src/cdc/mpich/trunk/lib -lmpich
testzdriver.o(.text+0x2f): In function `MAIN__':
testzdriver.f: undefined reference to `blacs_pinfo_'
testzdriver.o(.text+0x476):testzdriver.f: undefined reference to
`blacs_gridexit_'
testzdriver.o(.text+0x4f4):testzdriver.f: undefined reference to
`blacs_exit_'
testzdriver.o(.text+0x524):testzdriver.f: undefined reference to
`blacs_get_'
testzdriver.o(.text+0x550):testzdriver.f: undefined reference to
`blacs_gridinit_'
testzdriver.o(.text+0x57f):testzdriver.f: undefined reference to
`blacs_gridinfo_'
testzdriver.o(.text+0x7d4):testzdriver.f: undefined reference to
`igsum2d_'
testzdriver.o(.text+0xbdc):testzdriver.f: undefined reference to
`igsum2d_'
testzdriver.o(.text+0xd9d):testzdriver.f: undefined reference to
`igsum2d_'
testzdriver.o(.text+0x1025):testzdriver.f: undefined reference to
`igsum2d_'
testzdriver.o(.text+0x10d9):testzdriver.f: undefined reference to
`igsum2d_'
testzdriver.o(.text+0x130a):testzdriver.f: more undefined references to
`igsum2d_' follow
testzdriver.o(.text+0x1db7): In function `MAIN__':
testzdriver.f: undefined reference to `igamn2d_'
testzdriver.o(.text+0x1e73):testzdriver.f: undefined reference to
`laclose_'
testzdriver.o(.text+0x1ea7):testzdriver.f: undefined reference to
`laclose_'
testzdriver.o(.text+0x1f33):testzdriver.f: undefined reference to
`igsum2d_'
testzdriver.o(.text+0x2274):testzdriver.f: undefined reference to
`igsum2d_'
testzdriver.o(.text+0x2422):testzdriver.f: undefined reference to
`igamn2d_'
testzdriver.o(.text+0x2841):testzdriver.f: undefined reference to
`pdznrm2_'
testzdriver.o(.text+0x28a0):testzdriver.f: undefined reference to
`dgamx2d_'
testzdriver.o(.text+0x2b95):testzdriver.f: undefined reference to
`igsum2d_'
testzdriver.o(.text+0x2d4c):testzdriver.f: undefined reference to
`igamn2d_'
testzdriver.o(.text+0x2e9a):testzdriver.f: undefined reference to
`zgsum2d_'
testzdriver.o(.text+0x2f9d):testzdriver.f: undefined reference to
`pdznrm2_'
testzdriver.o(.text+0x2ff5):testzdriver.f: undefined reference to
`dgamx2d_'
testzdriver.o(.text+0x3152):testzdriver.f: undefined reference to
`blacs_barrier_'
testzdriver.o(.text+0x336d):testzdriver.f: undefined reference to
`igsum2d_'
testzdriver.o(.text+0x34c0):testzdriver.f: undefined reference to
`igamn2d_'
testzdriver.o(.text+0x3523):testzdriver.f: undefined reference to
`blacs_barrier_'
testzdriver.o(.text+0x377c):testzdriver.f: undefined reference to
`igsum2d_'
testzdriver.o(.text+0x390a):testzdriver.f: undefined reference to
`igamn2d_'
testzdriver.o(.text+0x3a9b):testzdriver.f: undefined reference to
`zgsum2d_'
testzdriver.o(.text+0x3c0c):testzdriver.f: undefined reference to
`zgsum2d_'
testzdriver.o(.text+0x3dd7):testzdriver.f: undefined reference to
`pdznrm2_'
testzdriver.o(.text+0x3e3d):testzdriver.f: undefined reference to
`dgamx2d_'
testzdriver.o(.text+0x41f5):testzdriver.f: undefined reference to
`igsum2d_'
testzdriver.o(.text+0x4397):testzdriver.f: undefined reference to
`igamn2d_'
testzdriver.o(.text+0x44a6):testzdriver.f: undefined reference to
`pdznrm2_'
testzdriver.o(.text+0x4505):testzdriver.f: undefined reference to
`dgamx2d_'
testzdriver.o(.text+0x51b9):testzdriver.f: undefined reference to
`igsum2d_'
testzdriver.o(.text+0x52d0):testzdriver.f: undefined reference to
`igsum2d_'
testzdriver.o(.text+0x5335):testzdriver.f: undefined reference to
`blacs_barrier_'
testzdriver.o(.text+0x54f4):testzdriver.f: undefined reference to
`igsum2d_'
testzdriver.o(.text+0x5672):testzdriver.f: undefined reference to
`igamn2d_'
testzdriver.o(.text+0x59ab):testzdriver.f: undefined reference to
`igsum2d_'
testzdriver.o(.text+0x5aa2):testzdriver.f: undefined reference to
`igsum2d_'
testzdriver.o(.text+0x5b07):testzdriver.f: undefined reference to
`blacs_barrier_'
testzdriver.o(.text+0x5cc7):testzdriver.f: undefined reference to
`igsum2d_'
From: sss2 on
btw this was on linux machine ( amd node ) and all BLACS BLAS and
SCALAPACK was compiled without any errors with mpich.

Any suggestions or correction are welcome.

Thanks


sss2 wrote:
> Hello
>
> I am compiling one of DOD benchmark called OOCORE.It needs BLAS BLACS
> and SCALPACK lib.
> While building using mpif77 It is giving me following errors.
>
> Although I have blacks and scalpack both build successfully using
> mpich.
>
> I saw your name if few old post and I thought of contacting you if you
> can put some light on this...as I am kind of stuck on this for long
> time now.Thanks
>
>
>
>
> {{{
> home/ssikachi/src/cdc/mpich/trunk/bin/mpicc -c -DNoChange
> -DUsingMpiBlacs -O4 -ggdb3 lard.c
> /home/ssikachi/src/cdc/mpich/trunk/bin/mpicc -c -DNoChange
> -DUsingMpiBlacs -O4 -ggdb3 lawr.c
> /home/ssikachi/src/cdc/mpich/trunk/bin/mpicc -c -DNoChange
> -DUsingMpiBlacs -O4 -ggdb3 bitvec.c
> /home/ssikachi/src/cdc/mpich/trunk/bin/mpicc -c -DNoChange
> -DUsingMpiBlacs -O4 -ggdb3 dlseek.c
> /home/ssikachi/src/cdc/mpich/trunk/bin/mpicc -c -DNoChange
> -DUsingMpiBlacs -O4 -ggdb3 Findex2.c
> /home/ssikachi/src/cdc/mpich/trunk/bin/mpicc -c -DNoChange
> -DUsingMpiBlacs -O4 -ggdb3 laread.c
> /home/ssikachi/src/cdc/mpich/trunk/bin/mpicc -c -DNoChange
> -DUsingMpiBlacs -O4 -ggdb3 lawrite.c
> /home/ssikachi/src/cdc/mpich/trunk/bin/mpicc -c -DNoChange
> -DUsingMpiBlacs -O4 -ggdb3 laopen.c
> /home/ssikachi/src/cdc/mpich/trunk/bin/mpicc -c -DNoChange
> -DUsingMpiBlacs -O4 -ggdb3 laclose.c
> /home/ssikachi/src/cdc/mpich/trunk/bin/mpicc -c -DNoChange
> -DUsingMpiBlacs -O4 -ggdb3 laio_info.c
> /home/ssikachi/src/cdc/mpich/trunk/bin/mpif77
> /usr/lib64/libgfortran.so.0 -o ../bin/testzdriver \
> testzdriver.o \
> driverinfo.o \
> pgztrsm.o pfzmatgen.o pfzlaprnt.o pfzlaprnt2.o pfzgemm.o
> pfztrsm.o pfzlatrsm.o pfzgeqrf.o pfzqrfact2.o pfzqrapply.o pfzgeqrs.o
> pfzqrsolve.o pfzunmqr.o pfzcopytau.o pfzgetrf.o pfzgetf2.o pfzoclu.o
> pfzgelup.o pfzgetrs.o pfzlusolve.o pfzpotrf.o pfzpotrs.o pfzchfact.o
> pfzuchfact.o pfzlchfact.o pishift.o pdshift.o psshift.o pzshift.o
> pcshift.o pcbmatgen.o pcmatgen.o pdbmatgen.o pdmatgen.o pmatgeninc.o
> psbmatgen.o psmatgen.o pzbmatgen.o pzmatgen.o setupblacs.o fpcgemr2d.o
> fpdgemr2d.o fpsgemr2d.o fpzgemr2d.o fpigemr2d.o checkalign.o assert.o
> ifill.o icopy.o dfill.o sfill.o cfill.o zfill.o numrocinv.o numroc2.o
> chcalsize.o calcolsize.o pfdescinit.o pfmaxsize.o pfmax2size.o
> mapblock.o lard.o lawr.o bitvec.o dlseek.o Findex2.o laread.o lawrite.o
> laopen.o laclose.o laio_info.o \
> /home/ssikachi/dodapps/SCALAPACK/libscalapack.a
> /home/ssikachi/dodapps/BLACS/LIB/blacsF77init_MPI-Linux-0.a
> /home/ssikachi/dodapps/BLACS/LIB/blacs_MPI-Linux-0.a
> /nfs/share/mikehpl/libgoto_opt64-r0.94.so
> -L/home/ssikachi/src/cdc/mpich/trunk/lib -lmpich
> testzdriver.o(.text+0x2f): In function `MAIN__':
> testzdriver.f: undefined reference to `blacs_pinfo_'
> testzdriver.o(.text+0x476):testzdriver.f: undefined reference to
> `blacs_gridexit_'
> testzdriver.o(.text+0x4f4):testzdriver.f: undefined reference to
> `blacs_exit_'
> testzdriver.o(.text+0x524):testzdriver.f: undefined reference to
> `blacs_get_'
> testzdriver.o(.text+0x550):testzdriver.f: undefined reference to
> `blacs_gridinit_'
> testzdriver.o(.text+0x57f):testzdriver.f: undefined reference to
> `blacs_gridinfo_'
> testzdriver.o(.text+0x7d4):testzdriver.f: undefined reference to
> `igsum2d_'
> testzdriver.o(.text+0xbdc):testzdriver.f: undefined reference to
> `igsum2d_'
> testzdriver.o(.text+0xd9d):testzdriver.f: undefined reference to
> `igsum2d_'
> testzdriver.o(.text+0x1025):testzdriver.f: undefined reference to
> `igsum2d_'
> testzdriver.o(.text+0x10d9):testzdriver.f: undefined reference to
> `igsum2d_'
> testzdriver.o(.text+0x130a):testzdriver.f: more undefined references to
> `igsum2d_' follow
> testzdriver.o(.text+0x1db7): In function `MAIN__':
> testzdriver.f: undefined reference to `igamn2d_'
> testzdriver.o(.text+0x1e73):testzdriver.f: undefined reference to
> `laclose_'
> testzdriver.o(.text+0x1ea7):testzdriver.f: undefined reference to
> `laclose_'
> testzdriver.o(.text+0x1f33):testzdriver.f: undefined reference to
> `igsum2d_'
> testzdriver.o(.text+0x2274):testzdriver.f: undefined reference to
> `igsum2d_'
> testzdriver.o(.text+0x2422):testzdriver.f: undefined reference to
> `igamn2d_'
> testzdriver.o(.text+0x2841):testzdriver.f: undefined reference to
> `pdznrm2_'
> testzdriver.o(.text+0x28a0):testzdriver.f: undefined reference to
> `dgamx2d_'
> testzdriver.o(.text+0x2b95):testzdriver.f: undefined reference to
> `igsum2d_'
> testzdriver.o(.text+0x2d4c):testzdriver.f: undefined reference to
> `igamn2d_'
> testzdriver.o(.text+0x2e9a):testzdriver.f: undefined reference to
> `zgsum2d_'
> testzdriver.o(.text+0x2f9d):testzdriver.f: undefined reference to
> `pdznrm2_'
> testzdriver.o(.text+0x2ff5):testzdriver.f: undefined reference to
> `dgamx2d_'
> testzdriver.o(.text+0x3152):testzdriver.f: undefined reference to
> `blacs_barrier_'
> testzdriver.o(.text+0x336d):testzdriver.f: undefined reference to
> `igsum2d_'
> testzdriver.o(.text+0x34c0):testzdriver.f: undefined reference to
> `igamn2d_'
> testzdriver.o(.text+0x3523):testzdriver.f: undefined reference to
> `blacs_barrier_'
> testzdriver.o(.text+0x377c):testzdriver.f: undefined reference to
> `igsum2d_'
> testzdriver.o(.text+0x390a):testzdriver.f: undefined reference to
> `igamn2d_'
> testzdriver.o(.text+0x3a9b):testzdriver.f: undefined reference to
> `zgsum2d_'
> testzdriver.o(.text+0x3c0c):testzdriver.f: undefined reference to
> `zgsum2d_'
> testzdriver.o(.text+0x3dd7):testzdriver.f: undefined reference to
> `pdznrm2_'
> testzdriver.o(.text+0x3e3d):testzdriver.f: undefined reference to
> `dgamx2d_'
> testzdriver.o(.text+0x41f5):testzdriver.f: undefined reference to
> `igsum2d_'
> testzdriver.o(.text+0x4397):testzdriver.f: undefined reference to
> `igamn2d_'
> testzdriver.o(.text+0x44a6):testzdriver.f: undefined reference to
> `pdznrm2_'
> testzdriver.o(.text+0x4505):testzdriver.f: undefined reference to
> `dgamx2d_'
> testzdriver.o(.text+0x51b9):testzdriver.f: undefined reference to
> `igsum2d_'
> testzdriver.o(.text+0x52d0):testzdriver.f: undefined reference to
> `igsum2d_'
> testzdriver.o(.text+0x5335):testzdriver.f: undefined reference to
> `blacs_barrier_'
> testzdrive