<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#333399" bgcolor="#CCCCFF">
    Thank you so munch Paolo.<br>
    That was the issue.<br>
    <br>
    <div class="moz-cite-prefix">On 11/16/2015 03:17 PM, Paolo Giannozzi
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAPMgbCv-JG7U-+kE8n1zBxLhsQVkhV6=xj5vj4maZGK2e30LRA@mail.gmail.com"
      type="cite">
      <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 moz-do-not-send="true"
              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,</span></p>
                      <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p>
                      <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Please

                          try this,</span></p>
                      <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </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 \</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" \</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" \</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"</span></p>
                      <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p>
                      <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Rolly</span></p>
                      <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </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 moz-do-not-send="true"
                                href="mailto:pw_forum-bounces@pwscf.org"
                                target="_blank">pw_forum-bounces@pwscf.org</a>
                              [<a moz-do-not-send="true"
                                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 moz-do-not-send="true"
                                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</span></p>
                        </div>
                      </div>
                      <p class="MsoNormal"> </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:</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></p>
                      <p class="MsoNormal">Here is how I proceed:</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></p>
                      <p class="MsoNormal" style="margin-bottom:12.0pt">I'm
                        wondering if someone else also got this error.<br>
                        <br>
                        Thank you.</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 moz-do-not-send="true"
                          href="mailto:Email:germaneau@sjtu.edu.cn"
                          target="_blank">Email:germaneau@sjtu.edu.cn</a>
                        Mobi:<a moz-do-not-send="true"
                          href="tel:%2B86-136-4161-6480"
                          value="+8613641616480" target="_blank">+86-136-4161-6480</a>
                        <a moz-do-not-send="true"
                          href="http://hpc.sjtu.edu.cn" target="_blank">http://hpc.sjtu.edu.cn</a>
                      </span></p>
                  </div>
                  <span class="">
                    <div>
                      <div>
                        <div>
                          <div>
                            <ul type="disc">
                              <li class="MsoNormal">Chinese (Simplified)
                                - detected</li>
                              <li class="MsoNormal">English</li>
                              <li class="MsoNormal">Chinese (Simplified)</li>
                            </ul>
                          </div>
                          <div>
                            <ul type="disc">
                              <li class="MsoNormal">English</li>
                              <li class="MsoNormal">Chinese (Simplified)</li>
                            </ul>
                          </div>
                        </div>
                      </div>
                    </div>
                  </span></div>
                <br>
                <fieldset></fieldset>
                <br>
                <pre>_______________________________________________
Pw_forum mailing list
<a moz-do-not-send="true" href="mailto:Pw_forum@pwscf.org" target="_blank">Pw_forum@pwscf.org</a>
<a moz-do-not-send="true" 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 moz-do-not-send="true"
                      href="mailto:Email:germaneau@sjtu.edu.cn"
                      target="_blank">Email:germaneau@sjtu.edu.cn</a>
                    Mobi:<a moz-do-not-send="true"
                      href="tel:%2B86-136-4161-6480"
                      value="+8613641616480" target="_blank">+86-136-4161-6480</a>
                    <a moz-do-not-send="true"
                      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 moz-do-not-send="true" href="mailto:Pw_forum@pwscf.org">Pw_forum@pwscf.org</a><br>
            <a moz-do-not-send="true"
              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 moz-do-not-send="true"
                        href="tel:%2B39-0432-558216"
                        value="+390432558216" target="_blank">+39-0432-558216</a>,
                      fax <a moz-do-not-send="true"
                        href="tel:%2B39-0432-558222"
                        value="+390432558222" target="_blank">+39-0432-558222</a></font></span></span></div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Pw_forum mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Pw_forum@pwscf.org">Pw_forum@pwscf.org</a>
<a class="moz-txt-link-freetext" href="http://pwscf.org/mailman/listinfo/pw_forum">http://pwscf.org/mailman/listinfo/pw_forum</a></pre>
    </blockquote>
    <br>
    <div class="moz-signature">-- <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 class="moz-txt-link-abbreviated" href="mailto:Email:germaneau@sjtu.edu.cn">Email:germaneau@sjtu.edu.cn</a> Mobi:+86-136-4161-6480
        <a class="moz-txt-link-freetext" href="http://hpc.sjtu.edu.cn">http://hpc.sjtu.edu.cn</a>
      </font>
    </div>
  </body>
</html>