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

ppc64le build failure: llog_reader.c:887:9: error: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type '__u64' [-Werror=format=]

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.15.0
    • Lustre 2.12.7, Lustre 2.15.0
    • TOSS 3.7.9 (RHEL 7.9) power pc
    • 3
    • 9223372036854775807

    Description

      When building our local branch, which is based on v2_12_7, the ppc64le build fails due to a type error:

      llog_reader.c:887:9: error: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type '__u64' [-Werror=format=]
      

      This is due to a printf call that uses %llu whereas __le64_to_cpu returns a __u64. Elsewhere in the same file the return value of __le64_to_cpu is cast as necessary to match the print formatting, including to an unsigned long long.

      Attachments

        Activity

          [LU-14865] ppc64le build failure: llog_reader.c:887:9: error: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type '__u64' [-Werror=format=]

          "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/48305/
          Subject: LU-14865 utils: llog_reader.c printf type mismatch
          Project: fs/lustre-release
          Branch: b2_12
          Current Patch Set:
          Commit: 2b29b8e5128f0ba63c026d6205f1f01e36d93353

          gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/48305/ Subject: LU-14865 utils: llog_reader.c printf type mismatch Project: fs/lustre-release Branch: b2_12 Current Patch Set: Commit: 2b29b8e5128f0ba63c026d6205f1f01e36d93353

          "Etienne AUJAMES <eaujames@ddn.com>" uploaded a new patch: https://review.whamcloud.com/48305
          Subject: LU-14865 utils: llog_reader.c printf type mismatch
          Project: fs/lustre-release
          Branch: b2_12
          Current Patch Set: 1
          Commit: 17bac0423afb25ed0d771dd17e677cf036522627

          gerrit Gerrit Updater added a comment - "Etienne AUJAMES <eaujames@ddn.com>" uploaded a new patch: https://review.whamcloud.com/48305 Subject: LU-14865 utils: llog_reader.c printf type mismatch Project: fs/lustre-release Branch: b2_12 Current Patch Set: 1 Commit: 17bac0423afb25ed0d771dd17e677cf036522627
          pjones Peter Jones made changes -
          Link Original: This issue is related to JFC-21 [ JFC-21 ]
          pjones Peter Jones made changes -
          Labels Original: llnl New: LTS12 llnl
          pjones Peter Jones made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          pjones Peter Jones added a comment -

          Landed for 2.15

          pjones Peter Jones added a comment - Landed for 2.15

          "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/44346/
          Subject: LU-14865 utils: llog_reader.c printf type mismatch
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: 14b8276e06d6f4e3bfe785df1165458555e406f3

          gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/44346/ Subject: LU-14865 utils: llog_reader.c printf type mismatch Project: fs/lustre-release Branch: master Current Patch Set: Commit: 14b8276e06d6f4e3bfe785df1165458555e406f3
          pjones Peter Jones made changes -
          Link New: This issue is related to JFC-21 [ JFC-21 ]
          pjones Peter Jones made changes -
          Assignee Original: WC Triage [ wc-triage ] New: Gian-Carlo Defazio [ defazio ]

          For my notes, my local ticket is TOSS-5254

          defazio Gian-Carlo Defazio added a comment - For my notes, my local ticket is TOSS-5254

          People

            defazio Gian-Carlo Defazio
            defazio Gian-Carlo Defazio
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: