Linking issue. recipe for vmlinux is failed.

118 views
Skip to first unread message

Saurabh Sakhare

unread,
Aug 27, 2019, 6:56:08 AM8/27/19
to Android Linux Kernel Development
While compiling the kernel for walleye pixel 2 device. The kernel is compiling perfectly but at the time of link, it's failing the thing I understood is the symbol needed by function cannot be found. 
How can I make it found?

The errors are given below and this undefined reference is showing for every symbol.

 CC      init/version.o
  LD      init/built-in.o
arch/arm64/kernel/built-in.o: In function `list_add_rcu':
/home/saurabh/walleye_con/private/msm-google/include/linux/rculist.h:83: undefined reference to `__list_add_rcu'
arch/arm64/kernel/built-in.o: In function `list_del_rcu':
/home/saurabh/walleye_con/private/msm-google/include/linux/rculist.h:134: undefined reference to `__list_del_entry'
arch/arm64/kernel/built-in.o: In function `list_add_rcu':
/home/saurabh/walleye_con/private/msm-google/include/linux/rculist.h:83: undefined reference to `__list_add_rcu'
arch/arm64/kernel/built-in.o: In function `list_del_rcu':
/home/saurabh/walleye_con/private/msm-google/include/linux/rculist.h:134: undefined reference to `__list_del_entry'
arch/arm64/kernel/built-in.o: In function `__uaccess_ttbr0_enable':
/home/saurabh/walleye_con/private/msm-google/arch/arm64/include/asm/uaccess.h:169: undefined reference to `trace_hardirqs_off'
.
.
.
.
/home/saurabh/walleye_con/private/msm-google/lib/klist.c:190: undefined reference to `list_del'
/home/saurabh/walleye_con/private/msm-google/lib/klist.c:196: undefined reference to `list_del'
make[2]: *** [/home/saurabh/walleye_con/private/msm-google/Makefile:1084: vmlinux] Error 1
make[1]: *** [Makefile:151: sub-make] Error 2
make: *** [Makefile:24: __sub-make] Error 2


Reply all
Reply to author
Forward
0 new messages