From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============1501917042183470080==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: collect2: error: ld returned 1 exit status Date: Wed, 26 Jan 2022 03:17:01 +0800 Message-ID: <202201260016.WjRQsceW-lkp@intel.com> List-Id: --===============1501917042183470080== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git = master head: a08b41ab9e2e468647f78eb17c28e29b93006394 commit: b18adee4ce4443399963826b5d28d9e63d40740c stacktrace: Move documenta= tion 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(a)intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=3D1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.gi= t/commit/?id=3Db18adee4ce4443399963826b5d28d9e63d40740c git remote add linus https://git.kernel.org/pub/scm/linux/kernel/gi= t/torvalds/linux.git git fetch --no-tags linus master git checkout b18adee4ce4443399963826b5d28d9e63d40740c # save the config file to linux build tree make W=3D1 ARCH=3Dx86_64 SHELL=3D/bin/bash tools/all If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot 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:1= 6: 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:2= 2: 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:1= 6: 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:2= 2: 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:1= 6: 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:2= 2: 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:1= 6: 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:2= 2: undefined reference to `pthread_spin_unlock' >> collect2: error: ld returned 1 exit status make[3]: *** [: 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:1= 6: 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:2= 2: 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:1= 6: 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:2= 2: 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:1= 6: 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:2= 2: 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:1= 6: 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:2= 2: undefined reference to `pthread_spin_unlock' >> collect2: error: ld returned 1 exit status make[3]: *** [: 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: outpu= tmakefile] 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(a)lists.01.org --===============1501917042183470080==--