Error occurs due to the change in ib_create_cq in installing lustre client on RHEL7.2

Solution Unverified - Updated -


  • It seems kernel version 3.10.0-327 includes a backport of commit:

This breaks support for the latest stable lustre client version:

# uname -a
Linux n1217 3.10.0-327.el7.x86_64 #1 SMP Thu Oct 29 17:29:29 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux

# wget

# rpmbuild --rebuild --define 'lustre_name lustre-client' --without servers --without tests lustre-client-2.7.0-3.10.0_123.20.1.el7.x86_64.src.rpm


Type 'make' to build Lustre.
+ make -j16 -s
Making all in .
/root/rpmbuild/BUILD/lustre-2.7.0/lnet/klnds/o2iblnd/o2iblnd.c: In function 'kiblnd_create_conn':
/root/rpmbuild/BUILD/lustre-2.7.0/lnet/klnds/o2iblnd/o2iblnd.c:826:27: error: passing argument 5 of 'ib_create_cq' makes pointer from integer without a cast [-Werror]
In file included from /usr/src/kernels/3.10.0-327.el7.x86_64/include/rdma/ib_addr.h:47:0,
                 from /usr/src/kernels/3.10.0-327.el7.x86_64/include/rdma/rdma_cm.h:39,
                 from /root/rpmbuild/BUILD/lustre-2.7.0/lnet/klnds/o2iblnd/o2iblnd.h:73,
                 from /root/rpmbuild/BUILD/lustre-2.7.0/lnet/klnds/o2iblnd/o2iblnd.c:42:
/usr/src/kernels/3.10.0-327.el7.x86_64/include/rdma/ib_verbs.h:2392:15: note: expected 'const struct ib_cq_init_attr *' but argument is of type 'int'
 struct ib_cq *ib_create_cq(struct ib_device *device,


Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In