[yocto-builds] Yocto kernel compilation issues

srinivasan srinivasan.rns at gmail.com
Tue Sep 4 17:32:11 PDT 2018


srinivasan <srinivasan.rns at gmail.com>
5:55 AM (4 minutes ago)
to *yocto-infrastructure*
After changing from "*do_compile_ () {*" to "*do_compile() {*", in the
attached recipe file, Compilation started but got stuck  "*/bin/sh: 1: bc:
not found*

*make[1]: *** [include/generated/timeconst.h] Error 127*
*make: *** [prepare0] Error 2*
*make: *** Waiting for unfinished jobs...."*

*Even I tried installing "*sudo apt-get install bc"* but still the same
issue as above, Kindly do the needful in resolving the above issue as am
stuck with the same issue from past 4 days*

*And I am even able to build kernel independently before integrating into
yocto project*

*References:*

*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.Logs:*

NOTE: linux-srini-4.14-r1 do_prepare_recipe_sysroot: Direct dependencies
are
['/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',
'virtual:native:/home/srinivasan/yocto_session_ws_2/poky/meta/recipes-devtools/automake/automake_1.16.1.bb:
do_populate_sysroot']
NOTE: linux-srini-4.14-r1 do_prepare_recipe_sysroot: Installed into
sysroot: ['libtool-native', 'gnu-config-native', 'autoconf-native',
'automake-native', 'texinfo-dummy-native', 'quilt-native', 'm4-native']
+ cd
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/git

NOTE: linux-srini-4.14-r1 do_compile: make -j 4 mrproper
+ oe_runmake mrproper
+ oe_runmake_call mrproper
+ bbnote make -j 4 mrproper
+ [ -p
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/temp/fifo.7174
]
+ printf %b\0 bbnote make -j 4 mrproper
+ make -j 4 mrproper

  CLEAN   .config

+ oe_runmake defconfig
+ oe_runmake_call defconfig
+ bbnote make -j 4 defconfig

NOTE: linux-srini-4.14-r1 do_compile: make -j 4 defconfig
+ [ -p
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/temp/fifo.7174
]
+ printf %b\0 bbnote make -j 4 defconfig
+ make -j 4 defconfig

  HOSTCC  scripts/basic/fixdep

  HOSTCC  scripts/kconfig/conf.o

  SHIPPED scripts/kconfig/zconf.tab.c

  SHIPPED scripts/kconfig/zconf.lex.c

  HOSTCC  scripts/kconfig/zconf.tab.o

  HOSTLD  scripts/kconfig/conf

*** Default configuration is based on 'x86_64_defconfig'

#
# configuration written to .config
#

+ oe_runmake
+ oe_runmake_call
+ bbnote make -j 4
+ [ -p
NOTE: linux-srini-4.14-r1 do_compile: make -j 4
 /home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/temp/fifo.7174
]
+ printf %b\0 bbnote make -j 4
+ make -j 4

scripts/kconfig/conf  --silentoldconfig Kconfig

  SYSTBL  arch/x86/entry/syscalls/../../include/generated/asm/syscalls_32.h

  SYSHDR
arch/x86/entry/syscalls/../../include/generated/asm/unistd_32_ia32.h

  SYSHDR
arch/x86/entry/syscalls/../../include/generated/asm/unistd_64_x32.h

  CHK     include/config/kernel.release

  SYSTBL  arch/x86/entry/syscalls/../../include/generated/asm/syscalls_64.h

  SYSHDR
arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_32.h

  SYSHDR
arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_64.h

  SYSHDR
arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_x32.h

  CHK     include/generated/uapi/linux/version.h

  UPD     include/generated/uapi/linux/version.h

  UPD     include/config/kernel.release

  HOSTCC  arch/x86/tools/relocs_32.o

  HOSTCC  arch/x86/tools/relocs_64.o

  HOSTCC  arch/x86/tools/relocs_common.o

  WRAP    arch/x86/include/generated/asm/clkdev.h

  WRAP    arch/x86/include/generated/asm/dma-contiguous.h

  WRAP    arch/x86/include/generated/asm/early_ioremap.h

  WRAP    arch/x86/include/generated/asm/mcs_spinlock.h

  WRAP    arch/x86/include/generated/asm/mm-arch-hooks.h

  CHK     include/generated/utsrelease.h

  UPD     include/generated/utsrelease.h

  CC      scripts/mod/empty.o

  HOSTCC  scripts/mod/mk_elfconfig

  HOSTLD  arch/x86/tools/relocs

  CC      scripts/mod/devicetable-offsets.s

  MKELF   scripts/mod/elfconfig.h

  CHK     scripts/mod/devicetable-offsets.h

  UPD     scripts/mod/devicetable-offsets.h

  HOSTCC  scripts/mod/sumversion.o

  HOSTCC  scripts/selinux/genheaders/genheaders

  HOSTCC  scripts/selinux/mdp/mdp

  CC      kernel/bounds.s

  HOSTCC  scripts/kallsyms

  HOSTCC  scripts/mod/modpost.o

  CHK     include/generated/timeconst.h

*/bin/sh: 1: bc: not found*

*make[1]: *** [include/generated/timeconst.h] Error 127*
*make: *** [prepare0] Error 2*
*make: *** Waiting for unfinished jobs....*

  HOSTCC  scripts/pnmtologo

  HOSTCC  scripts/conmakehash

  HOSTCC  scripts/sortextable

  HOSTCC  scripts/mod/file2alias.o

  HOSTLD  scripts/mod/modpost

+ 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.7174
]
+ 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: oe_runmake failed*
*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.7174)*
*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.7174*
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
| + cd
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/git
|
| + cd
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/build
| + do_compile
| + cd
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/git
| NOTE: make -j 4 mrproper
| + oe_runmake mrproper
| + oe_runmake_call mrproper
| + bbnote make -j 4 mrproper
| + [ -p
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/temp/fifo.7174
]
| + printf %b\0 bbnote make -j 4 mrproper
| + make -j 4 mrproper
|
| + oe_runmake mrproper
| + oe_runmake_call mrproper
| + bbnote make -j 4 mrproper
| + [ -p
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/temp/fifo.7174
]
| + printf %b\0 bbnote make -j 4 mrproper
| + make -j 4 mrproper
|   CLEAN   .config
|
|   CLEAN   .config
| + oe_runmake defconfig
| + oe_runmake_call defconfig
| + bbnote make -j 4 defconfig
|
| + oe_runmake defconfig
| + oe_runmake_call defconfig
| + bbnote make -j 4 defconfig
| NOTE: make -j 4 defconfig
| + [ -p
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/temp/fifo.7174
]
| + printf %b\0 bbnote make -j 4 defconfig
| + make -j 4 defconfig
|
| + [ -p
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/temp/fifo.7174
]
| + printf %b\0 bbnote make -j 4 defconfig
| + make -j 4 defconfig
|   HOSTCC  scripts/basic/fixdep
|
|   HOSTCC  scripts/basic/fixdep
|   HOSTCC  scripts/kconfig/conf.o
|
|   HOSTCC  scripts/kconfig/conf.o
|   SHIPPED scripts/kconfig/zconf.tab.c
|
|   SHIPPED scripts/kconfig/zconf.tab.c
|   SHIPPED scripts/kconfig/zconf.lex.c
|
|   SHIPPED scripts/kconfig/zconf.lex.c
|   HOSTCC  scripts/kconfig/zconf.tab.o
|
|   HOSTCC  scripts/kconfig/zconf.tab.o
|   HOSTLD  scripts/kconfig/conf
|
|   HOSTLD  scripts/kconfig/conf
| *** Default configuration is based on 'x86_64_defconfig'
|
| *** Default configuration is based on 'x86_64_defconfig'
| #
| # configuration written to .config
| #
|
| #
| # configuration written to .config
| #
| + oe_runmake
| + oe_runmake_call
| + bbnote make -j 4
| + [ -p
| + oe_runmake
| + oe_runmake_call
| + bbnote make -j 4
| + [ -pNOTE: make -j 4
|
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/temp/fifo.7174
]
| + printf %b\0 bbnote make -j 4
| + make -j 4
|
|
/home/srinivasan/yocto_session_ws_2/build/tmp/work/i586-poky-linux/linux-srini/4.14-r1/temp/fifo.7174
]
| + printf %b\0 bbnote make -j 4
| + make -j 4
| scripts/kconfig/conf  --silentoldconfig Kconfig
|
| scripts/kconfig/conf  --silentoldconfig Kconfig
|   SYSTBL
arch/x86/entry/syscalls/../../include/generated/asm/syscalls_32.h
|
|   SYSTBL
arch/x86/entry/syscalls/../../include/generated/asm/syscalls_32.h
|   SYSHDR
arch/x86/entry/syscalls/../../include/generated/asm/unistd_32_ia32.h
|
|   SYSHDR
arch/x86/entry/syscalls/../../include/generated/asm/unistd_32_ia32.h
|   SYSHDR
arch/x86/entry/syscalls/../../include/generated/asm/unistd_64_x32.h
|
|   SYSHDR
arch/x86/entry/syscalls/../../include/generated/asm/unistd_64_x32.h
|   CHK     include/config/kernel.release
|
|   CHK     include/config/kernel.release
|   SYSTBL
arch/x86/entry/syscalls/../../include/generated/asm/syscalls_64.h
|
|   SYSTBL
arch/x86/entry/syscalls/../../include/generated/asm/syscalls_64.h
|   SYSHDR
arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_32.h
|
|   SYSHDR
arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_32.h
|   SYSHDR
arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_64.h
|
|   SYSHDR
arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_64.h
|   SYSHDR
arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_x32.h
|
|   SYSHDR
arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_x32.h
|   CHK     include/generated/uapi/linux/version.h
|
|   CHK     include/generated/uapi/linux/version.h
|   UPD     include/generated/uapi/linux/version.h
|
|   UPD     include/generated/uapi/linux/version.h
|   UPD     include/config/kernel.release
|
|   UPD     include/config/kernel.release
|   HOSTCC  arch/x86/tools/relocs_32.o
|
|   HOSTCC  arch/x86/tools/relocs_32.o
|   HOSTCC  arch/x86/tools/relocs_64.o
|
|   HOSTCC  arch/x86/tools/relocs_64.o
|   HOSTCC  arch/x86/tools/relocs_common.o
|
|   HOSTCC  arch/x86/tools/relocs_common.o
|   WRAP    arch/x86/include/generated/asm/clkdev.h
|
|   WRAP    arch/x86/include/generated/asm/clkdev.h
|   WRAP    arch/x86/include/generated/asm/dma-contiguous.h
|
|   WRAP    arch/x86/include/generated/asm/dma-contiguous.h
|   WRAP    arch/x86/include/generated/asm/early_ioremap.h
|
|   WRAP    arch/x86/include/generated/asm/early_ioremap.h
|   WRAP    arch/x86/include/generated/asm/mcs_spinlock.h
|
|   WRAP    arch/x86/include/generated/asm/mcs_spinlock.h
|   WRAP    arch/x86/include/generated/asm/mm-arch-hooks.h
|
|   WRAP    arch/x86/include/generated/asm/mm-arch-hooks.h
|   CHK     include/generated/utsrelease.h
|
|   CHK     include/generated/utsrelease.h
|   UPD     include/generated/utsrelease.h
|
|   UPD     include/generated/utsrelease.h
|   CC      scripts/mod/empty.o
|
|   CC      scripts/mod/empty.o
|   HOSTCC  scripts/mod/mk_elfconfig
|
|   HOSTCC  scripts/mod/mk_elfconfig
|   HOSTLD  arch/x86/tools/relocs
|
|   HOSTLD  arch/x86/tools/relocs
|   CC      scripts/mod/devicetable-offsets.s
|
|   CC      scripts/mod/devicetable-offsets.s
|   MKELF   scripts/mod/elfconfig.h
|
|   MKELF   scripts/mod/elfconfig.h
|   CHK     scripts/mod/devicetable-offsets.h
|
|   CHK     scripts/mod/devicetable-offsets.h
|   UPD     scripts/mod/devicetable-offsets.h
|
|   UPD     scripts/mod/devicetable-offsets.h
|   HOSTCC  scripts/mod/sumversion.o
|
|   HOSTCC  scripts/mod/sumversion.o
|   HOSTCC  scripts/selinux/genheaders/genheaders
|
|   HOSTCC  scripts/selinux/genheaders/genheaders
|   HOSTCC  scripts/selinux/mdp/mdp
|
|   HOSTCC  scripts/selinux/mdp/mdp
|   CC      kernel/bounds.s
|
|   CC      kernel/bounds.s
|   HOSTCC  scripts/kallsyms
|
|   HOSTCC  scripts/kallsyms
|   HOSTCC  scripts/mod/modpost.o
|
|   HOSTCC  scripts/mod/modpost.o
|   CHK     include/generated/timeconst.h
|
|   CHK     include/generated/timeconst.h
*| /bin/sh: 1: bc: not found*
*| *
*| /bin/sh: 1: bc: not found*
*| make[1]: *** [include/generated/timeconst.h] Error 127*
*| make: *** [prepare0] Error 2*
*| make: *** Waiting for unfinished jobs....*
*| *
*| make[1]: *** [include/generated/timeconst.h] Error 127*
*| make: *** [prepare0] Error 2*
*| make: *** Waiting for unfinished jobs....*
|   HOSTCC  scripts/pnmtologo
|
|   HOSTCC  scripts/pnmtologo
|   HOSTCC  scripts/conmakehash
|
|   HOSTCC  scripts/conmakehash
|   HOSTCC  scripts/sortextable
|
|   HOSTCC  scripts/sortextable
|   HOSTCC  scripts/mod/file2alias.o
|
|   HOSTCC  scripts/mod/file2alias.o
|   HOSTLD  scripts/mod/modpost
|
|   HOSTLD  scripts/mod/modpost
| + 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.7174
]
| + 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.7174
]
| + 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: oe_runmake failed*
*| 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.7174)*
*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/0faa8e40/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/0faa8e40/attachment-0001.obj>


More information about the yocto-builds mailing list