<div dir="ltr">Dear axel,<div><br></div><div>in fact, before conducting these complicated steps, I have followed the instructions from user's guide. However, all of them displayed several errors.</div><div><br></div><div>
such as </div><div><br></div><div><div>_sys2blacs_handle_.c:(.text+0x25): undefined reference to `ompi_mpi_comm_null'</div><div>_sys2blacs_handle_.c:(.text+0x9f): undefined reference to `ompi_mpi_comm_null'</div><div>
_sys2blacs_handle_.c:(.text+0xc9): undefined reference to `ompi_mpi_comm_world'</div><div>_sys2blacs_handle_.c:(.text+0x17d): undefined reference to `ompi_mpi_comm_null'</div><div>_sys2blacs_handle_.c:(.text+0x1cb): undefined reference to `ompi_mpi_comm_world'</div>
<div>/opt/intel/Compiler/11.1/059/mkl/lib/em64t/libmkl_blacs_openmpi_lp64.a(BI_MPI_F77_to_c_trans_comm.o): In function `BI_MPI_F77_to_c_trans_comm':</div><div>_BI_MPI_F77_to_c_trans_comm.c:(.text+0x6): undefined reference to `MPI_Comm_f2c'</div>
<div>make[2]: *** [pw.x] Error 1</div><div>make[2]: Leaving directory `/vol-th/home/fyw/pwscf/espresso-5.0.2/PW/src'</div><div>make[1]: *** [pw] Error 2</div><div>make[1]: Leaving directory `/vol-th/home/fyw/pwscf/espresso-5.0.2/PW</div>
</div><div><br></div><div><br><div class="gmail_extra"><br><br><div class="gmail_quote">2013/12/9 Axel Kohlmeyer <span dir="ltr"><<a href="mailto:akohlmey@gmail.com" target="_blank">akohlmey@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">why so complicated? why not simply follow the installation<br>

