while building icefish_9.0.3 i got error
Description
Environment
Attachments
- 22 Apr 2022, 05:16 AM
Activity
José Dapena Paz April 22, 2022 at 11:11 AM
Count only your available RAM, not swap. Otherwise it is goint to be really tight.
I think you could be OK with something like -l12 -j 8
, but still there could be peaks that would make swap enter often, so -l 12 -j 6
could be required.
Jairaj NP April 22, 2022 at 10:24 AM(edited)
I have 12 core hardware device having 16 GB RAM and 16 GB swap memory is it possible to build the AGL build for chromium ?
i added PARALLEL_MAKE_pn-chromium68= "-l 12 -j 10" in local.conf file is it right?
Please help me.....
José Dapena Paz April 22, 2022 at 7:40 AM
Yes, this is RAM issue. For building Chromium you need RAM, at a rate of 2-3GB per compilation core. This is only for compilation, then you need more RAM for the rest of the system, and other compilation activities (i.e. other Yocto tasks).
A mitigation for that I use here (40 cores, but 64GB of RAM), is limiting the number of cores AND the creation of build activities when workload is high:
PARALLEL_MAKE_pn-chromium = "-l 40 -j 30"
In your case it would be PARALLEL_MAKE_pn-chromium68
. About the numbers, -l
would match the core numbers, and -j
should be the minimum of half the number of concurrent threads in your system and half the GB of RAM available. Some examples:
2 cores with hyperthreading, so 4 concurrent threads, 8GB RAM:
-l 4 -j 4
(default value).4 cores with hyperthreading, so 8 concurrent threads, 24GB RAM:
-l 8 -j 8
10 cores with hyperthreading, so 20 concurrent threads, 32GB RAM:
-l 20 -j 16
Closing as WONTFIX. @Jan-Simon Moeller < Is there anything that can be done at recipe level to apply these heuristics automatically but still allowing to override from local.dev.conf
?
Jairaj NP April 22, 2022 at 5:52 AM
when i run the "dmesg" command in terminal i got this logs
[ 945.897023]Out of memory: Killed process 7033 (cc1plus) total-vm:1655832kB, anon-rss:1606252kB, file-rss:0kB, shmem-rss:0kB, UID:1000 pgtables:3272kB oom_score_adj:0
[ 945.936398] oom_reaper: reaped process 7033 (cc1plus), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB
Is it the RAM issue?
Jairaj NP April 22, 2022 at 5:17 AM
I have attached the complete log file of the error above.
after giving command:bitbake agl-demo-platform-html5
i got this error.
OS version:ubuntu 18.04.6
WARNING: No bb files matched BBFILE_PATTERN_agl-distro '^/home/vecrear/agl/meta-agl/meta-agl-distro/'
ERROR: chromium68-git-r0 do_compile: Function failed: do_compile (log file is located at /home/vecrear/agl/build/tmp/work/aarch64-agl-linux/chromium68/git-r0/temp/log.do_compile.2390)
ERROR: Logfile of failure stored in: /home/vecrear/agl/build/tmp/work/aarch64-agl-linux/chromium68/git-r0/temp/log.do_compile.2390
after some logs
.
.
.
ERROR: Task (/home/vecrear/agl/meta-agl-devel/meta-agl-profile-graphical-html5/recipes-wam/chromium/chromium68_git.bb:do_compile) failed with exit code '1'