2021-04-12 13:33:04

by kernel test robot

[permalink] [raw]
Subject: [ext4:dev 13/28] mballoc.c:undefined reference to `atomic64_inc_386'

tree: https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git dev
head: fcdf3c34b7abdcbb49690c94c7fa6ce224dc9749
commit: a6c75eaf11032f4a3d2b3ce2265a194ac6e4a7f0 [13/28] ext4: add mballoc stats proc file
config: um-randconfig-r022-20210412 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git/commit/?id=a6c75eaf11032f4a3d2b3ce2265a194ac6e4a7f0
git remote add ext4 https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git
git fetch --no-tags ext4 dev
git checkout a6c75eaf11032f4a3d2b3ce2265a194ac6e4a7f0
# save the attached .config to linux build tree
make W=1 ARCH=um

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>

All errors (new ones prefixed by >>):

/usr/bin/ld: kernel/fork.o: in function `mm_init':
fork.c:(.text+0x1294): undefined reference to `atomic64_set_386'
/usr/bin/ld: kernel/sched/fair.o: in function `update_curr':
fair.c:(.text+0xb8a): undefined reference to `atomic64_add_386'
/usr/bin/ld: kernel/futex.o: in function `get_futex_key':
futex.c:(.text+0x2900): undefined reference to `atomic64_read_386'
/usr/bin/ld: futex.c:(.text+0x2a04): undefined reference to `atomic64_add_return_386'
/usr/bin/ld: futex.c:(.text+0x2a5d): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: mm/debug.o: in function `dump_mm':
debug.c:(.text+0x542): undefined reference to `atomic64_read_386'
/usr/bin/ld: mm/z3fold.o: in function `z3fold_zpool_total_size':
z3fold.c:(.text+0x3c): undefined reference to `atomic64_read_386'
/usr/bin/ld: mm/z3fold.o: in function `z3fold_zpool_create':
z3fold.c:(.text+0x36b): undefined reference to `atomic64_set_386'
/usr/bin/ld: mm/z3fold.o: in function `z3fold_page_putback':
z3fold.c:(.text+0xd15): undefined reference to `atomic64_dec_386'
/usr/bin/ld: mm/z3fold.o: in function `z3fold_reclaim_page.constprop.0':
z3fold.c:(.text+0x108b): undefined reference to `atomic64_dec_386'
/usr/bin/ld: z3fold.c:(.text+0x1150): undefined reference to `atomic64_dec_386'
/usr/bin/ld: z3fold.c:(.text+0x157c): undefined reference to `atomic64_dec_386'
/usr/bin/ld: mm/z3fold.o: in function `z3fold_alloc':
z3fold.c:(.text+0x1dd2): undefined reference to `atomic64_inc_386'
/usr/bin/ld: z3fold.c:(.text+0x2270): undefined reference to `atomic64_dec_386'
/usr/bin/ld: mm/z3fold.o: in function `do_compact_page':
z3fold.c:(.text+0x250f): undefined reference to `atomic64_dec_386'
/usr/bin/ld: z3fold.c:(.text+0x2f7a): undefined reference to `atomic64_dec_386'
/usr/bin/ld: mm/z3fold.o: in function `z3fold_free':
z3fold.c:(.text+0x3416): undefined reference to `atomic64_dec_386'
/usr/bin/ld: z3fold.c:(.text+0x3574): undefined reference to `atomic64_dec_386'
/usr/bin/ld: fs/inode.o: in function `inode_init_always':
inode.c:(.text+0x5ae): undefined reference to `atomic64_set_386'
/usr/bin/ld: fs/inode.o: in function `generic_update_time':
inode.c:(.text+0x34d2): undefined reference to `atomic64_read_386'
/usr/bin/ld: inode.c:(.text+0x3513): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/inode.o: in function `file_update_time':
inode.c:(.text+0x43e1): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/namespace.o: in function `alloc_mnt_ns':
namespace.c:(.text+0x1700): undefined reference to `atomic64_add_return_386'
/usr/bin/ld: fs/io_uring.o: in function `io_sqe_buffers_unregister.part.0':
io_uring.c:(.text+0x2bfb): undefined reference to `atomic64_sub_386'
/usr/bin/ld: fs/io_uring.o: in function `io_sqe_buffers_register':
io_uring.c:(.text+0x6e4c): undefined reference to `atomic64_add_386'
/usr/bin/ld: fs/ext4/mballoc.o: in function `ext4_mb_generate_buddy':
mballoc.c:(.text+0x2839): undefined reference to `atomic64_add_386'
/usr/bin/ld: fs/ext4/mballoc.o: in function `ext4_mb_mark_diskspace_used':
mballoc.c:(.text+0x8b81): undefined reference to `atomic64_sub_386'
/usr/bin/ld: fs/ext4/mballoc.o: in function `ext4_mb_regular_allocator':
>> mballoc.c:(.text+0x99c4): undefined reference to `atomic64_inc_386'
>> /usr/bin/ld: mballoc.c:(.text+0x9d12): undefined reference to `atomic64_inc_386'
/usr/bin/ld: mballoc.c:(.text+0xa371): undefined reference to `atomic64_inc_386'
/usr/bin/ld: fs/ext4/mballoc.o: in function `ext4_seq_mb_stats_show':
mballoc.c:(.text+0xa58b): undefined reference to `atomic64_read_386'
>> /usr/bin/ld: mballoc.c:(.text+0xa5af): undefined reference to `atomic64_read_386'
/usr/bin/ld: mballoc.c:(.text+0xa5d3): undefined reference to `atomic64_read_386'
/usr/bin/ld: mballoc.c:(.text+0xa608): undefined reference to `atomic64_read_386'
/usr/bin/ld: mballoc.c:(.text+0xa62c): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/ext4/mballoc.o:mballoc.c:(.text+0xa650): more undefined references to `atomic64_read_386' follow
/usr/bin/ld: fs/ext4/mballoc.o: in function `ext4_mb_mark_bb':
mballoc.c:(.text+0xc558): undefined reference to `atomic64_sub_386'
/usr/bin/ld: fs/ext4/mballoc.o: in function `ext4_free_blocks':
mballoc.c:(.text+0xead0): undefined reference to `atomic64_add_386'
/usr/bin/ld: fs/ext4/mballoc.o: in function `ext4_group_add_blocks':
mballoc.c:(.text+0xfb01): undefined reference to `atomic64_add_386'
/usr/bin/ld: fs/ext4/super.o: in function `ext4_statfs':
super.c:(.text+0x6511): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/ext4/super.o: in function `ext4_alloc_inode':
super.c:(.text+0x6bfc): undefined reference to `atomic64_set_386'
/usr/bin/ld: fs/ext4/super.o: in function `ext4_fill_super':
super.c:(.text+0x16808): undefined reference to `atomic64_set_386'
/usr/bin/ld: super.c:(.text+0x16ed8): undefined reference to `atomic64_add_386'
/usr/bin/ld: fs/ext4/sysfs.o: in function `ext4_attr_store':
sysfs.c:(.text+0x127): undefined reference to `atomic64_set_386'
/usr/bin/ld: fs/ext4/sysfs.o: in function `ext4_attr_show':
sysfs.c:(.text+0x4d0): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/fat/inode.o: in function `fat_fill_inode':
inode.c:(.text+0x1d0d): undefined reference to `atomic64_read_386'
/usr/bin/ld: inode.c:(.text+0x1d44): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/fat/inode.o: in function `fat_build_inode':
inode.c:(.text+0x221d): undefined reference to `atomic64_set_386'
/usr/bin/ld: fs/fat/inode.o: in function `fat_fill_super':
inode.c:(.text+0x29ec): undefined reference to `atomic64_set_386'
/usr/bin/ld: inode.c:(.text+0x2a28): undefined reference to `atomic64_read_386'
/usr/bin/ld: inode.c:(.text+0x2a82): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/fat/namei_msdos.o: in function `do_msdos_rename':
namei_msdos.c:(.text+0xf0e): undefined reference to `atomic64_read_386'
/usr/bin/ld: namei_msdos.c:(.text+0xf68): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: namei_msdos.c:(.text+0x10d7): undefined reference to `atomic64_read_386'
/usr/bin/ld: namei_msdos.c:(.text+0x1121): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: namei_msdos.c:(.text+0x1496): undefined reference to `atomic64_read_386'
/usr/bin/ld: namei_msdos.c:(.text+0x14e0): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/ufs/super.o: in function `ufs_alloc_inode':
super.c:(.text+0x415): undefined reference to `atomic64_set_386'
/usr/bin/ld: fs/affs/super.o: in function `affs_alloc_inode':
super.c:(.text+0x4d5): undefined reference to `atomic64_set_386'
/usr/bin/ld: fs/nilfs2/super.o: in function `nilfs_attach_checkpoint':
super.c:(.text+0x15fd): undefined reference to `atomic64_set_386'
/usr/bin/ld: super.c:(.text+0x160e): undefined reference to `atomic64_set_386'
/usr/bin/ld: fs/nilfs2/super.o: in function `nilfs_statfs.cold':
super.c:(.text.unlikely+0x11d): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/nilfs2/sysfs.o: in function `nilfs_snapshot_blocks_count_show':
sysfs.c:(.text+0x35a): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/nilfs2/sysfs.o: in function `nilfs_snapshot_inodes_count_show':
sysfs.c:(.text+0x392): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/btrfs/super.o: in function `trace_event_raw_event_btrfs_dump_space_info':
super.c:(.text+0x9e76): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/btrfs/disk-io.o: in function `btrfs_init_fs_info':
disk-io.c:(.text+0x531e): undefined reference to `atomic64_set_386'
/usr/bin/ld: disk-io.c:(.text+0x534c): undefined reference to `atomic64_set_386'
/usr/bin/ld: fs/btrfs/inode.o: in function `fill_inode_item':
inode.c:(.text+0x806): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/btrfs/inode.o: in function `btrfs_read_locked_inode':
inode.c:(.text+0x1a44): undefined reference to `atomic64_set_386'
/usr/bin/ld: fs/btrfs/inode.o: in function `__btrfs_unlink_inode':
inode.c:(.text+0x8b82): undefined reference to `atomic64_read_386'
/usr/bin/ld: inode.c:(.text+0x8bb6): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: inode.c:(.text+0x8c0b): undefined reference to `atomic64_read_386'
/usr/bin/ld: inode.c:(.text+0x8c3f): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/btrfs/inode.o: in function `btrfs_update_time':
inode.c:(.text+0x9188): undefined reference to `atomic64_read_386'
/usr/bin/ld: inode.c:(.text+0x91d1): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/btrfs/inode.o: in function `__btrfs_prealloc_file_range':
inode.c:(.text+0x95c7): undefined reference to `atomic64_read_386'
/usr/bin/ld: inode.c:(.text+0x9608): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/btrfs/inode.o: in function `btrfs_unlink_subvol':
inode.c:(.text+0xdbf7): undefined reference to `atomic64_read_386'
/usr/bin/ld: inode.c:(.text+0xdc2d): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/btrfs/inode.o: in function `btrfs_add_link':
inode.c:(.text+0x1327c): undefined reference to `atomic64_read_386'
/usr/bin/ld: inode.c:(.text+0x132b3): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/btrfs/inode.o: in function `btrfs_rename_exchange':
inode.c:(.text+0x13b1f): undefined reference to `atomic64_read_386'
/usr/bin/ld: inode.c:(.text+0x13b61): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: inode.c:(.text+0x13bc6): undefined reference to `atomic64_read_386'
/usr/bin/ld: inode.c:(.text+0x13bff): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: inode.c:(.text+0x13c58): undefined reference to `atomic64_read_386'
/usr/bin/ld: inode.c:(.text+0x13c94): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: inode.c:(.text+0x13ced): undefined reference to `atomic64_read_386'
/usr/bin/ld: inode.c:(.text+0x13d2f): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/btrfs/inode.o: in function `btrfs_link':
inode.c:(.text+0x14f4e): undefined reference to `atomic64_read_386'
/usr/bin/ld: inode.c:(.text+0x14f82): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/btrfs/inode.o: in function `btrfs_rename':
inode.c:(.text+0x157a4): undefined reference to `atomic64_read_386'
/usr/bin/ld: inode.c:(.text+0x157fe): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: inode.c:(.text+0x15869): undefined reference to `atomic64_read_386'
/usr/bin/ld: inode.c:(.text+0x158c3): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: inode.c:(.text+0x1592e): undefined reference to `atomic64_read_386'
/usr/bin/ld: inode.c:(.text+0x15988): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: inode.c:(.text+0x16074): undefined reference to `atomic64_read_386'
/usr/bin/ld: inode.c:(.text+0x160ce): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/btrfs/inode.o: in function `btrfs_setattr':
inode.c:(.text+0x19514): undefined reference to `atomic64_read_386'
/usr/bin/ld: inode.c:(.text+0x1954a): undefined reference to `cmpxchg8b_emu'

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]


Attachments:
(No filename) (12.10 kB)
.config.gz (10.73 kB)
Download all attachments

2021-04-15 00:46:57

by Theodore Ts'o

[permalink] [raw]
Subject: Re: [ext4:dev 13/28] mballoc.c:undefined reference to `atomic64_inc_386'

