<div dir="ltr">I did some updating to this kernel as well using the cr repo. I ran into some similar differences. There is a new version of kmod and it appeared some file locations differed from 7.2.<div><br></div><div>--Jeff</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 29, 2016 at 10:27 PM, Riccardo Veraldi <span dir="ltr">&lt;<a href="mailto:Riccardo.Veraldi@cnaf.infn.it" target="_blank">Riccardo.Veraldi@cnaf.infn.it</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I fixed it building Lustre 2.8.60 and it works.<br>
Anyway the kernel modules osd_zfs.ko and so on are placed in<br>
/lib/modules/<a href="tel:3.10.0-514" value="+13100514">3.10.0-514</a>.el7.x86_64/fs/<br>
instead of /lib/modules/<a href="tel:3.10.0-514" value="+13100514">3.10.0-514</a>.el7.x86_64/<wbr>kernel/fs/lustre and<br>
/lib/modules/3.10.0-514.el7.<wbr>x86_64/kernel/fs/extra<br>
so I had to modify the src.rpm accordingly to rebuild it properly.<br>
Any hint about this,  on how to restore the standard path of the lustre,<br>
lnet, osd_zfs  kernel modules ?<br>
<br>
thank you<br>
<span class="HOEnZb"><font color="#888888"><br>
Riccardo<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On 11/29/16 2:25 PM, Riccardo Veraldi wrote:<br>
&gt; Hello.<br>
&gt;<br>
&gt; Today I rebuilt Lustre for the new kernel which is inside RHEL<br>
&gt; 7.3/CentOS 7.3 <a href="tel:3.10.0-514" value="+13100514">3.10.0-514</a>.el7.x86_64<br>
&gt; I do not know what changed in the distribution but it is not compiling<br>
&gt; anymore.<br>
&gt; What changed in my environment was a yum update which brought the system<br>
&gt; from RHEL 7.2 kernel 3.10.0-327.36.3.el7.x86_64<br>
&gt; to RHEL7.3 kernel 3.10.0-514.el7.x86_64<br>
&gt; Anyone has the same issue ?<br>
&gt;<br>
&gt; thank you<br>
&gt;<br>
&gt; CC:            gcc<br>
&gt; LD:            /usr/bin/ld -m elf_x86_64<br>
&gt; CPPFLAGS:      -include /root/rpmbuild/BUILD/lustre-2.<wbr>8.0/undef.h<br>
&gt; -include /root/rpmbuild/BUILD/lustre-2.<wbr>8.0/config.h<br>
&gt; -I/root/rpmbuild/BUILD/lustre-<wbr>2.8.0/libcfs/include<br>
&gt; -I/root/rpmbuild/BUILD/lustre-<wbr>2.8.0/lnet/include<br>
&gt; -I/root/rpmbuild/BUILD/lustre-<wbr>2.8.0/lustre/include<br>
&gt; CFLAGS:        -g -O2 -Werror -Wall -Werror<br>
&gt; EXTRA_KCFLAGS: -include /root/rpmbuild/BUILD/lustre-2.<wbr>8.0/undef.h<br>
&gt; -include /root/rpmbuild/BUILD/lustre-2.<wbr>8.0/config.h  -g<br>
&gt; -I/root/rpmbuild/BUILD/lustre-<wbr>2.8.0/libcfs/include<br>
&gt; -I/root/rpmbuild/BUILD/lustre-<wbr>2.8.0/lnet/include<br>
&gt; -I/root/rpmbuild/BUILD/lustre-<wbr>2.8.0/lustre/include<br>
&gt;<br>
&gt; Type &#39;make&#39; to build Lustre.<br>
&gt; + make -j2 -s<br>
&gt; Making all in .<br>
&gt; /root/rpmbuild/BUILD/lustre-2.<wbr>8.0/lnet/klnds/o2iblnd/<wbr>o2iblnd.c: In<br>
&gt; function &#39;kiblnd_hdev_get_attr&#39;:<br>
&gt; /root/rpmbuild/BUILD/lustre-2.<wbr>8.0/lnet/klnds/o2iblnd/<wbr>o2iblnd.c:2153:9:<br>
&gt; error: implicit declaration of function &#39;ib_query_device&#39;<br>
&gt; [-Werror=implicit-function-<wbr>declaration]<br>
&gt;          rc = ib_query_device(hdev-&gt;ibh_<wbr>ibdev, attr);<br>
&gt;          ^<br>
&gt; /root/rpmbuild/BUILD/lustre-2.<wbr>8.0/lnet/klnds/o2iblnd/<wbr>o2iblnd.c: In<br>
&gt; function &#39;kiblnd_dev_need_failover&#39;:<br>
&gt; /root/rpmbuild/BUILD/lustre-2.<wbr>8.0/lnet/klnds/o2iblnd/<wbr>o2iblnd.c:2251:9:<br>
&gt; error: passing argument 1 of &#39;rdma_create_id&#39; from incompatible pointer<br>
&gt; type [-Werror]<br>
&gt;          cmid = kiblnd_rdma_create_id(kiblnd_<wbr>dummy_callback, dev,<br>
&gt; RDMA_PS_TCP,<br>
&gt;          ^<br>
&gt; In file included from<br>
&gt; /root/rpmbuild/BUILD/lustre-2.<wbr>8.0/lnet/klnds/o2iblnd/<wbr>o2iblnd.h:74:0,<br>
&gt;                  from<br>
&gt; /root/rpmbuild/BUILD/lustre-2.<wbr>8.0/lnet/klnds/o2iblnd/<wbr>o2iblnd.c:42:<br>
&gt; /usr/src/kernels/3.10.0-514.<wbr>el7.x86_64/include/rdma/rdma_<wbr>cm.h:172:20:<br>
&gt; note: expected &#39;struct net *&#39; but argument is of type &#39;int (*)(struct<br>
&gt; rdma_cm_id *, struct rdma_cm_event *)&#39;<br>
&gt;  struct rdma_cm_id *rdma_create_id(struct net *net,<br>
&gt;                     ^<br>
&gt; /root/rpmbuild/BUILD/lustre-2.<wbr>8.0/lnet/klnds/o2iblnd/<wbr>o2iblnd.c:2251:9:<br>
&gt; error: passing argument 2 of &#39;rdma_create_id&#39; from incompatible pointer<br>
&gt; type [-Werror]<br>
&gt;          cmid = kiblnd_rdma_create_id(kiblnd_<wbr>dummy_callback, dev,<br>
&gt; RDMA_PS_TCP,<br>
&gt;          ^<br>
&gt; In file included from<br>
&gt; /root/rpmbuild/BUILD/lustre-2.<wbr>8.0/lnet/klnds/o2iblnd/<wbr>o2iblnd.h:74:0,<br>
&gt;                  from<br>
&gt; /root/rpmbuild/BUILD/lustre-2.<wbr>8.0/lnet/klnds/o2iblnd/<wbr>o2iblnd.c:42:<br>
&gt; /usr/src/kernels/3.10.0-514.<wbr>el7.x86_64/include/rdma/rdma_<wbr>cm.h:172:20:<br>
&gt; note: expected &#39;rdma_cm_event_handler&#39; but argument is of type &#39;struct<br>
&gt; kib_dev_t *&#39;<br>
&gt;  struct rdma_cm_id *rdma_create_id(struct net *net,<br>
&gt;                     ^<br>
&gt; /root/rpmbuild/BUILD/lustre-2.<wbr>8.0/lnet/klnds/o2iblnd/<wbr>o2iblnd.c:2251:9:<br>
&gt; error: passing argument 3 of &#39;rdma_create_id&#39; makes pointer from integer<br>
&gt; without a cast [-Werror]<br>
&gt;          cmid = kiblnd_rdma_create_id(kiblnd_<wbr>dummy_callback, dev,<br>
&gt; RDMA_PS_TCP,<br>
&gt;          ^<br>
&gt; In file included from<br>
&gt; /root/rpmbuild/BUILD/lustre-2.<wbr>8.0/lnet/klnds/o2iblnd/<wbr>o2iblnd.h:74:0,<br>
&gt;                  from<br>
&gt; /root/rpmbuild/BUILD/lustre-2.<wbr>8.0/lnet/klnds/o2iblnd/<wbr>o2iblnd.c:42:<br>
&gt; /usr/src/kernels/3.10.0-514.<wbr>el7.x86_64/include/rdma/rdma_<wbr>cm.h:172:20:<br>
&gt; note: expected &#39;void *&#39; but argument is of type &#39;int&#39;<br>
&gt;  struct rdma_cm_id *rdma_create_id(struct net *net,<br>
&gt;                     ^<br>
&gt; /root/rpmbuild/BUILD/lustre-2.<wbr>8.0/lnet/klnds/o2iblnd/<wbr>o2iblnd.c:2251:9:<br>
&gt; error: too few arguments to function &#39;rdma_create_id&#39;<br>
&gt;          cmid = kiblnd_rdma_create_id(kiblnd_<wbr>dummy_callback, dev,<br>
&gt; RDMA_PS_TCP,<br>
&gt;          ^<br>
&gt; In file included from<br>
&gt; /root/rpmbuild/BUILD/lustre-2.<wbr>8.0/lnet/klnds/o2iblnd/<wbr>o2iblnd.h:74:0,<br>
&gt;                  from<br>
&gt; /root/rpmbuild/BUILD/lustre-2.<wbr>8.0/lnet/klnds/o2iblnd/<wbr>o2iblnd.c:42:<br>
&gt; /usr/src/kernels/3.10.0-514.<wbr>el7.x86_64/include/rdma/rdma_<wbr>cm.h:172:20:<br>
&gt; note: declared here<br>
&gt;  struct rdma_cm_id *rdma_create_id(struct net *net,<br>
&gt;                     ^<br>
&gt; /root/rpmbuild/BUILD/lustre-2.<wbr>8.0/lnet/klnds/o2iblnd/<wbr>o2iblnd.c: In<br>
&gt; function &#39;kiblnd_dev_failover&#39;:<br>
&gt; /root/rpmbuild/BUILD/lustre-2.<wbr>8.0/lnet/klnds/o2iblnd/<wbr>o2iblnd.c:2321:9:<br>
&gt; error: passing argument 1 of &#39;rdma_create_id&#39; from incompatible pointer<br>
&gt; type [-Werror]<br>
&gt;          cmid = kiblnd_rdma_create_id(kiblnd_<wbr>cm_callback, dev, RDMA_PS_TCP,<br>
&gt;          ^<br>
&gt; In file included from<br>
&gt; /root/rpmbuild/BUILD/lustre-2.<wbr>8.0/lnet/klnds/o2iblnd/<wbr>o2iblnd.h:74:0,<br>
&gt;                  from<br>
&gt; /root/rpmbuild/BUILD/lustre-2.<wbr>8.0/lnet/klnds/o2iblnd/<wbr>o2iblnd.c:42:<br>
&gt; /usr/src/kernels/3.10.0-514.<wbr>el7.x86_64/include/rdma/rdma_<wbr>cm.h:172:20:<br>
&gt; note: expected &#39;struct net *&#39; but argument is of type &#39;int (*)(struct<br>
&gt; rdma_cm_id *, struct rdma_cm_event *)&#39;<br>
&gt;  struct rdma_cm_id *rdma_create_id(struct net *net,<br>
&gt;                     ^<br>
&gt; /root/rpmbuild/BUILD/lustre-2.<wbr>8.0/lnet/klnds/o2iblnd/<wbr>o2iblnd.c:2321:9:<br>
&gt; error: passing argument 2 of &#39;rdma_create_id&#39; from incompatible pointer<br>
&gt; type [-Werror]<br>
&gt;          cmid = kiblnd_rdma_create_id(kiblnd_<wbr>cm_callback, dev, RDMA_PS_TCP,<br>
&gt;          ^<br>
&gt; In file included from<br>
&gt; /root/rpmbuild/BUILD/lustre-2.<wbr>8.0/lnet/klnds/o2iblnd/<wbr>o2iblnd.h:74:0,<br>
&gt;                  from<br>
&gt; /root/rpmbuild/BUILD/lustre-2.<wbr>8.0/lnet/klnds/o2iblnd/<wbr>o2iblnd.c:42:<br>
&gt; /usr/src/kernels/3.10.0-514.<wbr>el7.x86_64/include/rdma/rdma_<wbr>cm.h:172:20:<br>
&gt; note: expected &#39;rdma_cm_event_handler&#39; but argument is of type &#39;struct<br>
&gt; kib_dev_t *&#39;<br>
&gt;  struct rdma_cm_id *rdma_create_id(struct net *net,<br>
&gt;                     ^<br>
&gt; /root/rpmbuild/BUILD/lustre-2.<wbr>8.0/lnet/klnds/o2iblnd/<wbr>o2iblnd.c:2321:9:<br>
&gt; error: passing argument 3 of &#39;rdma_create_id&#39; makes pointer from integer<br>
&gt; without a cast [-Werror]<br>
&gt;          cmid = kiblnd_rdma_create_id(kiblnd_<wbr>cm_callback, dev, RDMA_PS_TCP,<br>
&gt;          ^<br>
&gt; In file included from<br>
&gt; /root/rpmbuild/BUILD/lustre-2.<wbr>8.0/lnet/klnds/o2iblnd/<wbr>o2iblnd.h:74:0,<br>
&gt;                  from<br>
&gt; /root/rpmbuild/BUILD/lustre-2.<wbr>8.0/lnet/klnds/o2iblnd/<wbr>o2iblnd.c:42:<br>
&gt; /usr/src/kernels/3.10.0-514.<wbr>el7.x86_64/include/rdma/rdma_<wbr>cm.h:172:20:<br>
&gt; note: expected &#39;void *&#39; but argument is of type &#39;int&#39;<br>
&gt;  struct rdma_cm_id *rdma_create_id(struct net *net,<br>
&gt;                     ^<br>
&gt; /root/rpmbuild/BUILD/lustre-2.<wbr>8.0/lnet/klnds/o2iblnd/<wbr>o2iblnd.c:2321:9:<br>
&gt; error: too few arguments to function &#39;rdma_create_id&#39;<br>
&gt;          cmid = kiblnd_rdma_create_id(kiblnd_<wbr>cm_callback, dev, RDMA_PS_TCP,<br>
&gt;          ^<br>
&gt; In file included from<br>
&gt; /root/rpmbuild/BUILD/lustre-2.<wbr>8.0/lnet/klnds/o2iblnd/<wbr>o2iblnd.h:74:0,<br>
&gt;                  from<br>
&gt; /root/rpmbuild/BUILD/lustre-2.<wbr>8.0/lnet/klnds/o2iblnd/<wbr>o2iblnd.c:42:<br>
&gt; /usr/src/kernels/3.10.0-514.<wbr>el7.x86_64/include/rdma/rdma_<wbr>cm.h:172:20:<br>
&gt; note: declared here<br>
&gt;  struct rdma_cm_id *rdma_create_id(struct net *net,<br>
&gt;                     ^<br>
&gt; cc1: all warnings being treated as errors<br>
&gt; make[7]: ***<br>
&gt; [/root/rpmbuild/BUILD/lustre-<wbr>2.8.0/lnet/klnds/o2iblnd/<wbr>o2iblnd.o] Error 1<br>
&gt; make[6]: *** [/root/rpmbuild/BUILD/lustre-<wbr>2.8.0/lnet/klnds/o2iblnd] Error 2<br>
&gt; make[5]: *** [/root/rpmbuild/BUILD/lustre-<wbr>2.8.0/lnet/klnds] Error 2<br>
&gt; make[4]: *** [/root/rpmbuild/BUILD/lustre-<wbr>2.8.0/lnet] Error 2<br>
&gt; make[4]: *** Waiting for unfinished jobs....<br>
&gt; make[3]: *** [_module_/root/rpmbuild/BUILD/<wbr>lustre-2.8.0] Error 2<br>
&gt; make[2]: *** [modules] Error 2<br>
&gt; make[1]: *** [all-recursive] Error 1<br>
&gt; make: *** [all] Error 2<br>
&gt; error: Bad exit status from /var/tmp/rpm-tmp.mYkfwi (%build)<br>
&gt;<br>
&gt;<br>
&gt; RPM build errors:<br>
&gt;     Bad exit status from /var/tmp/rpm-tmp.mYkfwi (%build)<br>
&gt;<br>
&gt; ______________________________<wbr>_________________<br>
&gt; lustre-discuss mailing list<br>
&gt; <a href="mailto:lustre-discuss@lists.lustre.org">lustre-discuss@lists.lustre.<wbr>org</a><br>
&gt; <a href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org" rel="noreferrer" target="_blank">http://lists.lustre.org/<wbr>listinfo.cgi/lustre-discuss-<wbr>lustre.org</a><br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
lustre-discuss mailing list<br>
<a href="mailto:lustre-discuss@lists.lustre.org">lustre-discuss@lists.lustre.<wbr>org</a><br>
<a href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org" rel="noreferrer" target="_blank">http://lists.lustre.org/<wbr>listinfo.cgi/lustre-discuss-<wbr>lustre.org</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">------------------------------<br>Jeff Johnson<br>Co-Founder<br>Aeon Computing<br><br><a href="mailto:jeff.johnson@aeoncomputing.com" target="_blank">jeff.johnson@aeoncomputing.com</a><br><a href="http://www.aeoncomputing.com" target="_blank">www.aeoncomputing.com</a><br>t: 858-412-3810 x1001   f: 858-412-3845<br>m: 619-204-9061<br><br>4170 Morena Boulevard, Suite D - San Diego, CA 92117<div><br></div><div>High-Performance Computing / Lustre Filesystems / Scale-out Storage</div></div></div>
</div>