<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)">
<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;}
/* 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:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle21
        {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><!--[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">
<div class="WordSection1">
<p class="MsoNormal">My apologies.&nbsp; There were a couple of problems with my build environment.&nbsp; First, there was an old config cache messing up the configuration step.&nbsp; Also, the gcc being used was v7, not v8.&nbsp; Both versions are present but v7 is the default.&nbsp;
 After fixing those problems and disabling gss I\u2019m left with a single failure which Shaun referenced below (commit 7674f2c976744c38fd761518db92e01b22de2fbb) :<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">/usr/src/lustre-2.13.0/lnet/klnds/o2iblnd/o2iblnd.c: In function \u2018kiblnd_destroy_conn\u2019:<o:p></o:p></p>
<p class="MsoNormal">/usr/src/lustre-2.13.0/lnet/klnds/o2iblnd/o2iblnd.c:1046:6: error: void value not ignored as it ought to be<o:p></o:p></p>
<p class="MsoNormal">&nbsp;&nbsp; rc = ib_destroy_cq(conn-&gt;ibc_cq);<o:p></o:p></p>
<p class="MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^<o:p></o:p></p>
<p class="MsoNormal">make[6]: *** [scripts/Makefile.build:281: /usr/src/lustre-2.13.0/lnet/klnds/o2iblnd/o2iblnd.o] Error 1<o:p></o:p></p>
<p class="MsoNormal">make[6]: *** Waiting for unfinished jobs....<o:p></o:p></p>
<p class="MsoNormal">make[5]: *** [scripts/Makefile.build:497: /usr/src/lustre-2.13.0/lnet/klnds/o2iblnd] Error 2<o:p></o:p></p>
<p class="MsoNormal">make[4]: *** [scripts/Makefile.build:497: /usr/src/lustre-2.13.0/lnet/klnds] Error 2<o:p></o:p></p>
<p class="MsoNormal">make[4]: *** Waiting for unfinished jobs....<o:p></o:p></p>
<p class="MsoNormal">make[3]: *** [scripts/Makefile.build:497: /usr/src/lustre-2.13.0/lnet] Error 2<o:p></o:p></p>
<p class="MsoNormal">make[3]: *** Waiting for unfinished jobs....<o:p></o:p></p>
<p class="MsoNormal">make[2]: *** [Makefile:1634: _module_/usr/src/lustre-2.13.0] Error 2<o:p></o:p></p>
<p class="MsoNormal">make[1]: *** [autoMakefile:1024: modules] Error 2<o:p></o:p></p>
<p class="MsoNormal">make: *** [autoMakefile:574: install-recursive] Error 1<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I\u2019ll pursue the update to kiblnd_destroy_conn().&nbsp; Thanks.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">Andrew Tauferner<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:.5in"><b>From:</b> Shaun Tancheff &lt;stancheff@cray.com&gt;
<br>
<b>Sent:</b> Thursday, December 19, 2019 11:31 PM<br>
<b>To:</b> Tauferner, Andrew T &lt;andrew.t.tauferner@intel.com&gt;; lustre-discuss@lists.lustre.org<br>
<b>Subject:</b> Re: [lustre-discuss] Lustre and Linux 5.x<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:.5in"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Hi Andrew,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="margin-left:.5in">It looks like 2.13.0 is missing a few patches for 5.3.<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">\ufeff7674f2c976744c38fd761518db92e01b22de2fbb (HEAD -&gt; test) LU-12904 o2ib: ib_destroy_cq() returns void<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">c22267e5a38c46a24ef3763131ee85cb57a16e5d LU-12904 build: account_page_dirtied is not exported<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">e2735d07403c0cd533fe6ceac133a900871b3883 LU-12634 llite: Use __xa_set_mark if it is available<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">ee3ecf5b6290081dff7c197b63b5087dcb299a9c LU-12634 libcfs: force_sig() removed task parameter<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">a298f8c1376485512f83472a22dc755f47947e75 (tag: v2_13_0, tag: 2.13.0, origin/b2_13) New release 2.13.0<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Will build on CentOS against 5.3.0 mainline kernel:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="margin-left:.5in">$ \ufeffgit clean -dfx<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">$ sh ./autogen.sh <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">$ ./configure --disable-server --enable-client --with-linux=/usr/src/kernels/5.3.0-1.el7.x86_64 --disable-gss<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">\ufeff$ ./LUSTRE-VERSION-GEN <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">2.12.58_197_g7674f2c<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">\ufeff$ gcc --version<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="margin-left:.5in">If you are using gss then there are still 2 more patches pending to land on master that you will need to cherry-pick from gerrit:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">&nbsp;&nbsp; <a href="https://review.whamcloud.com/35743">
https://review.whamcloud.com/35743</a><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">&nbsp;&nbsp; <a href="https://review.whamcloud.com/36580">
https://review.whamcloud.com/36580</a><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="margin-left:.5in">\ufeff1735f8697a08d5edbf4a12dcfd402358dd4bfadb (in-review-gerrit) LU-12904 ldiskfs: Add ldiskfs support for linux 5.4<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">df0788accd0cb9260b3036b6f8a2b61a8122a56e LU-12904 gss: struct cache_detail readers changed to writers<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">f206a46c127dfde490ce61080645b3ee2b1d3127 LU-12634 gss: uid_keyring and session_keyring moved<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">9fb6818fe3d1e0130e147c5cf740e5e9a2631166 (origin/master, origin/HEAD, lunar/master, master) LU-12787 tests: skip project quota if it is disabled<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="margin-left:.5in">On top of 2.13.0 tag:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">\ufeff305cadaa77de8833a5eb501389742bfb5584410f (HEAD -&gt; test) LU-12904 gss: struct cache_detail readers changed to writers<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">6bf763bf35559a5008077ee37ba74d0075c1604a LU-12634 gss: uid_keyring and session_keyring moved<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">7674f2c976744c38fd761518db92e01b22de2fbb LU-12904 o2ib: ib_destroy_cq() returns void<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">c22267e5a38c46a24ef3763131ee85cb57a16e5d LU-12904 build: account_page_dirtied is not exported<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">e2735d07403c0cd533fe6ceac133a900871b3883 LU-12634 llite: Use __xa_set_mark if it is available<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">ee3ecf5b6290081dff7c197b63b5087dcb299a9c LU-12634 libcfs: force_sig() removed task parameter<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">a298f8c1376485512f83472a22dc755f47947e75 (tag: v2_13_0, tag: 2.13.0, origin/b2_13) New release 2.13.0<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">a4af7575718a06169866cc11e7b6cdfa266d44e1 LU-13030 pcc: Init saved dataset flags properly<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="margin-left:.5in">$ \ufeffgit clean -dfx<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">$; sh ./autogen.sh <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">$ ./configure --disable-server --enable-client --with-linux=/usr/src/kernels/5.3.0-1.el7.x86_64<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">$ make -j16<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">$ ./LUSTRE-VERSION-GEN<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">\ufeff2.12.58_199_g305cada<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Depending on the version of gcc you are using you may need to grab some of the gcc8 fixes as well.<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">I\u2019m thinking of this one:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">&nbsp;&nbsp;&nbsp; \ufeffLU-12904 build: Support for gcc -Wimplicit-fallthrough<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">And possibly this one:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">&nbsp;&nbsp; \ufeffLU-12904 build: External _module_ decorator removed<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">If should also get you up to mainline 5.4 (depending on what patches have been pulled into you 5.3 kernel).<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="margin-left:.5in">This \u2018error: &quot;___wait_var_event&quot; redefined [-Werror]\u2019 I have not seen .. if you are still seeing this it would help if you include the exact kernel version and configure that you are working with.<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Hope this helps,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">--Shaun<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p>&nbsp;</o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:.5in"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">lustre-discuss &lt;<a href="mailto:lustre-discuss-bounces@lists.lustre.org">lustre-discuss-bounces@lists.lustre.org</a>&gt; on behalf of &quot;Tauferner, Andrew T&quot; &lt;<a href="mailto:andrew.t.tauferner@intel.com">andrew.t.tauferner@intel.com</a>&gt;<br>
<b>Date: </b>Friday, December 20, 2019 at 4:33 AM<br>
<b>To: </b>&quot;<a href="mailto:lustre-discuss@lists.lustre.org">lustre-discuss@lists.lustre.org</a>&quot; &lt;<a href="mailto:lustre-discuss@lists.lustre.org">lustre-discuss@lists.lustre.org</a>&gt;<br>
<b>Subject: </b>[lustre-discuss] Lustre and Linux 5.x<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p>&nbsp;</o:p></p>
</div>
<p class="MsoNormal" style="margin-left:.5in">I\u2019m trying to build the Lustre client for a 5.3 kernel but I\u2019m getting lots of errors. &nbsp;I thought that 2.13 was going to support Linux 5.x kernels. &nbsp;Here\u2019s one example :<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">In file included from /usr/src/lustre-2.13.0/libcfs/libcfs/linux/linux-wait.c:9:0:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">/usr/src/lustre-2.13.0/libcfs/include/libcfs/linux/linux-wait.h:74:0: error: &quot;___wait_var_event&quot; redefined [-Werror]<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">#define ___wait_var_event(var, condition, state, exclusive, ret, cmd) \<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">In file included from /usr/src/lustre-2.13.0/libcfs/include/libcfs/linux/linux-wait.h:11:0,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /usr/src/lustre-2.13.0/libcfs/libcfs/linux/linux-wait.c:9:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">include/linux/wait_bit.h:242:0: note: this is the location of the previous definition<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">#define ___wait_var_event(var, condition, state, exclusive, ret, cmd) \<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">In file included from /usr/src/lustre-2.13.0/libcfs/libcfs/linux/linux-wait.c:9:0:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">/usr/src/lustre-2.13.0/libcfs/include/libcfs/linux/linux-wait.h:126:0: error: &quot;__wait_var_event_timeout&quot; redefined [-Werror]<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">#define __wait_var_event_timeout(var, condition, timeout)&nbsp; \<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">In file included from /usr/src/lustre-2.13.0/libcfs/include/libcfs/linux/linux-wait.h:11:0,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /usr/src/lustre-2.13.0/libcfs/libcfs/linux/linux-wait.c:9:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">include/linux/wait_bit.h:294:0: note: this is the location of the previous definition<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">#define __wait_var_event_timeout(var, condition, timeout)&nbsp; \<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">In file included from /usr/src/lustre-2.13.0/libcfs/libcfs/linux/linux-wait.c:9:0:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">/usr/src/lustre-2.13.0/libcfs/include/libcfs/linux/linux-wait.h:131:0: error: &quot;wait_var_event_timeout&quot; redefined [-Werror]<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">#define wait_var_event_timeout(var, condition, timeout)&nbsp;&nbsp; \<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">In file included from /usr/src/lustre-2.13.0/libcfs/include/libcfs/linux/linux-wait.h:11:0,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /usr/src/lustre-2.13.0/libcfs/libcfs/linux/linux-wait.c:9:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">include/linux/wait_bit.h:299:0: note: this is the location of the previous definition<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">#define wait_var_event_timeout(var, condition, timeout)&nbsp;&nbsp; \<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">cc1: error: unrecognized command line option \u2018-Wno-stringop-truncation\u2019 [-Werror]<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">cc1: all warnings being treated as errors<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">make[5]: *** [scripts/Makefile.build:281: /usr/src/lustre-2.13.0/libcfs/libcfs/linux/linux-wait.o] Error 1<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">make[5]: *** Waiting for unfinished jobs....<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Here\u2019s another example: <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">/usr/src/lustre-2.13.0/lustre/llite/xattr.c:38:10: fatal error: linux/selinux.h: No such file or directory<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">#include &lt;linux/selinux.h&gt;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^~~~~~~~~~~~~~~~~<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Andrew Tauferner<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">&nbsp;<o:p></o:p></p>
</div>
</body>
</html>