AnsweredAssumed Answered

bitbake chromium fails because of huge memory consumption

Question asked by Diego Perez on Oct 11, 2017
Latest reply on Nov 7, 2017 by Diego Perez

I am trying to compile chromium using “bitbake chromium”. I followed the section “5.6.6 Chromium Browser on X11, XWayland and Wayland” of document “i.MX Yocto Project User's Guide”.

The result is a lot of GBytes of disk usage and a lot of GBytes of ram usage. The compilation fails cause of a excessive RAM consumption when ld works.

I paste the last lines of “bitbake chromium” and dmesg lines.

Anybody has an idea to solve this problem?


| collect2: fatal error: ld terminated with signal 9 [Killed]
| compilation terminated.
| ninja: build stopped: subcommand failed.
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/default/fsl-release-bsp/build-x11_qt/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/chromium/48.0.2548.0-r0/temp/log.do_compile.2746)
ERROR: Task 7 (/home/default/fsl-release-bsp/sources/meta-browser/recipes-browser/chromium/, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2464 tasks of which 2463 didn't need to be rerun and 1 failed.
No currently running tasks (2116 of 2471)

Summary: 1 task failed:
/home/default/fsl-release-bsp/sources/meta-browser/recipes-browser/chromium/, do_compile
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
[ 1223.083073] Out of memory: Kill process 2769 (ld) score 896 or sacrifice child
[ 1223.083087] Killed process 2769 (ld) total-vm:9233528kB, anon-rss:9164624kB, file-rss:0kB