Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-2975

Build fails on 2.6.32-279.22.1.el6 due to two functions redefined

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • None
    • Lustre 2.4.0
    • 2.6.32-279.22.1.el6 (CentOS6.3), OFED-3.5
    • 3
    • 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
      

      Attachments

        Issue Links

          Activity

            [LU-2975] Build fails on 2.6.32-279.22.1.el6 due to two functions redefined

            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.

            ihara Shuichi Ihara (Inactive) added a comment - 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.

            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.

            ihara Shuichi Ihara (Inactive) added a comment - 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.

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

            ihara Shuichi Ihara (Inactive) added a comment - I don't think OFED-3.5 supports RHEL6.4, but it will be supported in OFED-3.5.1.
            mdiep Minh Diep added a comment -

            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

            mdiep Minh Diep added a comment - 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

            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.

            ihara Shuichi Ihara (Inactive) added a comment - 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.
            ihara Shuichi Ihara (Inactive) added a comment - patch for b2_1. http://review.whamcloud.com/5809
            pjones Peter Jones added a comment -

            Thanks Ihara!

            Minh

            Could you please look into this one?

            Thanks

            Peter

            pjones Peter Jones added a comment - Thanks Ihara! Minh Could you please look into this one? Thanks Peter

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

            ihara Shuichi Ihara (Inactive) added a comment - submitted patch to address this error. http://review.whamcloud.com/#change,5740

            People

              mdiep Minh Diep
              ihara Shuichi Ihara (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: