<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Times New Roman \(Body CS\)";
        panose-1:2 2 6 3 5 4 5 2 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
p.xmsonormal, li.xmsonormal, div.xmsonormal
        {mso-style-name:x_msonormal;
        margin:0in;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle23
        {mso-style-type:personal-reply;
        font-family:Consolas;
        color:windowtext;
        font-weight:normal;
        font-style:normal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:Consolas">Hui,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:Consolas">Please find attached the requested config.log<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:Consolas">Matt<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:Consolas">-- <o:p></o:p></span></p>
<div>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt;font-family:Consolas">Matt Thompson, SSAI, Ld Scientific Programmer/Analyst<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt;font-family:Consolas">NASA GSFC,    Global Modeling and Assimilation Office<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt;font-family:Consolas">Code 610.1,  8800 Greenbelt Rd,  Greenbelt,  MD 20771<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt;font-family:Consolas">Phone: 301-614-6712                 Fax: 301-614-6246<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><u><span style="font-size:12.0pt;font-family:Consolas;color:#0000E9">http://science.gsfc.nasa.gov/sed/bio/matthew.thompson</span></u><span style="font-size:12.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">"Zhou, Hui via discuss" <discuss@mpich.org><br>
<b>Reply-To: </b>"discuss@mpich.org" <discuss@mpich.org><br>
<b>Date: </b>Tuesday, December 14, 2021 at 6:14 PM<br>
<b>To: </b>"discuss@mpich.org" <discuss@mpich.org><br>
<b>Cc: </b>"Zhou, Hui" <zhouh@anl.gov><br>
<b>Subject: </b>[EXTERNAL] Re: [mpich-discuss] Help Building MPICH 4.0b1: undefined references to hwloc<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">Hi Matt,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">Could post your </span>
<code><span style="font-size:10.0pt;color:black">src/pm/hydra/config.log</span></code><span style="font-size:12.0pt;color:black">​?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">-- <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">Hui Zhou<o:p></o:p></span></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="0" width="100%" align="center">
</div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black"> Thompson, Matt (GSFC-610.1)[SCIENCE SYSTEMS AND APPLICATIONS INC] via discuss <discuss@mpich.org><br>
<b>Sent:</b> Tuesday, December 14, 2021 2:40 PM<br>
<b>To:</b> discuss@mpich.org <discuss@mpich.org><br>
<b>Cc:</b> Thompson, Matt (GSFC-610.1)[SCIENCE SYSTEMS AND APPLICATIONS INC] <matthew.thompson@nasa.gov><br>
<b>Subject:</b> [mpich-discuss] Help Building MPICH 4.0b1: undefined references to hwloc</span>
<o:p></o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="xmsonormal"><span style="font-family:Consolas">MPICH Discuss,</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas">I'm sure I've done something stupid, but I'm not sure what. I tried searching google, but my google-fu failed me.
</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas">Today I decided to try and build MPICH 4.0b1 on a cluster I'm on (NCCS Discover) using GCC 11.2. My configure line was quite boring:</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas">./configure CC=gcc CXX=g++ FC=gfortran \</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas">  FCFLAGS=-fallow-argument-mismatch \</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas">  FFLAGS=-fallow-argument-mismatch \</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas">  --prefix=/discover/swdev/gmao_SIteam/MPI/mpich/4.0b1/gcc-11.2.0
</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas">The MPICH configure step was nice enough to let me know I needed those FFLAGS and FCFLAGS. And it configured just happily.[1]</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas">When I went to the make step I eventually it errored out with:</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas">make[3]: Entering directory '/gpfsm/dswdev/gmao_SIteam/MPI/src/mpich-4.0b1/src/pm/hydra'</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas">  CCLD     libpm.la</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas">  CCLD     hydra_persist</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas">/usr/bin/ld: /discover/swdev/gmao_SIteam/MPI/src/mpich-4.0b1/src/pm/hydra/.libs/libhydra.a(topo_hwloc.o): in function `HYDT_topo_hwloc_init':</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas">/discover/swdev/gmao_SIteam/MPI/src/mpich-4.0b1/src/pm/hydra/tools/topo/hwloc/topo_hwloc.c:577: undefined reference to `hwloc_topology_set_io_types_filter'</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas">collect2: error: ld returned 1 exit status</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas">Makefile:1286: recipe for target 'hydra_persist' failed</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas">make[3]: *** [hydra_persist] Error 1</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas">Now, as far as I can tell from the configure output, I'm using the embedded hwloc:</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas">checking if hwloc meets minimum version requirement... no</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas">configure: ===== configuring modules/hwloc =====</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas">...</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas">### Configuring hwloc core</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas">###</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas">checking hwloc building mode... embedded</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas">configure: hwloc builddir: /discover/swdev/gmao_SIteam/MPI/src/mpich-4.0b1/modules/hwloc</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas">configure: hwloc srcdir: /discover/swdev/gmao_SIteam/MPI/src/mpich-4.0b1/modules/hwloc</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas">...</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas">And I can't see anything in the output that it's somehow picking up on an hwloc I might have installed somewhere else (be it Open MPI or just hwloc by hand).</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas">Maybe there are flags I need to pass? I do see reference to --with-hwloc=embedded, but it looks like configure decided to use that itself.
</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas">Thanks for any help,</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas">Matt</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas">[1] Note: I'm building on an Infiniband system so maybe I need to do a build with --with-device=ch4:ucx eventually, but that's a runtime thing. I figure it can't be involved with this error...right?</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:Consolas">-- </span><o:p></o:p></p>
<div>
<p class="xmsonormal" style="text-autospace:none"><span style="font-family:Consolas">Matt Thompson, SSAI, Ld Scientific Programmer/Analyst</span><o:p></o:p></p>
<p class="xmsonormal" style="text-autospace:none"><span style="font-family:Consolas">NASA GSFC,    Global Modeling and Assimilation Office</span><o:p></o:p></p>
<p class="xmsonormal" style="text-autospace:none"><span style="font-family:Consolas">Code 610.1,  8800 Greenbelt Rd,  Greenbelt,  MD 20771</span><o:p></o:p></p>
<p class="xmsonormal" style="text-autospace:none"><span style="font-family:Consolas">Phone: 301-614-6712                 Fax: 301-614-6246</span><o:p></o:p></p>
</div>
<p class="xmsonormal"><u><span style="font-family:Consolas;color:#0000E9">http://science.gsfc.nasa.gov/sed/bio/matthew.thompson</span></u><o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>