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

building lustre utils lsnapshot.c fails for arch ppc64le

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.10.4
    • None
    • Lustre-2.9
      RHEL 7.3
      Mellanox OFED 3.4.2
      POWER8 Architecture (ppc64le)
    • 3
    • 9223372036854775807

    Description

      Attempted to build lustre client from tarball using following config option:

       ./configure --disable-server --with-o2ib=/usr/src/ofa_kernel/default --disable-tests
      
      ## --------- ##
      ## Platform. ##
      ## --------- ##
      
      hostname = p8eval.cluster
      uname -m = ppc64le
      uname -r = 3.10.0-514.el7.ppc64le
      uname -s = Linux
      uname -v = #1 SMP Sat Nov 5 15:08:14 GMT 2016
      
      ## ----------- ##
      ## confdefs.h. ##
      ## ----------- ##
      
      /* confdefs.h */
      #define PACKAGE_NAME "Lustre"
      #define PACKAGE_TARNAME "lustre"
      #define PACKAGE_VERSION "LUSTRE_VERSION.DDN_LUSTRE_VERSION.DDN_BUILD_TAG"
      #define PACKAGE_STRING "Lustre LUSTRE_VERSION.DDN_LUSTRE_VERSION.DDN_BUILD_TAG"
      #define PACKAGE_BUGREPORT "https://jira.hpdd.intel.com/"
      #define PACKAGE_URL ""
      #define PACKAGE "lustre"
      #define VERSION "2.9.0-1"
      #define STDC_HEADERS 1
      #define HAVE_SYS_TYPES_H 1
      #define HAVE_SYS_STAT_H 1
      #define HAVE_STDLIB_H 1
      #define HAVE_STRING_H 1
      #define HAVE_MEMORY_H 1
      #define HAVE_STRINGS_H 1
      #define HAVE_INTTYPES_H 1
      #define HAVE_STDINT_H 1
      #define HAVE_UNISTD_H 1
      #define HAVE_DLFCN_H 1
      #define LT_OBJDIR ".libs/"
      #define SIZEOF_UNSIGNED_LONG_LONG 8
      

      Upon running "make", we received following error when building utils:

      Making all in utils
      lsnapshot.c: In function '__snapshot_create':
      lsnapshot.c:1111:12: error: format '%llu' expects argument of type 'long long unsigned int', but argument 8 has type '__u64' [-Werror=format=] 
      SNAPSHOT_MAGIC, xtime, xtime);
      ^
      lsnapshot.c:1111:12: error: format '%llu' expects argument of type 'long long unsigned int', but argument 9 has type '__u64' [-Werror=format=]
      lsnapshot.c:1111:12: error: format '%llu' expects argument of type 'long long unsigned int', but argument 8 has type '__u64' [-Werror=format=]
      lsnapshot.c:1111:12: error: format '%llu' expects argument of type 'long long unsigned int', but argument 9 has type '__u64' [-Werror=format=]
      lsnapshot.c: In function '__snapshot_modify':
      lsnapshot.c:1609:7: error: format '%llu' expects argument of type 'long long unsigned int', but argument 18 has type '__u64' [-Werror=format=] 
      si->si_new_ssname);
      ^
      lsnapshot.c:1609:7: error: format '%llu' expects argument of type 'long long unsigned int', but argument 18 has type '__u64' [-Werror=format=]
      lsnapshot.c:1623:7: error: format '%llu' expects argument of type 'long long unsigned int', but argument 14 has type '__u64' [-Werror=format=]
      st->st_filesystem, si->si_new_ssname);
      ^
      lsnapshot.c:1623:7: error: format '%llu' expects argument of type 'long long unsigned int', but argument 14 has type '__u64' [-Werror=format=]
      lsnapshot.c:1636:7: error: format '%llu' expects argument of type 'long long unsigned int', but argument 12 has type '__u64' [-Werror=format=]
      st->st_filesystem, si->si_ssname);
      ^
      lsnapshot.c:1636:7: error: format '%llu' expects argument of type 'long long unsigned int', but argument 12 has type '__u64' [-Werror=format=]
      lsnapshot.c: In function 'snapshot_list_one':
      lsnapshot.c:1800:4: error: format '%llu' expects argument of type 'long long unsigned int *', but argument 3 has type '__u64 *' [-Werror=format=]
      sscanf(ptr + 1, "%llu", &xtime);
      ^
      lsnapshot.c:1810:4: error: format '%llu' expects argument of type 'long long unsigned int *', but argument 3 has type '__u64 *' [-Werror=format=]
      sscanf(ptr + 1, "%llu", &xtime);
      ^
      cc1: all warnings being treated as errors
      make[5]: *** [lsnapshot.o] Error 1
      

      Attachments

        Activity

          People

            pjones Peter Jones
            chunteraa Chris Hunter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: