FAILED: libcef.so libcef.so.TOC, LLVM ERROR: out of memory

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

FAILED: libcef.so libcef.so.TOC, LLVM ERROR: out of memory

Postby ajitchavan » Mon Aug 29, 2022 6:22 am

Hi Team,

I am building CEF 104 (5112) using
Code: Select all
ninja -C out/Debug_GN_x64 cef chrome_sandbox
, but at end I am getting out of memory error as below. I am having 32 GB RAM server.

Code: Select all
[38760/53936] CXX obj/ui/compositor/compositor/layer_delegate.o
[38763/53936] CXX obj/ui/compositor/compositor/layer_type.o
[47157/53936] CXX obj/third_party/blink/renderer/core/core/frame_serializer.o
[53932/53936] SOLINK ./libcef.so
FAILED: libcef.so libcef.so.TOC
python3 "../../build/toolchain/gcc_solink_wrapper.py" --readelf="../../third_party/llvm-build/Release+Asserts/bin/llvm-readelf" --nm="../../third_party/llvm-build/Release+Asserts/bin/llvm-nm"  --sofile="./libcef.so" --tocfile="./libcef.so.TOC" --output="./libcef.so" -- ../../third_party/llvm-build/Release+Asserts/bin/clang++ -shared -Wl,-soname="libcef.so" -Werror -fuse-ld=lld -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--icf=all -Wl,--color-diagnostics -Wl,-mllvm,-instcombine-lower-dbg-declare=0 -flto=thin -Wl,--thinlto-jobs=all -Wl,--thinlto-cache-dir=thinlto-cache -Wl,--thinlto-cache-policy=cache_size=10\%:cache_size_bytes=40g:cache_size_files=100000 -Wl,-mllvm,-import-instr-limit=30 -fwhole-program-vtables -Wl,--no-call-graph-profile-sort -m64 -no-canonical-prefixes -Wl,-O2 -Wl,--gc-sections -Wl,--gdb-index -rdynamic -Wl,-z,defs -Wl,--as-needed -nostdlib++ -Wl,--lto-O0 -fsanitize=cfi-vcall -fsanitize=cfi-icall -o "./libcef.so" @"./libcef.so.rsp"
LLVM ERROR: out of memory
Allocation failed
PLEASE submit a bug report to https://crbug.com and run tools/clang/scripts/process_crashreports.py (only works inside Google) which will upload a report and include the crash backtrace.
LLVM ERROR: out of memory
Allocation failed
clang++: error: unable to execute command: Aborted (core dumped)
clang++: error: linker command failed due to signal (use -v to see invocation)
ninja: build stopped: subcommand failed.

/
ajitchavan
Techie
 
Posts: 27
Joined: Mon Mar 16, 2020 7:03 am

Re: FAILED: libcef.so libcef.so.TOC, LLVM ERROR: out of memo

Postby magreenblatt » Mon Aug 29, 2022 9:41 am

What OS? What GN_DEFINES?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: FAILED: libcef.so libcef.so.TOC, LLVM ERROR: out of memo

Postby magreenblatt » Mon Aug 29, 2022 10:30 am

magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: FAILED: libcef.so libcef.so.TOC, LLVM ERROR: out of memo

Postby ajitchavan » Mon Aug 29, 2022 10:58 am

We are using cef 102 already. we are just upgrading it with same process we followed for cef 102 and 100,92 and all. but for 104 upgrade getting this error.

OS- ubuntu 20
GN_DEFINES=is_official_build=true\ proprietary_codecs=true\ ffmpeg_branding="Chrome"\ use_pulseaudio=true
Last edited by ajitchavan on Thu Sep 08, 2022 12:25 am, edited 1 time in total.
ajitchavan
Techie
 
Posts: 27
Joined: Mon Mar 16, 2020 7:03 am

Re: FAILED: libcef.so libcef.so.TOC, LLVM ERROR: out of memo

Postby magreenblatt » Mon Aug 29, 2022 11:20 am

magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: FAILED: libcef.so libcef.so.TOC, LLVM ERROR: out of memo

Postby ajitchavan » Wed Sep 07, 2022 10:32 am

magreenblatt wrote:Try the recommended GN_DEFINES: https://bitbucket.org/chromiumembedded/ ... figuration


With recommended GN_DEFINES I do not get any error. but when I use GN_DEFINES as per project requirement then it fails with "out of memory" error. Below are the GN_DEFINES we use (update.sh).
Code: Select all
update.sh
#!/bin/bash
export GN_DEFINES=is_official_build=true\ proprietary_codecs=true\ ffmpeg_branding="Chrome"\ use_pulseaudio=true
python3 ../automate/automate-git.py --download-dir=/home/maint/code/chromium_git --depot-tools-dir=/home/maint/code/depot_tools --force-update --no-distrib --no-build --branch=5112


and create.sh as below.
Code: Select all
 create.sh
#!/bin/bash
export GN_DEFINES=is_official_build=true\ proprietary_codecs=true\ ffmpeg_branding="Chrome"\ use_pulseaudio=true\ use_gnome_keyring=false\ use_vaapi=false
./cef_create_projects.sh


I have tried build with 60 GB RAM, 24 CPU, also 8GB swap but still getting out of memory error.
And if I use recommended GN_DEFINES build is successful on a machine with 32GB RAM 8CPU and 2GB swap.

Can you please check if there is any issue with the GN_DEFINES that I am using. As the same GN_DEFINES worked for cef 102, 92 and previous versions.

Is there any change in GN_DEFINES required to build cef-104 and 105 ?
ajitchavan
Techie
 
Posts: 27
Joined: Mon Mar 16, 2020 7:03 am


Return to Support Forum

Who is online

Users browsing this forum: Majestic-12 [Bot] and 103 guests

cron