<div dir="ltr"><font face="georgia, serif" size="4">Thanks for your advice, the original error disappear. But there comes the new "can't find library" error. Maybe there is some problem in setting of my system.</font><br><br>在 2018年4月6日星期五 UTC+8下午8:40:17,IBethune写道:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">There is a typo in your arch file:  It should be “-Wl” (lower case l) not “-WI” (upper case I).
<br>
<br>- Iain
<br>
<br>--
<br>
<br>Iain Bethune
<br>Technical Programme Manager, STFC Hartree Centre
<br>
<br>Email: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="gemfLzDCAgAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">iain...@stfc.ac.uk</a>
<br>Twitter: @IainBethune @PrimeGrid @CP2Kproject
<br>
<br>Tel: +44 (0)1925 603735
<br>Mob: +44 (0)7598317015
<br>Addr: Hartree Centre, Sci-Tech Daresbury, Keckwick​,​ Warrington, WA4 4AD
<br>
<br>> On 6 Apr 2018, at 13:11, Tianshu Jiang in Beijing <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="gemfLzDCAgAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">jts2...@gmail.com</a>> wrote:
<br>> 
<br>> Dear all, 
<br>> 
<br>> I have been compiling cp2k-4.1 using intel compiler for several days but there is always problems.
<br>> I edit both Linux-x86-64-gfortran.psmp and Linux-x86-64-intel-mic.psmp file according to the tutorial searched from the internet.
<br>> But in my latest trial, the beginning is OK, then the error emerge. 
<br>> The compiling environment is on our cluster, the version of Intel compiler is 17.0.1, libint 1.1.4 and libxc 2.2.2.
<br>> The error information is as follows
<br>> 
<br>> 
<br>> mpiifort -c -D__MKL -D__FFTW3 -D__LIBINT -D__LIBXC2 -D__MPI_VERSION=3 -D__LIBINT_MAX_AM=7 -D__LIBDERIV_MAX_AM1=6 -D__MAX_CONTR=4 -D__parallel -D__SCALAPACK -O2 -g -traceback -fpp -free -I/soft/intel_2017/compilers_<wbr>and_libraries_2017/linux/mkl/<wbr>include -I/soft/intel_2017/compilers_<wbr>and_libraries_2017/linux/mkl/<wbr>include/fftw -I/share/home/tshjiang/intel_<wbr>cp2k/tools/toolchain/install/<wbr>libint-1.1.4/include -I/share/home/tshjiang/intel_<wbr>cp2k/tools/toolchain/install/<wbr>libxc-2.2.2/include -D__COMPILE_ARCH="\"Linux-x86-<wbr>64-gfortran\"" -D__COMPILE_DATE="\"Fri Apr  6 19:45:36 CST 2018\"" -D__COMPILE_HOST="\"ln02\"" -D__COMPILE_REVISION="\"svn:<wbr>17462\"" -D__DATA_DIR="\"/share/home/<wbr>tshjiang/intel_cp2k/data\"" -D__SHORT_FILE__="\"eri_mme/<wbr>eri_mme_lattice_summation.F\"" /share/home/tshjiang/intel_<wbr>cp2k/src/eri_mme/eri_mme_<wbr>lattice_summation.F
<br>> ld: group ended before it began (--help for usage)
<br>> make[3]: *** [/share/home/tshjiang/intel_<wbr>cp2k/exe/Linux-x86-64-<wbr>gfortran/graph.psmp] Error 1
<br>> make[3]: *** Waiting for unfinished jobs....
<br>> make[2]: *** [all] Error 2
<br>> make[1]: *** [psmp] Error 2
<br>> make: *** [all] Error 
<br>> 
<br>> 
<br>> 
<br>> I even can not figure out where is the error. The command of make is:
<br>> 
<br>> make -j 8 ARCH=Linux-x86-64-gfortran VERSION=psmp
<br>> 
<br>> the arch file looks like
<br>> 
<br>> # Tested with: GFortran 4.9.2, MPICH 3.1, LAPACK 3.5.0, ScaLAPACK 2.0.2
<br>> CC         = icc
<br>> CPP        =
<br>> FC         = mpiifort
<br>> LD         = mpiifort
<br>> AR         = ar -r
<br>> 
<br>> LIBINT_INC = /share/home/tshjiang/intel_<wbr>cp2k/tools/toolchain/install/<wbr>libint-1.1.4/include
<br>> 
<br>> LIBINT_LIB = /share/home/tshjiang/intel_<wbr>cp2k/tools/toolchain/install/<wbr>libint-1.1.4/lib
<br>> LIBXC_INC  = /share/home/tshjiang/intel_<wbr>cp2k/tools/toolchain/install/<wbr>libxc-2.2.2/include
<br>> LIBXC_LIB  = /share/home/tshjiang/intel_<wbr>cp2k/tools/toolchain/install/<wbr>libxc-2.2.2/lib
<br>> DFLAGS     = -D__MKL -D__FFTW3 -D__LIBINT -D__LIBXC2 -D__MPI_VERSION=3\
<br>>              -D__LIBINT_MAX_AM=7 -D__LIBDERIV_MAX_AM1=6 -D__MAX_CONTR=4\
<br>>              -D__parallel -D__SCALAPACK
<br>> CFLAGS     = $(DFLAGS)
<br>> CPPFLAGS   =
<br>> MKLROOT    = /soft/intel_2017/compilers_<wbr>and_libraries_2017/linux/mkl
<br>> FCFLAGS    = $(DFLAGS) -O2 -g -traceback -fpp -free \
<br>>              -I$(MKLROOT)/include -I$(MKLROOT)/include/fftw -I$(LIBINT_INC) -I$(LIBXC_INC)
<br>> FCFLAGS2   = $(DFLAGS) -O0 -g -traceback -fpp -free \
<br>>              -I$(MKLROOT)/include -I$(MKLROOT)/include/fftw -I$(LIBINT_INC) -I$(LIBXC_INC)
<br>> LDFLAGS    = $(FCFLAGS) -static-intel
<br>> LDFLAGS_C  = $(FCFLAGS) -static-intel -nofor_main
<br>> LIBS       = $(MKLROOT)/lib/intel64/libmkl_<wbr>scalapack_lp64.a \
<br>>              -WI,--start-group $(MKLROOT)/lib/intel64/libmkl_<wbr>intel_lp64.a \
<br>>              $(MKLROOT)/lib/intel64/<wbr>libmkl_sequential.a \
<br>>              $(MKLROOT)/lib/intel64/<wbr>libmkl_core.a \
<br>>              $(MKLROOT)/lib/intel64/<wbr>libmkl_blacs_intelmpi_lp64.a -Wl,--end-group \
<br>>              -lpthread -lm \
<br>>              -L$(LIBXC_LIB) -lxcf90 -lxc \
<br>>              $(LIBINT_LIB)/libderiv.a \
<br>>              $(LIBINT_LIB)/libint.a -lstdc++
<br>> mp2_optimize_ri_basis.o:mp2_<wbr>optimize_ri_basis.F
<br>>         $(FC) -c $(FCFLAGS2) $<
<br>> hfx_contraction_methods.o:hfx_<wbr>contraction_methods.F
<br>>         $(FC) -c $(FCFLAGS2) $<
<br>> 
<br>> Can anyone encounter the similar situation and give some advice. 
<br>> I will be appreciated for your suggestion.
<br>> 
<br>> 
<br>> 
<br>> 
<br>> 
<br>> 
<br>> -- 
<br>> You received this message because you are subscribed to the Google Groups "cp2k" group.
<br>> To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="gemfLzDCAgAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">cp2k+uns...@googlegroups.<wbr>com</a>.
<br>> To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="gemfLzDCAgAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">cp...@googlegroups.com</a>.
<br>> Visit this group at <a href="https://groups.google.com/group/cp2k" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/group/cp2k';return true;" onclick="this.href='https://groups.google.com/group/cp2k';return true;">https://groups.google.com/<wbr>group/cp2k</a>.
<br>> For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/<wbr>optout</a>.
<br>
<br></blockquote></div>