Problems compiling nwchem with openSUSE, gcc, mpich


Clicked A Few Times
Hi,

I was compiling NWChem 6.1.1 and got the following error message:

......
/home/fan_group/nwchem-6.1.1/lib/LINUX64/libnwpwlib.a(CMatrix-mpi.o): In function `cmatrix_getdiags_':
CMatrix-mpi.F:(.text+0x1184): undefined reference to `mpi_bcast_'
CMatrix-mpi.F:(.text+0x1202): undefined reference to `mpi_allreduce_'
CMatrix-mpi.F:(.text+0x13c5): undefined reference to `mpi_bcast_'
CMatrix-mpi.F:(.text+0x1440): undefined reference to `mpi_allreduce_'
......
/home/fan_group/nwchem-6.1.1/lib/LINUX64/libnwpwlib.a(CMatrix-mpi.o): In function `cmatrix_start_rot_':
CMatrix-mpi.F:(.text+0x3a4e): undefined reference to `mpi_irecv_'
CMatrix-mpi.F:(.text+0x3ab3): undefined reference to `mpi_isend_'
collect2: ld returned 1 exit status
make: *** [all] Error 1


setenv LARGE_FILES TRUE
setenv USE_NOFSCHECK TRUE
setenv LARGE_FILES TRUE
setenv USE_NOFSCHECK TRUE
setenv NWCHEM_TARGET LINUX64
setenv NWCHEM_MODULES all
setenv TCGRSH /usr/bin/ssh
setenv USE_MPI y
setenv USE_MPIF y
setenv USE_MPIF4 y
setenv MPI_LOC /home/fan_group/mpich-1.2.6
setenv MPI_LIB $MPI_LOC/lib
setenv MPI_INCLUDE $MPI_LOC/include
setenv NWCHEM_TOP /home/fan_group/nwchem-6.1.1
setenv NWCHEM_EXEC /home/fan_group/nwchem-6.1.1/bin/LINUX64/nwchem
setenv BLASOPT "-L/home/fan_group/intel/mkl/10.2.5.035/lib/em64t -lmkl_intel_ilp64 -lmkl_sequential -lmkl_core -lmkl_lapack"
setenv LIBMPI "-lfmpich -lmpich -lpmpich"
setenv FC $MPI_LOC/bin/mpif90
setenv F77 $MPI_LOC/bin/mpif77
setenv CC $MPI_LOC/bin/mpicc

Forum Vet
Could you please send us the output of the following command

nm /home/fan_group/mpich-1.2.6/lib/lib*mpich* | grep -i allreduce

Clicked A Few Times
allreducef.o:
                U MPI_Allreduce
0000000000000000 W mpi_allreduce__
0000000000000000 T pmpi_allreduce__
                U PMPI_Allreduce
U PMPI_Allreduce
allreduce.o:
0000000000000000 W MPI_Allreduce
0000000000000000 T PMPI_Allreduce
00000000000002df t inter_Allreduce
0000000000007635 t intra_Allreduce
allreducef.o:
                U MPI_Allreduce
0000000000000000 W mpi_allreduce__
0000000000000000 T pmpi_allreduce__
                U PMPI_Allreduce
U PMPI_Allreduce
U PMPI_Allreduce
U PMPI_Allreduce
U PMPI_Allreduce
U PMPI_Allreduce
allreduce.o:
0000000000000000 W MPI_Allreduce
0000000000000000 T PMPI_Allreduce
00000000000002df t inter_Allreduce
0000000000007635 t intra_Allreduce
allreducef.o:
                U MPI_Allreduce
0000000000000000 W mpi_allreduce__
0000000000000000 T pmpi_allreduce__
                U PMPI_Allreduce
U PMPI_Allreduce
U PMPI_Allreduce
U PMPI_Allreduce
U MPI_Allreduce
0000000000000000 W _ZNK4PMPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE
                U MPI_Allreduce
0000000000000000 W _ZNK4PMPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE
                U MPI_Allreduce
0000000000000000 W _ZNK4PMPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE
                U MPI_Allreduce
