<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    To my understanding, the gcc C preprocessor (v4.8.5) does not work
    with the option -C, because it adds an unwanted C style comment that
    the fortran compiler cannot process. Furthermore, the option -C has
    not the intended effect (to keep the comments) on fortran files,
    because it is not implemented. From the documentation<br>
    <a class="moz-txt-link-freetext" href="https://gcc.gnu.org/onlinedocs/gfortran/Preprocessing-Options.html">https://gcc.gnu.org/onlinedocs/gfortran/Preprocessing-Options.html</a><br>
    <br>
    Warning: this currently handles C-Style comments only. The
    preprocessor does not yet recognize Fortran-style comments. <br>
    <br>
    The comments are always kept, even if -C is not set. So I would
    suggest to remove the flag.<br>
    <br>
    The only disadvantage of removing the -C flag is when the project
    contains both C and fortran files, where the -C option might be
    wanted for the C files. In this case, one could replace cpp with gcc
    -cpp -E, which also doesn't add the C-style comment for some reason.<br>
    <br>
    Note, that this only affects the specific case, where we need to do
    the preprocessing separately from the compilation, i.e., when the
    compiler does not come with an option to do preprocessing +
    compilation in a single step, and only if the gcc C preprocessor is
    used.<br>
    <br>
    Martin<br>
    <br>
    <div class="moz-cite-prefix">On 18/05/16 13:34, Paolo Giannozzi
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAPMgbCucXY5bT0CfMz=aGZG1wsF6rGfztJ+cMWYXQnewqjrS1g@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>So what is the final agreement? is it a problem of a
          specific version of PGI, or a general problem affecting other
          compilers as well? Axel says that cpp -P -C has been used
          since years to preprocess fortran files<br>
          <br>
        </div>
        Paolo<br>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Wed, May 18, 2016 at 11:45 AM,
          Samuel Poncé <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:samuel.pon@gmail.com" target="_blank">samuel.pon@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">
              <div>
                <div>
                  <div>
                    <div>
                      <div>
                        <div>
                          <div>Hello Filippo, <br>
                            <br>
                          </div>
                          Just to finish. The version of pgi is <br>
                          pgfortran --version<br>
                          <br>
                          pgfortran 15.7-0 64-bit target on x86-64 Linux
                          -tp core2 <br>
                          <span class="">The Portland Group - PGI
                            Compilers and Tools<br>
                          </span>Copyright (c) 2015, NVIDIA
                          CORPORATION.  All rights reserved<br>
                          <br>
                        </div>
                        with gcc (GCC) 4.8.5 for the CPP.<br>
                        <br>
                      </div>
                      The bot that does that test can be found at <a
                        moz-do-not-send="true"
