[Bug 1870085] Re: xfsdump ftbfs in focal (all archs)

Benjamin Drung 1870085 at bugs.launchpad.net
Tue Sep 10 14:33:35 UTC 2024


Patch attached for focal that cherry-picks these two upstream commits:

* https://git.kernel.org/pub/scm/fs/xfs/xfsdump-dev.git/commit/?id=6ff49bf7951e5951bd8f938fc3662c896a1bf9e8
* https://git.kernel.org/pub/scm/fs/xfs/xfsdump-dev.git/commit/?id=5058a6b51ba434b3261736a562a602750e7f2cdf

(I adjusted the second one to reduce the diff to the needed minimum)

** Description changed:

+ [ Impact ]
+ 
  seen in the second focal test rebuild
  https://launchpad.net/ubuntu/+archive/test-rebuild-20200327-focal/+build/18987191/+files/buildlog_ubuntu-focal-amd64.xfsdump_3.1.6+nmu2build1_BUILDING.txt.gz
  
-       |                        ^~~~~~
+       |                        ^~~~~~
  drive.c:361:24: note: include ‘<stdlib.h>’ or provide a declaration of ‘calloc’
  drive.c: In function ‘drive_allochdrs’:
  drive.c:402:29: warning: incompatible implicit declaration of built-in function ‘calloc’
-   402 |  grhdrp = ( global_hdr_t * )calloc( 1, sizeof( global_hdr_t ));
-       |                             ^~~~~~
+   402 |  grhdrp = ( global_hdr_t * )calloc( 1, sizeof( global_hdr_t ));
+       |                             ^~~~~~
  drive.c:402:29: note: include ‘<stdlib.h>’ or provide a declaration of ‘calloc’
-     [CC]     drive_scsitape.o
+     [CC]     drive_scsitape.o
  In file included from drive_scsitape.c:38:
  types.h:38: warning: "UUID_STR_LEN" redefined
-    38 | #define UUID_STR_LEN 36
-       | 
+    38 | #define UUID_STR_LEN 36
+       |
  In file included from drive_scsitape.c:34:
  /usr/include/uuid/uuid.h:65: note: this is the location of the previous definition
-    65 | #define UUID_STR_LEN 37
-       | 
+    65 | #define UUID_STR_LEN 37
+       |
  drive_scsitape.c: In function ‘do_return_read_buf’:
  drive_scsitape.c:997:9: warning: variable ‘ownedcnt’ set but not used [-Wunused-but-set-variable]
-   997 |  size_t ownedcnt;
-       |         ^~~~~~~~
+   997 |  size_t ownedcnt;
+       |         ^~~~~~~~
  drive_scsitape.c: In function ‘do_seek_mark’:
  drive_scsitape.c:1346:13: warning: variable ‘recoff’ set but not used [-Wunused-but-set-variable]
-  1346 |    uint32_t recoff;
-       |             ^~~~~~
-     [CC]     drive_simple.o
+  1346 |    uint32_t recoff;
+       |             ^~~~~~
+     [CC]     drive_simple.o
  In file included from drive_simple.c:39:
  types.h:38: warning: "UUID_STR_LEN" redefined
-    38 | #define UUID_STR_LEN 36
-       | 
+    38 | #define UUID_STR_LEN 36
+       |
  In file included from /usr/include/xfs/linux.h:8,
-                  from /usr/include/xfs/xfs.h:9,
-                  from drive_simple.c:19:
+                  from /usr/include/xfs/xfs.h:9,
+                  from drive_simple.c:19:
  /usr/include/uuid/uuid.h:65: note: this is the location of the previous definition
-    65 | #define UUID_STR_LEN 37
-       | 
+    65 | #define UUID_STR_LEN 37
+       |
  In file included from drive_simple.c:40:
  util.h:90:6: error: unknown type name ‘xfs_bstat_t’; did you mean ‘xfs_bstime_t’?
-    90 |      xfs_bstat_t *statp );
-       |      ^~~~~~~~~~~
-       |      xfs_bstime_t
+    90 |      xfs_bstat_t *statp );
+       |      ^~~~~~~~~~~
+       |      xfs_bstime_t
  util.h:99:10: error: unknown type name ‘bstat_cbfp_t’; did you mean ‘bstat_seekfp_t’?
-    99 |          bstat_cbfp_t fp,
-       |          ^~~~~~~~~~~~
-       |          bstat_seekfp_t
+    99 |          bstat_cbfp_t fp,
+       |          ^~~~~~~~~~~~
+       |          bstat_seekfp_t
  util.h:105:10: error: unknown type name ‘xfs_bstat_t’; did you mean ‘xfs_bstime_t’?
