unknown target 'cefclient' 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.

Re: unknown target 'cefclient' error

Postby magreenblatt » Tue Apr 26, 2016 8:50 pm

ratin3 wrote:Just confirming, looks like I didnt need the chrome build at all. I made the binary distribution without it, copied to target and built the app with no problem. The only thing is libcef.so is huge (I guess partly because of debug build)! 1.3 GB. This ends up being a problem (the app on the target gets stuck trying to load the huge so file). Is there an option to make a release build?

Build out/Release instead of out/Debug
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: unknown target 'cefclient' error

Postby fddima » Wed Apr 27, 2016 8:39 am

ratin3 wrote:Just confirming, looks like I didnt need the chrome build at all. I made the binary distribution without it, copied to target and built the app with no problem. The only thing is libcef.so is huge (I guess partly because of debug build)! 1.3 GB. This ends up being a problem (the app on the target gets stuck trying to load the huge so file). Is there an option to make a release build?


ninja -C out/Release

Also you should adjust buildtype to official in gyp defines.
fddima
Master
 
Posts: 788
Joined: Tue Dec 07, 2010 6:10 am

Re: unknown target 'cefclient' error

Postby ratin3 » Thu Apr 28, 2016 5:01 pm

Thanks guys, I had to rebuild from scratch (this time official with GYP_DEFINES=buildtype=Official ) because I think build process got garbled up. Anyway, after re-downloading the sources a lot of older problems that I found last time disappeared, not sure what happened there but I met with a new error (theortetically a warning turned into compiler error because of gcc flags):

../../cef/libcef/browser/native/browser_platform_delegate_native_linux.cc:235:3: error: ignoring return value of function declared with 'warn_unused_result' attribute [-Werror,-Wunused-result]
system(openCommand.c_str());

I simply used a dummy int :
int dummy = system ( ...)
followed by a printf statement to fool the compiler into thinking I really need to use the variable. I did it this way as a hack, I guess real solution would be to change the function itself to return int and since its a virtual function , it has to be changed in all other places. So anyways, now with the similar compiler flags in place, I am getting a lot of linker "hidden symbol" warnings as errors for libharfbuzz-ng.a,

ninja -C out/Release cefclient cef_unittests
ninja: Entering directory `out/Release'
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]
[265/403] SOLINK lib/libcef.so
FAILED: 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/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin -Wl,--disable-new-dtags -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,--export-dynamic -pthread -m64 -Wl,--icf=all -Wl,-O1 -Wl,--as-needed -Wl,--gc-sections -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/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin -Wl,--disable-new-dtags -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,--export-dynamic -pthread -m64 -Wl,--icf=all -Wl,-O1 -Wl,--as-needed -Wl,--gc-sections -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
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_font_destroy' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-font.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_ot_tags_from_script' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-ot-tag.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_buffer_set_script' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-buffer.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_ot_layout_language_get_feature_tags' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-ot-layout.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_font_funcs_set_glyph_v_advance_func' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-font.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_ot_tag_to_script' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-ot-tag.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_buffer_get_length' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-buffer.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_font_funcs_set_glyph_func' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-font.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_font_set_ppem' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-font.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_buffer_get_direction' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-buffer.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_font_funcs_set_glyph_h_kerning_func' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-font.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_ot_layout_script_find_language' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-ot-layout.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_font_funcs_set_glyph_extents_func' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-font.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_font_set_scale' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-font.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_buffer_get_glyph_infos' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-buffer.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_buffer_reverse' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-buffer.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_buffer_add_utf8' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-buffer.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_buffer_reset' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-buffer.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_font_create' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-font.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_font_funcs_create' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-font.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_ot_layout_table_get_script_tags' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-ot-layout.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_buffer_set_flags' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-buffer.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_buffer_destroy' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-buffer.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_buffer_set_language' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-buffer.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_font_funcs_set_glyph_v_origin_func' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-font.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_buffer_get_glyph_positions' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-buffer.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_ot_layout_language_get_required_feature_index' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-ot-layout.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_language_to_string' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-common.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_font_set_funcs' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-font.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_font_funcs_set_glyph_h_origin_func' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-font.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_tag_from_string' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-common.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_ot_tag_from_language' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-ot-tag.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_font_funcs_set_glyph_contour_point_func' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-font.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_font_funcs_set_glyph_h_advance_func' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-font.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_ot_layout_script_get_language_tags' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-ot-layout.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_ot_layout_table_find_script' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-ot-layout.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_language_from_string' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-common.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_face_destroy' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-face.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_buffer_add' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-buffer.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_ot_layout_language_find_feature' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-ot-layout.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_ot_tag_to_language' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-ot-tag.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_shape' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-shape.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_buffer_set_direction' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-buffer.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_buffer_set_unicode_funcs' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-buffer.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: hidden symbol 'hb_buffer_create' in obj/third_party/harfbuzz-ng/libharfbuzz-ng.a(obj/third_party/harfbuzz-ng/src/harfbuzz-ng.hb-buffer.o) is referenced by DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libpangoft2-1.0.so
/nuc/chromium/src/third_party/binutils/Linux_x64/Release/bin/ld.gold: error: treating warnings as errors
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.


Aparently these symbols are declared as hidden inside libharfbuzz-ng.a, question is, is it built as part of the process? And how can I change the compiler flags so these are not treated as error ?

objdump -t ./out/Release/obj/third_party/harfbuzz-ng/libharfbuzz-ng.a | grep hidden | grep hb_font_destroy
0000000000000000 g F .text.hb_font_destroy 00000000000000cd .hidden hb_font_destroy
ratin3
Techie
 
Posts: 22
Joined: Wed Apr 20, 2016 1:15 pm

Re: unknown target 'cefclient' error

Postby ratin3 » Thu Apr 28, 2016 6:30 pm

Just saw this in harfbuzz.gyp, seems like a double edged sword. What can I do, eliminate the flag?

# When without -fvisibility=hidden for pango to use the harfbuzz
# in the tree, all symbols pango needs must be included, or
# pango uses mixed versions of harfbuzz and leads to crash.
# See crbug.com/462689.
['use_pango==1 and OS=="linux" and chromeos==0 and buildtype!="Official" and target_arch!="arm" and target_arch!="mipsel"', {
'cflags!': ['-fvisibility=hidden'],
'sources': [
'src/hb-ft.cc',
'src/hb-ft.h',
'src/hb-glib.cc',
'src/hb-glib.h',
],
ratin3
Techie
 
Posts: 22
Joined: Wed Apr 20, 2016 1:15 pm

Previous

Return to Support Forum

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 84 guests