On Mon, Apr 12, 2021 at 09:30:19PM +0800, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git dev
> head: fcdf3c34b7abdcbb49690c94c7fa6ce224dc9749
> commit: a6c75eaf11032f4a3d2b3ce2265a194ac6e4a7f0 [13/28] ext4: add mballoc stats proc file
> config: um-randconfig-r022-20210412 (attached as .config)
> compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
> reproduce (this is a W=1 build):
> # https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git/commit/?id=a6c75eaf11032f4a3d2b3ce2265a194ac6e4a7f0
> git remote add ext4 https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git
> git fetch --no-tags ext4 dev
> git checkout a6c75eaf11032f4a3d2b3ce2265a194ac6e4a7f0
> # save the attached .config to linux build tree
> make W=1 ARCH=um
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <[email protected]>
>
> All errors (new ones prefixed by >>):
>
> /usr/bin/ld: kernel/fork.o: in function `mm_init':
> fork.c:(.text+0x1294): undefined reference to `atomic64_set_386'

This appears to be a problem in the UM architecture. Tested using
linux.git (without any of the ext4.git changes for the next merge
window), I'm seeing very similar failures on commit 50987beca096
("Merge tag 'trace-v5.12-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace")

See attached makelog and config.gz.

Fortunately the configs used by kunit tests don't seem to technical
the issue. So it's not something I'm going to care about, but perhaps
it's something the ARCH=um folks might want to address?

- Ted


Attachments:
(No filename) (1.66 kB)
config.gz (10.73 kB)
makelog.gz (21.28 kB)
Download all attachments