Error while building image using yocto project

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error while building image using yocto project

2,950 Views
dpandey1
Contributor I

I am using ubuntu 18.04 and IMX6-UL. I'm trying to build image (core-minimal-image) using command :
$ bitbake core-minimal-image
but after tens of minutes, I'm getting below errors. I followed the logs and tried to clean and then again I'm getting this error. Anybody please see this where i am doing wrong!! I will appreciate.
 
Thanks
 
ERROR: make-mod-scripts-1.0-r0 do_configure: oe_runmake failed
ERROR: make-mod-scripts-1.0-r0 do_configure: Execution of '/home//home/dir{}/dir{}/dir{}//imx-linux-zeus-5.4.24_2.1.0/build/tmp/work/imx6ulevk-poky-linux-gnueabi/make-mod-scripts/1.0-r0/temp/run.do_configure.16036' failed with exit code 1:
make: Entering directory '/home/dir{}/dir{}/dir{}/imx-linux-zeus-5.4.24_2.1.0/linux-5.4'
make[1]: Entering directory '/home//home/dir{}/dir{}/dir{}/l/imx-linux-zeus-5.4.24_2.1.0/build/tmp/work-shared/imx6ulevk/kernel-build-artifacts'
***
*** The source tree is not clean, please run 'make mrproper'
*** in /home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/linux-5.4
***
/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/linux-5.4/Makefile:512: recipe for target 'outputmakefile' failed
make[2]: *** [outputmakefile] Error 1
/home//home/dir{}/dir{}/dir{}//imx-linux-zeus-5.4.24_2.1.0/linux-5.4/Makefile:677: recipe for target '/home//home/dir{}/dir{}/dir{}/l/imx-linux-zeus-5.4.24_2.1.0/linux-5.4/include/config/auto.conf.cmd' failed
make[1]: *** [/home//home/dir{}/dir{}/dir{}//imx-linux-zeus-5.4.24_2.1.0/linux-5.4/include/config/auto.conf.cmd] Error 2
make[1]: *** [/home//home/dir{}/dir{}/dir{}//imx-linux-zeus-5.4.24_2.1.0/linux-5.4/include/config/auto.conf.cmd] Deleting file '/home//home/dir{}/dir{}/dir{}//ancs_scal/imx-linux-zeus-5.4.24_2.1.0/linux-5.4/include/config/tristate.conf'
make[1]: Leaving directory '/home//home/dir{}/dir{}/dir{}/imx-linux-zeus-5.4.24_2.1.0/build/tmp/work-shared/imx6ulevk/kernel-build-artifacts'
Makefile:179: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
make: Leaving directory '/home//home/dir{}/dir{}/dir{}//imx-linux-zeus-5.4.24_2.1.0/linux-5.4'
WARNING: exit code 1 from a shell command.
ERROR: Logfile of failure stored in: /home//home/dir{}/dir{}/dir{}//imx-linux-zeus-5.4.24_2.1.0/build/tmp/work/imx6ulevk-poky-linux-gnueabi/make-mod-scripts/1.0-r0/temp/log.do_configure.16036
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['virtual:native:/home//home/dir{}/dir{}/dir{}/l/imx-linux-zeus-5.4.24_2.1.0/sources/poky/meta/recipes-connectivity/openssl/openssl_1.1.1g.bb:do_populate_sysroot', '/home//home/dir{}/dir{}/dir{}//imx-linux-zeus-5.4.24_2.1.0/sources/poky/meta/recipes-devtools/gcc/gcc-cross_9.2.bb:do_populate_sysroot', 'virtual:native:/home//home/dir{}/dir{}/dir{}/l/imx-linux-zeus-5.4.24_2.1.0/sources/poky/meta/recipes-extended/bc/bc_1.07.1.bb:do_populate_sysroot', 'virtual:native:/home//home/dir{}/dir{}/dir{}//imx-linux-zeus-5.4.24_2.1.0/sources/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', '/home//home/dir{}/dir{}/dir{}/l/imx-linux-zeus-5.4.24_2.1.0/sources/poky/meta/recipes-devtools/gcc/gcc-runtime_9.2.bb:do_populate_sysroot', 'virtual:native:/home//home/dir{}/dir{}/dir{}/l/imx-linux-zeus-5.4.24_2.1.0/sources/poky/meta/recipes-support/lzop/lzop_1.04.bb:do_populate_sysroot', 'virtual:native:/home//home/dir{}/dir{}/dir{}//imx-linux-zeus-5.4.24_2.1.0/sources/poky/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot', '/home//home/dir{}/dir{}/dir{}//imx-linux-zeus-5.4.24_2.1.0/sources/poky/meta/recipes-kernel/kmod/kmod-native_git.bb:do_populate_sysroot', 'virtual:native:/home//home/dir{}/dir{}/dir{}//imx-linux-zeus-5.4.24_2.1.0/sources/poky/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_populate_sysroot', '/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/sources/poky/meta/recipes-devtools/quilt/quilt-native_0.66.bb:do_populate_sysroot', '/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/sources/poky/meta/recipes-core/glibc/glibc_2.30.bb:do_populate_sysroot', 'virtual:native:/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/sources/poky/meta/recipes-devtools/bison/bison_3.4.1.bb:do_populate_sysroot', '/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/sources/poky/meta/recipes-devtools/binutils/binutils-cross_2.32.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: ['openssl-native', 'lzop-native', 'kmod-native', 'lzo-native', 'python3-native', 'gtk-doc-native', 'sqlite3-native', 'gdbm-native', 'libffi-native', 'util-linux-native', 'libtirpc-native', 'libnsl2-native', 'bzip2-native', 'libcap-ng-native']
| NOTE: Skipping as already exists in sysroot: ['gcc-cross-arm', 'bc-native', 'pseudo-native', 'gcc-runtime', 'patch-native', 'pkgconfig-native', 'quilt-native', 'glibc', 'bison-native', 'binutils-cross-arm', 'libtool-native', 'automake-native', 'gnu-config-native', 'autoconf-native', 'flex-native', 'readline-native', 'texinfo-dummy-native', 'zlib-native', 'xz-native', 'gettext-minimal-native', 'mpfr-native', 'gmp-native', 'linux-libc-headers', 'libmpc-native', 'libgcc', 'attr-native', 'm4-native', 'ncurses-native']
| DEBUG: sed -e 's:^[^/]*/:/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/build/tmp/work/imx6ulevk-poky-linux-gnueabi/make-mod-scripts/1.0-r0/recipe-sysroot-native/:g' /home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/build/tmp/sysroots-components/x86_64/openssl-native/fixmepath /home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/build/tmp/sysroots-components/x86_64/python3-native/fixmepath /home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/build/tmp/sysroots-components/x86_64/gtk-doc-native/fixmepath | xargs sed -i -e 's:FIXMESTAGINGDIRTARGET:/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/build/tmp/work/imx6ulevk-poky-linux-gnueabi/make-mod-scripts/1.0-r0/recipe-sysroot:g; s:FIXMESTAGINGDIRHOST:/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/build/tmp/work/imx6ulevk-poky-linux-gnueabi/make-mod-scripts/1.0-r0/recipe-sysroot-native:g' -e 's:FIXME_PSEUDO_SYSROOT:/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/build/tmp/sysroots-components/x86_64/pseudo-native:g' -e 's:FIXME_HOSTTOOLS_DIR:/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/build/tmp/hosttools:g' -e 's:FIXME_PKGDATA_DIR:/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/build/tmp/pkgdata/imx6ulevk:g' -e 's:FIXME_PSEUDO_LOCALSTATEDIR:/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/build/tmp/work/imx6ulevk-poky-linux-gnueabi/make-mod-scripts/1.0-r0/pseudo/:g' -e 's:FIXME_LOGFIFO:/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/build/tmp/work/imx6ulevk-poky-linux-gnueabi/make-mod-scripts/1.0-r0/temp/fifo.16036:g'
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_configure
| NOTE: make HOSTCC=gcc -isystem/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/build/tmp/work/imx6ulevk-poky-linux-gnueabi/make-mod-scripts/1.0-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/build/tmp/work/imx6ulevk-poky-linux-gnueabi/make-mod-scripts/1.0-r0/recipe-sysroot-native/usr/lib -L/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/build/tmp/work/imx6ulevk-poky-linux-gnueabi/make-mod-scripts/1.0-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/build/tmp/work/imx6ulevk-poky-linux-gnueabi/make-mod-scripts/1.0-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/build/tmp/work/imx6ulevk-poky-linux-gnueabi/make-mod-scripts/1.0-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/build/tmp/work/imx6ulevk-poky-linux-gnueabi/make-mod-scripts/1.0-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/build/tmp/work/imx6ulevk-poky-linux-gnueabi/make-mod-scripts/1.0-r0/recipe-sysroot-native/lib -Wl,-O1 HOSTCPP=gcc -E CC=arm-poky-linux-gnueabi-gcc -mno-thumb-interwork -marm -fuse-ld=bfd -fmacro-prefix-map=/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/build/tmp/work/imx6ulevk-poky-linux-gnueabi/make-mod-scripts/1.0-r0=/usr/src/debug/make-mod-scripts/1.0-r0 -fdebug-prefix-map=/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/build/tmp/work/imx6ulevk-poky-linux-gnueabi/make-mod-scripts/1.0-r0=/usr/src/debug/make-mod-scripts/1.0-r0 -fdebug-prefix-map=/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/build/tmp/work/imx6ulevk-poky-linux-gnueabi/make-mod-scripts/1.0-r0/recipe-sysroot= -fdebug-prefix-map=/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/build/tmp/work/imx6ulevk-poky-linux-gnueabi/make-mod-scripts/1.0-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/build/tmp/work-shared/imx6ulevk/kernel-source=/usr/src/kernel LD=arm-poky-linux-gnueabi-ld.bfd AR=arm-poky-linux-gnueabi-ar -C /home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/build/tmp/work-shared/imx6ulevk/kernel-source O=/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/build/tmp/work-shared/imx6ulevk/kernel-build-artifacts scripts prepare
| make: Entering directory '/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/linux-5.4'
| make[1]: Entering directory '/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/build/tmp/work-shared/imx6ulevk/kernel-build-artifacts'
| ***
| *** The source tree is not clean, please run 'make mrproper'
| *** in /home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/linux-5.4
| ***
| /home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/linux-5.4/Makefile:512: recipe for target 'outputmakefile' failed
| make[2]: *** [outputmakefile] Error 1
| /home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/linux-5.4/Makefile:677: recipe for target '/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/linux-5.4/include/config/auto.conf.cmd' failed
| make[1]: *** [/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/linux-5.4/include/config/auto.conf.cmd] Error 2
| make[1]: *** [/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/linux-5.4/include/config/auto.conf.cmd] Deleting file '/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/linux-5.4/include/config/tristate.conf'
| make[1]: Leaving directory '/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/build/tmp/work-shared/imx6ulevk/kernel-build-artifacts'
| Makefile:179: recipe for target 'sub-make' failed
| make: *** [sub-make] Error 2
| make: Leaving directory '/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/linux-5.4'
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/build/tmp/work/imx6ulevk-poky-linux-gnueabi/make-mod-scripts/1.0-r0/temp/run.do_configure.16036' failed with exit code 1:
| make: Entering directory '/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/linux-5.4'
| make[1]: Entering directory '/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/build/tmp/work-shared/imx6ulevk/kernel-build-artifacts'
| ***
| *** The source tree is not clean, please run 'make mrproper'
| *** in /home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/linux-5.4
| ***
| /home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/linux-5.4/Makefile:512: recipe for target 'outputmakefile' failed
| make[2]: *** [outputmakefile] Error 1
| /home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/linux-5.4/Makefile:677: recipe for target '/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/linux-5.4/include/config/auto.conf.cmd' failed
| make[1]: *** [/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/linux-5.4/include/config/auto.conf.cmd] Error 2
| make[1]: *** [/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/linux-5.4/include/config/auto.conf.cmd] Deleting file '/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/linux-5.4/include/config/tristate.conf'
| make[1]: Leaving directory '/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/build/tmp/work-shared/imx6ulevk/kernel-build-artifacts'
| Makefile:179: recipe for target 'sub-make' failed
| make: *** [sub-make] Error 2
| make: Leaving directory '/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/linux-5.4'
| WARNING: exit code 1 from a shell command.
|
ERROR: Task (/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/sources/poky/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2415 tasks of which 2400 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/{dir}/{dir}/{dir}/imx-linux-zeus-5.4.24_2.1.0/sources/poky/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb:do_configure
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

0 Kudos
Reply
1 Reply

2,906 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi,

This may be an error caused by the incomplete installation of the ubuntu18.04 package. The following is for your reference:

# sudo apt-get install flex bison gperf build-essential zlib1g-dev
# sudo apt-get install lib32ncurses5-dev x11proto-core-dev
# sudo apt-get install libx11-dev lib32z1-dev libgl1-mesa-dev
# sudo apt-get install tofrodos python-markdown libxml2-utils xsltproc
# sudo apt-get install uuid-dev:i386 liblzo2-dev:i386 gcc-multilib g++-multilib
[commnent]
For Debian-10 uuid-dev:i386 liblzo2-dev:i386---> uuid-dev liblzo2-dev
# sudo apt-get install subversion openssh-server openssh-client uuid uuid-dev zlib1g-dev
# sudo apt-get install liblz-dev lzop liblzo2-2 liblzo2-dev git-core curl
# sudo apt-get install python3 python3-pip python3-pexpect python3-git python3-jinja2 pylint3
# sudo apt-get install u-boot-tools mtd-utils android-tools-fsutils
[commnent]
For ubuntu 20.04 LTS, don’t need android-tools-fsutils. So remove it, please!
# sudo apt-get install openjdk-8-jdk device-tree-compiler aptitude
[commnent]
For Debian-10 openjdk-8-jdk --- > default-jdk
# sudo apt-get install libcurl4-openssl-dev nss-updatedb
# sudo apt-get install chrpath texinfo gawk cpio diffstat
# sudo apt-get install libncursesw5-dev libssl-dev libegl1-mesa libncurses5
# sudo apt-get install net-tools python libsdl1.2-dev xterm socat
# sudo apt-get install icedtea-netx-common icedtea-netx

 

Have a nice day!

B.R,

Weidong

0 Kudos
Reply