Unable to build ubuntu_xfstests_* on J-OEM-5.17

Bug #1968148 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
New
Undecided
Unassigned

Bug Description

Test build failed with:
  make[1]: warning: -j96 forced in submake: resetting jobserver mode.
  In file included from xfs_ag.c:12:
  xfs_ag.c: In function ‘xfs_agflblock_init’:
  xfs_format.h:790:17: warning: taking address of packed member of ‘struct xfs_agfl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
    790 | &(XFS_BUF_TO_AGFL(bp)->agfl_bno[0]) : \
        | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  xfs_ag.c:231:20: note: in expansion of macro ‘XFS_BUF_TO_AGFL_BNO’
    231 | agfl_bno = XFS_BUF_TO_AGFL_BNO(mp, bp);
        | ^~~~~~~~~~~~~~~~~~~
  xfs_rmap_btree.c: In function ‘xfs_rmapbt_init_high_key_from_rec’:
  xfs_rmap_btree.c:192:22: warning: taking address of packed member of ‘struct xfs_rmap_key’ may result in an unaligned pointer value [-Waddress-of-packed-member]
    192 | be32_add_cpu(&key->rmap.rm_startblock, adj);
        | ^~~~~~~~~~~~~~~~~~~~~~~~
  In file included from xfs_alloc.c:8:
  xfs_alloc.c: In function ‘xfs_alloc_get_freelist’:
  xfs_format.h:790:17: warning: taking address of packed member of ‘struct xfs_agfl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
    790 | &(XFS_BUF_TO_AGFL(bp)->agfl_bno[0]) : \
        | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  xfs_alloc.c:2431:20: note: in expansion of macro ‘XFS_BUF_TO_AGFL_BNO’
   2431 | agfl_bno = XFS_BUF_TO_AGFL_BNO(mp, agflbp);
        | ^~~~~~~~~~~~~~~~~~~
  xfs_alloc.c: In function ‘xfs_alloc_put_freelist’:
  xfs_format.h:790:17: warning: taking address of packed member of ‘struct xfs_agfl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
    790 | &(XFS_BUF_TO_AGFL(bp)->agfl_bno[0]) : \
        | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  xfs_alloc.c:2568:20: note: in expansion of macro ‘XFS_BUF_TO_AGFL_BNO’
   2568 | agfl_bno = XFS_BUF_TO_AGFL_BNO(mp, agflbp);
        | ^~~~~~~~~~~~~~~~~~~
  xfs_alloc.c: In function ‘libxfs_agfl_walk’:
  xfs_format.h:790:17: warning: taking address of packed member of ‘struct xfs_agfl’ may result in an unaligned pointer value [-Waddress-of-packed-member]
    790 | &(XFS_BUF_TO_AGFL(bp)->agfl_bno[0]) : \
        | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  xfs_alloc.c:3159:20: note: in expansion of macro ‘XFS_BUF_TO_AGFL_BNO’
   3159 | agfl_bno = XFS_BUF_TO_AGFL_BNO(mp, agflbp);
        | ^~~~~~~~~~~~~~~~~~~
  In file included from /usr/include/string.h:535,
                   from ../include/platform_defs.h:17,
                   from handle.c:8:
  In function ‘strncpy’,
      inlined from ‘path_to_fshandle’ at handle.c:110:3:
  /usr/include/x86_64-linux-gnu/bits/string_fortified.h:95:10: warning: ‘__builtin_strncpy’ specified bound 4096 equals destination size [-Wstringop-truncation]
     95 | return __builtin___strncpy_chk (__dest, __src, __len,
        | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     96 | __glibc_objsize (__dest));
        | ~~~~~~~~~~~~~~~~~~~~~~~~~
  /usr/bin/ld: ../libxfs/.libs/libxfs.a(init.o):xfstests-bld/xfsprogs-dev/libxfs/init.c:27: multiple definition of `progname'; xfs_mdrestore.o:xfstests-bld/xfsprogs-dev/mdrestore/xfs_mdrestore.c:10: first defined here
  collect2: error: ld returned 1 exit status
  gmake[3]: *** [../include/buildrules:65: xfs_mdrestore] Error 1
  gmake[2]: *** [include/buildrules:35: mdrestore] Error 2
  gmake[2]: *** Waiting for unfinished jobs....
  make[1]: *** [Makefile:92: default] Error 2
  make: *** [Makefile:32: all] Error 2
12:12:31 INFO | END ERROR ubuntu_xfstests_btrfs.setup ubuntu_xfstests_btrfs.setup timestamp=1648901551 localtime=Apr 02 12:12:31

Please find attachment for the complete build log.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

This issue can be found on J-oem-6.0.0-1002.2 as well

tags: added: 6.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.