<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body class="" style="word-wrap: break-word; -webkit-nbsp-mode: space;
    line-break: after-white-space;">
    <br>
    I attached the <font face="monospace">config.log</font> here, but
    it doesn't show the steps used in the <font face="monospace">mpicc</font>
    checking:<br>
    <blockquote><font face="monospace">configure:4284: result:
        /usr/bin/sed -i''</font><br>
      <b><font face="monospace">configure:4682: checking mpicc under yes</font></b><br>
      <font face="monospace">configure:4689: result: no</font><br>
      <font face="monospace">configure:4772: error: </font><br>
      <font face="monospace">  
        -----------------------------------------------------------------------</font><br>
      <font face="monospace">     Specified MPI C compiler "mpicc"
        cannot be found under yes</font><br>
      <font face="monospace">     PnetCDF requires a working MPI C
        compiler. Please specify the location</font><br>
      <font face="monospace">     of an MPI C compiler, either in the
        MPICC environment variable</font><br>
      <font face="monospace">     (not CC variable) or through
        --with-mpi configure flag. Abort.</font><br>
      <font face="monospace">  
        -----------------------------------------------------------------------</font><br>
    </blockquote>
    The command-line I used was<br>
    <blockquote><font face="monospace">./configure --prefix=/usr/local
        --enable-shared --with-mpi --enable-large-single-req </font><br>
    </blockquote>
    <div class="moz-forward-container"><br>
      <hr width="100%" size="2">
      <table class="moz-email-headers-table" cellspacing="0"
        cellpadding="0" border="0">
        <tbody>
          <tr>
            <th valign="BASELINE" nowrap="nowrap" align="RIGHT">Subject:
            </th>
            <td>Re: Path oddity in PNetCDF build/configure</td>
          </tr>
          <tr>
            <th valign="BASELINE" nowrap="nowrap" align="RIGHT">Date: </th>
            <td>Sun, 24 Oct 2021 19:22:06 +0000</td>
          </tr>
          <tr>
            <th valign="BASELINE" nowrap="nowrap" align="RIGHT">From: </th>
            <td>Wei-Keng Liao <a class="moz-txt-link-rfc2396E" href="mailto:wkliao@northwestern.edu"><wkliao@northwestern.edu></a></td>
          </tr>
          <tr>
            <th valign="BASELINE" nowrap="nowrap" align="RIGHT">To: </th>
            <td>Carl Ponder <a class="moz-txt-link-rfc2396E" href="mailto:cponder@nvidia.com"><cponder@nvidia.com></a></td>
          </tr>
          <tr>
            <th valign="BASELINE" nowrap="nowrap" align="RIGHT">CC: </th>
            <td>Bruno Pagani <a class="moz-txt-link-rfc2396E" href="mailto:bruno.pagani@astrophysics.eu"><bruno.pagani@astrophysics.eu></a>,
              <a class="moz-txt-link-abbreviated" href="mailto:parallel-netcdf@lists.mcs.anl.gov">parallel-netcdf@lists.mcs.anl.gov</a>
              <a class="moz-txt-link-rfc2396E" href="mailto:parallel-netcdf@lists.mcs.anl.gov"><parallel-netcdf@lists.mcs.anl.gov></a></td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <table border="1" bgcolor="#FFEB9C">
        <tbody>
          <tr>
            <td><font size="1" face="verdana" color="black"><b>External
                  email: Use caution opening links or attachments</b>
              </font></td>
          </tr>
        </tbody>
      </table>
      <br>
      <div>Please let me know the configure command used.
        <div class=""><br class="">
          <div class="">Wei-keng </div>
          <div>
            <hr width="100%" size="2"><br>
            <table class="moz-email-headers-table" cellspacing="0"
              cellpadding="0" border="0">
              <tbody>
                <tr>
                  <th valign="BASELINE" nowrap="nowrap" align="RIGHT">Subject:
                  </th>
                  <td>Re: Path oddity in PNetCDF build/configure</td>
                </tr>
                <tr>
                  <th valign="BASELINE" nowrap="nowrap" align="RIGHT">Date:
                  </th>
                  <td>Sun, 24 Oct 2021 17:06:01 +0000</td>
                </tr>
                <tr>
                  <th valign="BASELINE" nowrap="nowrap" align="RIGHT">From:
                  </th>
                  <td>Wei-Keng Liao <a class="moz-txt-link-rfc2396E" href="mailto:wkliao@northwestern.edu"><wkliao@northwestern.edu></a></td>
                </tr>
                <tr>
                  <th valign="BASELINE" nowrap="nowrap" align="RIGHT">To:
                  </th>
                  <td>Carl Ponder <a class="moz-txt-link-rfc2396E" href="mailto:cponder@nvidia.com"><cponder@nvidia.com></a></td>
                </tr>
                <tr>
                  <th valign="BASELINE" nowrap="nowrap" align="RIGHT">CC:
                  </th>
                  <td><a class="moz-txt-link-abbreviated" href="mailto:parallel-netcdf@lists.mcs.anl.gov">parallel-netcdf@lists.mcs.anl.gov</a>
                    <a class="moz-txt-link-rfc2396E" href="mailto:parallel-netcdf@lists.mcs.anl.gov"><parallel-netcdf@lists.mcs.anl.gov></a></td>
                </tr>
              </tbody>
            </table>
            <br>
            <br>
            <table border="1" bgcolor="#FFEB9C">
              <tbody>
                <tr>
                  <td><font size="1" face="verdana" color="black"><b>External
                        email: Use caution opening links or attachments</b>
                    </font></td>
                </tr>
              </tbody>
            </table>
            <br>
            <div>Hi, Carl
              <div class=""><br class="">
              </div>
              <div class="">Please send me the file config.log.</div>
              <div class=""><br class="">
                <div class="">Wei-keng </div>
                <div><br>
                </div>
              </div>
            </div>
            <hr width="100%" size="2">
            <blockquote type="cite" class="">
              <div class="">On Oct 24, 2021, at 1:29 PM, Carl Ponder
                <<a href="mailto:cponder@nvidia.com" class=""
                  moz-do-not-send="true">cponder@nvidia.com</a>>
                wrote:</div>
              <br class="Apple-interchange-newline">
              <div class="">
                <div class=""><br class="">
                  <div class="moz-forward-container">This is in a
                    Dockerfile rather than my usual bash scripting.<br
                      class="">
                    Here's the <font class="" face="monospace">PATH</font>
                    being printed during the build<br class="">
                    <blockquote class=""><font class="" face="monospace">Step
                        95/156 : RUN echo ${PATH}</font><br class="">
                      <font class="" face="monospace"> ---> Running
                        in 8586a4aef68a</font><br class="">
                      <font class="" face="monospace">/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/bin:/usr/local/cuda/bin:/usr/local/pgi/Linux_x86_64/21.9/com</font><font
                        class="" face="monospace">pilers/bin</font><br
                        class="">
                    </blockquote>
                    And the <font class="" face="monospace">mpicc</font>
                    location tests correctly:<br class="">
                    <blockquote class=""><font class="" face="monospace">Step
                        95/155 : RUN which mpicc</font><br class="">
                      <font class="" face="monospace"> ---> Running
                        in e2161d554278</font><br class="">
                      <b class=""><font class="" face="monospace">/usr/local/bin/mpicc</font></b><br
                        class="">
                    </blockquote>
                    <hr class="" width="100%" size="2">
                    <table class="moz-email-headers-table"
                      cellspacing="0" cellpadding="0" border="0">
                      <tbody class="">
                        <tr class="">
                          <th class="" valign="BASELINE" nowrap="nowrap"
                            align="RIGHT">Subject: </th>
                          <td class="">Re: Path oddity in PNetCDF
                            build/configure</td>
                        </tr>
                        <tr class="">
                          <th class="" valign="BASELINE" nowrap="nowrap"
                            align="RIGHT">Date: </th>
                          <td class="">Sun, 24 Oct 2021 16:32:42 +0400</td>
                        </tr>
                        <tr class="">
                          <th class="" valign="BASELINE" nowrap="nowrap"
                            align="RIGHT">From: </th>
                          <td class="">Bruno Pagani <a
                              class="moz-txt-link-rfc2396E"
                              href="mailto:bruno.pagani@astrophysics.eu"
                              moz-do-not-send="true">
                              <bruno.pagani@astrophysics.eu></a></td>
                        </tr>
                        <tr class="">
                          <th class="" valign="BASELINE" nowrap="nowrap"
                            align="RIGHT">To: </th>
                          <td class="">Carl Ponder <a
                              class="moz-txt-link-rfc2396E"
                              href="mailto:cponder@nvidia.com"
                              moz-do-not-send="true">
                              <cponder@nvidia.com></a>, Wei-keng
                            Liao <a class="moz-txt-link-rfc2396E"
                              href="mailto:wkliao@eecs.northwestern.edu"
                              moz-do-not-send="true">
                              <wkliao@eecs.northwestern.edu></a></td>
                        </tr>
                        <tr class="">
                          <th class="" valign="BASELINE" nowrap="nowrap"
                            align="RIGHT">CC: </th>
                          <td class=""><a
                              class="moz-txt-link-abbreviated"
                              href="mailto:parallel-netcdf@lists.mcs.anl.gov"
                              moz-do-not-send="true">parallel-netcdf@lists.mcs.anl.gov</a></td>
                        </tr>
                      </tbody>
                    </table>
                    <br class="">
                    <br class="">
                    <table class="" border="1" bgcolor="#FFEB9C">
                      <tbody class="">
                        <tr class="">
                          <td class=""><font class="" size="1"
                              face="verdana"><b class="">External email:
                                Use caution opening links or attachments</b>
                            </font></td>
                        </tr>
                      </tbody>
                    </table>
                    <br class="">
                    <div class="">How do you set PATH? Did you quote it?
                      Seems somehow your path end up being yes, likely
                      due to expansion of its previous value.<br
                        class="">
                      <br class="">
                      <br class="">
                      <hr class="" width="100%" size="2">
                      <div class="gmail_quote">Le 24 octobre 2021
                        16:30:03 GMT+04:00, Carl Ponder <a
                          class="moz-txt-link-rfc2396E"
                          href="mailto:cponder@nvidia.com"
                          moz-do-not-send="true">
                          <cponder@nvidia.com></a> a écrit :
                        <blockquote class="gmail_quote" style="margin:
                          0pt 0pt 0pt 0.8ex; border-left: 1px solid
                          rgb(204, 204, 204); padding-left: 1ex;">
                          When I build PNetCDF with <font class=""
                            face="monospace">MPICC=mpicc</font> and <font
                            class="" face="monospace">
                            mpicc</font> on my<font class=""
                            face="monospace"> $PATH</font>, I see this
                          during the
                          <font class="" face="monospace">configure</font>
                          phase:<font class="" face="monospace"><br
                              class="">
                          </font>
                          <blockquote class=""><font class=""
                              face="monospace">ENV
                              PATH=${PATH}:/usr/local/bin<br class="">
                              ENV MPICC mpicc<br class="">
                              ...<br class="">
                              checking for sed handling option -i ...
                              /usr/bin/sed -i''<br class="">
                              <b class="">checking mpicc under yes... no</b></font><br
                              class="">
                            <font class="" face="monospace">configure:
                              error: </font><br class="">
                            <font class="" face="monospace">  
                              -----------------------------------------------------------------------</font><br
                              class="">
                            <font class="" face="monospace">    
                              Specified MPI C compiler "mpicc" cannot be
                              found under yes</font><br class="">
                            <font class="" face="monospace">     PnetCDF
                              requires a working MPI C compiler. Please
                              specify the location</font><br class="">
                            <font class="" face="monospace">     of an
                              MPI C compiler, either in the MPICC
                              environment variable</font><br class="">
                            <font class="" face="monospace">     (not CC
                              variable) or through --with-mpi configure
                              flag. Abort.</font><br class="">
                            <font class="" face="monospace">  
                              -----------------------------------------------------------------------</font><br
                              class="">
                          </blockquote>
                          I can work around it by making the path
                          absolute<br class="">
                          <blockquote class=""><font class=""
                              face="monospace">ENV MPICC
                              /usr/local/bin/mpicc<br class="">
                              ...</font><font class="" face="monospace"><br
                                class="">
                            </font><font class="" face="monospace">checking
                              for sed handling option -i ...
                              /usr/bin/sed -i''<br class="">
                              <b class="">checking whether
                                /usr/local/bin/mpicc exists and is
                                executable... yes</b><br class="">
                            </font></blockquote>
                          But, based on the first message, I'm thinking
                          there's an incorrect path-search during the
                          <font class="" face="monospace">configure</font>
                          phase.<br class="">
                          This is with PNetCDF 1.12.2.<br class="">
                        </blockquote>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </blockquote>
          </div>
          <br class="">
        </div>
      </div>
    </div>
  </body>
</html>