<html>#1923: make utils and simfactory ignore HWLOC=BUILD and try to copy hwloc executables from /usr/bin
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>V M</td></tr>
<tr><td style='text-align:right'>   Status:</td><td>open</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td></td></tr>
<tr><td style='text-align:right'>  Version:</td><td>development version</td></tr>
<tr><td style='text-align:right'>     Type:</td><td>bug</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>minor</td></tr>
<tr><td style='text-align:right'>Component:</td><td>SimFactory</td></tr>
</table>

<p>Comment (by Roland Haas):</p>
<p>Adding what I apparently forgot to post: the reason this happens is the the currently used rules by ExternalLibraries look like this:</p>
<div class="codehilite"><pre><span></span><span class="nf">$(UTIL_DIR)/%</span><span class="o">:</span> <span class="k">$(</span><span class="nv">MPI_DIR</span><span class="k">)</span>/<span class="n">bin</span>/%
    @echo <span class="s2">&quot;Copying </span><span class="nv">$*</span><span class="s2"> from </span>$<span class="s2">&lt; to </span><span class="k">$(</span>UTIL_DIR<span class="k">)</span><span class="s2">&quot;</span>
    -<span class="k">$(</span>MKDIR<span class="k">)</span> <span class="k">$(</span>MKDIRFLAGS<span class="k">)</span> <span class="k">$(</span>UTIL_DIR<span class="k">)</span> <span class="m">2</span>&gt; /dev/null
    cp $&lt; <span class="nv">$@</span>
</pre></div>


<p>it a pattern-rule that says that if you need to build <code>%</code> you can build it assuming you have <code>$(MPI_DIR)/bin/%</code>. Now if <code>$(MPI_DIR)/bin</code> contains a file <code>hwloc-info</code> then make will happily run this recipe instead of say the one that has <code>$(HWLOC_DIR)/bin/%</code>.</p>
<p>The fix (above) is to make the rules more specific.</p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/1923/make-utils-and-simfactory-ignore-hwloc'>https://bitbucket.org/einsteintoolkit/tickets/issues/1923/make-utils-and-simfactory-ignore-hwloc</a></p>
</html>