lkml.org 
[lkml]   [2022]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectcollect2: error: ld returned 1 exit status
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: a08b41ab9e2e468647f78eb17c28e29b93006394
commit: b18adee4ce4443399963826b5d28d9e63d40740c stacktrace: Move documentation for arch_stack_walk_reliable() to header
date: 11 months ago
config: x86_64-rhel-8.3-kselftests (https://download.01.org/0day-ci/archive/20220126/202201260016.WjRQsceW-lkp@intel.com/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=b18adee4ce4443399963826b5d28d9e63d40740c
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout b18adee4ce4443399963826b5d28d9e63d40740c
# save the config file to linux build tree
make W=1 ARCH=x86_64 SHELL=/bin/bash tools/all

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

/usr/bin/ld: virtio_ring.o: in function `spin_lock':
/kbuild/worktree/build-ktools-consumer/tools/virtio/./linux/spinlock.h:16: undefined reference to `pthread_spin_lock'
/usr/bin/ld: virtio_ring.o: in function `spin_unlock':
/kbuild/worktree/build-ktools-consumer/tools/virtio/./linux/spinlock.h:22: undefined reference to `pthread_spin_unlock'
/usr/bin/ld: virtio_ring.o: in function `spin_lock':
/kbuild/worktree/build-ktools-consumer/tools/virtio/./linux/spinlock.h:16: undefined reference to `pthread_spin_lock'
/usr/bin/ld: virtio_ring.o: in function `spin_unlock':
/kbuild/worktree/build-ktools-consumer/tools/virtio/./linux/spinlock.h:22: undefined reference to `pthread_spin_unlock'
/usr/bin/ld: virtio_ring.o: in function `spin_lock':
/kbuild/worktree/build-ktools-consumer/tools/virtio/./linux/spinlock.h:16: undefined reference to `pthread_spin_lock'
/usr/bin/ld: virtio_ring.o: in function `spin_unlock':
/kbuild/worktree/build-ktools-consumer/tools/virtio/./linux/spinlock.h:22: undefined reference to `pthread_spin_unlock'
/usr/bin/ld: virtio_ring.o: in function `spin_lock':
/kbuild/worktree/build-ktools-consumer/tools/virtio/./linux/spinlock.h:16: undefined reference to `pthread_spin_lock'
/usr/bin/ld: virtio_ring.o: in function `spin_unlock':
/kbuild/worktree/build-ktools-consumer/tools/virtio/./linux/spinlock.h:22: undefined reference to `pthread_spin_unlock'
>> collect2: error: ld returned 1 exit status
make[3]: *** [<builtin>: virtio_test] Error 1
make[3]: *** Waiting for unfinished jobs....
/usr/bin/ld: virtio_ring.o: in function `spin_lock':
/kbuild/worktree/build-ktools-consumer/tools/virtio/./linux/spinlock.h:16: undefined reference to `pthread_spin_lock'
/usr/bin/ld: virtio_ring.o: in function `spin_unlock':
/kbuild/worktree/build-ktools-consumer/tools/virtio/./linux/spinlock.h:22: undefined reference to `pthread_spin_unlock'
/usr/bin/ld: virtio_ring.o: in function `spin_lock':
/kbuild/worktree/build-ktools-consumer/tools/virtio/./linux/spinlock.h:16: undefined reference to `pthread_spin_lock'
/usr/bin/ld: virtio_ring.o: in function `spin_unlock':
/kbuild/worktree/build-ktools-consumer/tools/virtio/./linux/spinlock.h:22: undefined reference to `pthread_spin_unlock'
/usr/bin/ld: virtio_ring.o: in function `spin_lock':
/kbuild/worktree/build-ktools-consumer/tools/virtio/./linux/spinlock.h:16: undefined reference to `pthread_spin_lock'
/usr/bin/ld: virtio_ring.o: in function `spin_unlock':
/kbuild/worktree/build-ktools-consumer/tools/virtio/./linux/spinlock.h:22: undefined reference to `pthread_spin_unlock'
/usr/bin/ld: virtio_ring.o: in function `spin_lock':
/kbuild/worktree/build-ktools-consumer/tools/virtio/./linux/spinlock.h:16: undefined reference to `pthread_spin_lock'
/usr/bin/ld: virtio_ring.o: in function `spin_unlock':
/kbuild/worktree/build-ktools-consumer/tools/virtio/./linux/spinlock.h:22: undefined reference to `pthread_spin_unlock'
>> collect2: error: ld returned 1 exit status
make[3]: *** [<builtin>: vringh_test] Error 1
***
*** The source tree is not clean, please run 'make mrproper'
*** in /kbuild/worktree/build-ktools-consumer
***
make[5]: *** [/kbuild/worktree/build-ktools-consumer/Makefile:573: outputmakefile] Error 1
make[4]: *** [Makefile:732: include/config/auto.conf.cmd] Error 2
make[3]: *** [Makefile:11: mod] Error 2

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

\
 
 \ /
  Last update: 2022-01-25 20:18    [W:0.030 / U:0.568 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site