Build error. failed: lib/libcef.so lib/libcef.so.TOC

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.

Build error. failed: lib/libcef.so lib/libcef.so.TOC

Postby wrightpt » Sun Jul 17, 2016 12:03 pm

I ran the script: ./cef_create_projects.sh

the command: ninja -C out/Debug cefclient cef_unittests


I think I am missing the libcef.so. I went through all the build instructions and at no place is one created.

I received an undefined reference to firewallmanager. It is properly linked in the file.

Any input is apprecated


Code: Select all
[8687/21490] ACTION cef_pak: make_pack...eader_257e1bb3c5349fb75dd8330e75fc96f7
File include/cef_pack_resources.h updated.
[21345/21490] SOLINK lib/libcef.so
FAILED: lib/libcef.so lib/libcef.so.TOC
if [ ! -e lib/libcef.so -o ! -e lib/libcef.so.TOC ]; then ../../third_party/llvm-build/Release+Asserts/bin/clang++ -shared -Wl,-z,now -Wl,-z,relro -Wl,--fatal-warnings -Wl,-z,defs -pthread -Wl,-z,noexecstack -fPIC -fuse-ld=gold -B/home/c/Downloads/chromium/src/third_party/binutils/Linux_x64/Release/bin -Wl,--disable-new-dtags -L. -L. -Wl,-uIsHeapProfilerRunning,-uProfilerStart -Wl,-u_Z21InitialMallocHook_NewPKvj,-u_Z22InitialMallocHook_MMapPKvS0_jiiix,-u_Z22InitialMallocHook_SbrkPKvi -Wl,-u_Z21InitialMallocHook_NewPKvm,-u_Z22InitialMallocHook_MMapPKvS0_miiil,-u_Z22InitialMallocHook_SbrkPKvl -Wl,-u_ZN15HeapLeakChecker12IgnoreObjectEPKv,-u_ZN15HeapLeakChecker14UnIgnoreObjectEPKv -Wl,-uhb_ft_face_create_cached,-uhb_glib_get_unicode_funcs -m64 -Wl,--detect-odr-violations -Wl,--icf=all -o lib/libcef.so -Wl,-soname=libcef.so @lib/libcef.so.rsp && { readelf -d lib/libcef.so | grep SONAME ; nm -gD -f p lib/libcef.so | cut -f1-2 -d' '; } > lib/libcef.so.TOC; else ../../third_party/llvm-build/Release+Asserts/bin/clang++ -shared -Wl,-z,now -Wl,-z,relro -Wl,--fatal-warnings -Wl,-z,defs -pthread -Wl,-z,noexecstack -fPIC -fuse-ld=gold -B/home/c/Downloads/chromium/src/third_party/binutils/Linux_x64/Release/bin -Wl,--disable-new-dtags -L. -L. -Wl,-uIsHeapProfilerRunning,-uProfilerStart -Wl,-u_Z21InitialMallocHook_NewPKvj,-u_Z22InitialMallocHook_MMapPKvS0_jiiix,-u_Z22InitialMallocHook_SbrkPKvi -Wl,-u_Z21InitialMallocHook_NewPKvm,-u_Z22InitialMallocHook_MMapPKvS0_miiil,-u_Z22InitialMallocHook_SbrkPKvl -Wl,-u_ZN15HeapLeakChecker12IgnoreObjectEPKv,-u_ZN15HeapLeakChecker14UnIgnoreObjectEPKv -Wl,-uhb_ft_face_create_cached,-uhb_glib_get_unicode_funcs -m64 -Wl,--detect-odr-violations -Wl,--icf=all -o lib/libcef.so -Wl,-soname=libcef.so @lib/libcef.so.rsp && { readelf -d lib/libcef.so | grep SONAME ; nm -gD -f p lib/libcef.so | cut -f1-2 -d' '; } > lib/libcef.so.tmp && if ! cmp -s lib/libcef.so.tmp lib/libcef.so.TOC; then mv lib/libcef.so.tmp lib/libcef.so.TOC ; fi; fi
../../chrome/browser/media/router/mojo/media_route_provider_util_win.cc:28: error: undefined reference to 'BrowserDistribution::GetDistribution()'
../../chrome/browser/media/router/mojo/media_route_provider_util_win.cc:27: error: undefined reference to 'installer::FirewallManager::Create(BrowserDistribution*, base::FilePath const&)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: Build error. failed: lib/libcef.so lib/libcef.so.TOC

Postby wrightpt » Sun Jul 17, 2016 12:18 pm

Code: Select all
clang: error: linker command failed with exit code 1 (use -v to see invocation)


This means a missing library. In what part of the build process is the libcef.so built or made?

