Build tdx-reference-multimedia-image on BSP 6 for iMX6ULL fails

Hello everyone.

I’m trying to build a reference image with Yocto Project for iMX6ULL using the BSP 6. I cloned the repo via the commando below.

$ repo init -u git://git.toradex.com/toradex-manifest.git -b kirkstone-6.x.y -m tdxref/default.xml
$ repo sync

It was able to building the tdx-reference-minimal-image. However, when I tried to build the tdx-reference-multimedia-image the console is closing when is highest the 85% without error message. I set the local.conf as:

MACHINE ?= "colibri-imx6ull"
ACCEPT_FSL_EULA = "1"

And run the command

bitbake tdx-reference-multimedia-image

I tried again, this time using the command

bitbake -k tdx-reference-multimedia-image

And I got an enormous message with the error message. In a total, the process is finalized with 6 errors.

Sstate summary: Wanted 602 Local 349 Mirrors 0 Missed 253 Current 2699 (57% match, 92% complete)
NOTE: Executing Tasks
ERROR: gtk+3-3.24.34-r0 do_compile: oe_runmake failed
ERROR: gtk+3-3.24.34-r0 do_compile: ExecutionError('/home/charlesdias/Project/DreaMau/Industrial_V2/Linux-Image/yocto-imx6ull-bsp6/oe-core/build/tmp/work/armv7at2hf-neon-imx-tdx-linux-gnueabi/gtk+3/3.24.34-r0/temp/run.do_compile.163675', 1, None, None)
ERROR: Logfile of failure stored in: /home/charlesdias/Project/DreaMau/Industrial_V2/Linux-Image/yocto-imx6ull-bsp6/oe-core/build/tmp/work/armv7at2hf-neon-imx-tdx-linux-gnueabi/gtk+3/3.24.34-r0/temp/log.do_compile.163675
Log data follows:
| DEBUG: Executing python function autotools_aclocals
.
.
.
i/gtk+3/3.24.34-r0/recipe-sysroot/usr/lib/Scrt1.o: in function `_start':
| /usr/src/debug/glibc/2.35-r0/git/csu/../sysdeps/arm/start.S:118: undefined reference to `main'
| collect2: error: ld returned 1 exit status
| make[4]: *** [Makefile:547: exampleapp] Error 1
| make[4]: Leaving directory '/home/charlesdias/Project/DreaMau/Industrial_V2/Linux-Image/yocto-imx6ull-bsp6/oe-core/build/tmp/work/armv7at2hf-neon-imx-tdx-linux-gnueabi/gtk+3/3.24.34-r0/build/examples/application8'
| make[3]: *** [Makefile:502: all] Error 2
| make[3]: Leaving directory '/home/charlesdias/Project/DreaMau/Industrial_V2/Linux-Image/yocto-imx6ull-bsp6/oe-core/build/tmp/work/armv7at2hf-neon-imx-tdx-linux-gnueabi/gtk+3/3.24.34-r0/build/examples/application8'
| make[2]: *** [Makefile:720: all-recursive] Error 1
| make[2]: Leaving directory '/home/charlesdias/Project/DreaMau/Industrial_V2/Linux-Image/yocto-imx6ull-bsp6/oe-core/build/tmp/work/armv7at2hf-neon-imx-tdx-linux-gnueabi/gtk+3/3.24.34-r0/build/examples'
| make[1]: *** [Makefile:743: all-recursive] Error 1
| make[1]: Leaving directory '/home/charlesdias/Project/DreaMau/Industrial_V2/Linux-Image/yocto-imx6ull-bsp6/oe-core/build/tmp/work/armv7at2hf-neon-imx-tdx-linux-gnueabi/gtk+3/3.24.34-r0/build'
| make: *** [Makefile:616: all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/charlesdias/Project/DreaMau/Industrial_V2/Linux-Image/yocto-imx6ull-bsp6/oe-core/build/../layers/openembedded-core/meta/recipes-gnome/gtk+/gtk+3_3.24.34.bb:do_compile) failed with exit code '1'
ERROR: qt3d-native-5.15.7+gitAUTOINC+bf79d391c0-r0 do_compile: oe_runmake failed
ERROR: qt3d-native-5.15.7+gitAUTOINC+bf79d391c0-r0 do_compile: ExecutionError('/home/charlesdias/Project/DreaMau/Industrial_V2/Linux-Image/yocto-imx6ull-bsp6/oe-core/build/tmp/work/x86_64-linux/qt3d-native/5.15.7+gitAUTOINC+bf79d391c0-r0/temp/run.do_compile.163940', 1, None, None)
ERROR: Logfile of failure stored in: /home/charlesdias/Project/DreaMau/Industrial_V2/Linux-Image/yocto-imx6ull-bsp6/oe-core/build/tmp/work/x86_64-linux/qt3d-native/5.15.7+gitAUTOINC+bf79d391c0-r0/temp/log.do_compile.163940
Log data follows:
| DEBUG: Executing shell function do_compile
.
.
.
| collect2: error: ld returned 1 exit status
| make[2]: *** [Makefile:1005: ../../bin/qgltf] Error 1
| make[2]: Leaving directory '/home/charlesdias/Project/DreaMau/Industrial_V2/Linux-Image/yocto-imx6ull-bsp6/oe-core/build/tmp/work/x86_64-linux/qt3d-native/5.15.7+gitAUTOINC+bf79d391c0-r0/build/tools/qgltf'
| make[1]: *** [Makefile:47: sub-qgltf-make_first] Error 2
| make[1]: Leaving directory '/home/charlesdias/Project/DreaMau/Industrial_V2/Linux-Image/yocto-imx6ull-bsp6/oe-core/build/tmp/work/x86_64-linux/qt3d-native/5.15.7+gitAUTOINC+bf79d391c0-r0/build/tools'
| make: *** [Makefile:47: sub-tools-make_first] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (virtual:native:/home/charlesdias/Project/DreaMau/Industrial_V2/Linux-Image/yocto-imx6ull-bsp6/oe-core/build/../layers/meta-qt5/recipes-qt/qt5/qt3d_git.bb:do_compile) failed with exit code '1'
ERROR: qtbase-5.15.7+gitAUTOINC+358aebba72-r0 do_compile: oe_runmake failed
ERROR: qtbase-5.15.7+gitAUTOINC+358aebba72-r0 do_compile: ExecutionError('/home/charlesdias/Project/DreaMau/Industrial_V2/Linux-Image/yocto-imx6ull-bsp6/oe-core/build/tmp/work/armv7at2hf-neon-imx-tdx-linux-gnueabi/qtbase/5.15.7+gitAUTOINC+358aebba72-r0/temp/run.do_compile.163600', 1, None, None)
ERROR: Logfile of failure stored in: /home/charlesdias/Project/DreaMau/Industrial_V2/Linux-Image/yocto-imx6ull-bsp6/oe-core/build/tmp/work/armv7at2hf-neon-imx-tdx-linux-gnueabi/qtbase/5.15.7+gitAUTOINC+358aebba72-r0/temp/log.do_compile.163600
.
.
.
.
| make: *** [Makefile:51: sub-src-make_first] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/charlesdias/Project/DreaMau/Industrial_V2/Linux-Image/yocto-imx6ull-bsp6/oe-core/build/../layers/meta-qt5/recipes-qt/qt5/qtbase_git.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 7621 tasks of which 7545 didn't need to be rerun and 3 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 5 seconds

