<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:"Times New Roman \(Body CS\)";
        panose-1:2 11 6 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle18
        {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" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:12.0pt">This was fixed in <a href="https://review.whamcloud.com/46383">https://review.whamcloud.com/46383</a> but was not ported / included in 2.12.9<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">In the meantime you can move to an older OFED
</span>or <span style="font-size:12.0pt">apply the patch to the b2_12 sources and rebuild the dkms package?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><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">lustre-discuss <lustre-discuss-bounces@lists.lustre.org> on behalf of Liam Forbes via lustre-discuss <lustre-discuss@lists.lustre.org><br>
<b>Reply-To: </b>Liam Forbes <loforbes@alaska.edu><br>
<b>Date: </b>Saturday, September 3, 2022 at 4:38 AM<br>
<b>To: </b>"lustre-discuss@lists.lustre.org" <lustre-discuss@lists.lustre.org><br>
<b>Subject: </b>[lustre-discuss] lustre-dkms 2.12.9 O2IBPATHS failure<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">I'm attempting to install lustre-client-dkms 2.12.9 on a Rocky Linux 8.6 system with kernel 4.18.0-372.19.1.el8_6.x86_64 and Mellanox OFED 5.7.1.0.2.1.rhel8u5.x86_64. I have the mlnx-ofa_kernel-devel RPM installed,
 but the lustre configure script is giving me the following error during the `yum install`:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New"">You seem to have an OFED installed but have not installed it's devel package.<br>
If you still want to build Lustre for your OFED I/B stack, you need to install its devel headers RPM.<br>
Instead, if you want to build Lustre for your kernel's built-in I/B stack rather than your installed OFED stack, either remove the OFED package(s) or use --with-o2ib=no.<br>
    <br>
Error! Bad return status for module build on kernel: 4.18.0-372.19.1.el8_6.x86_64 (x86_64)<br>
Consult /var/lib/dkms/lustre-client/2.12.9/build/make.log for more information.<br>
warning: %post(lustre-client-dkms-2.12.9-1.el8.noarch) scriptlet failed, exit status 10</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">I think I've tracked it down to a "$" at the end of a grep in the /</span><span style="font-size:12.0pt;font-family:"Courier New"">var/lib/dkms/lustre-client/2.12.9/build/configure</span><span style="font-size:12.0pt">
 script, line 19530. Running the commands manually, if I drop the "$" then the O2IBPATHS variable gets populated.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New"">[root@n1]# O2IBPATHS=$(eval /usr/bin/ofed_info | egrep -w 'mlnx-ofed-kernel-dkms|mlnx-ofa_kernel-devel|compat-rdma-devel|kernel-ib-devel|ofa_kernel-devel' | xargs rpm -ql | grep '\(/openib\|/ofa_kernel/default\|/ofa_kernel\)$'
 | head -n1)<br>
[root@n1]# echo $O2IBPATHS<br>
<br>
[root@n1]# O2IBPATHS=$(eval /usr/bin/ofed_info | egrep -w 'mlnx-ofed-kernel-dkms|mlnx-ofa_kernel-devel|compat-rdma-devel|kernel-ib-devel|ofa_kernel-devel' | xargs rpm -ql | grep '\(/openib\|/ofa_kernel/default\|/ofa_kernel\)' | head -n1)<br>
[root@n1]# echo $O2IBPATHS<br>
/usr/src/ofa_kernel/x86_64/4.18.0-372.19.1.el8_6.x86_64</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">It's hard to believe that I'm the first person to run into this, but googling I haven't found any other reports of it being an issue. Just thought I'd check. I'm also not sure how to insert this tweak to test
 if it really fixes the configure failure.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal">-- <o:p></o:p></p>
<div>
<div>
<div>
<p class="MsoNormal">Regards,<br>
-liam<br>
<br>
-There are uncountably more irrational fears than rational ones. -P. Dolan<br>
Liam Forbes           <a href="mailto:loforbes@alaska.edu" target="_blank">loforbes@alaska.edu</a>                       ph: 907.450.8618<br>
UAF GI Research Computing Systems Manager<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="https://calendly.com/ualoforbes/30min" target="_blank">https://calendly.com/ualoforbes/30min</a><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>