[LU-2975] Build fails on 2.6.32-279.22.1.el6 due to two functions redefined Created: 16/Mar/13  Updated: 27/Aug/13  Resolved: 27/Aug/13

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.4.0
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Shuichi Ihara (Inactive) Assignee: Minh Diep
Resolution: Fixed Votes: 0
Labels: patch
Environment:

2.6.32-279.22.1.el6 (CentOS6.3), OFED-3.5


Issue Links:
Related
is related to LU-1468 Support Compat RDMA for O2IB Resolved
Severity: 3
Rank (Obsolete): 7246

 Description   

http://review.whamcloud.com/#change,3011 introduces OFED-3.5 support, but build fails on the latest RHEL6's updated kenrel 2.6.32-279.22.1.el6.x86_64 due to two functions are defined in that kenrel against OFED compat header.

  CC [M]  /root/lustre-2.3.62/lnet/klnds/o2iblnd/o2iblnd.o
In file included from /usr/src/compat-rdma/include/linux/compat-2.6.h:53,
                 from /root/lustre-2.3.62/lnet/klnds/o2iblnd/o2iblnd.h:73,
                 from /root/lustre-2.3.62/lnet/klnds/o2iblnd/o2iblnd.c:41:
/usr/src/compat-rdma/include/linux/compat-2.6.34.h:290:1: error: "rcu_dereference_protected" redefined
In file included from include/linux/tracepoint.h:18,
                 from /usr/src/compat-rdma/include/linux/tracepoint.h:19,
                 from include/linux/module.h:18,
                 from /root/lustre-2.3.62/lnet/klnds/o2iblnd/o2iblnd.h:41,
                 from /root/lustre-2.3.62/lnet/klnds/o2iblnd/o2iblnd.c:41:
include/linux/rcupdate.h:256:1: error: this is the location of the previous definition
In file included from /usr/src/compat-rdma/include/linux/compat-2.6.h:59,
                 from /root/lustre-2.3.62/lnet/klnds/o2iblnd/o2iblnd.h:73,
                 from /root/lustre-2.3.62/lnet/klnds/o2iblnd/o2iblnd.c:41:
/usr/src/compat-rdma/include/linux/compat-3.0.h:90:1: error: "kfree_rcu" redefined
In file included from include/linux/tracepoint.h:18,
                 from /usr/src/compat-rdma/include/linux/tracepoint.h:19,
                 from include/linux/module.h:18,
                 from /root/lustre-2.3.62/lnet/klnds/o2iblnd/o2iblnd.h:41,
                 from /root/lustre-2.3.62/lnet/klnds/o2iblnd/o2iblnd.c:41:
include/linux/rcupdate.h:389:1: error: this is the location of the previous definition
make[7]: *** [/root/lustre-2.3.62/lnet/klnds/o2iblnd/o2iblnd.o] Error 1
make[6]: *** [/root/lustre-2.3.62/lnet/klnds/o2iblnd] Error 2
make[5]: *** [/root/lustre-2.3.62/lnet/klnds] Error 2
make[4]: *** [/root/lustre-2.3.62/lnet] Error 2
make[3]: *** [_module_/root/lustre-2.3.62] Error 2
make[3]: Leaving directory `/usr/src/kernels/2.6.32-279.22.1.el6.x86_64'
make[2]: *** [modules] Error 2


 Comments   
Comment by Shuichi Ihara (Inactive) [ 16/Mar/13 ]

submitted patch to address this error. http://review.whamcloud.com/#change,5740

Comment by Peter Jones [ 16/Mar/13 ]

Thanks Ihara!

Minh

Could you please look into this one?

Thanks

Peter

Comment by Shuichi Ihara (Inactive) [ 22/Mar/13 ]

patch for b2_1. http://review.whamcloud.com/5809

Comment by Shuichi Ihara (Inactive) [ 06/Apr/13 ]

I'm going to mark these patches with "Abandoned".

I think this should be fixed in the kernel compat driver and OFED's compat-rdma itself rather than fixing Lustre. compat driver fails on the latest RHEL6's extra kernel 2.6.32-279.22.1.el6.

Here is what I filed defect on compat driver project's bugzilla.
https://bugzilla.kernel.org/show_bug.cgi?id=55971

This is fixed up compat driver and the patches seems to be accepteced into new backport project.

I also filed thsi on OFED's bugzilla to port fixed patch and port into compat-rdma.

http://bugs.openfabrics.org/show_bug.cgi?id=2421

Let me test with fixed compat-rdma.

Comment by Minh Diep [ 12/Apr/13 ]

Hi Ihara,

If you have time, could you check if ofed 3.5 works under new kernel? We just landed kernel update 2.6.32-358 on master and obviously it breaks ofed 1.5.4
Thanks

Comment by Shuichi Ihara (Inactive) [ 16/Apr/13 ]

I don't think OFED-3.5 supports RHEL6.4, but it will be supported in OFED-3.5.1.

Comment by Shuichi Ihara (Inactive) [ 14/May/13 ]

Mellanox released out new OFED MLNX_OFED_LINUX-2.0-2.0.5 and I succeeded to build Lustre with this OFED on RHEL6.4's kernel.

Comment by Shuichi Ihara (Inactive) [ 21/Jul/13 ]

This duplicated to LU-3389 and patches were pushed on http://review.whamcloud.com/#/c/6448/
It's fine to me to close this ticket.

Generated at Sat Feb 10 01:29:53 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.