When building the BSP Multimedia reference image, the Qt recipes in particular have a very high demand in terms of RAM and CPU during their build process, and some files related to the compilation step may become corrupted if a performance bottleneck happens.
As a result of this, some Qt recipes can fail during the compilation task in a very similar way you reported. To solve this you can try cleaning the sstate cache for each failed recipe, like this:
bitbake -c cleansstate <recipe_name>
Or even cleaning the downloaded sources along with the cache:
bitbake -c cleanall <recipe_name>
Some other things to keep in mind:
After cleaning the cache, try building each failed recipe individually if you want to be sure that they’re now building correctly e.g.:
bitbake -k qtwebsockets
If rebuilding after cleaning the cache still gives the same error for a particular recipe then its dependencies may have been built corrupted and mistakenly approved by bitbake (I have seen this happen before). In this case you should first try cleaning the cache related to the dependencies and rebuild them.
After doing the above, try building tdx-reference-multimedia-image again and see if it works.
I’m currently trying to generate tdx-reference-multimedia-image again.
With the suggestion of @lucas_a.tx I could solve all the errors reported above.
But a new error appears:
ERROR: Task (/media/lu/Toradex/oe-core/build/…/layers/meta-qt5/recipes-qt/qt5/qtwebglplugin_git.bb:do_compile) failed with exit code ‘1’