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

LASSERTF [-Werror=format=] failure

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.16.0
    • Lustre 2.16.0
    • None
    • 3
    • 9223372036854775807

    Description

      While building Ubuntu 24.04 on master branch, it failed as follows:

      /root/lustre-release/lustre/ptlrpc/wiretest.c: In function 'lustre_assert_wire_constants':
      /root/lustre-release/libcfs/include/libcfs/libcfs_private.h:89:34: error: format '%o' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Werror=format=]
         89 |                                  "ASSERTION( %s ) failed: " fmt, #cond, \
            |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
      /root/lustre-release/lustre/ptlrpc/wiretest.c:2718:9: note: in expansion of macro 'LASSERTF'
       2718 |         LASSERTF(MDS_FMODE_CLOSED == 000000000000UL, "found 0%.11oUL\n",
            |         ^~~~~~~~
      /root/lustre-release/libcfs/include/libcfs/libcfs_private.h:89:34: error: format '%o' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Werror=format=]
         89 |                                  "ASSERTION( %s ) failed: " fmt, #cond, \
            |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
      /root/lustre-release/lustre/ptlrpc/wiretest.c:2720:9: note: in expansion of macro 'LASSERTF'
       2720 |         LASSERTF(MDS_FMODE_EXEC == 000000000004UL, "found 0%.11oUL\n",
            |         ^~~~~~~~
      /root/lustre-release/libcfs/include/libcfs/libcfs_private.h:89:34: error: format '%o' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Werror=format=]
         89 |                                  "ASSERTION( %s ) failed: " fmt, #cond, \
            |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
      /root/lustre-release/lustre/ptlrpc/wiretest.c:2722:9: note: in expansion of macro 'LASSERTF'
       2722 |         LASSERTF(MDS_OPEN_CREATED == 000000000010UL, "found 0%.11oUL\n",
            |         ^~~~~~~~
      /root/lustre-release/libcfs/include/libcfs/libcfs_private.h:89:34: error: format '%o' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Werror=format=]
         89 |                                  "ASSERTION( %s ) failed: " fmt, #cond, \
            |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
      /root/lustre-release/lustre/ptlrpc/wiretest.c:2724:9: note: in expansion of macro 'LASSERTF'
       2724 |         LASSERTF(MDS_OPEN_CREAT == 000000000100UL, "found 0%.11oUL\n",
            |         ^~~~~~~~
      /root/lustre-release/libcfs/include/libcfs/libcfs_private.h:89:34: error: format '%o' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Werror=format=]
         89 |                                  "ASSERTION( %s ) failed: " fmt, #cond, \
            |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
      /root/lustre-release/lustre/ptlrpc/wiretest.c:2726:9: note: in expansion of macro 'LASSERTF'
       2726 |         LASSERTF(MDS_OPEN_EXCL == 000000000200UL, "found 0%.11oUL\n",
            |         ^~~~~~~~
      /root/lustre-release/libcfs/include/libcfs/libcfs_private.h:89:34: error: format '%o' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Werror=format=]
         89 |                                  "ASSERTION( %s ) failed: " fmt, #cond, \
            |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
      /root/lustre-release/lustre/ptlrpc/wiretest.c:2728:9: note: in expansion of macro 'LASSERTF'
       2728 |         LASSERTF(MDS_OPEN_TRUNC == 000000001000UL, "found 0%.11oUL\n",
            |         ^~~~~~~~
      /root/lustre-release/libcfs/include/libcfs/libcfs_private.h:89:34: error: format '%o' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Werror=format=]
         89 |                                  "ASSERTION( %s ) failed: " fmt, #cond, \
            |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
      /root/lustre-release/lustre/ptlrpc/wiretest.c:2730:9: note: in expansion of macro 'LASSERTF'
       2730 |         LASSERTF(MDS_OPEN_APPEND == 000000002000UL, "found 0%.11oUL\n",
            |         ^~~~~~~~
      /root/lustre-release/libcfs/include/libcfs/libcfs_private.h:89:34: error: format '%o' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Werror=format=]
         89 |                                  "ASSERTION( %s ) failed: " fmt, #cond, \
            |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
      /root/lustre-release/lustre/ptlrpc/wiretest.c:2732:9: note: in expansion of macro 'LASSERTF'
       2732 |         LASSERTF(MDS_OPEN_SYNC == 000000010000UL, "found 0%.11oUL\n",
            |         ^~~~~~~~
      /root/lustre-release/libcfs/include/libcfs/libcfs_private.h:89:34: error: format '%o' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Werror=format=]
         89 |                                  "ASSERTION( %s ) failed: " fmt, #cond, \
            |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
      /root/lustre-release/lustre/ptlrpc/wiretest.c:2734:9: note: in expansion of macro 'LASSERTF'
       2734 |         LASSERTF(MDS_OPEN_DIRECTORY == 000000200000UL, "found 0%.11oUL\n",
            |         ^~~~~~~~
      /root/lustre-release/libcfs/include/libcfs/libcfs_private.h:89:34: error: format '%o' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Werror=format=]
         89 |                                  "ASSERTION( %s ) failed: " fmt, #cond, \
            |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
      /root/lustre-release/lustre/ptlrpc/wiretest.c:2736:9: note: in expansion of macro 'LASSERTF'
       2736 |         LASSERTF(MDS_OPEN_BY_FID == 000040000000UL, "found 0%.11oUL\n",
            |         ^~~~~~~~
      /root/lustre-release/libcfs/include/libcfs/libcfs_private.h:89:34: error: format '%o' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Werror=format=]
         89 |                                  "ASSERTION( %s ) failed: " fmt, #cond, \
            |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
      /root/lustre-release/lustre/ptlrpc/wiretest.c:2738:9: note: in expansion of macro 'LASSERTF'
       2738 |         LASSERTF(MDS_OPEN_DELAY_CREATE == 000100000000UL, "found 0%.11oUL\n",
            |         ^~~~~~~~
      /root/lustre-release/libcfs/include/libcfs/libcfs_private.h:89:34: error: format '%o' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Werror=format=]
         89 |                                  "ASSERTION( %s ) failed: " fmt, #cond, \
            |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
      /root/lustre-release/lustre/ptlrpc/wiretest.c:2740:9: note: in expansion of macro 'LASSERTF'
       2740 |         LASSERTF(MDS_OPEN_OWNEROVERRIDE == 000200000000UL, "found 0%.11oUL\n",
            |         ^~~~~~~~
      /root/lustre-release/libcfs/include/libcfs/libcfs_private.h:89:34: error: format '%o' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Werror=format=]
         89 |                                  "ASSERTION( %s ) failed: " fmt, #cond, \
            |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
      /root/lustre-release/lustre/ptlrpc/wiretest.c:2742:9: note: in expansion of macro 'LASSERTF'
       2742 |         LASSERTF(MDS_OPEN_LOCK == 004000000000UL, "found 0%.11oUL\n",
            |         ^~~~~~~~
      /root/lustre-release/libcfs/include/libcfs/libcfs_private.h:89:34: error: format '%o' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Werror=format=]
         89 |                                  "ASSERTION( %s ) failed: " fmt, #cond, \
            |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
      /root/lustre-release/lustre/ptlrpc/wiretest.c:2744:9: note: in expansion of macro 'LASSERTF'
       2744 |         LASSERTF(MDS_OPEN_HAS_EA == 010000000000UL, "found 0%.11oUL\n",
            |         ^~~~~~~~
      

      Attachments

        Activity

          People

            yujian Jian Yu
            yujian Jian Yu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: