Building Linux ATK fails

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.

Building Linux ATK fails

Postby edgardog » Tue Sep 11, 2018 8:55 am

I'm trying to build cef 3440 (version 3497 also fails) on Linux Ubuntu 14 x64.
Using the same computer and same build environment I'm able to build 3396.
Here is the list of args for gn. I tried this build with use_atk=false (it also fails if I don't set it).

Code: Select all
clang_use_chrome_plugins=false
enable_basic_printing=true
enable_linux_installer=false
enable_nacl=false
enable_print_preview=false
enable_widevine=true
fatal_linker_warnings=false
ffmpeg_branding="Chrome"
is_component_build=false
is_debug=false
is_official_build=true
proprietary_codecs=true
remove_webcore_debug_symbols=true
symbol_level=1
target_cpu="x64"
use_atk=false
use_bundled_fontconfig=false
use_cfi_icall=false
use_gconf=false
use_gtk3=false
use_sysroot=false


Could it be that I'm missing a new dependency?

Here is the error output :
Code: Select all
[23462/32764] CXX obj/ui/accessibility/accessibility/ax_platform_node_auralinux.o
FAILED: obj/ui/accessibility/accessibility/ax_platform_node_auralinux.o
../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/ui/accessibility/accessibility/ax_platform_node_auralinux.o.d -DACCESSIBILITY_IMPLEMENTATION -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DOFFICIAL_BUILD -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DCR_CLANG_REVISION=\"332838-1\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS -DCR_LIBCXX_REVISION=332543 -DCR_LIBCXXABI_REVISION=331450 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DATK_LIB_DIR=\"/usr/lib/x86_64-linux-gnu\" -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -DWEBP_EXTERN=extern -DGL_GLEXT_PROTOTYPES -DUSE_GLX -DUSE_EGL -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DUCHAR_TYPE=uint16_t -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -DSK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS -DSK_HAS_PNG_LIBRARY -DSK_HAS_WEBP_LIBRARY -DSK_HAS_JPEG_LIBRARY -DSK_SUPPORT_GPU=1 -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -I../.. -Igen -I../../third_party/libwebp/src -I../../third_party/khronos -I../../gpu -I../../third_party/libyuv/include -I../../third_party/ced/src -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../third_party/protobuf/src -I../../skia/config -I../../skia/ext -I../../third_party/skia/include/c -I../../third_party/skia/include/config -I../../third_party/skia/include/core -I../../third_party/skia/include/effects -I../../third_party/skia/include/encode -I../../third_party/skia/include/gpu -I../../third_party/skia/include/images -I../../third_party/skia/include/lazy -I../../third_party/skia/include/pathops -I../../third_party/skia/include/pdf -I../../third_party/skia/include/pipe -I../../third_party/skia/include/ports -I../../third_party/skia/include/utils -I../../third_party/skia/src/gpu -I../../third_party/skia/src/sksl -fprofile-sample-use=/home/ezequiel/code/chromium/src/chrome/android/profiles/afdo.prof -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pipe -B../../third_party/binutils/Linux_x64/Release/bin -pthread -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -no-canonical-prefixes -flto=thin -fwhole-program-vtables -m64 -march=x86-64 -Wall -Werror -Wextra -Wimplicit-fallthrough -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-address-of-packed-member -Wno-unused-lambda-capture -Wno-user-defined-warnings -Wno-enum-compare-switch -Wno-null-pointer-arithmetic -Wno-ignored-pragma-optimize -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g1 -fsanitize=cfi-vcall -fsanitize-blacklist=../../tools/cfi/blacklist.txt -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wno-unused-function -Wno-unused-local-typedef -isystem../../../../../../../usr/include/atk-1.0 -isystem../../../../../../../usr/include/glib-2.0 -isystem../../../../../../../usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem../../../../../../../usr/include/glib-2.0 -isystem../../../../../../../usr/lib/x86_64-linux-gnu/glib-2.0/include -std=gnu++14 -fno-exceptions -fno-rtti -nostdinc++ -isystem../../buildtools/third_party/libc++/trunk/include -isystem../../buildtools/third_party/libc++abi/trunk/include -fvisibility-inlines-hidden -c ../../ui/accessibility/platform/ax_platform_node_auralinux.cc -o obj/ui/accessibility/accessibility/ax_platform_node_auralinux.o
../../ui/accessibility/platform/ax_platform_node_auralinux.cc:980:14: error: use of undeclared identifier 'ATK_ROLE_ARTICLE'; did you mean 'ATK_ROLE_TABLE'?
      return ATK_ROLE_ARTICLE;
             ^~~~~~~~~~~~~~~~
             ATK_ROLE_TABLE
../../../../../../../usr/include/atk-1.0/atk/atkobject.h:220:3: note: 'ATK_ROLE_TABLE' declared here
  ATK_ROLE_TABLE,
  ^
../../ui/accessibility/platform/ax_platform_node_auralinux.cc:982:14: error: use of undeclared identifier 'ATK_ROLE_AUDIO'
      return ATK_ROLE_AUDIO;
             ^
../../ui/accessibility/platform/ax_platform_node_auralinux.cc:984:14: error: use of undeclared identifier 'ATK_ROLE_LANDMARK'
      return ATK_ROLE_LANDMARK;
             ^
../../ui/accessibility/platform/ax_platform_node_auralinux.cc:986:14: error: use of undeclared identifier 'ATK_ROLE_BLOCK_QUOTE'; did you mean 'ATK_ROLE_CHECK_BOX'?
      return ATK_ROLE_BLOCK_QUOTE;
             ^~~~~~~~~~~~~~~~~~~~
             ATK_ROLE_CHECK_BOX
../../../../../../../usr/include/atk-1.0/atk/atkobject.h:173:3: note: 'ATK_ROLE_CHECK_BOX' declared here
  ATK_ROLE_CHECK_BOX,
  ^
../../ui/accessibility/platform/ax_platform_node_auralinux.cc:1012:14: error: use of undeclared identifier 'ATK_ROLE_LANDMARK'
      return ATK_ROLE_LANDMARK;
             ^
../../ui/accessibility/platform/ax_platform_node_auralinux.cc:1014:14: error: use of undeclared identifier 'ATK_ROLE_LANDMARK'
      return ATK_ROLE_LANDMARK;
             ^
../../ui/accessibility/platform/ax_platform_node_auralinux.cc:1021:14: error: use of undeclared identifier 'ATK_ROLE_DESCRIPTION_VALUE'; did you mean 'ATK_ROLE_OPTION_PANE'?
      return ATK_ROLE_DESCRIPTION_VALUE;
             ^~~~~~~~~~~~~~~~~~~~~~~~~~
             ATK_ROLE_OPTION_PANE
../../../../../../../usr/include/atk-1.0/atk/atkobject.h:201:3: note: 'ATK_ROLE_OPTION_PANE' declared here
  ATK_ROLE_OPTION_PANE,
  ^
../../ui/accessibility/platform/ax_platform_node_auralinux.cc:1023:14: error: use of undeclared identifier 'ATK_ROLE_DESCRIPTION_LIST'
      return ATK_ROLE_DESCRIPTION_LIST;
             ^
../../ui/accessibility/platform/ax_platform_node_auralinux.cc:1025:14: error: use of undeclared identifier 'ATK_ROLE_DESCRIPTION_TERM'; did you mean 'ATK_RELATION_DESCRIPTION_FOR'?
      return ATK_ROLE_DESCRIPTION_TERM;
             ^~~~~~~~~~~~~~~~~~~~~~~~~
             ATK_RELATION_DESCRIPTION_FOR
../../../../../../../usr/include/atk-1.0/atk/atkrelationtype.h:76:3: note: 'ATK_RELATION_DESCRIPTION_FOR' declared here
  ATK_RELATION_DESCRIPTION_FOR,
  ^
../../ui/accessibility/platform/ax_platform_node_auralinux.cc:1070:14: error: use of undeclared identifier 'ATK_ROLE_LANDMARK'
      return ATK_ROLE_LANDMARK;
             ^
../../ui/accessibility/platform/ax_platform_node_auralinux.cc:1145:14: error: use of undeclared identifier 'ATK_ROLE_LOG'
      return ATK_ROLE_LOG;
             ^
../../ui/accessibility/platform/ax_platform_node_auralinux.cc:1147:14: error: use of undeclared identifier 'ATK_ROLE_LANDMARK'
      return ATK_ROLE_LANDMARK;
             ^
../../ui/accessibility/platform/ax_platform_node_auralinux.cc:1151:14: error: use of undeclared identifier 'ATK_ROLE_MATH'
      return ATK_ROLE_MATH;
             ^
../../ui/accessibility/platform/ax_platform_node_auralinux.cc:1153:14: error: use of undeclared identifier 'ATK_ROLE_MARQUEE'; did you mean 'ATK_ROLE_TREE'?
      return ATK_ROLE_MARQUEE;
             ^~~~~~~~~~~~~~~~
             ATK_ROLE_TREE
../../../../../../../usr/include/atk-1.0/atk/atkobject.h:230:3: note: 'ATK_ROLE_TREE' declared here
  ATK_ROLE_TREE,
  ^
../../ui/accessibility/platform/ax_platform_node_auralinux.cc:1173:14: error: use of undeclared identifier 'ATK_ROLE_LANDMARK'
      return ATK_ROLE_LANDMARK;
             ^
../../ui/accessibility/platform/ax_platform_node_auralinux.cc:1202:16: error: use of undeclared identifier 'ATK_ROLE_LANDMARK'
        return ATK_ROLE_LANDMARK;
               ^
../../ui/accessibility/platform/ax_platform_node_auralinux.cc:1216:14: error: use of undeclared identifier 'ATK_ROLE_LANDMARK'
      return ATK_ROLE_LANDMARK;
             ^
../../ui/accessibility/platform/ax_platform_node_auralinux.cc:1241:14: error: use of undeclared identifier 'ATK_ROLE_DESCRIPTION_TERM'; did you mean 'ATK_RELATION_DESCRIPTION_FOR'?
      return ATK_ROLE_DESCRIPTION_TERM;
             ^~~~~~~~~~~~~~~~~~~~~~~~~
             ATK_RELATION_DESCRIPTION_FOR
../../../../../../../usr/include/atk-1.0/atk/atkrelationtype.h:76:3: note: 'ATK_RELATION_DESCRIPTION_FOR' declared here
  ATK_RELATION_DESCRIPTION_FOR,
  ^
../../ui/accessibility/platform/ax_platform_node_auralinux.cc:1243:14: error: use of undeclared identifier 'ATK_ROLE_TITLE_BAR'; did you mean 'ATK_ROLE_TOOL_BAR'?
      return ATK_ROLE_TITLE_BAR;
             ^~~~~~~~~~~~~~~~~~
             ATK_ROLE_TOOL_BAR
../../../../../../../usr/include/atk-1.0/atk/atkobject.h:228:3: note: 'ATK_ROLE_TOOL_BAR' declared here
  ATK_ROLE_TOOL_BAR,
  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[23463/32764] CXX obj/ui/accessibility/accessibility/ax_platform_atk_hyperlink.o


Best Regards,
Edgardo
edgardog
Expert
 
Posts: 111
Joined: Mon Feb 01, 2016 2:05 pm

Re: Building Linux ATK fails

Postby magreenblatt » Tue Sep 11, 2018 9:55 am

Did you run install-build-deps.sh ?
magreenblatt
Site Admin
 
Posts: 12407
Joined: Fri May 29, 2009 6:57 pm

Re: Building Linux ATK fails

Postby edgardog » Tue Sep 11, 2018 12:55 pm

Yes, of course.
I use the install-deps from chromium and it worked for the older branch, its just the newer ones that fail.

Here is the one I'm using;
https://chromium.googlesource.com/chrom ... ld-deps.sh

The ATK doc says:
ATK_ROLE_ARTICLE

A section of a page that consists of a composition that forms an independent part of a document, page, or site. Examples: A blog entry, a news story, a forum post. Since : ATK-2.12


But the build deps install libatk1.0-0 (2.10)
Ubuntu 16 has libatk-1.0-0 (2.18)

This would mean we can't compile using Ubuntu 14 anymore?
edgardog
Expert
 
Posts: 111
Joined: Mon Feb 01, 2016 2:05 pm

Re: Building Linux ATK fails

Postby magreenblatt » Tue Sep 11, 2018 1:03 pm

You can add use_sysroot=true to your GN_DEFINES. Otherwise you'll need to figure out how to upgrade the ATK library on your system.
magreenblatt
Site Admin
 
Posts: 12407
Joined: Fri May 29, 2009 6:57 pm

Re: Building Linux ATK fails

Postby Czarek » Tue Sep 11, 2018 1:38 pm

Building on Ubuntu 14.04 is supported only with sysroot.
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


Return to Support Forum

Who is online

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