Are you facing below error message when giving “make menuconfig” command during your kernel development?

$ make menuconfig
  HOSTLD  scripts/kconfig/mconf
scripts/kconfig/mconf.o: In function `show_help':
mconf.c:(.text+0x8a4): undefined reference to `stdscr'
scripts/kconfig/lxdialog/checklist.o: In function `print_arrows':
checklist.c:(.text+0x2c): undefined reference to `wmove'
checklist.c:(.text+0x4c): undefined reference to `acs_map'
checklist.c:(.text+0x54): undefined reference to `waddch'
checklist.c:(.text+0x66): undefined reference to `waddnstr'
checklist.c:(.text+0x76): undefined reference to `wmove'
checklist.c:(.text+0xa0): undefined reference to `acs_map'
checklist.c:(.text+0xa8): undefined reference to `waddch'
checklist.c:(.text+0xe3): undefined reference to `acs_map'
checklist.c:(.text+0xeb): undefined reference to `waddch'
checklist.c:(.text+0xf2): undefined reference to `acs_map'
checklist.c:(.text+0xfa): undefined reference to `waddch'
.
.
.
.
.
scripts/kconfig/lxdialog/menubox.o: In function `do_scroll':
menubox.c:(.text+0x36): undefined reference to `wrefresh'
scripts/kconfig/lxdialog/menubox.o: In function `do_print_item':
menubox.c:(.text+0x184): undefined reference to `wrefresh'
scripts/kconfig/lxdialog/menubox.o: In function `print_buttons':
menubox.c:(.text+0x2ce): undefined reference to `wrefresh'
scripts/kconfig/lxdialog/menubox.o: In function `print_arrows.constprop.0':
menubox.c:(.text+0x3e3): undefined reference to `wrefresh'
collect2: error: ld returned 1 exit status
make[1]: *** [scripts/kconfig/mconf] Error 1
make: *** [menuconfig] Error 2

It means, some dependency libraries are not installed. Make sure all dependency libraries are installed. If not installed, you can use the below commands to install them and then give “make menuconfig” command.

$ sudo apt-get install build-essentials
$ sudo apt-get install libncurses5  libncurses5-dev