<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Please let me know the configure command used.
<div class=""><br class="">
<div class="">Wei-keng </div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Oct 24, 2021, at 1:29 PM, Carl Ponder <<a href="mailto:cponder@nvidia.com" class="">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 face="monospace" class="">PATH</font> being printed during the build<br class="">
<blockquote class=""><font face="monospace" class="">Step 95/156 : RUN echo ${PATH}</font><br class="">
<font face="monospace" class=""> ---> Running in 8586a4aef68a</font><br class="">
<font face="monospace" class="">/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 face="monospace" class="">pilers/bin</font><br class="">
</blockquote>
And the <font face="monospace" class="">mpicc</font> location tests correctly:<br class="">
<blockquote class=""><font face="monospace" class="">Step 95/155 : RUN which mpicc</font><br class="">
<font face="monospace" class=""> ---> Running in e2161d554278</font><br class="">
<b class=""><font face="monospace" class="">/usr/local/bin/mpicc</font></b><br class="">
</blockquote>
<hr width="100%" size="2" class="">
<table class="moz-email-headers-table" cellspacing="0" cellpadding="0" border="0">
<tbody class="">
<tr class="">
<th valign="BASELINE" nowrap="nowrap" align="RIGHT" class="">Subject: </th>
<td class="">Re: Path oddity in PNetCDF build/configure</td>
</tr>
<tr class="">
<th valign="BASELINE" nowrap="nowrap" align="RIGHT" class="">Date: </th>
<td class="">Sun, 24 Oct 2021 16:32:42 +0400</td>
</tr>
<tr class="">
<th valign="BASELINE" nowrap="nowrap" align="RIGHT" class="">From: </th>
<td class="">Bruno Pagani <a class="moz-txt-link-rfc2396E" href="mailto:bruno.pagani@astrophysics.eu">
<bruno.pagani@astrophysics.eu></a></td>
</tr>
<tr class="">
<th valign="BASELINE" nowrap="nowrap" align="RIGHT" class="">To: </th>
<td class="">Carl Ponder <a class="moz-txt-link-rfc2396E" href="mailto:cponder@nvidia.com">
<cponder@nvidia.com></a>, Wei-keng Liao <a class="moz-txt-link-rfc2396E" href="mailto:wkliao@eecs.northwestern.edu">
<wkliao@eecs.northwestern.edu></a></td>
</tr>
<tr class="">
<th valign="BASELINE" nowrap="nowrap" align="RIGHT" class="">CC: </th>
<td class=""><a class="moz-txt-link-abbreviated" href="mailto:parallel-netcdf@lists.mcs.anl.gov">parallel-netcdf@lists.mcs.anl.gov</a></td>
</tr>
</tbody>
</table>
<br class="">
<br class="">
<table border="1" bgcolor="#FFEB9C" class="">
<tbody class="">
<tr class="">
<td class=""><font size="1" face="verdana" class=""><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 width="100%" size="2" class="">
<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">
<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 face="monospace" class="">MPICC=mpicc</font> and <font face="monospace" class="">
mpicc</font> on my<font face="monospace" class=""> $PATH</font>, I see this during the
<font face="monospace" class="">configure</font> phase:<font face="monospace" class=""><br class="">
</font>
<blockquote class=""><font face="monospace" class="">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 face="monospace" class="">configure: error: </font><br class="">
<font face="monospace" class="">   -----------------------------------------------------------------------</font><br class="">
<font face="monospace" class="">     Specified MPI C compiler "mpicc" cannot be found under yes</font><br class="">
<font face="monospace" class="">     PnetCDF requires a working MPI C compiler. Please specify the location</font><br class="">
<font face="monospace" class="">     of an MPI C compiler, either in the MPICC environment variable</font><br class="">
<font face="monospace" class="">     (not CC variable) or through --with-mpi configure flag. Abort.</font><br class="">
<font face="monospace" class="">   -----------------------------------------------------------------------</font><br class="">
</blockquote>
I can work around it by making the path absolute<br class="">
<blockquote class=""><font face="monospace" class="">ENV MPICC /usr/local/bin/mpicc<br class="">
...</font><font face="monospace" class=""><br class="">
</font><font face="monospace" class="">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 face="monospace" class="">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>
</body>
</html>