/usr/bin/ld: core.c:undefined reference to `cmpxchg8b_emu'
From: kernel test robot
Date: Wed Mar 31 2021 - 05:24:46 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5e46d1b78a03d52306f21f77a4e4a144b6d31486
commit: 5ca419f2864a2c60940dcf4bbaeb69546200e36f bpf: Add BPF_FETCH field / create atomic_fetch_add instruction
date: 3 months ago
config: um-randconfig-r023-20210330 (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: atomic64_test.c:(.init.text+0x562b): undefined reference to `atomic64_xchg_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x567a): undefined reference to `atomic64_read_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x56cd): undefined reference to `atomic64_set_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x56f0): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: atomic64_test.c:(.init.text+0x5742): undefined reference to `atomic64_read_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x5799): undefined reference to `atomic64_set_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x57bc): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: atomic64_test.c:(.init.text+0x580b): undefined reference to `atomic64_read_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x585e): undefined reference to `atomic64_set_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x5881): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: atomic64_test.c:(.init.text+0x58d0): undefined reference to `atomic64_read_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x591e): undefined reference to `atomic64_set_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x5945): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: atomic64_test.c:(.init.text+0x5994): undefined reference to `atomic64_read_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x59e7): undefined reference to `atomic64_set_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x5a0a): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: atomic64_test.c:(.init.text+0x5a59): undefined reference to `atomic64_read_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x5aac): undefined reference to `atomic64_set_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x5acf): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: atomic64_test.c:(.init.text+0x5b21): undefined reference to `atomic64_read_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x5b74): undefined reference to `atomic64_set_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x5b9d): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: atomic64_test.c:(.init.text+0x5bec): undefined reference to `atomic64_read_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x5c3f): undefined reference to `atomic64_set_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x5c63): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: atomic64_test.c:(.init.text+0x5cb2): undefined reference to `atomic64_read_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x5d02): undefined reference to `atomic64_set_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x5d10): undefined reference to `atomic64_add_unless_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x5d8f): undefined reference to `atomic64_set_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x5da5): undefined reference to `atomic64_add_unless_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x5e24): undefined reference to `atomic64_set_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x5e29): undefined reference to `atomic64_dec_if_positive_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x5ead): undefined reference to `atomic64_set_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x5eb2): undefined reference to `atomic64_dec_if_positive_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x5f30): undefined reference to `atomic64_set_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x5f35): undefined reference to `atomic64_dec_if_positive_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x5fb2): undefined reference to `atomic64_set_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x5fb7): undefined reference to `atomic64_inc_not_zero_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x6030): undefined reference to `atomic64_set_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x6035): undefined reference to `atomic64_inc_not_zero_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x60a5): undefined reference to `atomic64_set_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x60aa): undefined reference to `atomic64_inc_not_zero_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x611a): undefined reference to `atomic64_set_386'
/usr/bin/ld: atomic64_test.c:(.init.text+0x611f): undefined reference to `atomic64_inc_not_zero_386'
/usr/bin/ld: net/core/net_namespace.o: in function `__net_gen_cookie':
net_namespace.c:(.text+0x122d): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: net_namespace.c:(.text+0x1234): undefined reference to `atomic64_read_386'
/usr/bin/ld: net_namespace.c:(.text+0x126b): undefined reference to `atomic64_dec_return_386'
/usr/bin/ld: net/core/sock_diag.o: in function `__sock_gen_cookie':
sock_diag.c:(.text+0x56d): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: sock_diag.c:(.text+0x574): undefined reference to `atomic64_read_386'
/usr/bin/ld: sock_diag.c:(.text+0x5ab): undefined reference to `atomic64_dec_return_386'
/usr/bin/ld: net/core/sock_diag.o: in function `sock_diag_check_cookie':
sock_diag.c:(.text+0x64c): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: sock_diag.c:(.text+0x653): undefined reference to `atomic64_read_386'
/usr/bin/ld: sock_diag.c:(.text+0x69b): undefined reference to `atomic64_dec_return_386'
/usr/bin/ld: net/core/sock_diag.o: in function `sock_diag_save_cookie':
sock_diag.c:(.text+0x6d8): undefined reference to `atomic64_read_386'
/usr/bin/ld: sock_diag.c:(.text+0x739): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: sock_diag.c:(.text+0x740): undefined reference to `atomic64_read_386'
/usr/bin/ld: sock_diag.c:(.text+0x77b): undefined reference to `atomic64_dec_return_386'
/usr/bin/ld: net/batman-adv/tp_meter.o: in function `batadv_tp_send':
tp_meter.c:(.text+0x9b5): undefined reference to `atomic64_read_386'
/usr/bin/ld: net/batman-adv/tp_meter.o: in function `batadv_tp_recv_ack.isra.0':
tp_meter.c:(.text+0x1a73): undefined reference to `atomic64_add_386'
/usr/bin/ld: net/batman-adv/tp_meter.o: in function `batadv_tp_start':
tp_meter.c:(.text+0x2067): undefined reference to `atomic64_set_386'
/usr/bin/ld: kernel/sched/cputime.o: in function `account_user_time':
cputime.c:(.text+0x42): undefined reference to `atomic64_add_386'
/usr/bin/ld: kernel/sched/cputime.o: in function `account_guest_time':
cputime.c:(.text+0xe2): undefined reference to `atomic64_add_386'
/usr/bin/ld: kernel/sched/cputime.o: in function `account_system_index_time':
cputime.c:(.text+0x18d): undefined reference to `atomic64_add_386'
/usr/bin/ld: kernel/sched/rt.o: in function `update_curr_rt':
rt.c:(.text+0x238): undefined reference to `atomic64_add_386'
/usr/bin/ld: kernel/sched/deadline.o: in function `update_curr_dl':
deadline.c:(.text+0x144c): undefined reference to `atomic64_add_386'
/usr/bin/ld: kernel/time/posix-cpu-timers.o: in function `cpu_clock_sample_group':
posix-cpu-timers.c:(.text+0x3ba): undefined reference to `atomic64_read_386'
/usr/bin/ld: posix-cpu-timers.c:(.text+0x3c6): undefined reference to `atomic64_read_386'
/usr/bin/ld: posix-cpu-timers.c:(.text+0x3d4): undefined reference to `atomic64_read_386'
/usr/bin/ld: posix-cpu-timers.c:(.text+0x40c): undefined reference to `atomic64_read_386'
/usr/bin/ld: posix-cpu-timers.c:(.text+0x41d): undefined reference to `atomic64_read_386'
/usr/bin/ld: kernel/time/posix-cpu-timers.o:posix-cpu-timers.c:(.text+0x42e): more undefined references to `atomic64_read_386' follow
/usr/bin/ld: kernel/time/posix-cpu-timers.o: in function `cpu_clock_sample_group':
posix-cpu-timers.c:(.text+0x4ee): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: posix-cpu-timers.c:(.text+0x508): undefined reference to `atomic64_read_386'
/usr/bin/ld: posix-cpu-timers.c:(.text+0x54e): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: posix-cpu-timers.c:(.text+0x568): undefined reference to `atomic64_read_386'
/usr/bin/ld: posix-cpu-timers.c:(.text+0x5ae): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: posix-cpu-timers.c:(.text+0x5c8): undefined reference to `atomic64_read_386'
/usr/bin/ld: kernel/time/posix-cpu-timers.o: in function `thread_group_sample_cputime':
posix-cpu-timers.c:(.text+0x1ad0): undefined reference to `atomic64_read_386'
/usr/bin/ld: posix-cpu-timers.c:(.text+0x1adf): undefined reference to `atomic64_read_386'
/usr/bin/ld: posix-cpu-timers.c:(.text+0x1af1): undefined reference to `atomic64_read_386'
/usr/bin/ld: kernel/time/posix-cpu-timers.o: in function `run_posix_cpu_timers':
posix-cpu-timers.c:(.text+0x1ccb): undefined reference to `atomic64_read_386'
/usr/bin/ld: kernel/time/posix-cpu-timers.o:posix-cpu-timers.c:(.text+0x1cdc): more undefined references to `atomic64_read_386' follow
/usr/bin/ld: kernel/bpf/core.o: in function `___bpf_prog_run':
core.c:(.text+0x1118): undefined reference to `atomic64_add_386'
>> /usr/bin/ld: core.c:(.text+0x2a94): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/proc/task_mmu.o: in function `task_mem':
task_mmu.c:(.text+0x25c5): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/ext4/balloc.o: in function `ext4_has_free_clusters':
balloc.c:(.text+0xb0): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/ext4/dir.o: in function `ext4_dir_llseek':
dir.c:(.text+0x3af): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/ext4/dir.o: in function `ext4_readdir':
dir.c:(.text+0x8b4): undefined reference to `atomic64_read_386'
/usr/bin/ld: dir.c:(.text+0xdbe): undefined reference to `atomic64_read_386'
/usr/bin/ld: dir.c:(.text+0xdf5): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: dir.c:(.text+0xf5f): undefined reference to `atomic64_read_386'
/usr/bin/ld: dir.c:(.text+0xf90): undefined reference to `atomic64_read_386'
/usr/bin/ld: dir.c:(.text+0xfc5): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/ext4/ialloc.o: in function `get_orlov_stats':
ialloc.c:(.text+0x31): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/ext4/inline.o: in function `ext4_add_dirent_to_inline.isra.0':
inline.c:(.text+0x1232): undefined reference to `atomic64_read_386'
/usr/bin/ld: inline.c:(.text+0x126d): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/ext4/inline.o: in function `ext4_read_inline_dir':
inline.c:(.text+0x3552): undefined reference to `atomic64_read_386'
/usr/bin/ld: inline.c:(.text+0x36a6): undefined reference to `atomic64_read_386'
/usr/bin/ld: inline.c:(.text+0x36e5): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/ext4/inode.o: in function `ext4_do_update_inode':
inode.c:(.text+0x381f): undefined reference to `atomic64_read_386'
/usr/bin/ld: inode.c:(.text+0x3e18): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/ext4/inode.o: in function `__ext4_iget':
inode.c:(.text+0x72aa): undefined reference to `atomic64_set_386'
/usr/bin/ld: inode.c:(.text+0x7a07): undefined reference to `atomic64_set_386'
/usr/bin/ld: fs/ext4/inode.o: in function `ext4_mark_iloc_dirty':
inode.c:(.text+0x8164): undefined reference to `atomic64_read_386'
/usr/bin/ld: inode.c:(.text+0x81a5): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/ext4/inode.o: in function `ext4_setattr':
inode.c:(.text+0xd389): undefined reference to `atomic64_read_386'
/usr/bin/ld: inode.c:(.text+0xd3c3): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/ext4/ioctl.o: in function `swap_inode_boot_loader':
ioctl.c:(.text+0x11ee): undefined reference to `atomic64_set_386'
/usr/bin/ld: fs/ext4/namei.o: in function `ext4_setent':
namei.c:(.text+0x268e): undefined reference to `atomic64_read_386'
/usr/bin/ld: namei.c:(.text+0x26c9): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/ext4/namei.o: in function `add_dirent_to_buf':
namei.c:(.text+0x4687): undefined reference to `atomic64_read_386'
/usr/bin/ld: namei.c:(.text+0x46c0): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/ext4/namei.o: in function `ext4_generic_delete_entry':
namei.c:(.text+0x6b4a): undefined reference to `atomic64_read_386'
/usr/bin/ld: namei.c:(.text+0x6b8d): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/ext4/namei.o: in function `ext4_rmdir':
namei.c:(.text+0x8dd3): undefined reference to `atomic64_read_386'
/usr/bin/ld: namei.c:(.text+0x8e0b): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/ext4/resize.o: in function `ext4_flex_group_add':
resize.c:(.text+0x33e9): undefined reference to `atomic64_add_386'
/usr/bin/ld: fs/ext4/xattr.o: in function `ext4_xattr_inode_iget':
xattr.c:(.text+0x768): undefined reference to `atomic64_set_386'
/usr/bin/ld: fs/ext4/xattr.o: in function `ext4_xattr_inode_update_ref':
xattr.c:(.text+0x892): undefined reference to `atomic64_read_386'
/usr/bin/ld: xattr.c:(.text+0x8c6): undefined reference to `atomic64_set_386'
/usr/bin/ld: fs/ext4/xattr.o: in function `ext4_xattr_inode_lookup_create':
xattr.c:(.text+0x1e08): undefined reference to `atomic64_set_386'
/usr/bin/ld: fs/ext2/dir.o: in function `ext2_commit_chunk':
dir.c:(.text+0x28): undefined reference to `atomic64_read_386'
/usr/bin/ld: dir.c:(.text+0x69): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/ext2/dir.o: in function `ext2_readdir':
dir.c:(.text+0x58b): undefined reference to `atomic64_read_386'
/usr/bin/ld: dir.c:(.text+0x904): undefined reference to `atomic64_read_386'
/usr/bin/ld: dir.c:(.text+0x943): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/fat/dir.o: in function `fat_remove_entries':
dir.c:(.text+0x34a3): undefined reference to `atomic64_read_386'
/usr/bin/ld: dir.c:(.text+0x34e4): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/fat/misc.o: in function `fat_update_time':
misc.c:(.text+0x93b): undefined reference to `atomic64_read_386'
/usr/bin/ld: misc.c:(.text+0x98d): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/fuse/dir.o: in function `fuse_rmdir':
dir.c:(.text+0x3aa): undefined reference to `atomic64_read_386'
/usr/bin/ld: dir.c:(.text+0x3f8): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/fuse/dir.o: in function `fuse_rename_common':
dir.c:(.text+0xbba): undefined reference to `atomic64_read_386'
/usr/bin/ld: dir.c:(.text+0xc08): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: dir.c:(.text+0xc6e): undefined reference to `atomic64_read_386'
/usr/bin/ld: dir.c:(.text+0xcbe): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/fuse/dir.o: in function `fuse_unlink':
dir.c:(.text+0xecb): undefined reference to `atomic64_inc_return_386'
/usr/bin/ld: dir.c:(.text+0xf5a): undefined reference to `atomic64_read_386'
/usr/bin/ld: dir.c:(.text+0xfa8): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/fuse/dir.o: in function `fuse_dentry_revalidate':
dir.c:(.text+0x1509): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/fuse/dir.o: in function `fuse_do_getattr':
dir.c:(.text+0x17e6): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/fuse/dir.o: in function `fuse_create_open':
dir.c:(.text+0x200a): undefined reference to `atomic64_read_386'
/usr/bin/ld: dir.c:(.text+0x2054): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/fuse/dir.o: in function `create_new_entry.constprop.0':
dir.c:(.text+0x234a): undefined reference to `atomic64_read_386'
/usr/bin/ld: dir.c:(.text+0x239e): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/fuse/dir.o: in function `fuse_link':
dir.c:(.text+0x24ca): undefined reference to `atomic64_inc_return_386'
/usr/bin/ld: fs/fuse/dir.o: in function `fuse_lookup_name':
dir.c:(.text+0x28a6): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/fuse/dir.o: in function `fuse_reverse_inval_entry':
dir.c:(.text+0x2e9a): undefined reference to `atomic64_read_386'
/usr/bin/ld: dir.c:(.text+0x2eeb): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/fuse/file.o: in function `__fuse_copy_file_range':
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip