Skip to contentSkip to conversation

Can't start menuconfig with Bitbake

DISCUSSION Clay D. Montgomery 2 participants 3 messages Jul 12, 2018

lore
Share & tools
lore
#0 lore raw

Hello,

I am having a basic problem with trying to use Bitbake to run
menuconfig.
Bitbake otherwise works fine for me. I have done many large builds of Yocto.

I am running on a Ubuntu 14.04 32-bit system which is up to date, but
the RAM is limited to 4 GB.
I have pasted a sample of the errors I get below. I shortened this considerably.

I would appreciate any advice on how to resolve this.

Thanks, Clay Montgomery

bitbake -c menuconfig virtual/kernel

GEN ./Makefile
HOSTLD scripts/kconfig/mconf
scripts/kconfig/mconf.o: In function `show_help':
mconf.c:(.text+0x927): undefined reference to stdscr' scripts/kconfig/lxdialog/checklist.o: In function print_arrows':
checklist.c:(.text+0x31): undefined reference to wmove' checklist.c:(.text+0x4e): undefined reference to acs_map' checklist.c:(.text+0x5a): undefined reference to waddch' util.c:(.text+0x1826): undefined reference to keypad' util.c:(.text+0x182e): undefined reference to wgetch' util.c:(.text+0x1838): undefined reference to wgetch' menubox.c:(.text+0x11db): undefined reference to acs_map' menubox.c:(.text+0x11eb): undefined reference to waddch' menubox.c:(.text+0x1278): undefined reference to scrollok' scripts/kconfig/lxdialog/menubox.o: In function do_print_item':
menubox.c:(.text+0x1ab): undefined reference to wrefresh' scripts/kconfig/lxdialog/menubox.o: In function print_buttons':
menubox.c:(.text+0x356): undefined reference to wrefresh' scripts/kconfig/lxdialog/menubox.o: In function print_arrows.constprop.0':
menubox.c:(.text+0x478): undefined reference to `wrefresh'
collect2: error: ld returned 1 exit status
make[3]: *** [scripts/kconfig/mconf] Error 1
make[2]: *** [menuconfig] Error 2
make[1]: *** [sub-make] Error 2
make: *** [__sub-make] Error 2
Command failed.
Press any key to continue...

begin:vcard
fn:Clay D. Montgomery
n:Montgomery;Clay
org:Montgomery One
adr:;;;;Texas;;USA
email;internet:[email protected]
title:Freelance Software Developer
tel;cell:580-490-6676
x-mozilla-html:TRUE
url:http://montgomery1.com/contact/
version:2.1
end:vcard

#1 lore raw
Quoted 40 lines · Clay D. Montgomery

Hello,

   I am having a basic problem with trying to use Bitbake to run menuconfig.
Bitbake otherwise works fine for me. I have done many large builds of Yocto.

 I am running on a Ubuntu 14.04 32-bit system which is up to date, but the RAM is limited to 4 GB.
I have pasted a sample of the errors I get below.  I shortened this considerably.

I would appreciate any advice on how to resolve this.

Thanks, Clay Montgomery

bitbake -c menuconfig virtual/kernel

  GEN     ./Makefile
  HOSTLD  scripts/kconfig/mconf
scripts/kconfig/mconf.o: In function `show_help':
mconf.c:(.text+0x927): undefined reference to stdscr' scripts/kconfig/lxdialog/checklist.o: In function print_arrows':
checklist.c:(.text+0x31): undefined reference to wmove' checklist.c:(.text+0x4e): undefined reference to acs_map' checklist.c:(.text+0x5a): undefined reference to waddch' util.c:(.text+0x1826): undefined reference to keypad' util.c:(.text+0x182e): undefined reference to wgetch' util.c:(.text+0x1838): undefined reference to wgetch' menubox.c:(.text+0x11db): undefined reference to acs_map' menubox.c:(.text+0x11eb): undefined reference to waddch' menubox.c:(.text+0x1278): undefined reference to scrollok' scripts/kconfig/lxdialog/menubox.o: In function do_print_item':
menubox.c:(.text+0x1ab): undefined reference to wrefresh' scripts/kconfig/lxdialog/menubox.o: In function print_buttons':
menubox.c:(.text+0x356): undefined reference to wrefresh' scripts/kconfig/lxdialog/menubox.o: In function print_arrows.constprop.0':

Quoted 10 lines

menubox.c:(.text+0x478): undefined reference to `wrefresh'
collect2: error: ld returned 1 exit status make[3]: *** [scripts/kconfig/mconf] Error 1 make[2]: *** [menuconfig] Error 2
make[1]: *** [sub-make] Error 2
make: *** [__sub-make] Error 2
Command failed.
Press any key to continue...