0000000000000000 W _ZNK4PMPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE
                U MPI_Allreduce
0000000000000000 W _ZNK4PMPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE
                U MPI_Allreduce
0000000000000492 T _ZNK3MPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE
0000000000000000 W _ZNK4PMPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE
                U MPI_Allreduce
U _ZNK3MPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE
0000000000000000 W _ZNK4PMPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE
                U MPI_Allreduce
0000000000000000 W _ZNK4PMPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE
                U MPI_Allreduce
0000000000000000 W _ZNK4PMPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE
                U MPI_Allreduce
0000000000000000 W _ZNK4PMPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE
                U MPI_Allreduce
0000000000000000 W _ZNK4PMPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE
                U MPI_Allreduce
0000000000000000 W _ZNK4PMPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE
                U MPI_Allreduce
0000000000000000 W _ZNK4PMPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE
                U MPI_Allreduce
0000000000000000 W _ZNK4PMPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE
                U MPI_Allreduce
0000000000000000 W _ZNK4PMPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE






Quote:Edoapra Jul 30th 7:22 pm
Could you please send us the output of the following command

nm /home/fan_group/mpich-1.2.6/lib/lib*mpich* | grep -i allreduce

Clicked A Few Times
allreducef.o:
                U MPI_Allreduce
0000000000000000 W mpi_allreduce__
0000000000000000 T pmpi_allreduce__
                U PMPI_Allreduce
U PMPI_Allreduce
allreduce.o:
0000000000000000 W MPI_Allreduce
0000000000000000 T PMPI_Allreduce
00000000000002df t inter_Allreduce
0000000000007635 t intra_Allreduce
allreducef.o:
                U MPI_Allreduce
0000000000000000 W mpi_allreduce__
0000000000000000 T pmpi_allreduce__
                U PMPI_Allreduce
U PMPI_Allreduce
U PMPI_Allreduce
U PMPI_Allreduce
U PMPI_Allreduce
U PMPI_Allreduce
allreduce.o:
0000000000000000 W MPI_Allreduce
0000000000000000 T PMPI_Allreduce
00000000000002df t inter_Allreduce
0000000000007635 t intra_Allreduce
allreducef.o:
                U MPI_Allreduce
0000000000000000 W mpi_allreduce__
0000000000000000 T pmpi_allreduce__
                U PMPI_Allreduce
U PMPI_Allreduce
U PMPI_Allreduce
U PMPI_Allreduce
U MPI_Allreduce
0000000000000000 W _ZNK4PMPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE
                U MPI_Allreduce
0000000000000000 W _ZNK4PMPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE
                U MPI_Allreduce
0000000000000000 W _ZNK4PMPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE
                U MPI_Allreduce
0000000000000000 W _ZNK4PMPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE
                U MPI_Allreduce
0000000000000000 W _ZNK4PMPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE
                U MPI_Allreduce
0000000000000492 T _ZNK3MPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE
0000000000000000 W _ZNK4PMPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE
                U MPI_Allreduce
U _ZNK3MPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE
0000000000000000 W _ZNK4PMPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE
                U MPI_Allreduce
0000000000000000 W _ZNK4PMPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE
                U MPI_Allreduce
0000000000000000 W _ZNK4PMPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE
                U MPI_Allreduce
0000000000000000 W _ZNK4PMPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE
                U MPI_Allreduce
0000000000000000 W _ZNK4PMPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE
                U MPI_Allreduce
0000000000000000 W _ZNK4PMPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE
                U MPI_Allreduce
0000000000000000 W _ZNK4PMPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE
                U MPI_Allreduce
0000000000000000 W _ZNK4PMPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE
                U MPI_Allreduce
0000000000000000 W _ZNK4PMPI9Intracomm9AllreduceEPKvPviRKNS_8DatatypeERKNS_2OpE






Quote:Edoapra Jul 30th 7:22 pm
Could you please send us the output of the following command

nm /home/fan_group/mpich-1.2.6/lib/lib*mpich* | grep -i allreduce


Forum >> NWChem's corner >> Compiling NWChem