<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=us-ascii">
<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;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@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">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>