ARM linker generates 6gb output file

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.

ARM linker generates 6gb output file

Postby yanicks90 » Sat Oct 26, 2019 11:06 am

Hello all

I have cross compiled for ARM a few times, but today I think I finally managed to properly enable proprietary codecs. However I was facing the following error at the end:
Code: Select all
[62166/62167] SOLINK ./libcef.so
FAILED: libcef.so libcef.so.TOC
python "../../build/toolchain/gcc_solink_wrapper.py" --readelf="arm-linux-gnueabihf-readelf" --nm="arm-linux-gnueabihf-nm" --sofile="./libcef.so" --tocfile="./libcef.so.TOC" --output="./libcef.so" -- ../../third_party/llvm-build/Release+Asserts/bin/clang++ -shared -Wl,-soname="libcef.so" -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-z,defs -Wl,--as-needed -fuse-ld=lld -Wl,--icf=all -Wl,--color-diagnostics --target=arm-linux-gnueabihf -Werror -Wl,-O2 -Wl,--gc-sections -Wl,--gdb-index -rdynamic -nostdlib++ --sysroot=../../build/linux/debian_sid_arm-sysroot -L../../build/linux/debian_sid_arm-sysroot/usr/local/lib/arm-linux-gnueabihf -L../../build/linux/debian_sid_arm-sysroot/lib/arm-linux-gnueabihf -L../../build/linux/debian_sid_arm-sysroot/usr/lib/arm-linux-gnueabihf -L../../build/linux/debian_sid_arm-sysroot/usr/lib/arm-linux-gnueabihf -o "./libcef.so" @"./libcef.so.rsp"
ld.lld: error: output file too large: 6148544136 bytes


Besides the error it also seems strange that the file is 6.1gb, it used to be a lot smaller. Has this happened to anyone before?

BR
Yanick
yanicks90
Techie
 
Posts: 19
Joined: Sat Oct 26, 2019 11:03 am

Re: ARM linker generates 6gb output file

Postby magreenblatt » Sat Oct 26, 2019 1:03 pm

What CEF version and GN_DEFINES? Are you creating a Debug or Release build?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: ARM linker generates 6gb output file

Postby yanicks90 » Sat Oct 26, 2019 1:24 pm

Oh right, here is the information:
Build via: ninja -C out/Release_GN_arm cefsimple chrome_sandbox
GN_DEFINES="use_sysroot=true is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome arm_float_abi=hard"

Versions:
~/cef_build/data/chromium/src$ git rev-parse HEAD -> c4c3a909aabdbb44b56a2699cc02a71200ed2fcd
~/cef_build/data/chromium/src/cef$ git rev-parse HEAD -> 4f07cba0112d26542d157ab0c0180ee2f022ea34

I manually edited src/build/features.gni to read:
Code: Select all
proprietary_codecs = true

because the build with just the GN_DEFINES still didnt work with mp4 files.
yanicks90
Techie
 
Posts: 19
Joined: Sat Oct 26, 2019 11:03 am

Re: ARM linker generates 6gb output file

Postby magreenblatt » Sat Oct 26, 2019 2:38 pm

Try adding symbol_level=1 to your GN defines. The supported values are documented here: https://cs.chromium.org/chromium/src/bu ... m&g=0&l=39
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: ARM linker generates 6gb output file

Postby yanicks90 » Sun Oct 27, 2019 12:11 am

It is linking again :)
yanicks90
Techie
 
Posts: 19
Joined: Sat Oct 26, 2019 11:03 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 215 guests