IMX6 yocto image build failed

HI,I’m trying to build yocto project for imx6 processor in linux Ubuntu 18.04.5 LTS.

Followed the sequence of instructions and commands mentioned in below link

Getting errors for some recipes(packages) libxkbfile,libxkbfile,opencv,mozjs and qtbase_git… below is the error message summary

Summary: 5 tasks failed:
  /home/medha/Desktop/IMX_BUILD/oe-core/build/../layers/openembedded-core/meta/recipes-graphics/xorg-lib/libxkbfile_1.1.0.bb:do_package
  /home/medha/Desktop/IMX_BUILD/oe-core/build/../layers/openembedded-core/meta/recipes-core/glibc/libxkbfile_2.31.bb:do_package_write_ipk
  /home/medha/Desktop/IMX_BUILD/oe-core/build/../layers/meta-openembedded/meta-oe/recipes-support/opencv/opencv_4.1.0.bb:do_compile
  /home/medha/Desktop/IMX_BUILD/oe-core/build/../layers/meta-openembedded/meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs_60.9.0.bb:do_compile
  /home/medha/Desktop/IMX_BUILD/oe-core/build/../layers/meta-qt5/recipes-qt/qt5/qtbase_git.bb:do_compile
Summary: There were 7 ERROR messages shown, returning a non-zero exit code.


opencv error -->| ninja: build stopped: subcommand failed.
| WARNING: exit code 1 from a shell command.
| 
ERROR: Task (/home/medha/Desktop/IMX_BUILD/oe-core/build/../layers/meta-openembedded/meta-oe/recipes-support/opencv/opencv_4.1.0.bb:do_compile) failed with exit code '1'

Please help me on this, Thanks in advance.

Thank and regards
Narayana Swamy M

Hi @narayanaswamym ,

Welcome to Toradex Community!

Could you please provide your host machine configuration ?
Did you try this solutions ?

Since , qtbase package can take much load on your PC I would suggest you to build it separately and try.

Hi @deven.tx ,

Thank you for your quick response,

My host machine configuration is as follows
Ubuntu 18.04.5 LTS, processor "Intel® Core™ i3-8100 CPU @ 3.60GHz × 4 "
RAM:4GB
Free Disk space available 60GB.

I tried the solutions available in “Build a Reference Image with Yocto Project/OpenEmbedded | Toradex Developer Center”.
When i build separately for all failed packages some are build successfully except for opencv,mozjs and qt5.

Hi @narayanaswamym ,

It looks like there is limitation on your PC. I would suggest you to, go for more RAM and Disk space. After that again try to build it.

Regards,
Deven

OK, I’ll try and post the status here after upgrading my PC configuration

Thanks. It will be great.

Regards
Deven

After upgrading my PC configuration all looks good.

Thank you.