Hi,
I am building yocto for imx6dualite & machine type= imx6dlsabresd using following guide:
https://www.nxp.com/docs/en/user-guide/i.MX_Yocto_Project_User%27s_Guide_Linux.pdf
I am getting error while building gcc-runtime and getting following error :
| Makefile:609: recipe for target 'libstdc++.la' failed
| make[3]: *** [libstdc++.la] Error 1
| make[3]: Leaving directory '/media/jignesh/Data1/Data/Documents/Linux/Imx6NXP/Yocto/imx-yocto-bsp/temp/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/gcc-runtime/7.3.0-r0/gcc-7.3.0/build.arm-poky-linux-gnueabi.arm-poky-linux-gnueabi/arm-poky-linux-gnueabi/libstdc++-v3/src'
| Makefile:641: recipe for target 'all-recursive' failed
| make[2]: *** [all-recursive] Error 1
| make[2]: Leaving directory '/media/jignesh/Data1/Data/Documents/Linux/Imx6NXP/Yocto/imx-yocto-bsp/temp/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/gcc-runtime/7.3.0-r0/gcc-7.3.0/build.arm-poky-linux-gnueabi.arm-poky-linux-gnueabi/arm-poky-linux-gnueabi/libstdc++-v3/src'
| Makefile:510: recipe for target 'all-recursive' failed
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory '/media/jignesh/Data1/Data/Documents/Linux/Imx6NXP/Yocto/imx-yocto-bsp/temp/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/gcc-runtime/7.3.0-r0/gcc-7.3.0/build.arm-poky-linux-gnueabi.arm-poky-linux-gnueabi/arm-poky-linux-gnueabi/libstdc++-v3'
| Makefile:417: recipe for target 'all' failed
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /media/jignesh/Data1/Data/Documents/Linux/Imx6NXP/Yocto/imx-yocto-bsp/temp/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/gcc-runtime/7.3.0-r0/temp/log.do_compile.15648)
ERROR: Task (/media/jignesh/Data1/Data/Documents/Linux/Imx6NXP/Yocto/imx-yocto-bsp/sources/poky/meta/recipes-devtools/gcc/gcc-runtime_7.3.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1671 tasks of which 1670 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/media/jignesh/Data1/Data/Documents/Linux/Imx6NXP/Yocto/imx-yocto-bsp/sources/poky/meta/recipes-devtools/gcc/gcc-runtime_7.3.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
I have attached error log file for reference: Yocto_imx6_error.
Please help me to solve this error.Any input will be appreciated.
Thanks,
Jignesh Patel
Hello Jignesh Patel ,
If you are using ubuntu16.04 LTS(recommended by us), see below, please!
1. Installing software packages recommended in i.MX_Yocto_User's_Guide.pdf
If you have installed them, compliation hasn't passed yet, then try to install pacakges below, please!
2. other packages
$ sudo apt-get install gnupg
$ sudo apt-get install flex
$ sudo apt-get install bison
$ sudo apt-get install gperf
$ sudo apt-get install build-essential
$ sudo apt-get install zip
$ sudo apt-get install zlib1g-dev
$ sudo apt-get install libc6-dev
$ sudo apt-get install lib32ncurses5-dev
$ sudo apt-get install x11proto-core-dev
$ sudo apt-get install libx11-dev
$ sudo apt-get install lib32z1-dev
$ sudo apt-get install libgl1-mesa-dev
$ sudo apt-get install tofrodos
$ sudo apt-get install python-markdown
$ sudo apt-get install libxml2-utils
$ sudo apt-get install xsltproc
$ sudo apt-get install uuid-dev:i386 liblzo2-dev:i386
$ sudo apt-get install gcc-multilib g++-multilib
$ sudo apt-get install subversion
$ sudo apt-get install openssh-server openssh-client
$ sudo apt-get install uuid uuid-dev
$ sudo apt-get install zlib1g-dev liblz-dev
$ sudo apt-get install liblzo2-2 liblzo2-dev
$ sudo apt-get install lzop
$ sudo apt-get install git-core curl
$ sudo apt-get install u-boot-tools
$ sudo apt-get install mtd-utils
$ sudo apt-get install android-tools-fsutils
$ sudo apt-get install openjdk-8-jdk
$ sudo apt-get install device-tree-compiler
$ sudo apt-get install gdisk
$ sudo apt-get install liblz4-tool
$ sudo apt-get install m4
$ sudo apt-get install libz-dev
Then re-compile your yocto bsp, please!
Have a nice day!
BR,
Weidong
Thanks Weidong,
Yes, I am using Ubuntu16.04 LTS 64 bit.
I have also removed all the yocto folder and rebuild from scratch after installing packages.
Still getting the same issue after installing all dependancy apt-get packages.
BR,
Jignesh Patel
Hi Jignesh Patel,
I tested it last night, so sorry for my delay replay, see below, please!
------------------------
#cd ~/imx-yocto-bsp
#DISTRO=fsl-imx-x11 MACHINE=imx6dlsabresd source fsl-setup-release.sh -b build-x11
#bitbake fsl-image-validation-imx
Do you accept the EULA you just read? (y/n) y
EULA has been accepted.
Welcome to Freescale Community BSP
The Yocto Project has extensive documentation about OE including a
reference manual which can be found at:
http://yoctoproject.org/documentation
For more information about OpenEmbedded see their website:
http://www.openembedded.org/
You can now run 'bitbake <target>'
Common targets are:
core-image-minimal
meta-toolchain
meta-toolchain-sdk
adt-installer
meta-ide-support
Your build environment has been configured with:
MACHINE=imx6dlsabresd
SDKMACHINE=i686
DISTRO=fsl-imx-x11
EULA=
BSPDIR=
BUILD_DIR=.
meta-freescale directory found
weidong@ubuntu:~/imx-yocto-bsp/build$ bitbake fsl-image-validation-imx
NOTE: Your conf/bblayers.conf has been automatically updated.
weidong@ubuntu:~/imx-yocto-bsp/build$ bitbake fsl-image-validation-imx
NOTE: Your conf/bblayers.conf has been automatically updated.
Parsing recipes: 100% |#########################################################################################| Time: 0:01:40
Parsing of 2562 .bb files complete (0 cached, 2562 parsed). 3483 targets, 231 skipped, 8 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: Multiple providers are available for runtime ptpd (ptpd, ptpd-qoriq)
Consider defining a PREFERRED_RPROVIDER entry to match ptpd
NOTE: Multiple providers are available for runtime ptpd-dev (ptpd, ptpd-qoriq)
Consider defining a PREFERRED_RPROVIDER entry to match ptpd-dev
Build Configuration:
BB_VERSION = "1.38.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-16.04"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "imx6dlsabresd"
DISTRO = "fsl-imx-x11"
DISTRO_VERSION = "4.14-sumo"
TUNE_FEATURES = "arm armv7a vfp neon callconvention-hard cortexa9"
TARGET_FPU = "hard"
meta
meta-poky = "HEAD:c9bd4984f8f471ca2c43052714f4413ba99cf171"
meta-oe
meta-multimedia = "HEAD:8760facba1bceb299b3613b8955621ddaa3d4c3f"
meta-freescale = "HEAD:27ca94f8a4336790ba117b4298566f6820e7e74c"
meta-freescale-3rdparty = "HEAD:82037216280a39957fb4272581637abec734ad50"
meta-freescale-distro = "HEAD:f7e2216e93aff14ac32728a13637a48df436b7f4"
meta-bsp
meta-sdk = "HEAD:be96d9721c3e8ce3b30de8b68720815511e92c4d"
meta-browser = "HEAD:75640e14e325479c076b6272b646be7a239c18aa"
meta-gnome
meta-networking
meta-python
meta-filesystems = "HEAD:8760facba1bceb299b3613b8955621ddaa3d4c3f"
meta-qt5 = "HEAD:d4e7f73d04e8448d326b6f89908701e304e37d65"
Initialising tasks: 100% |######################################################################################| Time: 0:00:12
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: fsl-image-validation-imx-1.0-r0 do_rootfs: Intentionally failing postinstall scriptlets of ['matchbox-keyboard-im'] to defer them to first boot is deprecated. Please place them into pkg_postinst_ontarget_${PN} ().
If deferring to first boot wasn't the intent, then scriptlet failure may mean an issue in the recipe, or a regression elsewhere.
Details of the failure are in /home/weidong/imx-yocto-bsp/build/tmp/work/imx6dlsabresd-poky-linux-gnueabi/fsl-image-validation-imx/1.0-r0/temp/log.do_rootfs.
WARNING: fsl-image-validation-imx-1.0-r0 do_rootfs: [log_check] fsl-image-validation-imx: found 2 warning messages in the logfile:
[log_check] warning: %post(matchbox-keyboard-im-0.1.1-r0.cortexa9hf_neon) scriptlet failed, exit status 2
[log_check] WARNING: Intentionally failing postinstall scriptlets of ['matchbox-keyboard-im'] to defer them to first boot is deprecated. Please place them into pkg_postinst_ontarget_${PN} ().
NOTE: Tasks Summary: Attempted 8118 tasks of which 5853 didn't need to be rerun and all succeeded.
Summary: There were 2 WARNING messages shown.
weidong@ubuntu:~/imx-yocto-bsp/build$
The procedure of compiling BSP is very smooth, no any problem.
-------------------------
Have a nice day!
BR,
weidong