href="http://129.67.86.21:8010/builders/EPW-farm2_pgi15/builds/38/steps/make_pw/logs/stdio"
                        target="_blank"><a class="moz-txt-link-freetext" href="http://129.67.86.21:8010/builders/EPW-farm2_pgi15/builds/38/steps/make_pw/logs/stdio">http://129.67.86.21:8010/builders/EPW-farm2_pgi15/builds/38/steps/make_pw/logs/stdio</a></a><br>
                      <br>
                    </div>
                    As a side note, I was never able to compile QE with
                    pgi 12.10. <br>
                  </div>
                  Since its an old version, I gave up testing it. <br>
                  <br>
                </div>
                Best, <br>
              </div>
              <div>Sam<br>
              </div>
              <div>
                <div>
                  <div>
                    <div>
                      <div><br>
                        <div><br>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div class="gmail_extra">
              <div>
                <div class="h5"><br>
                  <div class="gmail_quote">On 17 May 2016 at 10:17,
                    Filippo SPIGA <span dir="ltr"><<a
                        moz-do-not-send="true"
                        href="mailto:filippo.spiga@quantum-espresso.org"
                        target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:filippo.spiga@quantum-espresso.org">filippo.spiga@quantum-espresso.org</a></a>></span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">Interesting
                      Martin, thanks for let us know. I have several
                      builds of GCC on the cluster, let me play a bit
                      swapping them !<br>
                      <span><br>
                        On May 17, 2016, at 5:15 PM, Martin Schlipf <<a
                          moz-do-not-send="true"
                          href="mailto:martin.schlipf@gmail.com"
                          target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:martin.schlipf@gmail.com">martin.schlipf@gmail.com</a></a>>
                        wrote:<br>
                        > Hello Filippo,<br>
                        ><br>
                      </span><span>> the builder that compiles with
                        PGI uses gcc 4.8.5 for the preprocessing.<br>
                        > I tested an older version 4.4.7, which does
                        not add the additional<br>
                        > C-style comment.<br>
                        <br>
                      </span>
                      <div>
                        <div>--<br>
                          Mr. Filippo SPIGA, M.Sc.<br>
                          Quantum ESPRESSO Foundation<br>
                          <a moz-do-not-send="true"
                            href="http://www.quantum-espresso.org"
                            rel="noreferrer" target="_blank">http://www.quantum-espresso.org</a>
                          ~ skype: filippo.spiga<br>
                          <br>
                          *****<br>
                          Disclaimer: "Please note this message and any
                          attachments are CONFIDENTIAL and may be
                          privileged or otherwise protected from
                          disclosure. The contents are not to be
                          disclosed to anyone other than the addressee.
                          Unauthorized recipients are requested to
                          preserve this confidentiality and to advise
                          the sender immediately of any error in
                          transmission."<br>
_______________________________________________<br>
                          Q-e-developers mailing list<br>
                          <a moz-do-not-send="true"
                            href="mailto:Q-e-developers@qe-forge.org"
                            target="_blank">Q-e-developers@qe-forge.org</a><br>
                          <a moz-do-not-send="true"
                            href="http://qe-forge.org/mailman/listinfo/q-e-developers"
                            rel="noreferrer" target="_blank">http://qe-forge.org/mailman/listinfo/q-e-developers</a><br>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                  <br>
                  <br clear="all">
                  <br>
                </div>
              </div>
              <span class="">-- <br>
                <div>
                  <div dir="ltr"><span><font color="#888888">
                        <pre cols="72">------------------------------------------------------------------------------------------------
    Dr. Samuel Poncé  
    Department of Materials
    University of Oxford
    Parks Road
    Oxford OX1 3PH, UK

    Phone: <a moz-do-not-send="true" href="tel:%2B44%201865%20612789" value="+441865612789" target="_blank">+44 1865 612789</a>
    email: <a moz-do-not-send="true" href="mailto:samuel.ponce@materials.ox.ac.uk" target="_blank">samuel.ponce@materials.ox.ac.uk</a> 
    web: <a moz-do-not-send="true" href="http://giustino.materials.ox.ac.uk/index.php/Site/SamuelPonc%e9" target="_blank">http://giustino.materials.ox.ac.uk/index.php/Site/SamuelPonc%e9</a>
------------------------------------------------------------------------------------------------</pre>
                      </font></span></div>
                </div>
              </span></div>
            <br>
            _______________________________________________<br>
            Q-e-developers mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Q-e-developers@qe-forge.org">Q-e-developers@qe-forge.org</a><br>
            <a moz-do-not-send="true"
              href="http://qe-forge.org/mailman/listinfo/q-e-developers"
              rel="noreferrer" target="_blank">http://qe-forge.org/mailman/listinfo/q-e-developers</a><br>
            <br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <br>
        -- <br>
        <div class="gmail_signature">
          <div dir="ltr">
            <div>
              <div dir="ltr">
                <div>Paolo Giannozzi, Dip. Scienze Matematiche
                  Informatiche e Fisiche,<br>
                  Univ. Udine, via delle Scienze 208, 33100 Udine, Italy<br>
                  Phone +39-0432-558216, fax +39-0432-558222<br>
                  <br>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Q-e-developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Q-e-developers@qe-forge.org">Q-e-developers@qe-forge.org</a>
<a class="moz-txt-link-freetext" href="http://qe-forge.org/mailman/listinfo/q-e-developers">http://qe-forge.org/mailman/listinfo/q-e-developers</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>