Bitbake qt3d do_compile failed

Dear Community!

I tried to create the LXQT-image with bitbake. I pulled the LinuxImage3.0 revision, configured the script to Colibri iMX6 target. Almost everything built successfully, but the qt3d always failed.
I tried the bitbake -c cleansstate qt3s, then rebuild, but the same error occured:

make[1]: Leaving directory '/home/barracuda/oe-core/build/tmp/work/armv7at2hf-neon-mx6qdl-tdx-linux-gnueabi/qt3d/5.11.3+gitAUTOINC+cd3e621ccf-r0/build/tests'
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/barracuda/oe-core/build/tmp/work/armv7at2hf-neon-mx6qdl-tdx-linux-gnueabi/qt3d/5.11.3+gitAUTOINC+cd3e621ccf-r0/temp/log.do_compile.4424)
ERROR: Task (/home/barracuda/oe-core/build/../layers/meta-qt5/recipes-qt/qt5/qt3d_git.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 9303 tasks of which 9295 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
 
Summary: 1 task failed:
  /home/barracuda/oe-core/build/../layers/meta-qt5/recipes-qt/qt5/qt3d_git.bb:do_compile

What am I missing, or is it even possible to build the LXQT-image?
A tried to raise the swap memory from 2GB to 2.5GB, but I think the 2GB should be enough too.

Thank you!
Peter

Hi @peter

Thanks for writing to the Toradex Community!

I pulled the LinuxImage3.0 revision, configured the script to Colibri iMX6 target.

What changes have you done to local.conf and bblayers.conf?
Which command did you use to launch the build?

A tried to raise the swap memory from 2GB to 2.5GB, but I think the 2GB should be enough too.

Do you mean on your host? Could your provide the hardware and software configuration of your host?

Best regards,
Jaski

Hi!

My build computer is Ubuntu 18.04, core i5-4460 cpu with 8GB ram. I successfully built the latest boot2qt image, so I think the computer is enought for this task. But I wanted to try to build the LXQT version because of the windowing system.

I modified the layers.conf the following:
uncommented the colibriu-imx6 target.
and added theese lines:

IMAGE_INSTALL_append = " qtserialport qtcharts qtvirtualkeyboard"

PACKAGECONFIG_append_pn-qtbase = " sql-sqlite"

PACKAGECONFIG_FONTS_append_pn-qtbase = " fontconfig"

ACCEPT_FSL_EULA = "'1"

And i left intact the bblayers.conf.

Yes a tried to add more swap memory in my host, where I build this image.

Hi @peter

Thanks for your Input. We are building lxqt images every night, so the build should work.

Being said that, could you share the error log ( /home/barracuda/oe-core/build/tmp/work/armv7at2hf-neon-mx6qdl-tdx-linux-gnueabi/qt3d/5.11.3+gitAUTOINC+cd3e621ccf-r0/temp/log.do_compile.4424 )?

Thanks and best regards,
Jaski

Dear @jaski.tx !

I looked into the log file, and i found the following error:

virtual memory exhausted: Cannot allocate memory

So I raised the swap file to 8Gb. Now I built the image with 8Gb physical and 8Gb swap memory, and now it succeded.

Thank you for the tip!
Regards,
Peter

Hi Peter,
Perfect that it works. Thanks for the feedback.

Best regards,
Jaski