Build from source fails - Ubuntu 18.04

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 from source fails - Ubuntu 18.04

Postby silver » Mon Jul 16, 2018 2:20 am

Hi

I am trying build CEF from source following the instructions shown here -
https://bitbucket.org/chromiumembedded/ ... inux-setup

System Details:
Ubuntu/Kubuntu 18.04

All the steps are going fine. When the final compilation is started with the ninja command, the following error is thrown up -

Code: Select all
$ ninja -C out/Debug_GN_x64 cef chrome_sandbox
ninja: Entering directory `out/Debug_GN_x64'
[4674/17499] CXX obj/services/ui/ws/lib/window_tree_host_factory.o
FAILED: obj/services/ui/ws/lib/window_tree_host_factory.o
../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/services/ui/ws/lib/window_tree_host_factory.o.d -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 -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DCR_CLANG_REVISION=\"335864-1\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS -DCR_LIBCXX_REVISION=332543 -DCR_LIBCXXABI_REVISION=331450 -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -D_GLIBCXX_DEBUG=1 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -DWEBP_EXTERN=extern -DENABLE_IPC_FUZZER -DGL_GLEXT_PROTOTYPES -DUSE_GLX -DUSE_EGL -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\" -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 -DLEVELDB_PLATFORM_CHROMIUM=1 -I../.. -Igen -I../../third_party/libwebp/src -I../../third_party/khronos -I../../gpu -I../../third_party/libyuv/include -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 -I../../third_party/ced/src -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../third_party/protobuf/src -I../../third_party/libwebm/source -I../../third_party/protobuf/src -Igen/protoc_out -I../../third_party/leveldatabase -I../../third_party/leveldatabase/src -I../../third_party/leveldatabase/src/include -I../../third_party/mesa/src/include -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -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 -fcomplete-member-pointers -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-address-of-packed-member -Wno-nonportable-include-path -Wno-user-defined-warnings -Wno-unused-lambda-capture -Wno-null-pointer-arithmetic -Wno-enum-compare-switch -Wno-ignored-pragma-optimize -O0 -fno-omit-frame-pointer -g2 -gsplit-dwarf -ggnu-pubnames -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -isystem../../../../../../../../usr/include/glib-2.0 -isystem../../../../../../../../usr/lib/x86_64-linux-gnu/glib-2.0/include -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -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 ../../services/ui/ws/window_tree_host_factory.cc -o obj/services/ui/ws/lib/window_tree_host_factory.o
Stack dump:
0.      Program arguments: ../../third_party/llvm-build/Release+Asserts/bin/clang++ -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name window_tree_host_factory.cc -mrelocation-model pic -pic-level 2 -mthread-model posix -fmerge-all-constants -mdisable-fp-elim -relaxed-aliasing -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -dwarf-column-info -enable-split-dwarf -debug-info-kind=limited -debugger-tuning=gdb -ggnu-pubnames -split-dwarf-file obj/services/ui/ws/lib/window_tree_host_factory.dwo -coverage-notes-file /home/enlightened/cefbuild/chromium_git/chromium/src/out/Debug_GN_x64/obj/services/ui/ws/lib/window_tree_host_factory.gcno -nostdinc++ -resource-dir ../../third_party/llvm-build/Release+Asserts/lib/clang/7.0.0 -dependency-file obj/services/ui/ws/lib/window_tree_host_factory.o.d -MT obj/services/ui/ws/lib/window_tree_host_factory.o -isystem ../../../../../../../../usr/include/glib-2.0 -isystem ../../../../../../../../usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem ../../buildtools/third_party/libc++/trunk/include -isystem ../../buildtools/third_party/libc++abi/trunk/include -D V8_DEPRECATION_WARNINGS -D USE_UDEV -D USE_AURA=1 -D USE_GLIB=1 -D USE_NSS_CERTS=1 -D USE_X11=1 -D FULL_SAFE_BROWSING -D SAFE_BROWSING_CSD -D SAFE_BROWSING_DB_LOCAL -D CHROMIUM_BUILD -D FIELDTRIAL_TESTING_ENABLED -D _FILE_OFFSET_BITS=64 -D _LARGEFILE_SOURCE -D _LARGEFILE64_SOURCE -D CR_CLANG_REVISION="335864-1" -D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D _LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS -D CR_LIBCXX_REVISION=332543 -D CR_LIBCXXABI_REVISION=331450 -D _DEBUG -D DYNAMIC_ANNOTATIONS_ENABLED=1 -D WTF_USE_DYNAMIC_ANNOTATIONS=1 -D _GLIBCXX_DEBUG=1 -D GLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32 -D GLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -D WEBP_EXTERN=extern -D ENABLE_IPC_FUZZER -D GL_GLEXT_PROTOTYPES -D USE_GLX -D USE_EGL -D SK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS -D SK_HAS_PNG_LIBRARY -D SK_HAS_WEBP_LIBRARY -D SK_HAS_JPEG_LIBRARY -D SK_SUPPORT_GPU=1 -D SK_GPU_WORKAROUNDS_HEADER="gpu/config/gpu_driver_bug_workaround_autogen.h" -D U_USING_ICU_NAMESPACE=0 -D U_ENABLE_DYLOAD=0 -D U_STATIC_IMPLEMENTATION -D ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -D UCHAR_TYPE=uint16_t -D GOOGLE_PROTOBUF_NO_RTTI -D GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -D HAVE_PTHREAD -D LEVELDB_PLATFORM_CHROMIUM=1 -I ../.. -I gen -I ../../third_party/libwebp/src -I ../../third_party/khronos -I ../../gpu -I ../../third_party/libyuv/include -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 -I ../../third_party/ced/src -I ../../third_party/icu/source/common -I ../../third_party/icu/source/i18n -I ../../third_party/protobuf/src -I ../../third_party/libwebm/source -I ../../third_party/protobuf/src -I gen/protoc_out -I ../../third_party/leveldatabase -I ../../third_party/leveldatabase/src -I ../../third_party/leveldatabase/src/include -I ../../third_party/mesa/src/include -D __DATE__= -D __TIME__= -D __TIMESTAMP__= -internal-isystem /usr/local/include -internal-isystem ../../third_party/llvm-build/Release+Asserts/lib/clang/7.0.0/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O0 -Wno-builtin-macro-redefined -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-address-of-packed-member -Wno-nonportable-include-path -Wno-user-defined-warnings -Wno-unused-lambda-capture -Wno-null-pointer-arithmetic -Wno-enum-compare-switch -Wno-ignored-pragma-optimize -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -std=gnu++14 -fdeprecated-macro -fdebug-compilation-dir /home/enlightened/cefbuild/chromium_git/chromium/src/out/Debug_GN_x64 -ferror-limit 19 -fmessage-length 0 -fvisibility hidden -fvisibility-inlines-hidden -pthread -stack-protector 1 -stack-protector-buffer-size 4 -fno-rtti -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -mllvm -instcombine-lower-dbg-declare=0 -o obj/services/ui/ws/lib/window_tree_host_factory.o -x c++ ../../services/ui/ws/window_tree_host_factory.cc -fcomplete-member-pointers
1.      ../../buildtools/third_party/libc++/trunk/include/cmath:311:1 <Spelling=../../buildtools/third_party/libc++/trunk/include/__config:458:37>: current parser token 'namespace'
2.      ../../buildtools/third_party/libc++/trunk/include/math.h:307:8: LLVM IR generation of declaration
#0 0x00000000020681d4 (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x20681d4)
#1 0x000000000206612e llvm::sys::RunSignalHandlers() (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x206612e)
#2 0x0000000002068392 (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x2068392)
#3 0x00007f614c434890 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x12890)
#4 0x00007f614b24ecb2 /build/glibc-OTsEL5/glibc-2.27/string/../sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S:150:0
#5 0x00000000022ed281 std::_Rb_tree<llvm::StringRef, std::pair<llvm::StringRef const, clang::GlobalDecl>, std::_Select1st<std::pair<llvm::StringRef const, clang::GlobalDecl> >, std::less<llvm::StringRef>, std::allocator<std::pair<llvm::StringRef const, clang::GlobalDecl> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<llvm::StringRef const, clang::GlobalDecl> >, llvm::StringRef const&) (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x22ed281)
#6 0x00000000022ed170 std::_Rb_tree_iterator<std::pair<llvm::StringRef const, clang::GlobalDecl> > std::_Rb_tree<llvm::StringRef, std::pair<llvm::StringRef const, clang::GlobalDecl>, std::_Select1st<std::pair<llvm::StringRef const, clang::GlobalDecl> >, std::less<llvm::StringRef>, std::allocator<std::pair<llvm::StringRef const, clang::GlobalDecl> > >::_M_emplace_hint_unique<std::piecewise_construct_t const&, std::tuple<llvm::StringRef const&>, std::tuple<> >(std::_Rb_tree_const_iterator<std::pair<llvm::StringRef const, clang::GlobalDecl> >, std::piecewise_construct_t const&&&, std::tuple<llvm::StringRef const&>&&, std::tuple<>&&) (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x22ed170)
#7 0x00000000022dee13 (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x22dee13)
#8 0x00000000022dd059 clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x22dd059)
#9 0x00000000022e2ab3 clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x22e2ab3)
#10 0x00000000022e66cb clang::CodeGen::CodeGenModule::EmitDeclContext(clang::DeclContext const*) (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x22e66cb)
#11 0x0000000002a5a3c0 (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x2a5a3c0)
#12 0x0000000002a576eb (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x2a576eb)
#13 0x0000000003239064 clang::ParseAST(clang::Sema&, bool, bool) (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x3239064)
#14 0x00000000026d4020 clang::FrontendAction::Execute() (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x26d4020)
#15 0x000000000267cfe1 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x267cfe1)
#16 0x00000000027780c9 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x27780c9)
#17 0x00000000008bb333 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x8bb333)
#18 0x00000000008b8c5f main (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x8b8c5f)
#19 0x00007f614b0e5b97 __libc_start_main /build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:344:0
#20 0x00000000008b5ced _start (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x8b5ced)
clang++: error: unable to execute command: Illegal instruction
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 7.0.0 (trunk 335864)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: ../../third_party/llvm-build/Release+Asserts/bin
clang++: note: diagnostic msg: PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
clang++: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++: note: diagnostic msg: /tmp/window_tree_host_factory-730020.cpp
clang++: note: diagnostic msg: /tmp/window_tree_host_factory-730020.sh
clang++: note: diagnostic msg:

********************
[4679/17499] CXX obj/services/ui/ws/test_interface/window_server_test_impl.o
ninja: build stopped: subcommand failed.



However, if I re-run the ninja command, the compilation seems to resume. May be its compiling other files.
So how do I fix that ? Is there some package that needs to be installed ?
User avatar
silver
Techie
 
Posts: 48
Joined: Tue Feb 24, 2015 5:39 am

Re: Build from source fails - Ubuntu 18.04

Postby magreenblatt » Mon Jul 16, 2018 9:00 am

Looks like clang is crashing on your system. Have you updated all packages recently?
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: cybersight, Google [Bot], reito and 50 guests