<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Dear lurii,</p>
    <p><br>
    </p>
    <p>Thanks for the prompt reply.</p>
    <p><br>
    </p>
    <p>I have found the source of error, there is a parameter "FDFLAGS =
      $(DFLAGS) $(MANUAL_DFLAGS)" in the default make.sys. This is why
      the -D__ENVIRON parameters appeared twice before the error
      message.<br>
    </p>
    <p><br>
    </p>
    <p>I have commented "FDFLAGS" out and it complies okay.</p>
    <p><br>
    </p>
    <p>Regards,</p>
    <p>Rolly<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On Tuesday, January 23, 2018 09:31 PM,
      Timrov Iurii wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:1516714261958.91322@epfl.ch">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} @font-face
        {font-family:SimSun}
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
@font-face
        {}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
span.EmailStyle17
        {font-family:"Calibri","sans-serif";
        color:windowtext}
.MsoChpDefault
        {font-size:10.5pt;
        font-family:"Calibri","sans-serif"}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
div.WordSection1
        {}--></style>
      <p>Dear Rolly,</p>
      <p><br>
      </p>
      <p>Try to follow the instructions about a compilation of TDDFPT +
        ENVIRON exactly. Namely, first modify make.sys (or make.inc in
        the more recent versions of QE) and run the script
        <span style="font-family:courier new,courier,monospace;">makedeps.sh
          <span style="font-family: Calibri, Arial, Helvetica,
            sans-serif;">
            in /install and only then compile TDDFPT. Do not do "make
            all" before. <br>
          </span></span></p>
      <p><br>
      </p>
      <p>Why don't you try to use the latest versions of QE and ENVIRON?<br>
        <span style="font-family:courier new,courier,monospace;"><span
            style="font-family: Calibri, Arial, Helvetica, sans-serif;"></span></span></p>
      <p><br>
      </p>
      <p>HTH</p>
      <p><br>
      </p>
      <p>Regards,</p>
      <p>Iurii</p>
      <p><br>
      </p>
      <div id="Signature">
        <div name="divtagdefaultwrapper"
          style="font-family:Calibri,Arial,Helvetica,sans-serif;
          font-size:; margin:0">
          <div name="divtagdefaultwrapper"
            style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:; margin:0">
            <font size="3" face="'Times New Roman', Times, serif"
              color="808080">--<br>
              Dr. Iurii Timrov<br>
              Postdoctoral Researcher<br>
              Swiss Federal Institute of Technology Lausanne (EPFL<font
                color="808080"><font face="'Times New Roman', Times,
                  serif">)</font></font>
            </font></div>
          <div name="divtagdefaultwrapper"
            style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:; margin:0">
            <font size="3" face="'Times New Roman', Times, serif"
              color="808080">Laboratory of Theory and Simulation of
              Materials
              <font color="808080"><font face="'Times New Roman', Times,
                  serif">(THEOS)</font></font></font><font size="3"
              face="'Times New Roman', Times, serif" color="808080"><br>
            </font></div>
          <div name="divtagdefaultwrapper"
            style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:; margin:0">
            <font size="3" face="'Times New Roman', Times, serif"
              color="808080">CH-1015 Lausanne, Switzerland<br>
              +41 21 69 34 881</font></div>
        </div>
      </div>
      <div style="color: rgb(33, 33, 33);">
        <hr tabindex="-1" style="display:inline-block; width:98%">
        <div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
            face="Calibri, sans-serif" color="#000000"><b>From:</b>
            <a class="moz-txt-link-abbreviated" href="mailto:pw_forum-bounces@pwscf.org">pw_forum-bounces@pwscf.org</a>
            <a class="moz-txt-link-rfc2396E" href="mailto:pw_forum-bounces@pwscf.org"><pw_forum-bounces@pwscf.org></a> on behalf of Rolly Ng
            <a class="moz-txt-link-rfc2396E" href="mailto:rollyng@gmail.com"><rollyng@gmail.com></a><br>
            <b>Sent:</b> Tuesday, January 23, 2018 2:02 PM<br>
            <b>To:</b> 'PWSCF Forum'<br>
            <b>Subject:</b> [Pw_forum] Compilation error with Environ
            and TDDFPT</font>
          <div> </div>
        </div>
        <div>
          <div class="WordSection1">
            <p class="MsoNormal"><span style="font-size:11.0pt">Dear
                Environ Developers,</span></p>
            <p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
            <p class="MsoNormal"><span style="font-size:11.0pt">I am
                trying to compile Environ 0.2 with QE v5.3.0.</span></p>
            <p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
            <p class="MsoNormal"><span style="font-size:11.0pt">Compilation
                with PW, NEB and CP are okay following the instruction
                here,</span></p>
            <p class="MsoNormal"><span style="font-size:11.0pt"><a
                  href="http://www.quantum-environment.org/installation.html"
                  moz-do-not-send="true">http://www.quantum-environment.org/installation.html</a></span></p>
            <p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
            <p class="MsoNormal"><span style="font-size:11.0pt">However,
                as I compile with  TDDFPT, it shows</span></p>
            <p class="MsoNormal"><span style="font-size:11.0pt">ifort
                -O2 -assume byterecl -g -traceback -par-report0
                -vec-report0 -openmp -nomodule -openmp -fpp -D__INTEL
                -D__OPENMP -D__FFTW -D__PARA -D__ENVIRON -D__ENVIRON
                -I../../include -I../../iotk/src -I../../Modules
                -I../../FFTXlib -I . -I../../PW/src -I../../PHonon/PH -c
                lr_readin.f90</span></p>
            <p class="MsoNormal"><span style="font-size:11.0pt">lr_readin.f90(456):
                error #6404: This name does not have a type, and must
                have an explicit type.   [ASSUME_ISOLATED]</span></p>
            <p class="MsoNormal"><span style="font-size:11.0pt">       
                assume_isolated = 'makov-payne'</span></p>
            <p class="MsoNormal"><span style="font-size:11.0pt">--------^</span></p>
            <p class="MsoNormal"><span style="font-size:11.0pt">compilation
                aborted for lr_readin.f90 (code 1)</span></p>
            <p class="MsoNormal"><span style="font-size:11.0pt">make[3]:
                *** [lr_readin.o] Error 1</span></p>
            <p class="MsoNormal"><span style="font-size:11.0pt">make[3]:
                Leaving directory
                `/home/rollyng/QE530-CPU-haswell/espresso-5.3.0/TDDFPT/src'</span></p>
            <p class="MsoNormal"><span style="font-size:11.0pt">make[2]:
                *** [tddfpt] Error 1</span></p>
            <p class="MsoNormal"><span style="font-size:11.0pt">make[2]:
                Leaving directory
                `/home/rollyng/QE530-CPU-haswell/espresso-5.3.0/TDDFPT'</span></p>
            <p class="MsoNormal"><span style="font-size:11.0pt">make[1]:
                *** [tddfpt] Error 1</span></p>
            <p class="MsoNormal"><span style="font-size:11.0pt">make[1]:
                Leaving directory
                `/home/rollyng/QE530-CPU-haswell/espresso-5.3.0/install'</span></p>
            <p class="MsoNormal"><span style="font-size:11.0pt">make:
                *** [tddfpt] Error 1</span></p>
            <p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
            <p class="MsoNormal"><span style="font-size:11.0pt">However,
                before adding the Environ plugin, make all does produce
                the turbo_xxx.x executables in the bin directory.</span></p>
            <p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
            <p class="MsoNormal"><span style="font-size:11.0pt">Please
                help and thank you!</span></p>
            <p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
            <p class="MsoNormal"><span style="font-size:11.0pt">Regards,</span></p>
            <p class="MsoNormal"><span style="font-size:11.0pt">Rolly </span></p>
            <p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
            <p class="MsoNormal" style="text-align:left" align="left"><span
                style="font-size:12.0pt">PhD, Research Fellow,</span></p>
            <p class="MsoNormal" style="text-align:left" align="left"><span
                style="font-size:12.0pt">Department of Materials Science
                and Engineering,</span></p>
            <p class="MsoNormal" style="text-align:left" align="left"><span
                style="font-size:12.0pt">City University of Hong Kong</span></p>
            <p class="MsoNormal" style="text-align:left" align="left"><span
                style="font-size:12.0pt">Tel: +852 3442 4000</span></p>
            <p class="MsoNormal" style="text-align:left" align="left"><span
                style="font-size:12.0pt">Fax: +852 3442 0892</span></p>
            <p class="MsoNormal"> </p>
          </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>
    <pre class="moz-signature" cols="72">-- 
PhD, Research Fellow,
Department of Materials Science and Engineering,
City University of Hong Kong
Tel: +852 3442 4000
Fax: +852 3442 0892</pre>
  </body>
</html>