it means its missing ncurses library and development headers on your build host. this task should generally depend on ncurses-native as here

meta/classes/cml1.bbclass:do_menuconfig[depends] += "ncurses-native:do_populate_sysroot"

I don't know why this is not working in your case. May be another workaround is to just install ncurses-dev on your build host.

#2 lore raw

Raj,

Installing ncurses-dev did resolve the problem. Thank you!

Regards, Clay

Quoted 51 lines · Khem Raj
Quoted 40 lines · Clay D. Montgomery

Hello,

I am having a basic problem with trying to use Bitbake to run
menuconfig.
Bitbake otherwise works fine for me. I have done many large builds of Yocto.

I am running on a Ubuntu 14.04 32-bit system which is up to date, but
the RAM is limited to 4 GB.
I have pasted a sample of the errors I get below. I shortened this considerably.

I would appreciate any advice on how to resolve this.

Thanks, Clay Montgomery

bitbake -c menuconfig virtual/kernel

GEN ./Makefile
HOSTLD scripts/kconfig/mconf
scripts/kconfig/mconf.o: In function `show_help':
mconf.c:(.text+0x927): undefined reference to stdscr' scripts/kconfig/lxdialog/checklist.o: In function print_arrows':
checklist.c:(.text+0x31): undefined reference to wmove' checklist.c:(.text+0x4e): undefined reference to acs_map' checklist.c:(.text+0x5a): undefined reference to waddch' util.c:(.text+0x1826): undefined reference to keypad' util.c:(.text+0x182e): undefined reference to wgetch' util.c:(.text+0x1838): undefined reference to wgetch' menubox.c:(.text+0x11db): undefined reference to acs_map' menubox.c:(.text+0x11eb): undefined reference to waddch' menubox.c:(.text+0x1278): undefined reference to scrollok' scripts/kconfig/lxdialog/menubox.o: In function do_print_item':
menubox.c:(.text+0x1ab): undefined reference to wrefresh' scripts/kconfig/lxdialog/menubox.o: In function print_buttons':
menubox.c:(.text+0x356): undefined reference to wrefresh' scripts/kconfig/lxdialog/menubox.o: In function print_arrows.constprop.0':

Quoted 10 lines

menubox.c:(.text+0x478): undefined reference to `wrefresh'
collect2: error: ld returned 1 exit status make[3]: *** [scripts/kconfig/mconf] Error 1 make[2]: *** [menuconfig] Error 2
make[1]: *** [sub-make] Error 2
make: *** [__sub-make] Error 2
Command failed.
Press any key to continue...

Quoted 9 lines

it means its missing ncurses library and development headers on your build host. this task should generally depend on ncurses-native as here

meta/classes/cml1.bbclass:do_menuconfig[depends] += "ncurses-native:do_populate_sysroot"

I don't know why this is not working in your case. May be another workaround is to just install ncurses-dev on your build host.

begin:vcard
fn:Clay D. Montgomery
n:Montgomery;Clay
org:Montgomery One
adr:;;;;Texas;;USA
email;internet:[email protected]
title:Freelance Software Developer
tel;cell:580-490-6676
x-mozilla-html:TRUE
url:http://montgomery1.com/contact/
version:2.1
end:vcard