I have downloaded binary before and the libcef.so was made during the cmake and make process. and other binaries come with these files.
Last edited by wrightpt on Sun Jul 17, 2016 1:21 pm, edited 1 time in total.
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: Build error. failed: lib/libcef.so lib/libcef.so.TOC

Postby wrightpt » Sun Jul 17, 2016 12:53 pm

In the Debug/lib: there is only one kind of libcef.so file, a response file: libcef.so.rsp file. There are two other shared library files though (.so).
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: Build error. failed: lib/libcef.so lib/libcef.so.TOC

Postby wrightpt » Sun Jul 17, 2016 1:14 pm

I run the build command as follows without "cef_unittests" but still getting same error:

ninja -C out/Debug cefclient
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: Build error. failed: lib/libcef.so lib/libcef.so.TOC

Postby wrightpt » Sun Jul 17, 2016 1:43 pm

Trying to rebuild now. was opening my Android Studio and it froze on an .so library while the build was going on. I am not sure if that has anything to do with the libcef.so not working properly. Will report back
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: Build error. failed: lib/libcef.so lib/libcef.so.TOC

Postby wrightpt » Mon Jul 18, 2016 4:11 am

I was able to build release version of cefsimple but still ran into same error with Debug version of cefclient. I am building debug for cefsimple to see how it builds. takes a while. like 4 hours on my machine.

cefsimple:
ninja -C out/Release cefsimple


cefclient:
ninja -C out/Debug cefclient


When I run either build, I get the following errors as well:

ninja: warning: multiple rules generate files/osr_test.html. builds involving this target will not be correct; continuing anyway [-w dupbuild=warn]
ninja: warning: multiple rules generate files/pdf.html. builds involving this target will not be correct; continuing anyway [-w dupbuild=warn]
ninja: warning: multiple rules generate files/pdf.pdf. builds involving this target will not be correct; continuing anyway [-w dupbuild=warn]
ninja: warning: multiple rules generate files/window_icon.1x.png. builds involving this target will not be correct; continuing anyway [-w dupbuild=warn]
ninja: warning: multiple rules generate files/window_icon.2x.png. builds involving this target will not be correct; continuing anyway [-w dupbuild=warn]




Haven't researched them but going to study them shorty
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: Build error. failed: lib/libcef.so lib/libcef.so.TOC

Postby wrightpt » Mon Jul 18, 2016 8:45 am

This only happens with the debug build.


FAILED: lib/libcef.so lib/libcef.so.TOC
if [ ! -e lib/libcef.so -o ! -e lib/libcef.so.TOC ]; then ../../third_party/llvm-build/Release+Asserts/bin/clang++ -shared -Wl,-z,now -Wl,-z,relro -Wl,--fatal-warnings -Wl,-z,defs -pthread -Wl,-z,noexecstack -fPIC -fuse-ld=gold -B/home/c/Downloads/chromium/src/third_party/binutils/Linux_x64/Release/bin -Wl,--disable-new-dtags -L. -L. -Wl,-uIsHeapProfilerRunning,-uProfilerStart -Wl,-u_Z21InitialMallocHook_NewPKvj,-u_Z22InitialMallocHook_MMapPKvS0_jiiix,-u_Z22InitialMallocHook_SbrkPKvi -Wl,-u_Z21InitialMallocHook_NewPKvm,-u_Z22InitialMallocHook_MMapPKvS0_miiil,-u_Z22InitialMallocHook_SbrkPKvl -Wl,-u_ZN15HeapLeakChecker12IgnoreObjectEPKv,-u_ZN15HeapLeakChecker14UnIgnoreObjectEPKv -Wl,-uhb_ft_face_create_cached,-uhb_glib_get_unicode_funcs -m64 -Wl,--detect-odr-violations -Wl,--icf=all -o lib/libcef.so -Wl,-soname=libcef.so @lib/libcef.so.rsp && { readelf -d lib/libcef.so | grep SONAME ; nm -gD -f p lib/libcef.so | cut -f1-2 -d' '; } > lib/libcef.so.TOC; else ../../third_party/llvm-build/Release+Asserts/bin/clang++ -shared -Wl,-z,now -Wl,-z,relro -Wl,--fatal-warnings -Wl,-z,defs -pthread -Wl,-z,noexecstack -fPIC -fuse-ld=gold -B/home/c/Downloads/chromium/src/third_party/binutils/Linux_x64/Release/bin -Wl,--disable-new-dtags -L. -L. -Wl,-uIsHeapProfilerRunning,-uProfilerStart -Wl,-u_Z21InitialMallocHook_NewPKvj,-u_Z22InitialMallocHook_MMapPKvS0_jiiix,-u_Z22InitialMallocHook_SbrkPKvi -Wl,-u_Z21InitialMallocHook_NewPKvm,-u_Z22InitialMallocHook_MMapPKvS0_miiil,-u_Z22InitialMallocHook_SbrkPKvl -Wl,-u_ZN15HeapLeakChecker12IgnoreObjectEPKv,-u_ZN15HeapLeakChecker14UnIgnoreObjectEPKv -Wl,-uhb_ft_face_create_cached,-uhb_glib_get_unicode_funcs -m64 -Wl,--detect-odr-violations -Wl,--icf=all -o lib/libcef.so -Wl,-soname=libcef.so @lib/libcef.so.rsp && { readelf -d lib/libcef.so | grep SONAME ; nm -gD -f p lib/libcef.so | cut -f1-2 -d' '; } > lib/libcef.so.tmp && if ! cmp -s lib/libcef.so.tmp lib/libcef.so.TOC; then mv lib/libcef.so.tmp lib/libcef.so.TOC ; fi; fi
../../chrome/browser/media/router/mojo/media_route_provider_util_win.cc:28: error: undefined reference to 'BrowserDistribution::GetDistribution()'
../../chrome/browser/media/router/mojo/media_route_provider_util_win.cc:27: error: undefined reference to 'installer::FirewallManager::Create(BrowserDistribution*, base::FilePath const&)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: Build error. failed: lib/libcef.so lib/libcef.so.TOC