-   105 |          xfs_bstat_t *buf,
-       |          ^~~~~~~~~~~
-       |          xfs_bstime_t
+   105 |          xfs_bstat_t *buf,
+       |          ^~~~~~~~~~~
+       |          xfs_bstime_t
  util.h:110:9: error: unknown type name ‘xfs_bstat_t’; did you mean ‘xfs_bstime_t’?
-   110 |         xfs_bstat_t *statp );
-       |         ^~~~~~~~~~~
-       |         xfs_bstime_t
+   110 |         xfs_bstat_t *statp );
+       |         ^~~~~~~~~~~
+       |         xfs_bstime_t
  util.h:115:7: error: unknown type name ‘xfs_inogrp_t’; did you mean ‘xfs_ino_t’?
-   115 |       xfs_inogrp_t *inogrp ),
-       |       ^~~~~~~~~~~~
-       |       xfs_ino_t
+   115 |       xfs_inogrp_t *inogrp ),
+       |       ^~~~~~~~~~~~
+       |       xfs_ino_t
  util.h:116:9: error: expected ‘;’, ‘,’ or ‘)’ before ‘void’
-   116 |         void * arg1,
-       |         ^~~~
+   116 |         void * arg1,
+       |         ^~~~
  util.h:134:5: error: unknown type name ‘xfs_bstat_t’; did you mean ‘xfs_bstime_t’?
-   134 |     xfs_bstat_t *statp,
-       |     ^~~~~~~~~~~
-       |     xfs_bstime_t
+   134 |     xfs_bstat_t *statp,
+       |     ^~~~~~~~~~~
+       |     xfs_bstime_t
  util.h:138:11: error: unknown type name ‘xfs_bstat_t’; did you mean ‘xfs_bstime_t’?
-   138 |           xfs_bstat_t *statp,
-       |           ^~~~~~~~~~~
-       |           xfs_bstime_t
+   138 |           xfs_bstat_t *statp,
+       |           ^~~~~~~~~~~
+       |           xfs_bstime_t
  util.h:140:5: error: expected ‘;’, ‘,’ or ‘)’ before ‘void’
-   140 |     void *arg1,
-       |     ^~~~
+   140 |     void *arg1,
+       |     ^~~~
  drive_simple.c: In function ‘do_return_read_buf’:
  drive_simple.c:686:9: warning: variable ‘ownedcnt’ set but not used [-Wunused-but-set-variable]
-   686 |  size_t ownedcnt;
-       |         ^~~~~~~~
+   686 |  size_t ownedcnt;
+       |         ^~~~~~~~
  drive_simple.c: In function ‘do_set_mark’:
  drive_simple.c:1062:9: warning: variable ‘nwritten’ set but not used [-Wunused-but-set-variable]
-  1062 |    int  nwritten;
-       |         ^~~~~~~~
+  1062 |    int  nwritten;
+       |         ^~~~~~~~
  make[3]: *** [../include/buildrules:47: drive_simple.o] Error 1
  make[2]: *** [include/buildrules:23: dump] Error 2
  make[1]: *** [Makefile:53: default] Error 2
+ 
+ [ Test Plan ]
+ 
+ xfsdump should successfully build on all architectures.
+ 
+ [ Where problems could occur ]
+ 
+ The current package was build on cosmic. Building the package now could
+ reveal issues due to using a newer gcc.
+ 
+ xfsdump provides only binaries and no libraries and therefore reducing
+ the scope in case of issues.

** Patch added: "xfsdump_3.1.6+nmu2ubuntu1.debdiff"
   https://bugs.launchpad.net/ubuntu/focal/+source/xfsdump/+bug/1870085/+attachment/5815238/+files/xfsdump_3.1.6+nmu2ubuntu1.debdiff

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to xfsdump in Ubuntu.
https://bugs.launchpad.net/bugs/1870085

Title:
  xfsdump ftbfs in focal (all archs)

Status in xfsdump package in Ubuntu:
  Fix Released
Status in xfsdump source package in Focal:
  Confirmed

