core.c:undefined reference to `cmpxchg8b_emu'

From: kernel test robot
Date: Fri Mar 26 2021 - 11:51:05 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: db24726bfefa68c606947a86132591568a06bfb4
commit: 5ca419f2864a2c60940dcf4bbaeb69546200e36f bpf: Add BPF_FETCH field / create atomic_fetch_add instruction
date: 2 months ago
config: um-randconfig-r006-20210326 (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/torvalds/linux.git/commit/?id=5ca419f2864a2c60940dcf4bbaeb69546200e36f
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 5ca419f2864a2c60940dcf4bbaeb69546200e36f
# 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 <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

/usr/bin/ld: kernel/fork.o: in function `mm_init.isra.0':
fork.c:(.text+0x401): undefined reference to `atomic64_set_386'
/usr/bin/ld: mm/debug.o: in function `dump_mm':
debug.c:(.text+0x2d4): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/inode.o: in function `inode_init_always':
inode.c:(.text+0x447): undefined reference to `atomic64_set_386'
/usr/bin/ld: fs/inode.o: in function `generic_update_time':
inode.c:(.text+0x2478): undefined reference to `atomic64_read_386'
/usr/bin/ld: inode.c:(.text+0x24b6): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/inode.o: in function `file_update_time':
inode.c:(.text+0x2fd7): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/namespace.o: in function `alloc_mnt_ns':
namespace.c:(.text+0x2b1): undefined reference to `atomic64_add_return_386'
/usr/bin/ld: fs/fuse/inode.o: in function `fuse_change_attributes_common':
inode.c:(.text+0x11b4): undefined reference to `atomic64_inc_return_386'
/usr/bin/ld: fs/fuse/inode.o: in function `fuse_reverse_inval_inode':
inode.c:(.text+0x16e7): undefined reference to `atomic64_inc_return_386'
/usr/bin/ld: fs/fuse/inode.o: in function `fuse_conn_init':
inode.c:(.text+0x1996): undefined reference to `atomic64_set_386'
/usr/bin/ld: inode.c:(.text+0x19d1): undefined reference to `atomic64_set_386'
/usr/bin/ld: drivers/phy/ingenic/phy-ingenic-usb.o: in function `ingenic_usb_phy_probe':
phy-ingenic-usb.c:(.text+0x2eb): undefined reference to `devm_platform_ioremap_resource'
/usr/bin/ld: kernel/cgroup/pids.o: in function `pids_current_read':
pids.c:(.text+0xd): undefined reference to `atomic64_read_386'
/usr/bin/ld: kernel/cgroup/pids.o: in function `pids_events_show':
pids.c:(.text+0x36): undefined reference to `atomic64_read_386'
/usr/bin/ld: kernel/cgroup/pids.o: in function `pids_max_write':
pids.c:(.text+0x9a): undefined reference to `atomic64_set_386'
/usr/bin/ld: kernel/cgroup/pids.o: in function `pids_css_alloc':
pids.c:(.text+0x11f): undefined reference to `atomic64_set_386'
/usr/bin/ld: pids.c:(.text+0x12f): undefined reference to `atomic64_set_386'
/usr/bin/ld: pids.c:(.text+0x13c): undefined reference to `atomic64_set_386'
/usr/bin/ld: kernel/cgroup/pids.o: in function `pids_max_show':
pids.c:(.text+0x176): undefined reference to `atomic64_read_386'
/usr/bin/ld: kernel/cgroup/pids.o: in function `pids_can_fork':
pids.c:(.text+0x237): undefined reference to `atomic64_add_return_386'
/usr/bin/ld: pids.c:(.text+0x247): undefined reference to `atomic64_read_386'
/usr/bin/ld: pids.c:(.text+0x271): undefined reference to `atomic64_add_return_386'
/usr/bin/ld: pids.c:(.text+0x291): undefined reference to `atomic64_add_return_386'
/usr/bin/ld: pids.c:(.text+0x2a4): undefined reference to `atomic64_inc_return_386'
/usr/bin/ld: kernel/cgroup/pids.o: in function `pids_uncharge.constprop.0':
pids.c:(.text+0x3ab): undefined reference to `atomic64_add_return_386'
/usr/bin/ld: kernel/cgroup/pids.o: in function `pids_can_attach':
pids.c:(.text+0x573): undefined reference to `atomic64_add_386'
/usr/bin/ld: kernel/cgroup/pids.o: in function `pids_cancel_attach':
pids.c:(.text+0x693): undefined reference to `atomic64_add_386'
/usr/bin/ld: kernel/trace/trace_clock.o: in function `trace_clock_counter':
trace_clock.c:(.text+0x10d): undefined reference to `atomic64_add_return_386'
/usr/bin/ld: kernel/bpf/core.o: in function `___bpf_prog_run':
>> core.c:(.text+0x1933): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: core.c:(.text+0x341c): undefined reference to `atomic64_add_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_prog_by_id.part.0':
syscall.c:(.text+0x74f): undefined reference to `atomic64_read_386'
/usr/bin/ld: syscall.c:(.text+0x784): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_link_by_id.part.0':
syscall.c:(.text+0x813): undefined reference to `atomic64_read_386'
/usr/bin/ld: syscall.c:(.text+0x840): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: kernel/bpf/syscall.o: in function `__bpf_prog_get.constprop.0':
syscall.c:(.text+0x8ed): undefined reference to `atomic64_inc_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `__bpf_prog_put.constprop.0':
syscall.c:(.text+0x92b): undefined reference to `atomic64_dec_return_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `__bpf_map_put.constprop.0':
syscall.c:(.text+0x315e): undefined reference to `atomic64_dec_return_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_map_put_with_uref':
syscall.c:(.text+0x320f): undefined reference to `atomic64_dec_return_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `map_create':
syscall.c:(.text+0x34d8): undefined reference to `atomic64_set_386'
/usr/bin/ld: syscall.c:(.text+0x34e6): undefined reference to `atomic64_set_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_map_inc':
syscall.c:(.text+0x38ce): undefined reference to `atomic64_inc_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_map_inc_with_uref':
syscall.c:(.text+0x38ef): undefined reference to `atomic64_inc_386'
/usr/bin/ld: syscall.c:(.text+0x38fa): undefined reference to `atomic64_inc_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_map_get':
syscall.c:(.text+0x3965): undefined reference to `atomic64_inc_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_map_get_with_uref':
syscall.c:(.text+0x39e5): undefined reference to `atomic64_inc_386'
/usr/bin/ld: kernel/bpf/syscall.o:syscall.c:(.text+0x39f0): more undefined references to `atomic64_inc_386' follow
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_map_inc_not_zero':
syscall.c:(.text+0x3a3f): undefined reference to `atomic64_read_386'
/usr/bin/ld: syscall.c:(.text+0x3a79): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_prog_load':
syscall.c:(.text+0x4de9): undefined reference to `atomic64_set_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_prog_add':
syscall.c:(.text+0x541e): undefined reference to `atomic64_add_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_prog_sub':
syscall.c:(.text+0x5440): undefined reference to `atomic64_sub_return_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_prog_inc':
syscall.c:(.text+0x547b): undefined reference to `atomic64_inc_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_prog_inc_not_zero':
syscall.c:(.text+0x54a2): undefined reference to `atomic64_read_386'
/usr/bin/ld: syscall.c:(.text+0x54d7): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_link_init':
syscall.c:(.text+0x5590): undefined reference to `atomic64_set_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_link_inc':
syscall.c:(.text+0x5608): undefined reference to `atomic64_inc_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_link_put':
syscall.c:(.text+0x561c): undefined reference to `atomic64_dec_return_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_tracing_prog_attach':
syscall.c:(.text+0x590a): undefined reference to `atomic64_set_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_link_get_from_fd':
syscall.c:(.text+0x5d47): undefined reference to `atomic64_inc_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `__do_sys_bpf':
syscall.c:(.text+0x6920): undefined reference to `atomic64_read_386'
/usr/bin/ld: syscall.c:(.text+0x6967): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: syscall.c:(.text+0x69ac): undefined reference to `atomic64_inc_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_map_get_curr_or_next':
syscall.c:(.text+0x79e2): undefined reference to `atomic64_read_386'
/usr/bin/ld: syscall.c:(.text+0x7a1b): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_prog_get_curr_or_next':
syscall.c:(.text+0x7abf): undefined reference to `atomic64_read_386'
/usr/bin/ld: syscall.c:(.text+0x7af8): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: kernel/bpf/bpf_iter.o: in function `prepare_seq_file':
bpf_iter.c:(.text+0x196): undefined reference to `atomic64_inc_return_386'
/usr/bin/ld: fs/fuse/dir.o: in function `fuse_rmdir':
dir.c:(.text+0x330): undefined reference to `atomic64_read_386'
/usr/bin/ld: dir.c:(.text+0x36b): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/fuse/dir.o: in function `fuse_rename_common':
dir.c:(.text+0x8d3): undefined reference to `atomic64_read_386'
/usr/bin/ld: dir.c:(.text+0x917): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: dir.c:(.text+0x96b): undefined reference to `atomic64_read_386'
/usr/bin/ld: dir.c:(.text+0x9b1): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/fuse/dir.o: in function `fuse_unlink':
dir.c:(.text+0xb79): undefined reference to `atomic64_inc_return_386'
/usr/bin/ld: dir.c:(.text+0xbe8): undefined reference to `atomic64_read_386'
/usr/bin/ld: dir.c:(.text+0xc23): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/fuse/dir.o: in function `fuse_dentry_revalidate':
dir.c:(.text+0x1177): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/fuse/dir.o: in function `fuse_do_getattr':
dir.c:(.text+0x147f): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/fuse/dir.o: in function `fuse_create_open':
dir.c:(.text+0x1e0e): undefined reference to `atomic64_read_386'
/usr/bin/ld: dir.c:(.text+0x1e6d): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/fuse/dir.o: in function `create_new_entry.constprop.0':
dir.c:(.text+0x2180): undefined reference to `atomic64_read_386'
/usr/bin/ld: dir.c:(.text+0x21e1): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/fuse/dir.o: in function `fuse_link':
dir.c:(.text+0x2373): undefined reference to `atomic64_inc_return_386'
/usr/bin/ld: fs/fuse/dir.o: in function `fuse_lookup_name':
dir.c:(.text+0x265c): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/fuse/dir.o: in function `fuse_reverse_inval_entry':
dir.c:(.text+0x2ac0): undefined reference to `atomic64_read_386'
/usr/bin/ld: dir.c:(.text+0x2afb): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/fuse/file.o: in function `fuse_aio_complete':
file.c:(.text+0xf84): undefined reference to `atomic64_inc_return_386'
/usr/bin/ld: fs/fuse/file.o: in function `fuse_short_read.isra.0':
file.c:(.text+0x16e1): undefined reference to `atomic64_inc_return_386'
/usr/bin/ld: fs/fuse/file.o: in function `fuse_do_readpage':
file.c:(.text+0x1953): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/fuse/file.o: in function `fuse_readahead':

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip