<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<br>
<div class="moz-forward-container">This is in a Dockerfile rather
than my usual bash scripting.<br>
Here's the <font face="monospace">PATH</font> being printed
during the build<br>
<blockquote><font face="monospace">Step 95/156 : RUN echo ${PATH}</font><br>
<font face="monospace"> ---> Running in 8586a4aef68a</font><br>
<font 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
face="monospace">pilers/bin</font><br>
</blockquote>
And the <font face="monospace">mpicc</font> location tests
correctly:<br>
<blockquote><font face="monospace">Step 95/155 : RUN which mpicc</font><br>
<font face="monospace"> ---> Running in e2161d554278</font><br>
<b><font face="monospace">/usr/local/bin/mpicc</font></b><br>
</blockquote>
<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 16:32:42 +0400</td>
</tr>
<tr>
<th valign="BASELINE" nowrap="nowrap" align="RIGHT">From: </th>
<td>Bruno Pagani <a class="moz-txt-link-rfc2396E" href="mailto:bruno.pagani@astrophysics.eu"><bruno.pagani@astrophysics.eu></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>, Wei-keng Liao
<a class="moz-txt-link-rfc2396E" href="mailto:wkliao@eecs.northwestern.edu"><wkliao@eecs.northwestern.edu></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></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>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>
<br>
<br>
<hr 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"><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">MPICC=mpicc</font>
and <font face="monospace">
mpicc</font> on my<font face="monospace"> $PATH</font>, I
see this during the <font face="monospace">
configure</font> phase:<font face="monospace"><br>
</font>
<blockquote><font face="monospace">ENV
PATH=${PATH}:/usr/local/bin<br>
ENV MPICC mpicc<br>
...<br>
checking for sed handling option -i ... /usr/bin/sed
-i''<br>
<b>checking mpicc under yes... no</b></font><br>
<font face="monospace">configure: 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>
I can work around it by making the path absolute<br>
<blockquote><font face="monospace">ENV MPICC
/usr/local/bin/mpicc<br>
...</font><font face="monospace"><br>
</font><font face="monospace">checking for sed handling
option -i ... /usr/bin/sed -i''<br>
<b>checking whether /usr/local/bin/mpicc exists and is
executable... yes</b><br>
</font></blockquote>
But, based on the first message, I'm thinking there's an
incorrect path-search during the
<font face="monospace">configure</font> phase.<br>
This is with PNetCDF 1.12.2.<br>
</blockquote>
</div>
</div>
</div>
</body>
</html>