Bug description:
  [ Impact ]

  seen in the second focal test rebuild
  https://launchpad.net/ubuntu/+archive/test-rebuild-20200327-focal/+build/18987191/+files/buildlog_ubuntu-focal-amd64.xfsdump_3.1.6+nmu2build1_BUILDING.txt.gz

        |                        ^~~~~~
  drive.c:361:24: note: include ‘<stdlib.h>’ or provide a declaration of ‘calloc’
  drive.c: In function ‘drive_allochdrs’:
  drive.c:402:29: warning: incompatible implicit declaration of built-in function ‘calloc’
    402 |  grhdrp = ( global_hdr_t * )calloc( 1, sizeof( global_hdr_t ));
        |                             ^~~~~~
  drive.c:402:29: note: include ‘<stdlib.h>’ or provide a declaration of ‘calloc’
      [CC]     drive_scsitape.o
  In file included from drive_scsitape.c:38:
  types.h:38: warning: "UUID_STR_LEN" redefined
     38 | #define UUID_STR_LEN 36
        |
  In file included from drive_scsitape.c:34:
  /usr/include/uuid/uuid.h:65: note: this is the location of the previous definition
     65 | #define UUID_STR_LEN 37
        |
  drive_scsitape.c: In function ‘do_return_read_buf’:
  drive_scsitape.c:997:9: warning: variable ‘ownedcnt’ set but not used [-Wunused-but-set-variable]
    997 |  size_t ownedcnt;
        |         ^~~~~~~~
  drive_scsitape.c: In function ‘do_seek_mark’:
  drive_scsitape.c:1346:13: warning: variable ‘recoff’ set but not used [-Wunused-but-set-variable]
   1346 |    uint32_t recoff;
        |             ^~~~~~
      [CC]     drive_simple.o
  In file included from drive_simple.c:39:
  types.h:38: warning: "UUID_STR_LEN" redefined
     38 | #define UUID_STR_LEN 36
        |
  In file included from /usr/include/xfs/linux.h:8,
                   from /usr/include/xfs/xfs.h:9,
                   from drive_simple.c:19:
  /usr/include/uuid/uuid.h:65: note: this is the location of the previous definition
     65 | #define UUID_STR_LEN 37
        |
  In file included from drive_simple.c:40:
  util.h:90:6: error: unknown type name ‘xfs_bstat_t’; did you mean ‘xfs_bstime_t’?
     90 |      xfs_bstat_t *statp );
        |      ^~~~~~~~~~~
        |      xfs_bstime_t
  util.h:99:10: error: unknown type name ‘bstat_cbfp_t’; did you mean ‘bstat_seekfp_t’?
     99 |          bstat_cbfp_t fp,
        |          ^~~~~~~~~~~~
        |          bstat_seekfp_t
  util.h:105:10: error: unknown type name ‘xfs_bstat_t’; did you mean ‘xfs_bstime_t’?
    105 |          xfs_bstat_t *buf,
        |          ^~~~~~~~~~~
        |          xfs_bstime_t
  util.h:110:9: error: unknown type name ‘xfs_bstat_t’; did you mean ‘xfs_bstime_t’?
    110 |         xfs_bstat_t *statp );
        |         ^~~~~~~~~~~
        |         xfs_bstime_t
  util.h:115:7: error: unknown type name ‘xfs_inogrp_t’; did you mean ‘xfs_ino_t’?
    115 |       xfs_inogrp_t *inogrp ),
        |       ^~~~~~~~~~~~
        |       xfs_ino_t
  util.h:116:9: error: expected ‘;’, ‘,’ or ‘)’ before ‘void’
    116 |         void * arg1,
        |         ^~~~
  util.h:134:5: error: unknown type name ‘xfs_bstat_t’; did you mean ‘xfs_bstime_t’?
    134 |     xfs_bstat_t *statp,
        |     ^~~~~~~~~~~
        |     xfs_bstime_t
  util.h:138:11: error: unknown type name ‘xfs_bstat_t’; did you mean ‘xfs_bstime_t’?
    138 |           xfs_bstat_t *statp,
        |           ^~~~~~~~~~~
        |           xfs_bstime_t
  util.h:140:5: error: expected ‘;’, ‘,’ or ‘)’ before ‘void’
    140 |     void *arg1,
        |     ^~~~
  drive_simple.c: In function ‘do_return_read_buf’:
  drive_simple.c:686:9: warning: variable ‘ownedcnt’ set but not used [-Wunused-but-set-variable]
    686 |  size_t ownedcnt;
        |         ^~~~~~~~
  drive_simple.c: In function ‘do_set_mark’:
  drive_simple.c:1062:9: warning: variable ‘nwritten’ set but not used [-Wunused-but-set-variable]
   1062 |    int  nwritten;
        |         ^~~~~~~~
  make[3]: *** [../include/buildrules:47: drive_simple.o] Error 1
  make[2]: *** [include/buildrules:23: dump] Error 2
  make[1]: *** [Makefile:53: default] Error 2

  [ Test Plan ]

  xfsdump should successfully build on all architectures.

  [ Where problems could occur ]

  The current package was build on cosmic. Building the package now
  could reveal issues due to using a newer gcc.

  xfsdump provides only binaries and no libraries and therefore reducing
  the scope in case of issues.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xfsdump/+bug/1870085/+subscriptions




More information about the foundations-bugs mailing list