Postby wrightpt » Mon Jul 18, 2016 9:09 am

I tried deleting the libcef.so.rsp file but did same error occurs
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: Build error. failed: lib/libcef.so lib/libcef.so.TOC

Postby Czarek » Mon Jul 18, 2016 9:14 am

If you're building from master then you might have to wait for a fix or try building a stable release branch 2743.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Build error. failed: lib/libcef.so lib/libcef.so.TOC

Postby mira01 » Tue Feb 28, 2017 11:48 am

Hi,
have you solved the issue?

I have simmilar one, also libcef not found.
I am not a C/C++ developer, so I appreciate any help. Reason I build from source is that I needed comment / uncomment some features.

I have followed instructions on https://bitbucket.org/chromiumembedded/ ... ckStart.md on Linux and in 9th step in ninja building i receive

Code: Select all
[876/883] python "../../build/toolchain/gcc_ar_wrapper.py"  --output=obj/chrome/browser/ui/libui.a --ar="ar"  rcsD @"obj/chrome/browser/ui/libui.a.rsp"
[877/883] python "../../build/toolchain/gcc_ar_wrapper.py"  --output=obj/chrome/browser/libbrowser.a --ar="ar"  rcsD @"obj/chrome/browser/libbrowser.a.rsp"
[878/883] python "../../build/toolchain/gcc_ar_wrapper.py"  --output=obj/cef/libcef_static.a --ar="ar"  rcsD @"obj/cef/libcef_static.a.rsp"
[879/883] python "/home/mira/git/mycef/code/chromium_git/chromium/src/build/toolchain/gcc_solink_wrapper.py" --readelf="readelf" --nm="nm"  --sofile="./libcef.so" --tocfile="./libcef.so.TOC" --output="./libcef.so"  -- ../../third_party/llvm-build/Release+Asserts/bin/clang++ -shared -Wl,--fatal-warnings -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 -m64 -pthread -Werror -Wl,--export-dynamic -Wl,-uhb_ft_face_create_cached,-uhb_glib_get_unicode_funcs -o "./libcef.so" -Wl,-soname="libcef.so" @"./libcef.so.rsp"
FAILED: libcef.so libcef.so.TOC
python "/home/mira/git/mycef/code/chromium_git/chromium/src/build/toolchain/gcc_solink_wrapper.py" --readelf="readelf" --nm="nm"  --sofile="./libcef.so" --tocfile="./libcef.so.TOC" --output="./libcef.so"  -- ../../third_party/llvm-build/Release+Asserts/bin/clang++ -shared -Wl,--fatal-warnings -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 -m64 -pthread -Werror -Wl,--export-dynamic -Wl,-uhb_ft_face_create_cached,-uhb_glib_get_unicode_funcs -o "./libcef.so" -Wl,-soname="libcef.so" @"./libcef.so.rsp"
clang: error: unable to execute command: Killed
clang: error: linker command failed due to signal (use -v to see invocation)
ninja: build stopped: subcommand failed.


Thank anyone for help.
Mira01
mira01
Newbie
 
Posts: 1
Joined: Tue Feb 28, 2017 10:55 am


Return to Support Forum

Who is online

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