2021-07-05 03:16 AM
I've followed all the steps from:
https://wiki.st.com/stm32mpu/wiki/STM32MP15_Discovery_kits_-_Starter_Package
https://wiki.st.com/stm32mpu/wiki/PC_prerequisites
https://wiki.st.com/stm32mpu/wiki/STM32MP1_Distribution_Package
Creating openstlinux-5.10-dunfell-mp1-21-03-31 distribution installation,
with bitbake st-image-weston, error rises:
(..layers/meta-openembedded/meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs_60.9.0.bb:do_compile) failed with exit code '1'
Tried:
bitbake -b mozjs -D -f
bitbake mozjs -c cleanall
bitbake mozjs -c compile
but the same error occurs.
Also tried these solutions from the forum, without any success (the error is the same):
mozjs60.9.0.bb returens error while compile (st.com)
mozjs_60.9.0.bb:do_compile failed with exit code '1 (st.com)
This is my 3rd attempt with a fresh Virtual Machine (Ubuntu 20.04.2.0 LTS), i'm pretty sure I've followed all the steps.
For the Virtual Machine I have the following specs:
Cores: 6
Ram: 4.5GB
Disk Space: 300GB
OS: Ubuntu 20.04
Need help
EDIT (solved):
Changing the available RAM from 4.5GB to 6GB seems to solve the issue.
Solved! Go to Solution.
2021-07-05 07:01 AM
Changing the available RAM from 4.5GB to 6GB seems to solve the issue.
2021-07-05 06:50 AM
Hi @marcossoares ,
Thanks for your post and the update for resolution, but please, next time do not use the EDIT manner and rather post a comment you can tag "best answer".
Thanks !
Olivier
2021-07-05 07:01 AM
Hi Olivier, thank you for the information. I will do that now!
2021-07-05 07:01 AM
Changing the available RAM from 4.5GB to 6GB seems to solve the issue.
2022-01-26 02:47 AM
Increasing the available RAM to 8GB did not solve the issue for me. Looking at dmesg I still had "Out of memory" logs, which killed the bitbake process.
However, as a further step I had to increase the swap memory as well. This solved the issue.
2022-03-30 02:56 PM
Hi,
I'd like to leave this here as reference.
I had a similar error when trying to build the st-image-weston.
After that I tried bitbake mozjs with a successful result. Provided that such a package is now compiled in the build directory, I was able to run again bitbake st-image-weston
The problem might still be memory and this answer just validates that (although I have 16GB...)