<div dir="ltr"><div>You are using "xild" as loader, maybe because your variable LD is set to xild (configure does not contain any reference to xild). The typical choice is to use the compiler as loader, so LD=mpiifort in your case<br><br></div>Paolo<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 16, 2015 at 5:23 AM, Éric Germaneau <span dir="ltr"><<a href="mailto:germaneau@sjtu.edu.cn" target="_blank">germaneau@sjtu.edu.cn</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#333399" bgcolor="#CCCCFF">
    @Paolo,<br>
    <br>
    Thank you, but when I remove it I get tones of "undefined reference"
    related to Intel libraries.<br>
    <br>
    @Rolly,<br>
    <br>
    Thank you, but unfortunately that give rise to many  "undefined
    reference".<br>
    <br>
    @Filippo,<br>
    <br>
    Here is the log I initially got, thanks.<div><div class="h5"><br>
    <br>
    <br>
    <br>
    <div>On 11/16/2015 10:17 AM, Rolly Ng wrote:<br>
    </div>
    </div></div><blockquote type="cite">
      
      
      
      <div><div><div class="h5">
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi
            Eric,<u></u><u></u></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Please
            try this,<u></u><u></u></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">./configure
            CC=icc CXX=icpc F90=ifort F77=ifort MPIF90=mpiifort \<u></u><u></u></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> 
            BLAS_LIBS="-lmkl_intel_lp64 -lmkl_sequential -lmkl_core" \<u></u><u></u></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> 
            SCALAPACK_LIBS="-lmkl_scalapack_lp64
            -lmkl_blacs_intelmpi_lp64" \<u></u><u></u></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> 
            FFT_LIBS="-lmkl_intel_lp64 -lmkl_sequential -lmkl_core"<u></u><u></u></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Rolly<u></u><u></u></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
        <div>
          <div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">
                <a href="mailto:pw_forum-bounces@pwscf.org" target="_blank">pw_forum-bounces@pwscf.org</a>
                [<a href="mailto:pw_forum-bounces@pwscf.org" target="_blank">mailto:pw_forum-bounces@pwscf.org</a>] <b>On Behalf Of </b>éric
                Germaneau<br>
                <b>Sent:</b> 2015</span><span style="font-size:10.0pt;font-family:宋体;color:windowtext" lang="ZH-CN">年</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">11</span><span style="font-size:10.0pt;font-family:宋体;color:windowtext" lang="ZH-CN">月</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">10</span><span style="font-size:10.0pt;font-family:宋体;color:windowtext" lang="ZH-CN">日</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">
                19:21<br>
                <b>To:</b> <a href="mailto:pw_forum@pwscf.org" target="_blank">pw_forum@pwscf.org</a><br>
                <b>Subject:</b> [Pw_forum] 5.2.1 release building issue<u></u><u></u></span></p>
          </div>
        </div>
        <p class="MsoNormal"><u></u> <u></u></p>
        <p class="MsoNormal">Dear all,<br>
          <br>
          I'm using Intel compiler 15.0,  MKL 11.2, and IMPI 5.0.1 to
          compile QE version 5.2.1 but getting the error bellow:<u></u><u></u></p>
        <p class="MsoNormal"><tt><span style="font-size:10.0pt;color:#330099">.....</span></tt><span><br>
            <tt>a - iotk_xtox_interf.o</tt><br>
            <tt>ranlib libiotk.a</tt><br>
            <tt>mpiifort -O3 -xhost -openmp -mkl -nomodule -openmp -fpp
              -D__INTEL -D__FFTW -D__MPI -D__PARA -D__OPENMP  
              -I../include  -c iotk_print_kinds.f90</tt><br>
            <tt>make loclib_only</tt><br>
            <tt>make[3]: Entering directory
              `/path/to/QE/5.2.1/espresso-5.2.1/S3DE/iotk/src'</tt><br>
            <tt>make[3]: Nothing to be done for `loclib_only'.</tt><br>
            <tt>make[3]: Leaving directory
              `/path/to/QE/5.2.1/espresso-5.2.1/S3DE/iotk/src'</tt><br>
            <tt>xild -static-intel  -openmp -o iotk_print_kinds.x
              iotk_print_kinds.o libiotk.a   </tt><br>
            <tt>ipo: warning #11016: Warning unknown option
              -static-intel</tt><br>
            <tt>xild: executing 'ld'</tt><br>
            <tt>ld: unrecognized -a option `tic-intel'</tt><br>
            <tt>make[2]: *** [iotk_print_kinds.x] Error 1</tt><br>
            <tt>make[2]: Leaving directory
              `/path/to/QE/5.2.1/espresso-5.2.1/S3DE/iotk/src'</tt><br>
            <tt>make[1]: *** [libiotk] Error 2</tt><br>
            <tt>make[1]: Leaving directory
              `/path/to/QE/5.2.1/espresso-5.2.1/install'</tt><br>
            <tt>make: *** [libiotk] Error 2</tt></span><u></u><u></u></p>
        <p class="MsoNormal">Here is how I proceed:<u></u><u></u></p>
        <p class="MsoNormal"><tt><span style="font-size:10.0pt">export
              CC="icc"</span></tt><span style="font-size:10.0pt;font-family:"Courier New""><br>
            <tt>export FC="ifort"</tt><br>
            <tt>export MPIF90="mpiifort"</tt><br>
            <tt>export CFLAGS="-O3 -xhost -openmp -mkl"</tt><br>
            <tt>export FFLAGS="-O3 -xhost -openmp -mkl"</tt><br>
            <tt>./configure --enable-parallel --enable-openmp
              --without-scalapack</tt><br>
            <tt>make pw</tt></span><u></u><u></u></p>
        <p class="MsoNormal" style="margin-bottom:12.0pt">I'm wondering
          if someone else also got this error.<br>
          <br>
          Thank you.<u></u><u></u></p>
        </div></div><div>
          <p class="MsoNormal">-- <br>
            Éric Germaneau (<span style="font-family:宋体" lang="ZH-CN">艾海
              克</span>), Specialist<span class=""><br>
            Center for High Performance Computing<br>
            Shanghai Jiao Tong University<br>
            Room 205 Network Center, 800 Dongchuan Road, Shanghai 200240
            China<br>
            <a href="mailto:Email:germaneau@sjtu.edu.cn" target="_blank">Email:germaneau@sjtu.edu.cn</a>
            Mobi:<a href="tel:%2B86-136-4161-6480" value="+8613641616480" target="_blank">+86-136-4161-6480</a> <a href="http://hpc.sjtu.edu.cn" target="_blank">http://hpc.sjtu.edu.cn</a> <u></u><u></u></span></p>
        </div><span class="">
        <div>
          <div>
            <div>
              <div>
                <ul type="disc">
                  <li class="MsoNormal">Chinese (Simplified) - detected<u></u><u></u></li>
                  <li class="MsoNormal">English<u></u><u></u></li>
                  <li class="MsoNormal">Chinese (Simplified)<u></u><u></u></li>
                </ul>
              </div>
              <div>
                <ul type="disc">
                  <li class="MsoNormal">English<u></u><u></u></li>
                  <li class="MsoNormal">Chinese (Simplified)<u></u><u></u></li>
                </ul>
              </div>
            </div>
          </div>
        </div>
      </span></div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
