<html>#2969: ExternalLibraries-PETSc: Link hwloc into the configure-time MPI check for from-source MPI
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Max Morris</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></td></tr>
<tr><td style='text-align:right'> Type:</td><td>bug</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>major</td></tr>
<tr><td style='text-align:right'>Component:</td><td></td></tr>
</table>
<p>Comment (by Max Morris):</p>
<p>During the build of PETSc, its configure.py builds and links a tiny MPI program. That particular build is what lacks the hwloc library paths, and therefore what causes the overall build to fail. None of the other thorns do this; they only get linked against MPI at the end of the overall Cactus build, by which time hwloc is present on the link line.</p>
<p>I think you are essentially right that it would be better to add the HWLOC_LIBS and HWLOC_LIB_DIRS in the MPI thorn, but presently this is the only ExternalThorn affected by this issue. Fixing it in the MPI thorn would catch any future dependencies that happen to do the same thing. Let me know if you would like me to make another ticket with such a fix. If that one is merged, this ticket should be discarded.</p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2969/externallibraries-petsc-link-hwloc-into'>https://bitbucket.org/einsteintoolkit/tickets/issues/2969/externallibraries-petsc-link-hwloc-into</a></p>
</html>