Skip to main content
Visitor II
July 5, 2021
Solved

mozjs_60.9.0.bb:do_compile failed with exit code '1 - Cant Compile Distribution Package (SOLVED)

  • July 5, 2021
  • 3 replies
  • 3130 views

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)

0693W00000BcokoQAB.png0693W00000BcolgQAB.png 

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.

    This topic has been closed for replies.
    Best answer by marcossoares

    Changing the available RAM from 4.5GB to 6GB seems to solve the issue.

    3 replies

    Technical Moderator
    July 5, 2021

    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

    Visitor II
    July 5, 2021

    Hi Olivier, thank you for the information. I will do that now!

    marcossoaresAuthorAnswer
    Visitor II
    July 5, 2021

    Changing the available RAM from 4.5GB to 6GB seems to solve the issue.

    Visitor II
    January 26, 2022

    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.

    Visitor II
    March 30, 2022

    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...)