x86 Yocto BSP FAQ

From ESS-WIKI
Jump to: navigation, search

bitbake failed

ninja: build stopped: subcommand failed

Cause

It usually happens on low performance host machine, and almost the qt* or clang* are the failed ones.

Solution

  • build the failed one individually
(It is recommended to use this way first.)
e.g.
$ bitbake -k clang
or
$ bitbake -k qtwebkit
  • decrease number of threads used for the parallel build.
(The less number of threads will take more time to finish the whole building process.)
get original nummber of threads
$ grep "BB_NUMBER_THREADS" conf/local.conf | sed "s/.*\"\(.*\)\"$/\1/"
set new number of threads
$ sed -i "s/BB_NUMBER_THREADS.*/BB_NUMBER_THREADS = \"${THREADS}\"/" conf/local.conf
(remember to replace the ${THREADS} with the appropriate one)

make error

Solution

  • clean the failed one, then re-build it individually
$ bitbake -k ${failed_package} -c clean
$ bitbake -k ${failed_package}