<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;}
/* 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-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="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi Andrew,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">It looks like 2.13.0 is missing a few patches for 5.3.<o:p></o:p></p>
<p class="MsoNormal">7674f2c976744c38fd761518db92e01b22de2fbb (HEAD -> test) LU-12904 o2ib: ib_destroy_cq() returns void<o:p></o:p></p>
<p class="MsoNormal">c22267e5a38c46a24ef3763131ee85cb57a16e5d LU-12904 build: account_page_dirtied is not exported<o:p></o:p></p>
<p class="MsoNormal">e2735d07403c0cd533fe6ceac133a900871b3883 LU-12634 llite: Use __xa_set_mark if it is available<o:p></o:p></p>
<p class="MsoNormal">ee3ecf5b6290081dff7c197b63b5087dcb299a9c LU-12634 libcfs: force_sig() removed task parameter<o:p></o:p></p>
<p class="MsoNormal">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"><o:p> </o:p></p>
<p class="MsoNormal">Will build on CentOS against 5.3.0 mainline kernel:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">$ git clean -dfx<o:p></o:p></p>
<p class="MsoNormal">$ sh ./autogen.sh <o:p></o:p></p>
<p class="MsoNormal">$ ./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">$ ./LUSTRE-VERSION-GEN <o:p></o:p></p>
<p class="MsoNormal">2.12.58_197_g7674f2c<o:p></o:p></p>
<p class="MsoNormal">$ gcc --version<o:p></o:p></p>
<p class="MsoNormal">gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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">   <a href="https://review.whamcloud.com/35743">https://review.whamcloud.com/35743</a><o:p></o:p></p>
<p class="MsoNormal">   <a href="https://review.whamcloud.com/36580">https://review.whamcloud.com/36580</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">1735f8697a08d5edbf4a12dcfd402358dd4bfadb (in-review-gerrit) LU-12904 ldiskfs: Add ldiskfs support for linux 5.4<o:p></o:p></p>
<p class="MsoNormal">df0788accd0cb9260b3036b6f8a2b61a8122a56e LU-12904 gss: struct cache_detail readers changed to writers<o:p></o:p></p>
<p class="MsoNormal">f206a46c127dfde490ce61080645b3ee2b1d3127 LU-12634 gss: uid_keyring and session_keyring moved<o:p></o:p></p>
<p class="MsoNormal">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"><o:p> </o:p></p>
<p class="MsoNormal">On top of 2.13.0 tag:<o:p></o:p></p>
<p class="MsoNormal">305cadaa77de8833a5eb501389742bfb5584410f (HEAD -> test) LU-12904 gss: struct cache_detail readers changed to writers<o:p></o:p></p>
<p class="MsoNormal">6bf763bf35559a5008077ee37ba74d0075c1604a LU-12634 gss: uid_keyring and session_keyring moved<o:p></o:p></p>
<p class="MsoNormal">7674f2c976744c38fd761518db92e01b22de2fbb LU-12904 o2ib: ib_destroy_cq() returns void<o:p></o:p></p>
<p class="MsoNormal">c22267e5a38c46a24ef3763131ee85cb57a16e5d LU-12904 build: account_page_dirtied is not exported<o:p></o:p></p>
<p class="MsoNormal">e2735d07403c0cd533fe6ceac133a900871b3883 LU-12634 llite: Use __xa_set_mark if it is available<o:p></o:p></p>
<p class="MsoNormal">ee3ecf5b6290081dff7c197b63b5087dcb299a9c LU-12634 libcfs: force_sig() removed task parameter<o:p></o:p></p>
<p class="MsoNormal">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">a4af7575718a06169866cc11e7b6cdfa266d44e1 LU-13030 pcc: Init saved dataset flags properly<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">$ git clean -dfx<o:p></o:p></p>
<p class="MsoNormal">$; sh ./autogen.sh <o:p></o:p></p>
<p class="MsoNormal">$ ./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">$ make -j16<o:p></o:p></p>
<p class="MsoNormal">$ ./LUSTRE-VERSION-GEN<o:p></o:p></p>
<p class="MsoNormal">2.12.58_199_g305cada<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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">I’m thinking of this one:<o:p></o:p></p>
<p class="MsoNormal">    LU-12904 build: Support for gcc -Wimplicit-fallthrough<o:p></o:p></p>
<p class="MsoNormal">And possibly this one:<o:p></o:p></p>
<p class="MsoNormal">   LU-12904 build: External _module_ decorator removed<o:p></o:p></p>
<p class="MsoNormal">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"><o:p> </o:p></p>
<p class="MsoNormal">This ‘error: "___wait_var_event" redefined [-Werror]’ 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"><o:p> </o:p></p>
<p class="MsoNormal">Hope this helps,<o:p></o:p></p>
<p class="MsoNormal">--Shaun<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">lustre-discuss <lustre-discuss-bounces@lists.lustre.org> on behalf of "Tauferner, Andrew T" <andrew.t.tauferner@intel.com><br>
<b>Date: </b>Friday, December 20, 2019 at 4:33 AM<br>
<b>To: </b>"lustre-discuss@lists.lustre.org" <lustre-discuss@lists.lustre.org><br>
<b>Subject: </b>[lustre-discuss] Lustre and Linux 5.x<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">I’m trying to build the Lustre client for a 5.3 kernel but I’m getting lots of errors.  I thought that 2.13 was going to support Linux 5.x kernels.  Here’s one example :<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">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:.5in">/usr/src/lustre-2.13.0/libcfs/include/libcfs/linux/linux-wait.h:74:0: error: "___wait_var_event" redefined [-Werror]<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">#define ___wait_var_event(var, condition, state, exclusive, ret, cmd) \<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">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:.5in">                 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:.5in">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:.5in">#define ___wait_var_event(var, condition, state, exclusive, ret, cmd) \<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">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:.5in">/usr/src/lustre-2.13.0/libcfs/include/libcfs/linux/linux-wait.h:126:0: error: "__wait_var_event_timeout" redefined [-Werror]<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">#define __wait_var_event_timeout(var, condition, timeout)  \<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">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:.5in">                 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:.5in">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:.5in">#define __wait_var_event_timeout(var, condition, timeout)  \<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">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:.5in">/usr/src/lustre-2.13.0/libcfs/include/libcfs/linux/linux-wait.h:131:0: error: "wait_var_event_timeout" redefined [-Werror]<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">#define wait_var_event_timeout(var, condition, timeout)   \<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">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:.5in">                 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:.5in">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:.5in">#define wait_var_event_timeout(var, condition, timeout)   \<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">cc1: error: unrecognized command line option ‘-Wno-stringop-truncation’ [-Werror]<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">cc1: all warnings being treated as errors<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">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:.5in">make[5]: *** Waiting for unfinished jobs....<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Here’s another example: <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">/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:.5in">#include <linux/selinux.h><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">          ^~~~~~~~~~~~~~~~~<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Andrew Tauferner<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</body>
</html>