Problems in compiling NWChem

From NWChem

Viewed 126 times, With a total of 11 Posts
Jump to: navigation, search

Clicked A Few Times
Threads 10
Posts 21
Dear all,
I have some problems in compiling NWChem. I get the following error:

/usr/local/parastation/mpi2-intel12-mt-5.0.27-1/lib/libmpich.so: undefined refer ence to `__svml_idiv4'
/usr/local/parastation/mpi2-intel12-mt-5.0.27-1/lib/libmpich.so: undefined refer ence to `MPL_trrealloc'
/usr/local/parastation/mpi2-intel12-mt-5.0.27-1/lib/libmpich.so: undefined refer ence to `MPL_trspace'
/usr/local/parastation/mpi2-intel12-mt-5.0.27-1/lib/libmpich.so: undefined refer ence to `MPL_trDebugLevel'
/usr/local/parastation/mpi2-intel12-mt-5.0.27-1/lib/libmpich.so: undefined refer ence to `__intel_sse2_strcpy'
/usr/local/parastation/mpi2-intel12-mt-5.0.27-1/lib/libmpich.so: undefined refer ence to `MPL_TrSetMaxMem'
/usr/local/parastation/mpi2-intel12-mt-5.0.27-1/lib/libmpich.so: undefined refer ence to `__intel_sse2_strchr'
/usr/local/parastation/mpi2-intel12-mt-5.0.27-1/lib/libmpich.so: undefined refer ence to `MPL_trlevel'
/usr/local/parastation/mpi2-intel12-mt-5.0.27-1/lib/libmpich.so: undefined refer ence to `__intel_sse2_strrchr'
/usr/local/parastation/mpi2-intel12-mt-5.0.27-1/lib/libmpich.so: undefined refer ence to `MPL_trmalloc'
/usr/local/parastation/mpi2-intel12-mt-5.0.27-1/lib/libmpich.so: undefined refer ence to `MPL_env2bool'
/usr/local/parastation/mpi2-intel12-mt-5.0.27-1/lib/libmpich.so: undefined refer ence to `__intel_sse2_strncmp'
/usr/local/parastation/mpi2-intel12-mt-5.0.27-1/lib/libmpich.so: undefined refer ence to `MPL_env2range'
/usr/local/parastation/mpi2-intel12-mt-5.0.27-1/lib/libmpich.so: undefined refer ence to `_intel_fast_memset'
/usr/local/parastation/mpi2-intel12-mt-5.0.27-1/lib/libmpich.so: undefined refer ence to `MPL_trcalloc'
/usr/local/parastation/mpi2-intel12-mt-5.0.27-1/lib/libmpich.so: undefined refer ence to `MPL_trfree'
/usr/local/parastation/mpi2-intel12-mt-5.0.27-1/lib/libmpich.so: undefined refer ence to `MPL_env2str'
/usr/local/parastation/mpi2-intel12-mt-5.0.27-1/lib/libmpich.so: undefined refer ence to `MPL_trstrdup'
/usr/local/parastation/mpi2-intel12-mt-5.0.27-1/lib/libmpich.so: undefined refer ence to `__intel_sse2_strlen'
/usr/local/parastation/mpi2-intel12-mt-5.0.27-1/lib/libmpich.so: undefined refer ence to `MPL_trdump'
/usr/local/parastation/mpi2-intel12-mt-5.0.27-1/lib/libmpich.so: undefined refer ence to `__intel_sse2_strncpy'
/usr/local/parastation/mpi2-intel12-mt-5.0.27-1/lib/libmpich.so: undefined refer ence to `__intel_sse2_strcspn'
/usr/local/parastation/mpi2-intel12-mt-5.0.27-1/lib/libmpich.so: undefined refer ence to `MPL_trinit'
collect2: error: ld returned 1 exit status
make: *** [all] Error 1


Any idea about which is the problem?
Thanks a lot
Alessandro

Forum Vet
Threads 4
Posts 933
Please post output from the following commands

mpif90 -show
env | grep MPI_ 

Clicked A Few Times
Threads 10
Posts 21
Sorry, it seems the command mpif90 -show doesn't work (mpif90, command not found)...

Forum Vet
Threads 4
Posts 933
Quote:Alessandro.chiesa Sep 25th 12:02 am
Sorry, it seems the command mpif90 -show doesn't work (mpif90, command not found)...


Try

/usr/local/parastation/mpi2-intel12-mt-5.0.27-1/bin/mpif90 -show

Clicked A Few Times
Threads 10
Posts 21
Many thanks, here is the answer

ifort -I/usr/local/parastation/mpi2-intel12-mt-5.0.27-1/include -I/usr/local/parastation/mpi2-intel12-mt-5.0.27-1/include -L/usr/local/parastation/mpi2-intel12-mt-5.0.27-1/lib -lmpichf90 -lmpichf90 -lmpich -Wl,-rpath-link=/usr/local/parastation/mpi2-intel12-mt-5.0.27-1/lib

Forum Vet
Threads 4
Posts 933
Please try
MPI_INCLUDE=usr/local/parastation/mpi2-intel12-mt-5.0.27-1/include
MPI_LIB=" -lmpichf90 -lmpichf90 -lmpich"
LIBMPI=/usr/local/parastation/mpi2-intel12-mt-5.0.27-1/lib

if this does not work,
Try to replace the previous MPI_LIB with
MPI_LIB="-lmpichf90 -lmpichf90 -lmpich -Wl,-rpath-link=/usr/local/parastation/mpi2-intel12-mt-5.0.27-1/lib"

Clicked A Few Times
Threads 10
Posts 21
Thank you for the suggestion, I tried both, but unfortunately it doesn't work.
Always the same error:

"collect2: error: ld returned 1 exit status
make: *** [all] Error 1"

Forum Vet
Threads 4
Posts 933
Quote:Alessandro.chiesa Sep 27th 10:38 pm
Thank you for the suggestion, I tried both, but unfortunately it doesn't work.
Always the same error:

"collect2: error: ld returned 1 exit status
make: *** [all] Error 1"

Please copy and paste the last 30 lines of your link step

Clicked A Few Times
Threads 10
Posts 21
I am not sure I have understood correctly... anyway, this is my build_nwchem file

 1 #!/bin/bash
2 #export USE_GPROF=yes
3 export USE_SUBGROUPS=yes
4 export USE_MPI=yes
5 #export OLD_GA=yes
6 export MSG_COMMS=MPI
7 export USE_PYTHON64=yes
8 export MPI_LOC=/usr/local/parastation/mpi2-intel12-mt-5.0.27-1
9 export MPI_INCLUDE=$MPI_LOC/include
10 export MPI_LIB=$MPI_LOC/lib
11 #export MPI_LIB=" -lmpichf90 -lmpichf90 -lmpich"
12 #export LIBMPI=$MPI_LOC/lib
13 #export LIBMPI="-lfmpich -lmpich -lpthread" # MPICH2 1.2
14 export LIBMPI="-lmpichf90 -lmpich -lmpl -lpthread" # MPICH2 1.3.1
15 export ARMCI_NETWORK=OPENIB
16 export PYTHONHOME=/usr/bin
17 export PYTHONVERSION=2.6
18 export NWCHEM_TOP=`pwd`
19 export NWCHEM_TARGET=LINUX64
20 export NWCHEM_MODULES="all python"
21 export NWCHEM_MODULES="all"
22 export NWCHEM_EXECUTABLE=$NWCHEM_TOP/bin/LINUX64/nwchem
23 export PYTHONPATH=./:$NWCHEM_TOP/contrib/python/
24 export LARGE_FILES=TRUE
25 export ENABLE_COMPONENT=yes
26 export TCGGRSH=/usr/bin/ssh
27 export FOPTIMIZE="-O3 -xSSE2,SSE3,SSSE3,SSE4.1,SSE4.2 -no-prec-div -funroll-loops -unroll-aggressive"
28 export COPTIMIZE="-O3 -xSSE2,SSE3,SSSE3,SSE4.1,SSE4.2 -no-prec-div -funroll-loops"
30 cd $NWCHEM_TOP/src
31 #make DIAG=PAR FC=gfortran CC=gcc CDEBUG="-g -ffpe-trap=invalid,zero,overflow" FDEBUG="-g -ffpe-trap=invalid,zero,overflow" FOPTIMIZE="-g -ffpe-trap=invalid,zero,overflow" COPTIMIZE="-g -ffpe-trap=invalid,zero,overflow" nwchem_config
32 #make DIAG=PAR FC=gfortran CC=gcc CDEBUG="-g -ffpe-trap=invalid,zero,overflow" FDEBUG="-g -ffpe-trap=invalid,zero,overflow" FOPTIMIZE="-g -ffpe-trap=invalid,zero,overflow" COPTIMIZE="-g -ffpe-trap=invalid,zero,overflow" $1
33 #make DIAG=PAR FC=gfortran CC=gcc CDEBUG="-pg -g" FDEBUG="-pg -g" FOPTIMIZE="-pg -g -O0" COPTIMIZE="-pg -g -O0" nwchem_config
34 #make DIAG=PAR FC=gfortran CC=gcc CDEBUG="-pg -g" FDEBUG="-pg -g" FOPTIMIZE="-pg -g -O0" COPTIMIZE="-pg -g -O0" $1
35 make realclean
36
37 make FC=gfortran _GCC4=Y CC=gcc nwchem_config
38 #make DIAG=PAR FC=gfortran CC=gcc nwchem_config
39 make DIAG=PAR FC=gfortran CC=gcc $1

Forum Vet
Threads 4
Posts 933
Nope,
I am asking you what is the output of

cd $NWCHEM_TOP/src
make link

PS Please do not redefine FOPTIMIZE and COPTIMIZE since it's a recipe for impending disaster
Edited On 10:11:13 AM PDT - Mon, Sep 28th 2015 by Edoapra

Clicked A Few Times
Threads 10
Posts 21
Ok, sorry. Here is the output:

make nwchem.o stubs.o
make[1]: warning: -jN forced in submake: disabling jobserver mode.
Converting nwchem.F -> nwchem.f
Converting stubs.F -> stubs.f
f77 -c -g -g stubs.f
/bin/sh: f77: command not found
make[1]: *** [stubs.o] Error 127
make[1]: *** Waiting for unfinished jobs....
f77 -c -g -g nwchem.f
/bin/sh: f77: command not found
make[1]: *** [nwchem.o] Error 127
make: *** [link] Error 2

Forum Vet
Threads 4
Posts 933
I am asking you what is the output of

cd $NWCHEM_TOP/src
make FC=gfortran LIBMPI=" -lmpichf90 -lmpichf90 -lmpich" MPI_LIB=/usr/local/parastation/mpi2-intel12-mt-5.0.27-1/lib link
Edited On 9:52:35 AM PDT - Tue, Sep 29th 2015 by Edoapra


Forum >> NWChem's corner >> Compiling NWChem



Who's here now Members 0 Guests 1 Bots/Crawler 0


AWC's: 2.5.10 MediaWiki - Stand Alone Forum Extension
Forum theme style by: AWC