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

Lustre b2_1 build failed on RHEL6.4 with OFA IB stack

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • Lustre 2.4.1, Lustre 2.5.0
    • Lustre 2.1.6

    • Distro: RHEL6.4
      Network: OFA IB
    • 3
    • 8392

    Description

      After http://review.whamcloud.com/5504 was landed on Lustre b2_1 branch, build on RHEL6.4 distro with OFA IB stack has been failing:

      http://build.whamcloud.com/job/lustre-b2_1/198/
      http://build.whamcloud.com/job/lustre-b2_1/203/

      The OFA version is 1.5.4.

      Attachments

        Activity

          [LU-3389] Lustre b2_1 build failed on RHEL6.4 with OFA IB stack

          LU-4266 fixed our problem.

          wang Wally Wang (Inactive) added a comment - LU-4266 fixed our problem.

          Lustre 2.5 server build fails with OFED 3.5-2. It appears to be unnecessarily providing -DCONFIG_COMPAT_RHEL_6_4 and -I${O2IBPATH}/include to the ldiskfs build. And we probably don't need O2IBPATH for any modules not related to O2IB.

          [   96s] make[3]: Leaving directory `/home/abuild/rpmbuild/BUILD/cray-lustre/lustre'
          [   96s] /usr/bin/make CC="gcc"  -C /usr/src/linux-2.6.32-358.el6_1.0000.7630-obj/x86_64/cray_ari_s_cos	     \
          [   96s] 	-f /home/abuild/rpmbuild/BUILD/cray-lustre/build/Makefile LUSTRE_LINUX_CONFIG=/usr/src/linux-2.6.32-358.el6_1.0000.7630-obj/x86_64/cray_ari_s_cos/.config \
          [   96s] 	LINUXINCLUDE='-DCONFIG_COMPAT_RHEL_6_4 -I/usr/src/kernel-modules-ofed/x86_64/cray_ari_s_cos/include -I$(srctree)/arch/$(SRCARCH)/include -I$(srctree)/arch/$(SRCARCH)/include/generated -Iinclude $(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include) -I$(srctree)/arch/$(SRCARCH)/include/uapi -Iarch/$(SRCARCH)/include/generated/uapi -I$(srctree)/include/uapi -Iinclude/generated/uapi -include include/linux/autoconf.h' \
          [   96s] 	M=/home/abuild/rpmbuild/BUILD/cray-lustre -o tmp_include_depends -o scripts -o \
          [   96s] 	include/config/MARKER modules
          [   96s] make[3]: Entering directory `/usr/src/linux-2.6.32-358.el6_1.0000.7630-obj/x86_64/cray_ari_s_cos'
          [   96s] /usr/bin/make -C ../../../linux-2.6.32-358.el6_1.0000.7630 O=/usr/src/linux-2.6.32-358.el6_1.0000.7630-obj/x86_64/cray_ari_s_cos/. modules
          [   97s]   CC [M]  /home/abuild/rpmbuild/BUILD/cray-lustre/ldiskfs/acl.o
          [   97s]   CC [M]  /home/abuild/rpmbuild/BUILD/cray-lustre/ldiskfs/balloc.o
          [   97s]   CC [M]  /home/abuild/rpmbuild/BUILD/cray-lustre/ldiskfs/bitmap.o
          [   97s]   CC [M]  /home/abuild/rpmbuild/BUILD/cray-lustre/ldiskfs/block_validity.o
          [   97s]   CC [M]  /home/abuild/rpmbuild/BUILD/cray-lustre/ldiskfs/dir.o
          ...
          ...
          [   99s]   CC [M]  /home/abuild/rpmbuild/BUILD/cray-lustre/ldiskfs/super.o
          [   99s] In file included from /usr/src/linux-2.6.32-358.el6_1.0000.7630/include/trace/ftrace.h:441,
          [   99s]                  from /usr/src/linux-2.6.32-358.el6_1.0000.7630/include/trace/define_trace.h:74,
          [   99s]                  from /home/abuild/rpmbuild/BUILD/cray-lustre/ldiskfs/trace/events/ldiskfs.h:905,
          [   99s]                  from /home/abuild/rpmbuild/BUILD/cray-lustre/ldiskfs/super.c:57:
          [   99s] /home/abuild/rpmbuild/BUILD/cray-lustre/ldiskfs/trace/events/ldiskfs.h: In function 'ftrace_profile_enable_ldiskfs_free_inode':
          [   99s] /home/abuild/rpmbuild/BUILD/cray-lustre/ldiskfs/trace/events/ldiskfs.h:18: error: implicit declaration of function 'register_trace_ldiskfs_free_inode'
          [   99s] In file included from /usr/src/linux-2.6.32-358.el6_1.0000.7630/include/trace/ftrace.h:441,
          [   99s]                  from /usr/src/linux-2.6.32-358.el6_1.0000.7630/include/trace/define_trace.h:74,
          [   99s]                  from /home/abuild/rpmbuild/BUILD/cray-lustre/ldiskfs/trace/events/ldiskfs.h:905,
          [   99s]                  from /home/abuild/rpmbuild/BUILD/cray-lustre/ldiskfs/super.c:57:
          [   99s] /home/abuild/rpmbuild/BUILD/cray-lustre/ldiskfs/trace/events/ldiskfs.h: In function 'ftrace_profile_disable_ldiskfs_free_inode':
          [   99s] /home/abuild/rpmbuild/BUILD/cray-lustre/ldiskfs/trace/events/ldiskfs.h:18: error: implicit declaration of function 'unregister_trace_ldiskfs_free_inode'
          [   99s] In file included from /usr/src/linux-2.6.32-358.el6_1.0000.7630/include/trace/ftrace.h:441,
          [   99s]                  from /usr/src/linux-2.6.32-358.el6_1.0000.7630/include/trace/define_trace.h:74,
          [...
          
          wang Wally Wang (Inactive) added a comment - Lustre 2.5 server build fails with OFED 3.5-2. It appears to be unnecessarily providing -DCONFIG_COMPAT_RHEL_6_4 and -I${O2IBPATH}/include to the ldiskfs build. And we probably don't need O2IBPATH for any modules not related to O2IB. [ 96s] make[3]: Leaving directory `/home/abuild/rpmbuild/BUILD/cray-lustre/lustre' [ 96s] /usr/bin/make CC="gcc" -C /usr/src/linux-2.6.32-358.el6_1.0000.7630-obj/x86_64/cray_ari_s_cos \ [ 96s] -f /home/abuild/rpmbuild/BUILD/cray-lustre/build/Makefile LUSTRE_LINUX_CONFIG=/usr/src/linux-2.6.32-358.el6_1.0000.7630-obj/x86_64/cray_ari_s_cos/.config \ [ 96s] LINUXINCLUDE='-DCONFIG_COMPAT_RHEL_6_4 -I/usr/src/kernel-modules-ofed/x86_64/cray_ari_s_cos/include -I$(srctree)/arch/$(SRCARCH)/include -I$(srctree)/arch/$(SRCARCH)/include/generated -Iinclude $(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include) -I$(srctree)/arch/$(SRCARCH)/include/uapi -Iarch/$(SRCARCH)/include/generated/uapi -I$(srctree)/include/uapi -Iinclude/generated/uapi -include include/linux/autoconf.h' \ [ 96s] M=/home/abuild/rpmbuild/BUILD/cray-lustre -o tmp_include_depends -o scripts -o \ [ 96s] include/config/MARKER modules [ 96s] make[3]: Entering directory `/usr/src/linux-2.6.32-358.el6_1.0000.7630-obj/x86_64/cray_ari_s_cos' [ 96s] /usr/bin/make -C ../../../linux-2.6.32-358.el6_1.0000.7630 O=/usr/src/linux-2.6.32-358.el6_1.0000.7630-obj/x86_64/cray_ari_s_cos/. modules [ 97s] CC [M] /home/abuild/rpmbuild/BUILD/cray-lustre/ldiskfs/acl.o [ 97s] CC [M] /home/abuild/rpmbuild/BUILD/cray-lustre/ldiskfs/balloc.o [ 97s] CC [M] /home/abuild/rpmbuild/BUILD/cray-lustre/ldiskfs/bitmap.o [ 97s] CC [M] /home/abuild/rpmbuild/BUILD/cray-lustre/ldiskfs/block_validity.o [ 97s] CC [M] /home/abuild/rpmbuild/BUILD/cray-lustre/ldiskfs/dir.o ... ... [ 99s] CC [M] /home/abuild/rpmbuild/BUILD/cray-lustre/ldiskfs/super.o [ 99s] In file included from /usr/src/linux-2.6.32-358.el6_1.0000.7630/include/trace/ftrace.h:441, [ 99s] from /usr/src/linux-2.6.32-358.el6_1.0000.7630/include/trace/define_trace.h:74, [ 99s] from /home/abuild/rpmbuild/BUILD/cray-lustre/ldiskfs/trace/events/ldiskfs.h:905, [ 99s] from /home/abuild/rpmbuild/BUILD/cray-lustre/ldiskfs/super.c:57: [ 99s] /home/abuild/rpmbuild/BUILD/cray-lustre/ldiskfs/trace/events/ldiskfs.h: In function 'ftrace_profile_enable_ldiskfs_free_inode': [ 99s] /home/abuild/rpmbuild/BUILD/cray-lustre/ldiskfs/trace/events/ldiskfs.h:18: error: implicit declaration of function 'register_trace_ldiskfs_free_inode' [ 99s] In file included from /usr/src/linux-2.6.32-358.el6_1.0000.7630/include/trace/ftrace.h:441, [ 99s] from /usr/src/linux-2.6.32-358.el6_1.0000.7630/include/trace/define_trace.h:74, [ 99s] from /home/abuild/rpmbuild/BUILD/cray-lustre/ldiskfs/trace/events/ldiskfs.h:905, [ 99s] from /home/abuild/rpmbuild/BUILD/cray-lustre/ldiskfs/super.c:57: [ 99s] /home/abuild/rpmbuild/BUILD/cray-lustre/ldiskfs/trace/events/ldiskfs.h: In function 'ftrace_profile_disable_ldiskfs_free_inode': [ 99s] /home/abuild/rpmbuild/BUILD/cray-lustre/ldiskfs/trace/events/ldiskfs.h:18: error: implicit declaration of function 'unregister_trace_ldiskfs_free_inode' [ 99s] In file included from /usr/src/linux-2.6.32-358.el6_1.0000.7630/include/trace/ftrace.h:441, [ 99s] from /usr/src/linux-2.6.32-358.el6_1.0000.7630/include/trace/define_trace.h:74, [...
          pjones Peter Jones added a comment -

          Landed for 2.4.1 and 2.5. Will land to b2_1 if/when work on a 2.1.7 starts

          pjones Peter Jones added a comment - Landed for 2.4.1 and 2.5. Will land to b2_1 if/when work on a 2.1.7 starts
          ihara Shuichi Ihara (Inactive) added a comment - http://review.whamcloud.com/7216 for b2_4 http://review.whamcloud.com/7217 for b2_1

          I ported patch for b2_1 and b2_4 and will post them shortly.

          ihara Shuichi Ihara (Inactive) added a comment - I ported patch for b2_1 and b2_4 and will post them shortly.
          mdiep Minh Diep added a comment -

          b2_1 and b2_4 are now building with kernel 2.6.32-358.11.1 which has no external OFED support (or may be broken even ok to build).

          mdiep Minh Diep added a comment - b2_1 and b2_4 are now building with kernel 2.6.32-358.11.1 which has no external OFED support (or may be broken even ok to build).
          yujian Jian Yu added a comment -

          Or is more work needed in this ticket for OFED?

          1) the patches need to be landed on Lustre b2_1 and b2_4 branches
          2) OFA builds need to be enabled on Jenkins

          yujian Jian Yu added a comment - Or is more work needed in this ticket for OFED? 1) the patches need to be landed on Lustre b2_1 and b2_4 branches 2) OFA builds need to be enabled on Jenkins

          Now that the 2 patches have landed, can this ticket be closed? Or is more work needed in this ticket for OFED?

          jlevi Jodi Levi (Inactive) added a comment - Now that the 2 patches have landed, can this ticket be closed? Or is more work needed in this ticket for OFED?

          The patches work to build OFED-3.5-1 against RHEL6.4, but Mellanox OFED has different Macro name today.
          Here is quick description to build MLNX_OFED_LINUX-2.0-2.0.5 against the latest lustre patched kernel based on RHEL6.4. Today, we need adding macro name that we want to avoid due to OFED doesn't have automatically kernel verion detection. I asked Mellanox and they seems to be trying fix in the future release.

          # EXTRA_LNET_INCLUDE="-DCONFIG_COMPAT_IS_PHYS_ID_STATE -DCONFIG_COMPAT_IS_PCI_PHYSFN \
          -DCONFIG_COMPAT_IS_KSTRTOX -DCONFIG_COMPAT_IS_BITOP \
          -DCONFIG_COMPAT_NETLINK_3_7 -DCONFIG_COMPAT_IS_IP_TOS2PRIO \
          -DCONFIG_COMPAT_IS_NETIF_RSS_QUEUES -DCONFIG_COMPAT_IS_NOOP_LLSEEK \
          -DCONFIG_COMPAT_IS_SIMPLE_OPEN -DCONFIG_COMPAT_RCU \
          -DCONFIG_COMPAT_HAS_NUM_CHANNELS -DCONFIG_COMPAT_ETHTOOL_OPS_EXT" \
          ./configure --with-o2ib=/usr/src/ofa_kernel
          
          # EXTRA_LNET_INCLUDE="-DCONFIG_COMPAT_IS_PHYS_ID_STATE -DCONFIG_COMPAT_IS_PCI_PHYSFN \
          -DCONFIG_COMPAT_IS_KSTRTOX -DCONFIG_COMPAT_IS_BITOP \
          -DCONFIG_COMPAT_NETLINK_3_7 -DCONFIG_COMPAT_IS_IP_TOS2PRIO \
          -DCONFIG_COMPAT_IS_NETIF_RSS_QUEUES -DCONFIG_COMPAT_IS_NOOP_LLSEEK \
          -DCONFIG_COMPAT_IS_SIMPLE_OPEN -DCONFIG_COMPAT_RCU \
          -DCONFIG_COMPAT_HAS_NUM_CHANNELS -DCONFIG_COMPAT_ETHTOOL_OPS_EXT" make rpms
          
          ihara Shuichi Ihara (Inactive) added a comment - The patches work to build OFED-3.5-1 against RHEL6.4, but Mellanox OFED has different Macro name today. Here is quick description to build MLNX_OFED_LINUX-2.0-2.0.5 against the latest lustre patched kernel based on RHEL6.4. Today, we need adding macro name that we want to avoid due to OFED doesn't have automatically kernel verion detection. I asked Mellanox and they seems to be trying fix in the future release. # EXTRA_LNET_INCLUDE="-DCONFIG_COMPAT_IS_PHYS_ID_STATE -DCONFIG_COMPAT_IS_PCI_PHYSFN \ -DCONFIG_COMPAT_IS_KSTRTOX -DCONFIG_COMPAT_IS_BITOP \ -DCONFIG_COMPAT_NETLINK_3_7 -DCONFIG_COMPAT_IS_IP_TOS2PRIO \ -DCONFIG_COMPAT_IS_NETIF_RSS_QUEUES -DCONFIG_COMPAT_IS_NOOP_LLSEEK \ -DCONFIG_COMPAT_IS_SIMPLE_OPEN -DCONFIG_COMPAT_RCU \ -DCONFIG_COMPAT_HAS_NUM_CHANNELS -DCONFIG_COMPAT_ETHTOOL_OPS_EXT" \ ./configure --with-o2ib=/usr/src/ofa_kernel # EXTRA_LNET_INCLUDE="-DCONFIG_COMPAT_IS_PHYS_ID_STATE -DCONFIG_COMPAT_IS_PCI_PHYSFN \ -DCONFIG_COMPAT_IS_KSTRTOX -DCONFIG_COMPAT_IS_BITOP \ -DCONFIG_COMPAT_NETLINK_3_7 -DCONFIG_COMPAT_IS_IP_TOS2PRIO \ -DCONFIG_COMPAT_IS_NETIF_RSS_QUEUES -DCONFIG_COMPAT_IS_NOOP_LLSEEK \ -DCONFIG_COMPAT_IS_SIMPLE_OPEN -DCONFIG_COMPAT_RCU \ -DCONFIG_COMPAT_HAS_NUM_CHANNELS -DCONFIG_COMPAT_ETHTOOL_OPS_EXT" make rpms

          http://review.whamcloud.com/6448

          patch to build master on RHEL6.4 + OFED-3.5.1.

          ihara Shuichi Ihara (Inactive) added a comment - http://review.whamcloud.com/6448 patch to build master on RHEL6.4 + OFED-3.5.1.

          People

            mdiep Minh Diep
            yujian Jian Yu
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: