<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">I fixed this problem and I get the
      exact same error. Again, I grepped config.log and found the
      following.<br>
      <br>
      <br>
      $ grep -i error config.log<br id="yui_3_16_0_ym19_1_1532042154068_19403">
      pgcc-Error-Unknown switch: -qversion<br id="yui_3_16_0_ym19_1_1532042154068_19404">
      PGC/x86-64 Linux 18.4-0: compilation completed with severe errors<br id="yui_3_16_0_ym19_1_1532042154068_19405">
      PGC-S-0035-Syntax error: Recovery attempted by replacing
      identifier error by ';' (conftest.c: 14)<br id="yui_3_16_0_ym19_1_1532042154068_19406">
      PGC/x86-64 Linux 18.4-0: compilation completed with severe errors<br id="yui_3_16_0_ym19_1_1532042154068_19407">
      |                    Syntax error<br id="yui_3_16_0_ym19_1_1532042154068_19408">
      PGC-S-0035-Syntax error: Recovery attempted by replacing
      identifier error by ';' (conftest.c: 14)<br id="yui_3_16_0_ym19_1_1532042154068_19409">
      PGC/x86-64 Linux 18.4-0: compilation completed with severe errors<br id="yui_3_16_0_ym19_1_1532042154068_19410">
      |                    Syntax error<br id="yui_3_16_0_ym19_1_1532042154068_19411">
      configure:5951: error: in `/home/laytonjb/src/mpich-3.2.1':<br id="yui_3_16_0_ym19_1_1532042154068_19412">
      configure:5953: error: C preprocessor
      "/opt/pgi/linux86-64/18.4/bin/pgcc" fails sanity check<br id="yui_3_16_0_ym19_1_1532042154068_19413">
      HAVE_ERROR_CHECKING=''<br id="yui_3_16_0_ym19_1_1532042154068_19414">
      MPI_MAX_ERROR_STRING=''<br>
      <br>
      <br>
      <br>
      I'm not an expert but it looks like configure sends an unknown
      option to pgcc (-qversion). Then there appear to be some problems
      in mpich when built with pgcc.<br>
      <br>
      Any comments or thoughts?<br>
      <br>
      Thanks!<br>
      <br>
      Jeff<br>
      <br>
      <br>
    </div>
    <blockquote type="cite" cite="mid:57081310-659b-9c38-0797-750f30ab0f1f@att.net">Dooh.
      Thanks - I'll try this and see what happens.
      <br>
      <br>
      Thanks!
      <br>
      <br>
      Jeff
      <br>
      <br>
      <blockquote type="cite">
        <blockquote type="cite">Am 19.07.2018 um 01:19 schrieb Jeff
          Layton <a class="moz-txt-link-rfc2396E" href="mailto:laytonjb@att.net"><laytonjb@att.net></a>:
          <br>
          <br>
          Hello,
          <br>
          <br>
          I'm trying to build mpich-3.2.1 with the PGI 18.4 Community
          Edition compilers. However, I get an error when running
          configure. The configure line is,
          <br>
          <br>
          ./configure --prefix=/home/laytonjb/bin/pgi-18.4-mpich-3.2.1
          <br>
          <br>
          The error I get is,
          <br>
          <br>
          [laytonjb@laytonjb-Lenovo-G50-45 mpich-3.2.1]$ ./conf.jeff
          <br>
          Configuring MPICH version 3.2.1 with 
          '--prefix=/home/laytonjb/bin/pgi-18.4-mpich-3.2.1'
          'CC=/opt/pgi/linux86-64/18.4/bin/pgcc'
          'CPP=/opt/pgi/linux86-64/18.4/bin/pgcc'
          'CXX=/opt/pgi/linux86-64/18.4/bin/pgg++'
          'FC=/opt/pgi/linux86-64/18.4/bin/pgfortran'
          <br>
        </blockquote>
        pgg++ seems to be typo, duno whether this is related.
        <br>
        <br>
        -- Reuti
        <br>
        <br>
        <br>
        <blockquote type="cite">'F77=/opt/pgi/linux86-64/18.4/bin/pgf77'
          <br>
          Running on system: Linux laytonjb-Lenovo-G50-45
          3.10.0-693.17.1.el7.x86_64 #1 SMP Thu Jan 25 20:13:58 UTC 2018
          x86_64 x86_64 x86_64 GNU/Linux
          <br>
          checking whether the C compiler works... yes
          <br>
          checking for C compiler default output file name... a.out
          <br>
          checking for suffix of executables...
          <br>
          checking whether we are cross compiling... no
          <br>
          checking for suffix of object files... o
          <br>
          checking whether we are using the GNU C compiler... no
          <br>
          checking whether /opt/pgi/linux86-64/18.4/bin/pgcc accepts
          -g... yes
          <br>
          checking for /opt/pgi/linux86-64/18.4/bin/pgcc option to
          accept ISO C89... none needed
          <br>
          checking whether /opt/pgi/linux86-64/18.4/bin/pgcc understands
          -c and -o together... yes
          <br>
          checking how to run the C preprocessor...
          /opt/pgi/linux86-64/18.4/bin/pgcc
          <br>
          configure: error: in `/home/laytonjb/src/mpich-3.2.1':
          <br>
          configure: error: C preprocessor
          "/opt/pgi/linux86-64/18.4/bin/pgcc" fails sanity check
          <br>
          See `config.log' for more details
          <br>
          <br>
          I've briefly looked through the config.log and this is all
          that stands out:
          <br>
          <br>
          <br>
          $ grep -i error config.log
          <br>
          pgcc-Error-Unknown switch: -qversion
          <br>
          PGC/x86-64 Linux 18.4-0: compilation completed with severe
          errors
          <br>
          PGC-S-0035-Syntax error: Recovery attempted by replacing
          identifier error by ';' (conftest.c: 14)
          <br>
          PGC/x86-64 Linux 18.4-0: compilation completed with severe
          errors
          <br>
          |                    Syntax error
          <br>
          PGC-S-0035-Syntax error: Recovery attempted by replacing
          identifier error by ';' (conftest.c: 14)
          <br>
          PGC/x86-64 Linux 18.4-0: compilation completed with severe
          errors
          <br>
          |                    Syntax error
          <br>
          configure:5951: error: in `/home/laytonjb/src/mpich-3.2.1':
          <br>
          configure:5953: error: C preprocessor
          "/opt/pgi/linux86-64/18.4/bin/pgcc" fails sanity check
          <br>
          HAVE_ERROR_CHECKING=''
          <br>
          MPI_MAX_ERROR_STRING=''
          <br>
          <br>
          I'm not sure how to fix this error. I've attached the
          config.log file in case this helps.
          <br>
          <br>
          Thanks for any and all help.
          <br>
          <br>
          Jeff
          <br>
          <br>
          <br>
          <br>
          <br>
          <br>
          <br>
          <br>
          <br>
<config.log>_______________________________________________
          <br>
          discuss mailing list     <a class="moz-txt-link-abbreviated" href="mailto:discuss@mpich.org">discuss@mpich.org</a>
          <br>
          To manage subscription options or unsubscribe:
          <br>
          <a class="moz-txt-link-freetext" href="https://lists.mpich.org/mailman/listinfo/discuss">https://lists.mpich.org/mailman/listinfo/discuss</a>
          <br>
        </blockquote>
        <br>
      </blockquote>
      <br>
      _______________________________________________
      <br>
      discuss mailing list     <a class="moz-txt-link-abbreviated" href="mailto:discuss@mpich.org">discuss@mpich.org</a>
      <br>
      To manage subscription options or unsubscribe:
      <br>
      <a class="moz-txt-link-freetext" href="https://lists.mpich.org/mailman/listinfo/discuss">https://lists.mpich.org/mailman/listinfo/discuss</a>
      <br>
      <br>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>