<html 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)">
<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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.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>
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi Sajid, <o:p></o:p></p>
<p class="MsoNormal"><br>
So does adding /lib64 to your `LIBRARY_PATH` help?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<p class="MsoNormal">-- <br>
Hui Zhou<o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></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">Sajid Ali <sajidsyed2021@u.northwestern.edu><br>
<b>Date: </b>Tuesday, March 17, 2020 at 3:09 PM<br>
<b>To: </b>"Zhou, Hui" <zhouh@anl.gov><br>
<b>Cc: </b>"discuss@mpich.org" <discuss@mpich.org><br>
<b>Subject: </b>Re: [mpich-discuss] MPICH build errors, cannot find -levent(_pthreads)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p style="margin:1.2em!important">Hi Hui, <o:p></o:p></p>
<p style="margin:1.2em!important">libevent(-2.0.so.5) is at available at /lib64. pmix depends on libevent as per the
<a href="https://github.com/spack/spack/blob/develop/var/spack/repos/builtin/packages/pmix/package.py">
spack recipe</a>. Checking for libpmix linkage I do see that it is linked to libevent :<o:p></o:p></p>
<pre style="mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-size:9.5pt;font-family:Consolas;color:black;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">[sas4990@quser10 lib64]$ pwd</span></code><code><span style="font-size:9.5pt;font-family:Consolas;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8"><o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-size:9.5pt;font-family:Consolas;color:black;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">/usr/local/pmix-3.1.5/lib64</span></code><code><span style="font-size:9.5pt;font-family:Consolas;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8"><o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-size:9.5pt;font-family:Consolas;color:black;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">[sas4990@quser10 lib64]$ ldd libpmix.so.2.2.25</span></code><code><span style="font-size:9.5pt;font-family:Consolas;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8"><o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-size:9.5pt;font-family:Consolas;color:black;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">        linux-vdso.so.1 =>  (0x00007fffbfbe7000)</span></code><code><span style="font-size:9.5pt;font-family:Consolas;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8"><o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-size:9.5pt;font-family:Consolas;color:black;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">        libm.so.6 => /lib64/libm.so.6 (0x00002b413ffb3000)</span></code><code><span style="font-size:9.5pt;font-family:Consolas;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8"><o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-size:9.5pt;font-family:Consolas;color:black;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">        libutil.so.1 => /lib64/libutil.so.1 (0x00002b41402b5000)</span></code><code><span style="font-size:9.5pt;font-family:Consolas;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8"><o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-size:9.5pt;font-family:Consolas;color:black;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">        libevent-2.0.so.5 => /lib64/libevent-2.0.so.5 (0x00002b41404b8000)</span></code><code><span style="font-size:9.5pt;font-family:Consolas;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8"><o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-size:9.5pt;font-family:Consolas;color:black;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">        libevent_pthreads-2.0.so.5 => /lib64/libevent_pthreads-2.0.so.5 (0x00002b4140700000)</span></code><code><span style="font-size:9.5pt;font-family:Consolas;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8"><o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-size:9.5pt;font-family:Consolas;color:black;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">        libz.so.1 => /home/sas4990/packages/spack/opt/spack/linux-rhel7-ivybridge/gcc-4.8.5/zlib-1.2.11-dy4p76tgbhwcznwvv7rcagzfcbxyhsbo/lib/libz.so.1 (0x00002b4140903000)</span></code><code><span style="font-size:9.5pt;font-family:Consolas;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8"><o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-size:9.5pt;font-family:Consolas;color:black;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">        libdl.so.2 => /lib64/libdl.so.2 (0x00002b4140b1a000)</span></code><code><span style="font-size:9.5pt;font-family:Consolas;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8"><o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-size:9.5pt;font-family:Consolas;color:black;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">        libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b4140d1e000)</span></code><code><span style="font-size:9.5pt;font-family:Consolas;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8"><o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-size:9.5pt;font-family:Consolas;color:black;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">        libc.so.6 => /lib64/libc.so.6 (0x00002b4140f3a000)</span></code><code><span style="font-size:9.5pt;font-family:Consolas;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8"><o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-size:9.5pt;font-family:Consolas;color:black;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">        /lib64/ld-linux-x86-64.so.2 (0x00002b413fa75000)</span></code><code><span style="font-size:9.5pt;font-family:Consolas;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8"><o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-size:9.5pt;font-family:Consolas;color:black;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">[sas4990@quser10 lib64]$</span></code><code><span style="font-size:9.5pt;font-family:Consolas;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8"><o:p></o:p></span></code></pre>
<p style="margin:1.2em!important">I’m confused as to why libtool is unable to read use the dependency listing of pmix to find libevent. readelf tells me that libpmix doesn’t have rpaths set for it’s dependencies, could this be the cause of the linker being
 unable to find libevent ?<o:p></o:p></p>
<p style="margin:1.2em!important">Thank You<br>
Sajid Ali | PhD Candidate<br>
Applied Physics<br>
Northwestern University<br>
<a href="http://s-sajid-ali.github.io">s-sajid-ali.github.io</a><o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>