[LU-2937] RHEL6.3 2.6.32-279.22.1.el6 failed to be built with OFED-1.5.4 Created: 09/Mar/13  Updated: 11/Mar/13  Resolved: 11/Mar/13

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

Type: Bug Priority: Blocker
Reporter: Jian Yu Assignee: Minh Diep
Resolution: Fixed Votes: 0
Labels: None
Environment:

RHEL6.3 (kernel version: 2.6.32-279.22.1.el6)
OFED 1.5.4


Severity: 3
Rank (Obsolete): 7055

 Description   

After patch http://review.whamcloud.com/5529 was landed on Lustre b2_1 branch, building Lustre with OFED-1.5.4 on RHEL6.3 distro failed as follows:

Type 'make' to build Lustre.
+ make -j 2 -s
Making all in .
In file included from include/linux/tracepoint.h:18,
                 from include/linux/module.h:18,
                 from /var/lib/jenkins/workspace/lustre-b2_1/arch/x86_64/build_type/server/distro/el6/ib_stack/ofa/BUILD/BUILD/lustre-2.1.4/libcfs/include/libcfs/linux/linux-time.h:104,
                 from /var/lib/jenkins/workspace/lustre-b2_1/arch/x86_64/build_type/server/distro/el6/ib_stack/ofa/BUILD/BUILD/lustre-2.1.4/libcfs/include/libcfs/linux/libcfs.h:52,
                 from /var/lib/jenkins/workspace/lustre-b2_1/arch/x86_64/build_type/server/distro/el6/ib_stack/ofa/BUILD/BUILD/lustre-2.1.4/libcfs/include/libcfs/libcfs.h:50,
                 from /var/lib/jenkins/workspace/lustre-b2_1/arch/x86_64/build_type/server/distro/el6/ib_stack/ofa/BUILD/BUILD/lustre-2.1.4/libcfs/libcfs/linux/linux-tracefile.c:42:
/var/lib/jenkins/workspace/lustre-b2_1/arch/x86_64/build_type/server/distro/el6/ib_stack/ofa/BUILD/kernel-ib-devel/usr/src/ofa_kernel/kernel_addons/backport/2.6.32-EL6.1/include//linux/rcupdate.h:6:1: error: "RCU_INIT_POINTER" redefined

Jenkins build: http://build.whamcloud.com/job/lustre-b2_1/184/



 Comments   
Comment by Peter Jones [ 09/Mar/13 ]

Minh

Could you please look into this as your top priority?

Thanks

Peter

Comment by Minh Diep [ 11/Mar/13 ]

yes, sure

Comment by Minh Diep [ 11/Mar/13 ]

The kernel that the patch landed was RHEL6.3 2.6.32-279.22.1.el6
ofed-1.5.4 does not support this kernel

o Linux Operating Systems:

  • RedHat EL5 up6 2.6.18-238.el5
  • RedHat EL5 up7 2.6.18-274.el5
  • RedHat EL6 2.6.32-71.el6
  • RedHat EL6.1 2.6.32-131.0.15.el6
  • RedHat EL6.2 2.6.32-220.el6
Comment by Minh Diep [ 11/Mar/13 ]

We should move the build system to http://www.openfabrics.org/downloads/OFED/release_notes/OFED_3.5_release_notes

Comment by Peter Jones [ 11/Mar/13 ]

So essentially this issue is a duplicate of LU-1468?

Comment by Minh Diep [ 11/Mar/13 ]

I don't think so. It's interesting that lustre-master is building 2.6.32.279.19.1.el6 on ofed 1.5.4 and passes. I'll investigate this more by building this manually.

Comment by Minh Diep [ 11/Mar/13 ]

Ofed define this in rcupdate.h

#include_next <linux/rcupdate.h>

#define RCU_INIT_POINTER(p, v) p = v

starting kernel 2.6.32-279.22.1 rcupdate also define

/**

  • RCU_INIT_POINTER() - initialize an RCU protected pointer
    *
  • Initialize an RCU-protected pointer in such a way to avoid RCU-lockdep
  • splats.
    */
    #define RCU_INIT_POINTER(p, v) \
    p = (typeof(*v) __force __rcu *)(v)

This caused conflict redefine during the build

Comment by Minh Diep [ 11/Mar/13 ]

I have confirmed that it need ofed 3.5. This means this issue is a duplicate of LU-1468

Comment by Jodi Levi (Inactive) [ 11/Mar/13 ]

Duplicate of LU-1468

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