instructions in the User's Guide, set LIBDIRS accordingly to the<br>
directory where you have MKL installed and let the configure script do<br>
the rest for you.<br>
<br>
besides, the flags you provide are wrong. you should consult the MKL<br>
documentation for a (detailed and precise) explanation of how to link<br>
with MKL. if you insist on setting things yourself.<br>
<br>
axel.<br>
<div class=""><div class="h5"><br>
On Mon, Dec 9, 2013 at 9:58 AM, Yue-Wen Fang <<a href="mailto:yuewen.fang@gmail.com">yuewen.fang@gmail.com</a>> wrote:<br>
> Dear QE users,<br>
><br>
> In recent days, I'have compiled QE 5.0.2 for many times using different ways<br>
> in several computing centers. Surprisingly, all gave me errors. The main<br>
> problem is the MKL.<br>
><br>
> The following is my steps.<br>
><br>
> 1. I write a shell script named "fyw-configure" to proceed configure<br>
><br>
> export CC=icc<br>
> export F77=ifort<br>
> export F90=ifort<br>
> export MPIF90=mpif90<br>
> export CFLAGS=-O2<br>
> export FFLAGS=-O2<br>
> export MKL_LIB="/vol-th/lib/mklem64t"<br>
> ./configure BLACS_LIBS="-L$MKL_LIB -libmkl_blacs_lp64.a"<br>
> LAPACK_LIBS="-L$MKL_LIB -libmkl_lapack95_ilp64.a"<br>
> SCALAPACK_LIBS="-L$MKL_LIB -libmkl_scalapack_lp64.a" BLAS_LIBS="-L$MKL_LIB<br>
> -libmkl_blas95_lp64.a -libmkl_core.a -libmkl_sequential.a"<br>
><br>
> 2. conduct fyw-configure<br>
><br>
> ./fyw-configure --enable-parallel<br>
><br>
> The screen told me the following information.<br>
><br>
> The following libraries have been found:<br>
>   BLAS_LIBS=-L/vol-th/lib/mklem64t -libmkl_blas95_lp64.a -libmkl_core.a<br>
> -libmkl_sequential.a<br>
>   LAPACK_LIBS=-L/vol-th/lib/mklem64t -libmkl_lapack95_ilp64.a<br>
>   SCALAPACK_LIBS=-L/vol-th/lib/mklem64t -libmkl_scalapack_lp64.a<br>
>   FFT_LIBS=<br>
> Please check if this is what you expect.<br>
><br>
> I'am sure that these MKL files indeed exist in the directory of<br>
> /vol-th/lib/mklem64t and they can be called by other computing softwares<br>
> without errors.<br>
><br>
> 3. make all<br>
><br>
> make all error:<br>
>            pwscf.o  libpw.a ../../Modules/libqemod.a ../../flib/ptools.a<br>
> ../../flib/flib.a ../../clib/clib.a ../../iotk/src/libiotk.a<br>
> -L/vol-th/lib/mklem64t -libmkl_scalapack_lp64.a -L/vol-th/lib/mklem64t<br>
> -libmkl_lapack95_ilp64.a  -L/vol-th/lib/mklem64t -libmkl_blas95_lp64.a<br>
> -libmkl_core.a -libmkl_sequential.a<br>
> ld: cannot find -libmkl_scalapack_lp64.a<br>
> make[2]: *** [pw.x] Error 1<br>
> make[2]: Leaving directory `/vol-th/home/fyw/pwscf/espresso-5.0.2/PW/src'<br>
> make[1]: *** [pw] Error 2<br>
> make[1]: Leaving directory `/vol-th/home/fyw/pwscf/espresso-5.0.2/PW'<br>
> make: *** [pw] Error 2<br>
><br>
> It seems to be a pseudo link though this file indeed exist there.<br>
><br>
> Maybe I hadn't compiled PWSCF for much time, some problems may be ignored by<br>
> me during configure steps. I hope experienced experts here can help me to<br>
> curb this problem.<br>
><br>
> Thank you in advance!<br>
><br>
> RegardsŁĄ<br>
> --<br>
> ------------------------------------------------------------------------------------------------------------<br>
> Yue-Wen FANG, PhD candidate<br>
> Key Laboratory of Polar Materials and Devices, Ministry of Education<br>
> East China Normal University<br>
><br>
><br>
><br>
><br>
</div></div><div class="im">> _______________________________________________<br>
> Pw_forum mailing list<br>
> <a href="mailto:Pw_forum@pwscf.org">Pw_forum@pwscf.org</a><br>
> <a href="http://pwscf.org/mailman/listinfo/pw_forum" target="_blank">http://pwscf.org/mailman/listinfo/pw_forum</a><br>
<br>
<br>
<br>
</div><span class=""><font color="#888888">--<br>
Dr. Axel Kohlmeyer  <a href="mailto:akohlmey@gmail.com">akohlmey@gmail.com</a>  <a href="http://goo.gl/1wk0" target="_blank">http://goo.gl/1wk0</a><br>
International Centre for Theoretical Physics, Trieste. Italy.<br>
</font></span><div class=""><div class="h5"><br>
_______________________________________________<br>
Pw_forum mailing list<br>
<a href="mailto:Pw_forum@pwscf.org">Pw_forum@pwscf.org</a><br>
<a href="http://pwscf.org/mailman/listinfo/pw_forum" target="_blank">http://pwscf.org/mailman/listinfo/pw_forum</a></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">------------------------------------------------------------------------------------------------------------<div>
Yue-Wen FANG, PhD candidate<br><div><a href="http://clpm.ecnu.edu.cn/" style="font-family:arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)" target="_blank">Key Laboratory of Polar Materials and Devices, Ministry of Education</a><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)">
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)"><a href="http://english.ecnu.edu.cn/" target="_blank">East China Normal University </a></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)">
<br></div></div><div><br></div><div><br></div></div></div>
</div></div></div>