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

osd_object.c:1330:22: error: 'DN_MAX_BONUSLEN' undeclared (first use in this function) DMU_OT_SA, DN_MAX_BONUSLEN, tx);

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Lustre 2.10.0
    • Lustre 2.8.0
    • None
    • 3
    • 9223372036854775807

    Description

      Attempts to build CORAL prototype zfs with Lustre 2.8 fails with:

      CC:            gcc
      LD:            /usr/bin/ld -m elf_x86_64
      CPPFLAGS:      -include /tmp/rpmbuild-lustre--vGTBA8K3/BUILD/lustre-2.8.0/undef.h -include /tmp/rpmbuild-lustre--vGTBA8K3/BUILD/lustre-2.8.0/config.h -I/tmp/rpmbuild-lustre--vGTBA8K3/BUILD/lustre-2.8.0/libcfs/include -I/tmp/rpmbuild-lustre--vGTBA8K3/BUILD/lustre-2.8.0/lnet/include -I/tmp/rpmbuild-lustre--vGTBA8K3/BUILD/lustre-2.8.0/lustre/include 
      CFLAGS:        -g -O2 -Werror -Wall -Werror
      EXTRA_KCFLAGS: -include /tmp/rpmbuild-lustre--vGTBA8K3/BUILD/lustre-2.8.0/undef.h -include /tmp/rpmbuild-lustre--vGTBA8K3/BUILD/lustre-2.8.0/config.h  -g -I/tmp/rpmbuild-lustre--vGTBA8K3/BUILD/lustre-2.8.0/libcfs/include -I/tmp/rpmbuild-lustre--vGTBA8K3/BUILD/lustre-2.8.0/lnet/include -I/tmp/rpmbuild-lustre--vGTBA8K3/BUILD/lustre-2.8.0/lustre/include
      
      Type 'make' to build Lustre.
      + make -s
      Making all in .
      /tmp/rpmbuild-lustre--vGTBA8K3/BUILD/lustre-2.8.0/lustre/osd-zfs/osd_object.c: In function '__osd_object_create':
      /tmp/rpmbuild-lustre--vGTBA8K3/BUILD/lustre-2.8.0/lustre/osd-zfs/osd_object.c:1286:22: error: 'DN_MAX_BONUSLEN' undeclared (first use in this function)
                 DMU_OT_SA, DN_MAX_BONUSLEN, tx);
                            ^
      /tmp/rpmbuild-lustre--vGTBA8K3/BUILD/lustre-2.8.0/lustre/osd-zfs/osd_object.c:1286:22: note: each undeclared identifier is reported only once for each function it appears in
      /tmp/rpmbuild-lustre--vGTBA8K3/BUILD/lustre-2.8.0/lustre/osd-zfs/osd_object.c: In function '__osd_zap_create':
      /tmp/rpmbuild-lustre--vGTBA8K3/BUILD/lustre-2.8.0/lustre/osd-zfs/osd_object.c:1330:22: error: 'DN_MAX_BONUSLEN' undeclared (first use in this function)
                 DMU_OT_SA, DN_MAX_BONUSLEN, tx);
                            ^
      make[7]: *** [/tmp/rpmbuild-lustre--vGTBA8K3/BUILD/lustre-2.8.0/lustre/osd-zfs/osd_object.o] Error 1
      make[6]: *** [/tmp/rpmbuild-lustre--vGTBA8K3/BUILD/lustre-2.8.0/lustre/osd-zfs] Error 2
      make[5]: *** [/tmp/rpmbuild-lustre--vGTBA8K3/BUILD/lustre-2.8.0/lustre] Error 2
      make[4]: *** [_module_/tmp/rpmbuild-lustre--vGTBA8K3/BUILD/lustre-2.8.0] Error 2
      make[3]: *** [modules] Error 2
      make[2]: *** [all-recursive] Error 1
      make[1]: *** [all] Error 2
      error: Bad exit status from /tmp/rpmbuild-lustre--vGTBA8K3/TMP/rpm-tmp.ffGn9W (%build)
          Bad exit status from /tmp/rpmbuild-lustre--vGTBA8K3/TMP/rpm-tmp.ffGn9W (%build)
      
      
      RPM build errors:
      make: *** [rpms] Error 1
      

      Attachments

        Issue Links

          Activity

            [LU-8424] osd_object.c:1330:22: error: 'DN_MAX_BONUSLEN' undeclared (first use in this function) DMU_OT_SA, DN_MAX_BONUSLEN, tx);
            pjones Peter Jones added a comment -

            Landed for 2.10

            pjones Peter Jones added a comment - Landed for 2.10

            Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/26078/
            Subject: LU-8424 osd-zfs: ZFS macro DN_MAX_BONUSLEN is deprecated
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 69940d2b3a445284e7e10ea04e8cb72ee37a8724

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/26078/ Subject: LU-8424 osd-zfs: ZFS macro DN_MAX_BONUSLEN is deprecated Project: fs/lustre-release Branch: master Current Patch Set: Commit: 69940d2b3a445284e7e10ea04e8cb72ee37a8724

            Ned Bass (bass6@llnl.gov) uploaded a new patch: https://review.whamcloud.com/26078
            Subject: LU-8424 osd-zfs: ZFS macro DN_MAX_BONUSLEN is deprecated
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 4f6aa675f9c5ad9635610f0fbc7a0ccadb5c3ff2

            gerrit Gerrit Updater added a comment - Ned Bass (bass6@llnl.gov) uploaded a new patch: https://review.whamcloud.com/26078 Subject: LU-8424 osd-zfs: ZFS macro DN_MAX_BONUSLEN is deprecated Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 4f6aa675f9c5ad9635610f0fbc7a0ccadb5c3ff2

            This error is fixed by http://review.whamcloud.com/22523 from LU-8619

            utopiabound Nathaniel Clark added a comment - This error is fixed by http://review.whamcloud.com/22523 from LU-8619

            This hasn't been fixed. Still seeing build fails like this when building with latest zfs master. Looks like there are instances of use of DN_MAX_BONUSLEN that aren't addressed by the landed patch. example errors:

            make[3]: Entering directory `/home/bogl/lbuild_top/BUILD/kernel-3.10.0-327.36.1.el7/linux-3.10.0-327.36.1.el7_lustre.x86_64'
              CC [M]  /home/bogl/lustre-release/lustre/osd-zfs/osd_oi.o
            /home/bogl/lustre-release/lustre/osd-zfs/osd_oi.c: In function ‘osd_oi_create’:
            /home/bogl/lustre-release/lustre/osd-zfs/osd_oi.c:176:22: error: ‘DN_MAX_BONUSLEN’ undeclared (first use in this function)
                       DMU_OT_SA, DN_MAX_BONUSLEN, tx);
                                  ^
            /home/bogl/lustre-release/lustre/osd-zfs/osd_oi.c:176:22: note: each undeclared identifier is reported only once for each function it appears in
            make[6]: *** [/home/bogl/lustre-release/lustre/osd-zfs/osd_oi.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/lbuild_top/BUILD/kernel-3.10.0-327.36.1.el7/linux-3.10.0-327.36.1.el7_lustre.x86_64'
            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
            
            bogl Bob Glossman (Inactive) added a comment - This hasn't been fixed. Still seeing build fails like this when building with latest zfs master. Looks like there are instances of use of DN_MAX_BONUSLEN that aren't addressed by the landed patch. example errors: make[3]: Entering directory `/home/bogl/lbuild_top/BUILD/kernel-3.10.0-327.36.1.el7/linux-3.10.0-327.36.1.el7_lustre.x86_64' CC [M] /home/bogl/lustre-release/lustre/osd-zfs/osd_oi.o /home/bogl/lustre-release/lustre/osd-zfs/osd_oi.c: In function ‘osd_oi_create’: /home/bogl/lustre-release/lustre/osd-zfs/osd_oi.c:176:22: error: ‘DN_MAX_BONUSLEN’ undeclared (first use in this function) DMU_OT_SA, DN_MAX_BONUSLEN, tx); ^ /home/bogl/lustre-release/lustre/osd-zfs/osd_oi.c:176:22: note: each undeclared identifier is reported only once for each function it appears in make[6]: *** [/home/bogl/lustre-release/lustre/osd-zfs/osd_oi.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/lbuild_top/BUILD/kernel-3.10.0-327.36.1.el7/linux-3.10.0-327.36.1.el7_lustre.x86_64' 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

            This is due to large dnode support. This is already resolved on master in LU-8068.

            morrone Christopher Morrone (Inactive) added a comment - This is due to large dnode support. This is already resolved on master in LU-8068 .

            JohnM looked at this: DN_MAX_BONUSLEN is defined in ZFS-0.6.5-release branch and not in master – it is set by macros that do not exist in ZFS master branch. I have lowered the priority and we will focus on 2.9.

            jsalians_intel John Salinas (Inactive) added a comment - JohnM looked at this: DN_MAX_BONUSLEN is defined in ZFS-0.6.5-release branch and not in master – it is set by macros that do not exist in ZFS master branch. I have lowered the priority and we will focus on 2.9.

            People

              utopiabound Nathaniel Clark
              jsalians_intel John Salinas (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: