bitbake chromium fails because of huge memory consumption

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

bitbake chromium fails because of huge memory consumption

3,211 Views
diegoperez
Contributor II

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?

xbuf-2.0
| 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/chromium_48.0.2548.0.bb, 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/chromium_48.0.2548.0.bb, 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

Labels (1)
0 Kudos
3 Replies

1,781 Views
diegoadrian
NXP Employee
NXP Employee

Hello,

Unfortunately, chromium is not supported for us.  For that, you need to go directly to Google. I apologize for this inconvenient.

Best Regards,

Diego.

0 Kudos

1,781 Views
ambika
Contributor II

Hello Diego Perez,


I am also facing the same problem when doing bitbake chromium package.

I'm trying to build again after creating the swap file.


Below links may help you

gcc - Why is the linker terminating on me? when i build CLang - Stack Overflow 

[meta-freescale] Error: Adding chromium browser + fsl-image-gui (Yocto - Dora)


You can create swap file by following steps from this link.


Cheers,

Ambika.

0 Kudos

1,781 Views
diegoperez
Contributor II

Hello Ambika,

Thanks for share your links.

I have 12 GB and I put 8GB for linux under virtual box, but the result is the same, ld fail.

Do you have best result with swap file?

BR

Diego.

0 Kudos