Summary: 3 tasks failed:
  /home/charlesdias/Project/DreaMau/Industrial_V2/Linux-Image/yocto-imx6ull-bsp6/oe-core/build/../layers/openembedded-core/meta/recipes-gnome/gtk+/gtk+3_3.24.34.bb:do_compile
  virtual:native:/home/charlesdias/Project/DreaMau/Industrial_V2/Linux-Image/yocto-imx6ull-bsp6/oe-core/build/../layers/meta-qt5/recipes-qt/qt5/qt3d_git.bb:do_compile
  /home/charlesdias/Project/DreaMau/Industrial_V2/Linux-Image/yocto-imx6ull-bsp6/oe-core/build/../layers/meta-qt5/recipes-qt/qt5/qtbase_git.bb:do_compile
Summary: There was 1 WARNING message.
Summary: There were 6 ERROR messages, returning a non-zero exit code.

Thanks for your help!

Hi @CharlesDias,

Can you please check the RAM available on your computer and also the SWAP size?

I believe this is happening because the SWAP size of your desktop is too low. You can check that by running the following command:

$ sudo swapon

I suggested you increase the SWAP file if it’s too low and try again to bitbake. Let me know if that helps.

Best Regards,
Hiago.

Hi @hfranco.tx. Thanks for your reply.

