cancel
Showing results for 
Search instead for 
Did you mean: 

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

marcossoares
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
marcossoares
Associate II

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

View solution in original post

5 REPLIES 5
Olivier GALLIEN
ST Employee

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

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

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

marcossoares
Associate II

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

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.

bodashmas
Associate II

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