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

build broken by new spl includes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Minor
    • None
    • None
    • None
    • 3
    • 16334

    Description

      lustre server builds with zfs using the most recent master versions of spl and zfs fail in osd-zfs. this problem isn't seen when building with a fixed version of 0.6.3 or earlier of spl, so it must be due to very recent changes. not a blocker as long as we build with a fixed version of spl that works, but will become a problem the next time we move to later tagged versions.

      looks like the underlying cause is conflicting defn's of SHRINK_STOP in spl #includes and lustre #includes. example errors:

        CC [M]  /home/bogl/lustre-release/lustre/osd-zfs/osd_handler.o
      In file included from /home/bogl/spl/include/sys/types.h:38,
                       from /home/bogl/spl/include/sys/kstat.h:30,
                       from /home/bogl/lustre-release/lustre/osd-zfs/osd_internal.h:54,
                       from /home/bogl/lustre-release/lustre/osd-zfs/osd_handler.c:60:
      /home/bogl/spl/include/linux/mm_compat.h:206:1: error: "SHRINK_STOP" redefined
      In file included from /home/bogl/lustre-release/libcfs/include/libcfs/linux/libcfs.h:52,
                       from /home/bogl/lustre-release/libcfs/include/libcfs/libcfs.h:43,
                       from /home/bogl/lustre-release/lustre/osd-zfs/osd_handler.c:50:
      /home/bogl/lustre-release/libcfs/include/libcfs/linux/linux-mem.h:149:1: error: this is the location of the previous definition
      make[6]: *** [/home/bogl/lustre-release/lustre/osd-zfs/osd_handler.o] Error 1
      make[5]: *** [/home/bogl/lustre-release/lustre/osd-zfs] Error 2
      make[4]: *** [/home/bogl/lustre-release/lustre] Error 2
      make[3]: *** [_module_/home/bogl/lustre-release] Error 2
      make[3]: Leaving directory `/home/bogl/rpmbuild/BUILD/kernel-2.6.32.431.29.2.l0924'
      make[2]: *** [modules] Error 2
      make[2]: Leaving directory `/home/bogl/lustre-release'
      make[1]: *** [all-recursive] Error 1
      make[1]: Leaving directory `/home/bogl/lustre-release'
      make: *** [all] Error 2
      

      Attachments

        Issue Links

          Activity

            People

              wc-triage WC Triage
              bogl Bob Glossman (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: