[yocto-builds] Adding new kernel and compilation issues with yocto

srinivasan srinivasan.rns at gmail.com
Tue Sep 4 16:44:36 PDT 2018


Dear Technical team,

As am newbie to poky/yocto build system, I am facing the issue with the
error log shown below, in adding the new kernel "
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git" with the branch
"KBRANCH = "v4.14", I have built for "qemux86"

Could you please do the needful in resolving the below error and get my
kernel get successfully compiled, as am stuck with this from past few days

*1. Ubuntu version used 14.04*

*2. Poky Distro version*

DISTRO = "poky"
DISTRO_NAME = "Poky (Yocto Project Reference Distro)"
DISTRO_VERSION = "2.5+snapshot-${DATE}"

*3.Recipe file is attached.*

*4. Logs*
:~/yocto_session_ws_2/build$ bitbake virtual/kernel -v
WARNING: Host distribution "ubuntu-14.04" has not been validated with this
version of the build system; you may possibly experience unexpected
failures. It is recommended that you use a tested distribution.
Loading cache: 100%
|###################################################################################################################################################|
Time: 0:00:00
Loaded 1266 entries from dependency cache.
NOTE: selecting linux-srini to satisfy virtual/kernel due to
PREFERRED_PROVIDERS
NOTE: Resolving any missing task queue dependencies
NOTE: selecting binutils-cross-i586 to satisfy
virtual/i586-poky-linux-binutils due to PREFERRED_PROVIDERS
NOTE: selecting pseudo-native to satisfy virtual/fakeroot-native due to
PREFERRED_PROVIDERS
NOTE: selecting linux-srini to satisfy runtime linux-srini due to
PREFERRED_PROVIDER_virtual/kernel = linux-srini
NOTE: selecting linux-srini to satisfy runtime linux-srini-dev due to
PREFERRED_PROVIDER_virtual/kernel = linux-srini
NOTE: selecting openssl-native to satisfy openssl-native due to
PREFERRED_PROVIDERS
NOTE: selecting pkgconfig-native to satisfy pkgconfig-native due to
PREFERRED_PROVIDERS

Build Configuration:
BB_VERSION           = "1.39.1"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal-4.8"
TARGET_SYS           = "i586-poky-linux"
MACHINE              = "qemux86"
DISTRO               = "poky"
DISTRO_VERSION       = "2.5+snapshot-20180904"
TUNE_FEATURES        = "m32 i586"
TARGET_FPU           = ""
meta
meta-poky
meta-yocto-bsp       = "master:4434777705cf49300a7d2c9ca8fa3080d551d795"

NOTE: Marking Active
Tasks############################################################
                                                                         |
ETA:  0:00:00
NOTE: Pruned 509 inactive tasks, 322
left##############################################
                                                        | ETA:  0:00:00
NOTE: Assign Weightings
NOTE: Compute totals (have 1
endpoint(s))##############################################
                                                                | ETA:
0:00:00
Initialising tasks: 100%
|###############################################################################################################################################|
Time: 0:00:00
Sstate summary: Wanted 6 Found 1 Missed 5 Current 38 (16% match, 88%
complete)
NOTE: Executing SetScene Tasks
+ cd
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/sstate-install-populate_lic/
+ sstate_unpack_package
+ tar -xvzf
/home/srinivasan/yocto_session_ws_2/build/sstate-cache/7f/sstate:linux-srini::4.14:r1::3:7ffa068910d303281a8c5c13f8661ae6_populate_lic.tgz

license-destdir/

license-destdir/linux-srini/
license-destdir/linux-srini/recipeinfo
license-destdir/linux-srini/generic_GPLv2
license-destdir/linux-srini/COPYING

+ [ -w
/home/srinivasan/yocto_session_ws_2/build/sstate-cache/7f/sstate:linux-srini::4.14:r1::3:7ffa068910d303281a8c5c13f8661ae6_populate_lic.tgz.siginfo
]

+ [ -h
/home/srinivasan/yocto_session_ws_2/build/sstate-cache/7f/sstate:linux-srini::4.14:r1::3:7ffa068910d303281a8c5c13f8661ae6_populate_lic.tgz.siginfo
]
+ [ ! -w
/home/srinivasan/yocto_session_ws_2/build/sstate-cache/7f/sstate:linux-srini::4.14:r1::3:7ffa068910d303281a8c5c13f8661ae6_populate_lic.tgz
]
+ touch --no-dereference
/home/srinivasan/yocto_session_ws_2/build/sstate-cache/7f/sstate:linux-srini::4.14:r1::3:7ffa068910d303281a8c5c13f8661ae6_populate_lic.tgz

+ [ ! -w
/home/srinivasan/yocto_session_ws_2/build/sstate-cache/7f/sstate:linux-srini::4.14:r1::3:7ffa068910d303281a8c5c13f8661ae6_populate_lic.tgz.sig
]

+ [ ! -w
/home/srinivasan/yocto_session_ws_2/build/sstate-cache/7f/sstate:linux-srini::4.14:r1::3:7ffa068910d303281a8c5c13f8661ae6_populate_lic.tgz.siginfo
]
+ [ ! -e
/home/srinivasan/yocto_session_ws_2/build/sstate-cache/7f/sstate:linux-srini::4.14:r1::3:7ffa068910d303281a8c5c13f8661ae6_populate_lic.tgz.siginfo
]
+ touch --no-dereference
/home/srinivasan/yocto_session_ws_2/build/sstate-cache/7f/sstate:linux-srini::4.14:r1::3:7ffa068910d303281a8c5c13f8661ae6_populate_lic.tgz.siginfo

+ ret=0
+ trap  0
+ exit 0

NOTE: Executing RunQueue Tasks
NOTE: linux-srini-4.14-r1 do_fetch: Direct dependencies are []
NOTE: linux-srini-4.14-r1 do_fetch: Installed into sysroot: []
NOTE: linux-srini-4.14-r1 do_fetch: Skipping as already exists in sysroot:
[]
NOTE: linux-srini-4.14-r1 do_prepare_recipe_sysroot: Direct dependencies
are
['virtual:native:/home/srinivasan/yocto_session_ws_2/poky/meta/recipes-devtools/automake/automake_1.16.1.bb:do_populate_sysroot',
'/home/srinivasan/yocto_session_ws_2/poky/meta/recipes-devtools/libtool/libtool-native_2.4.6.bb:do_populate_sysroot',
'virtual:native:/home/srinivasan/yocto_session_ws_2/poky/meta/recipes-devtools/gnu-config/gnu-config_git.bb:do_populate_sysroot',
'virtual:native:/home/srinivasan/yocto_session_ws_2/poky/meta/recipes-devtools/autoconf/autoconf_2.69.bb:
do_populate_sysroot']
NOTE: linux-srini-4.14-r1 do_prepare_recipe_sysroot: Installed into
sysroot: ['automake-native', 'libtool-native', 'gnu-config-native',
'autoconf-native', 'quilt-native', 'm4-native', 'texinfo-dummy-native']
NOTE: linux-srini-4.14-r1 do_prepare_recipe_sysroot: Skipping as already
exists in sysroot: []
NOTE: linux-srini-4.14-r1 do_patch: Direct dependencies are
['/home/srinivasan/yocto_session_ws_2/poky/meta/recipes-devtools/quilt/quilt-native_0.65.bb:
do_populate_sysroot']
NOTE: linux-srini-4.14-r1 do_patch: Installed into sysroot: []
NOTE: linux-srini-4.14-r1 do_patch: Skipping as already exists in sysroot:
['quilt-native']
+ autotools_preconfigure
+ [ -n
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/configure.sstate
-a -e
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/configure.sstate
]
+ ret=0
+ trap  0
+ exit 0

+ cd
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/build
+ do_configure
+ cd
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/git
+ git checkout bebc6082da0a9f5d47a1ea2edc099bf671058bd4

Note: checking out 'bebc6082da0a9f5d47a1ea2edc099bf671058bd4'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name


HEAD is now at bebc608... Linux 4.14

+ sleep 5

+ [ -n x86_64_defconfig ]
+ [ -f
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/git/arch/x86/configs/x86_64_defconfig
]
+ [ -f
 /home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/defconfig
]
+ cp -f
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/git/arch/x86/configs/x86_64_defconfig
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/defconfig

+ cp -f
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/git/arch/x86/configs/x86_64_defconfig
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/git/defconfig

+ cp -f
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/git/arch/x86/configs/x86_64_defconfig
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/git/.config

+
sccs=/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/defconfig
+ ret=0
+ trap  0
+ exit 0

NOTE: linux-srini-4.14-r1 do_configure: Checking autotools environment for
common misconfiguration
NOTE: linux-srini-4.14-r1 do_configure: Checking configure output for
unrecognised options
+ autotools_postconfigure
+ [ -n
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/configure.sstate
]

+ dirname
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/configure.sstate

+ mkdir -p
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1

+ echo fb691e35d382f04effc1c80328f97ff7

+ ret=0
+ trap  0
+ exit 0

+ cd
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/build
+ do_compile
+ autotools_do_compile
+ oe_runmake
+ oe_runmake_call
+ bbnote make -j 4
+ [ -p
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/temp/fifo.4343
]

NOTE: linux-srini-4.14-r1 do_compile: make -j 4
+ printf %b\0 bbnote make -j 4
+ make -j 4

*make: *** No targets specified and no makefile found.  Stop.*

*ERROR: linux-srini-4.14-r1 do_compile: oe_runmake failed*
*+ die oe_runmake failed*
*+ bbfatal_log oe_runmake failed*
+ [ -p
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/temp/fifo.4343
]
+ printf %b\0 bbfatal_log oe_runmake failed
+ exit 1
+ bb_exit_handler
+ ret=1
+ echo WARNING: exit code 1 from a shell command.
WARNING: exit code 1 from a shell command.
+ exit 1

*ERROR: linux-srini-4.14-r1 do_compile: Function failed: do_compile (log
file is located at
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/temp/log.do_compile.4343)*
*ERROR: Logfile of failure stored in:
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/temp/log.do_compile.4343*
Log data follows:
| DEBUG: SITE files ['endian-little', 'bit-32', 'ix86-common',
'common-linux', 'common-glibc', 'i586-linux', 'common']
| DEBUG: Executing shell function do_compile
| + cd
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/build
| + do_compile
| + autotools_do_compile
| + oe_runmake
| + oe_runmake_call
| + bbnote make -j 4
| + [ -p
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/temp/fifo.4343
]
|
| + cd
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/build
| + do_compile
| + autotools_do_compile
| + oe_runmake
| + oe_runmake_call
| + bbnote make -j 4
| + [ -p
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/temp/fifo.4343
]
| NOTE: make -j 4
| + printf %b\0 bbnote make -j 4
| + make -j 4
|
| + printf %b\0 bbnote make -j 4
| + make -j 4
| make: *** No targets specified and no makefile found.  Stop.
|
| make: *** No targets specified and no makefile found.  Stop.
| ERROR: oe_runmake failed
| + die oe_runmake failed
| + bbfatal_log oe_runmake failed
| + [ -p
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/temp/fifo.4343
]
| + printf %b\0 bbfatal_log oe_runmake failed
| + exit 1
| + bb_exit_handler
| + ret=1
| + echo WARNING: exit code 1 from a shell command.
| WARNING: exit code 1 from a shell command.
| + exit 1
|
| + die oe_runmake failed
| + bbfatal_log oe_runmake failed
| + [ -p
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/temp/fifo.4343
]
| + printf %b\0 bbfatal_log oe_runmake failed
| + exit 1
| + bb_exit_handler
| + ret=1
| + echo WARNING: exit code 1 from a shell command.
| WARNING: exit code 1 from a shell command.
| + exit 1
*| ERROR: Function failed: do_compile (log file is located at
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/temp/log.do_compile.4343)*
*ERROR: Task
(/home/srinivasan/yocto_session_ws_2/poky/meta/recipes-kernel/linux/linux-srini_4.14.bb:do_compile)
failed with exit code '1'*
*NOTE: Tasks Summary: Attempted 312 tasks of which 306 didn't need to be
rerun and 1 failed.*

Summary: 1 task failed:

/home/srinivasan/yocto_session_ws_2/poky/meta/recipes-kernel/linux/linux-srini_4.14.bb:
do_compile
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
srinivasan at srinivasan-UX305UA:~/yocto_session_ws_2/build$
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto-builds/attachments/20180905/ef0a0ef6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linux-srini_4.14.bb
Type: application/octet-stream
Size: 2904 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto-builds/attachments/20180905/ef0a0ef6/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log.do_compile.4343
Type: application/octet-stream
Size: 1870 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto-builds/attachments/20180905/ef0a0ef6/attachment-0003.obj>


More information about the yocto-builds mailing list