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 made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
            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
            pjones Peter Jones made changes -
            Fix Version/s New: Lustre 2.10.0 [ 12204 ]
            adilger Andreas Dilger made changes -
            Description Original: 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
            New: Attempts to build CORAL prototype zfs with Lustre 2.8 fails with:
            {noformat}
            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
            {noformat}

            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
            mdiep Minh Diep made changes -
            Link Original: This issue duplicates LU-8619 [ LU-8619 ]
            utopiabound Nathaniel Clark made changes -
            Status Original: Reopened [ 4 ] New: In Progress [ 3 ]
            utopiabound Nathaniel Clark made changes -
            Link New: This issue is related to LU-8619 [ LU-8619 ]

            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

            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: