<div dir="ltr">Hello,<br><br>This may not help but many times it is recommended to consult the Intel MKL Link Line Advisor when linking Intel MKL libraries (ScaLAPACK, BLACS, FFTW3)<br><br>https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor<br><br>I always have a much easier time compiling the CP2K code with gfortran+Intel_MKL+Intel_MPI than with Intel's ifort compiler.<br><br>From the link line advisor, you may need to use something like the following in your LIBS section:<br><br>LIBS   =   $(MKLROOT)/lib/intel64/libmkl_scalapack_lp64.a -Wl,--start-group $(MKLROOT)/lib/intel64/libmkl_gf_lp64.a $(MKLROOT)/lib/intel64/libmkl_core.a $(MKLROOT)/lib/intel64/libmkl_sequential.a -Wl,--end-group $(MKLROOT)/lib/intel64/libmkl_blacs_intelmpi_lp64.a -lpthread -lm<br><br>Best regards,<br>Marco<br><br><br>On Monday, January 26, 2015 at 3:57:27 PM UTC-5, Wadud Miah wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr">Hello, <br><br>I am getting the following compilation error using the following configuration:<br><br>intel/<a href="http://13.1.3.192" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2F13.1.3.192\46sa\75D\46sntz\0751\46usg\75AFQjCNEJ_TB3r6ZfQRvOgEJy-vP0Paq0bw';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2F13.1.3.192\46sa\75D\46sntz\0751\46usg\75AFQjCNEJ_TB3r6ZfQRvOgEJy-vP0Paq0bw';return true;">13.1.3.192</a><br>intelmpi/<a href="http://4.1.1.036" target="_blank" rel="nofollow" onmousedown="this.href='http://4.1.1.036';return true;" onclick="this.href='http://4.1.1.036';return true;">4.1.1.036</a><br><br>mpiifort -c -O3 -D__INTEL -D__parallel -D__SCALAPACK -D__LIBINT -D__LIBXC2 -D__FFTW3  -D__ELPA -I/apps/developers/compilers/<wbr>intel/12.1.5.339/1/default/<wbr>mkl/include/fftw/include -I/nobackup/durmwa/elpa-2014.<wbr>06/include -I/nobackup/durmwa/libint-1.1.<wbr>4-inst/include -I/nobackup/durmwa/libxc-2.2.<wbr>1-inst/include acc_event.f90<br>/nobackup/durmwa/cp2k-2.6.0/<wbr>src/base/machine_posix.f90(<wbr>254): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ) :: , :<br>    istat = unlink(TRIM(TARGET)<br>------------------------------<wbr>-^<br>/nobackup/durmwa/cp2k-2.6.0/<wbr>src/base/machine_posix.f90(<wbr>258): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ) :: , :<br>    istat = rename(TRIM(source)<br>------------------------------<wbr>-^<br>/nobackup/durmwa/cp2k-2.6.0/<wbr>src/base/machine_posix.f90(<wbr>329): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ) :: , :<br>    ierror = chdir(TRIM(dir)<br>----------------------------^<br>/nobackup/durmwa/cp2k-2.6.0/<wbr>src/base/machine_posix.f90(<wbr>258): error #6631: A non-optional actual argument must be present when invoking a procedure with an explicit interface.   [DEST]<br>    istat = rename(TRIM(source)<br>------------^<br>compilation aborted for machine_internal.f90 (code 1)<br>make[3]: *** [machine_internal.o] Error 1<br>make[3]: *** Waiting for unfinished jobs....<br><br>make[2]: *** [all] Error 2<br>make[1]: *** [popt] Error 2<br>make: *** [all] Error 2<br><br>I have also tried with gfortran 4.8.1, but I still get the same problem. Below is my makefile:<br><br>#<br>ELPA_LIB = /nobackup/durmwa/elpa-2014.06/<wbr>lib<br>ELPA_INC = /nobackup/durmwa/elpa-2014.06/<wbr>include<br>LIBINT_LIB = /nobackup/durmwa/libint-1.1.4-<wbr>inst/lib<br>LIBINT_INC = /nobackup/durmwa/libint-1.1.4-<wbr>inst/include<br>LIBXC_LIB = /nobackup/durmwa/libxc-2.2.1-<wbr>inst/lib<br>LIBXC_INC = /nobackup/durmwa/libxc-2.2.1-<wbr>inst/include<br><br>INTEL_MKL_LIB = /apps/developers/compilers/<wbr>intel/12.1.5.339/1/default/<wbr>mkl/lib/intel64<br>FFTW3_PATH = /apps/developers/compilers/<wbr>intel/12.1.5.339/1/default/<wbr>mkl/include/fftw<br>#<br>CC       = cc<br>CPP      = cpp<br>FC       = mpiifort<br>LD       = mpiifort<br>AR       = ar -r<br>CPPFLAGS = <br>DFLAGS   = -D__INTEL -D__parallel -D__SCALAPACK -D__LIBINT -D__LIBXC2 -D__FFTW3  -D__ELPA<br>FCFLAGS  = -O3 $(DFLAGS) -I${FFTW3_PATH}/include -I${ELPA_INC} -I$(LIBINT_INC) -I$(LIBXC_INC)<br>LDFLAGS  = $(FCFLAGS) -L$(LIBINT_LIB)  -L${FFTW3_PATH}/lib64  -L$(INTEL_MKL_LIB) -L$(LIBXC_LIB) -L$(ELPA_LIB)<br>LIBS     =  -lmkl_scalapack_lp64 -lmkl_blacs_intelmpi_lp64 -lmkl_intel_lp64 -lmkl_sequential -lmkl_core \<br>            -lderiv -lint -lfftw3 -lxc -lelpa<br><br>Any help will be greatly appreciated. <br><br>Regards,<br></div></blockquote></div>