mozjs_60.9.0.bb:do_compile failed with exit code '1 - Cant Compile Distribution Package (SOLVED)
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 compilebut 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.