Pw_forum mailing list
<a href="mailto:Pw_forum@pwscf.org" target="_blank">Pw_forum@pwscf.org</a>
<a href="http://pwscf.org/mailman/listinfo/pw_forum" target="_blank">http://pwscf.org/mailman/listinfo/pw_forum</a></pre>
    </blockquote><span class="">
    <br>
    <div>-- <br>
      <font color="#333399">
        Éric Germaneau (艾海克), Specialist<br>
        Center for High Performance Computing<br>
        Shanghai Jiao Tong University<br>
        Room 205 Network Center, 800 Dongchuan Road, Shanghai 200240
        China<br>
        <a href="mailto:Email:germaneau@sjtu.edu.cn" target="_blank">Email:germaneau@sjtu.edu.cn</a> Mobi:<a href="tel:%2B86-136-4161-6480" value="+8613641616480" target="_blank">+86-136-4161-6480</a>
        <a href="http://hpc.sjtu.edu.cn" target="_blank">http://hpc.sjtu.edu.cn</a>
      </font>
    </div>
  </span></div>

<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" rel="noreferrer" target="_blank">http://pwscf.org/mailman/listinfo/pw_forum</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span><span><font color="#888888">Paolo Giannozzi, Dept. Chemistry&Physics&Environment,<br>
Univ. Udine, via delle Scienze 208, 33100 Udine, Italy<br>
Phone <a href="tel:%2B39-0432-558216" value="+390432558216" target="_blank">+39-0432-558216</a>, fax <a href="tel:%2B39-0432-558222" value="+390432558222" target="_blank">+39-0432-558222</a></font></span></span></div></div></div></div>
</div>