Bug 3284 - bitbake -c menuconfig doesn't check errors returned by make menuconfig
Summary: bitbake -c menuconfig doesn't check errors returned by make menuconfig
Status: RESOLVED DUPLICATE of bug 2513
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 1.1
Hardware: x86 x86
: Medium normal
Target Milestone: 1.4
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-10-12 15:10 UTC by Bogdan Purcareata
Modified: 2012-10-15 20:47 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bogdan Purcareata 2012-10-12 15:10:30 UTC
I followed the instructions at:

http://www.yoctoproject.org/docs/1.1/yocto-project-qs/yocto-project-qs.html

installed the prerequisites in Fedora 17:

$ sudo yum groupinstall "development tools"
     $ sudo yum install python m4 make wget curl ftp hg tar bzip2 gzip \
     unzip python-psyco perl texinfo texi2html diffstat openjade \
     docbook-style-dsssl sed docbook-style-xsl docbook-dtds \
     docbook-utils sed bc eglibc-devel ccache pcre pcre-devel quilt \
     groff linuxdoc-tools patch linuxdoc-tools cmake help2man \
     perl-ExtUtils-MakeMaker tcl-devel gettext chrpath ncurses apr \
     SDL-devel mesa-libGL-devel mesa-libGLU-devel gnome-doc-utils \
     autoconf automake libtool xterm

and downloaded the yocto project:

$ wget http://downloads.yoctoproject.org/releases/yocto/yocto-1.1/poky-edison-6.0.tar.bz2
$ tar xjf poky-edison-6.0.tar.bz2
$ source poky-edison-6.0/oe-init-build-env edison-6.0-build

Running:

bitbake -c menuconfig linux-yocto

outputs

Loading cache: 100% |############################################################################################################################################| ETA:  00:00:00
Loaded 1036 entries from dependency cache.

OE Build Configuration:
BB_VERSION        = "1.13.3"
TARGET_ARCH       = "i586"
TARGET_OS         = "linux"
MACHINE           = "qemux86"
DISTRO            = "poky"
DISTRO_VERSION    = "1.1"
TUNE_FEATURES     = "m32 i586"
TARGET_FPU        = ""
meta
meta-yocto        = "<unknown>:<unknown>"

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Running task 293 of 293 (ID: 7, /home/juggernaut/bitbake_menuconfig_bug/poky-edison-6.0/meta/recipes-kernel/linux/linux-yocto_3.0.bb, do_menuconfig)
NOTE: package linux-yocto-3.0.4+git1+d05450e4aef02c1b7137398ab3a9f8f96da74f52_1+72671808fdbe69a9fe03fd8f094e7c59da04a28c-r2: task do_menuconfig: Started
WARNING: Screen started. Please connect in another terminal with "screen -r devshell"
NOTE: package linux-yocto-3.0.4+git1+d05450e4aef02c1b7137398ab3a9f8f96da74f52_1+72671808fdbe69a9fe03fd8f094e7c59da04a28c-r2: task do_menuconfig: Succeeded
NOTE: Tasks Summary: Attempted 293 tasks of which 292 didn't need to be rerun and 0 failed.

It finishes successfully and without halt on the menuconfig.

When running 

make menuconfig

in "${WORKDIR}/linux-${MACHINE}-${LINUX_KERNEL_TYPE}-build", I get the following error:

 *** Unable to find the ncurses libraries or the
 *** required header files.
 *** 'make menuconfig' requires the ncurses libraries.
 ***
 *** Install ncurses (ncurses-devel) and try again.
 ***
make[3]: *** [scripts/kconfig/dochecklxdialog] Error 1
make[2]: *** [menuconfig] Error 2
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2

which is not propagated in the upper levels of bitbake.

After installing the ncurses-devel package, bitbake -c menuconfig linux-yocto runs normally.