llvmgold.so related CEF building error

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.

llvmgold.so related CEF building error

Postby shins » Sat Jul 29, 2017 12:23 am

Hello.
I have a problem when CEF Building..
First of all, I followed instructions in Bitbucket CEF Wiki(Master Build Quick-Start)...
Whenever I executed following command,
Code: Select all
python automate-git.py --download-dir=/home/shins/CEF_for_Ubuntu/x64 --depot-tools-dir=/home/shins/CEF_for_Ubuntu/depot_tools --branch=3071 --minimal-distrib --client-distrib --force-clean --no-debug-build --x64-build --build-target=cefsimple --force-update


I always stuck because of following error.

Code: Select all
-------- Running "ninja -C out/Release_GN_x64 cefsimple chrome_sandbox" in "/home/shins/CEF_for_Ubuntu/x64/chromium/src"...
ninja: Entering directory `out/Release_GN_x64'

[2866/28369] LINK ./chrome_sandbox
FAILED: chrome_sandbox chrome_sandbox.map.gz

python "../../build/toolchain/gcc_link_wrapper.py" --output="./chrome_sandbox" --map-file "./chrome_sandbox.map.gz" -- ../../third_party/llvm-build/Release+Asserts/bin/clang++ -Wl,--fatal-warnings -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -Wl,--no-as-needed -lpthread -Wl,--as-needed -fuse-ld=gold -B../../third_party/binutils/Linux_x64/Release/bin -Wl,--threads -Wl,--thread-count=4 -Wl,--icf=all -flto -fwhole-program-vtables -Wl,-plugin-opt,O1 -Wl,-plugin-opt,-function-sections -m64 -pthread -Werror -Wl,-O1 -Wl,--gc-sections -Wl,-rpath-link=. -Wl,--disable-new-dtags -o "./chrome_sandbox" -Wl,--start-group @"./chrome_sandbox.rsp"  -Wl,--end-group  -ldl -lrt

../../third_party/binutils/Linux_x64/Release/bin/ld.gold: error: /home/shins/CEF_for_Ubuntu/x64/chromium/src/third_party/llvm-build/Release+Asserts/bin/../lib/LLVMgold.so: could not load plugin library: /home/shins/CEF_for_Ubuntu/x64/chromium/src/third_party/llvm-build/Release+Asserts/bin/../lib/LLVMgold.so: cannot open shared object file: No such file or directory
../../third_party/binutils/Linux_x64/Release/bin/ld.gold: error: obj/sandbox/linux/chrome_sandbox/process_util_linux.o:1:3: invalid character
../../third_party/binutils/Linux_x64/Release/bin/ld.gold: error: obj/sandbox/linux/chrome_sandbox/process_util_linux.o:1:3: syntax error, unexpected $end
../../third_party/binutils/Linux_x64/Release/bin/ld.gold: error: obj/sandbox/linux/chrome_sandbox/process_util_linux.o: not an object or archive
../../third_party/binutils/Linux_x64/Release/bin/ld.gold: error: obj/sandbox/linux/chrome_sandbox/sandbox.o:1:3: invalid character
../../third_party/binutils/Linux_x64/Release/bin/ld.gold: error: obj/sandbox/linux/chrome_sandbox/sandbox.o:1:3: syntax error, unexpected $end
../../third_party/binutils/Linux_x64/Release/bin/ld.gold: error: obj/sandbox/linux/chrome_sandbox/sandbox.o: not an object or archive

/usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../x86_64-linux-gnu/crt1.o:function _start: error: undefined reference to 'main'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[2875/28369] CXX obj/sandbox/linux/sandbox_services/thread_helpers.o
ninja: build stopped: subcommand failed.

Traceback (most recent call last):
  File "automate-git.py", line 1107, in <module>
    if options.buildlogfile else None)
  File "automate-git.py", line 55, in run
    args, cwd=working_dir, env=env, shell=(sys.platform == 'win32'))
  File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja', '-C', 'out/Release_GN_x64', 'cefsimple', 'chrome_sandbox']' returned non-zero exit status 1


How can I solve this problem...?
Please Help me..
Sorry for bad English..
shins
Newbie
 
Posts: 3
Joined: Sat Jul 29, 2017 12:13 am

Re: llvmgold.so related CEF building error

Postby magreenblatt » Sat Jul 29, 2017 11:42 am

What Linux distro are you building on? What GN_DEFINES value are you using?
magreenblatt
Site Admin
 
Posts: 12404
Joined: Fri May 29, 2009 6:57 pm

Re: llvmgold.so related CEF building error

Postby shins » Sat Jul 29, 2017 10:43 pm

I'm using ubuntu 16.04 64bit and GN_DEFINES is shown below.

Code: Select all
export CEF_USE_GN=1
export GN_DEFINES="is_official_build=true is_debug=false proprietary_codecs=true ffmpeg_branding=Chrome"
shins
Newbie
 
Posts: 3
Joined: Sat Jul 29, 2017 12:13 am

Re: llvmgold.so related CEF building error

Postby magreenblatt » Sat Jul 29, 2017 10:59 pm

Were there any errors earlier in the build process, like during the gclient sync step?
magreenblatt
Site Admin
 
Posts: 12404
Joined: Fri May 29, 2009 6:57 pm

Re: llvmgold.so related CEF building error

Postby shins » Sat Jul 29, 2017 11:06 pm

No. there wasn't.
This error only occurred while building ninja process.
shins
Newbie
 
Posts: 3
Joined: Sat Jul 29, 2017 12:13 am

Re: llvmgold.so related CEF building error

Postby magreenblatt » Sun Jul 30, 2017 10:57 am

Try adding use_sysroot=true to your GN_DEFINES and re-running cef_create_projects.sh and ninja.
magreenblatt
Site Admin
 
Posts: 12404
Joined: Fri May 29, 2009 6:57 pm

Re: llvmgold.so related CEF building error

Postby DanKegel » Thu Nov 09, 2017 3:05 pm

Confirming.
With 3112 on Ubuntu 1604,

export GN_DEFINES="ffmpeg_branding=Chrome is_official_build=true proprietary_codecs=true remove_webcore_debug_symbols=true symbol_level=1 use_allocator=none use_sysroot=false"

fails with

../../third_party/binutils/Linux_x64/Release/bin/ld.gold: error: ...downloadedsrc/chromium/src/third_party/llvm-build/Release+Asserts/bin/../lib/LLVMgold.so: could not load plugin library: ...downloadedsrc/chromium/src/third_party/llvm-build/Release+Asserts/bin/../lib/LLVMgold.so: cannot open shared object file: No such file or directory

but setting use_sysroot=true succeeded, and yielded a cef that reports h.264 support in html5test.com and can play vimeo videos.
DanKegel
Mentor
 
Posts: 59
Joined: Fri Nov 08, 2013 12:46 pm


Return to Support Forum

Who is online

Users browsing this forum: civilogic, Google [Bot] and 28 guests