I have 16 GB of DDRAM and 2GB of swap.

Which value of swap do you suggest? I change to 8GB of swap, but the problem continues. The same 6 errors happened. I need to clean up something or just rerun the command bitbake -k tdx-reference-multimedia-image?

Thanks!

Hi @hfranco.tx.

I made the following modification:

  • I increased the swap to 16GB.
  • I created the folder ${HOME}/oe-core.
  • Cloned the project to this new folder.

This value of swap is too much?

After that, I rerun the bitbake command and worked!

Build Configuration:
BB_VERSION           = "2.0.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-22.04"
TARGET_SYS           = "arm-tdx-linux-gnueabi"
MACHINE              = "colibri-imx6ull"
DISTRO               = "tdx-xwayland-upstream"
DISTRO_VERSION       = "6.2.0-devel-20230405191141+build.0"
TUNE_FEATURES        = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU           = "hard"
meta-toradex-nxp     = "HEAD:0e6c25e8c7ad105daf6c8737fbdee1c97c4edb41"
meta-freescale       = "HEAD:d9f77788e1902a7d999958575a955e701c1c1b61"
meta-freescale-3rdparty = "HEAD:f6fa0fd8783ce69d07feaad0b7ca6759b5a4d5d6"
meta-toradex-ti      = "HEAD:fe6310ad86d33fd049a1bae4b60eed7b044d6832"
meta-arm-toolchain   
meta-arm             = "HEAD:904f8e82c2772986fad500af4f72f5211a7ff831"
meta-ti-bsp          
meta-ti-extras       = "HEAD:2a5a0339d5bd28d6f6aedaf02a6aaa9b73a248e4"
meta-toradex-bsp-common = "HEAD:a969df0f7e2188271e80f67f97ab1a0bc0e67b9c"
meta-oe              
meta-filesystems     
meta-gnome           
meta-xfce            
meta-networking      
meta-multimedia      
meta-python          = "HEAD:82c75b466e55d7dca7a2364986ecb704cf63d141"
meta-freescale-distro = "HEAD:d5bbb487b2816dfc74984a78b67f7361ce404253"
meta-toradex-demos   = "HEAD:3ed48330988647960161aec76eb5c789cdff1d41"
meta-qt5             = "HEAD:aec1934cb2708236c033f2d205d5c3fbbebf7555"
meta-toradex-distro  = "HEAD:fc76e870b03b4920790560eeafd268af36f4d1e9"
meta-poky            = "HEAD:b662ed3d7a40d7c96f67b8a2337fd1eaa3f179a9"
meta                 = "HEAD:6b50713cd51002584915f46eb366b8667db210ea"

NOTE: Fetching uninative binary shim http://downloads.yoctoproject.org/releases/uninative/3.7/x86_64-nativesdk-libc-3.7.tar.xz;sha256sum=b110bf2e10fe420f5ca2f3ec55f048ee5f0a54c7e34856a3594e51eb2aea0570 (will check PREMIRRORS first)
Initialising tasks: 100% |##########################################################################################################################################################################| Time: 0:00:09
Sstate summary: Wanted 3301 Local 0 Mirrors 0 Missed 3301 Current 0 (0% match, 0% complete)
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 8077 tasks of which 0 didn't need to be rerun and all succeeded.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 9 seconds

Summary: There was 1 WARNING message.

Thanks a lot!

Hi @CharlesDias,

Happy that it works now! To compile QT, we recommend a minimum of 32GBs, so in this case, 16GBs of swap is recommended.

I highly recommend, if possible, upgrading the amount of RAM, since the SWAP will be slower (especially if you don’t have an SSD).

Best Regards,
Hiago.

Hi @CharlesDias !

Just a side note: we are adding this information about amount of RAM to build Reference Multimedia Image to our documentation :slight_smile:

Thanks for helping us to improve the documentation :slight_smile:

Have a nice day!

1 Like