Building on Linux fails following Master Build instructions

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 on Linux fails following Master Build instructions

Postby danmontz » Fri May 12, 2017 11:37 am

Following the Master Build instructions for Linux at https://bitbucket.org/chromiumembedded/ ... inux-setup.

Branch: --branch=3071
OS: Ubuntu 14.04.5

I am running into a compiler error and linker error:
Compiler error:
[42/46440] CXX obj/base/base/message_pump_glib.o
FAILED: obj/base/base/message_pump_glib.o
../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/base/base/message_pump_glib.o.d -DUSE_SYMBOLIZE -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DDISABLE_NACL -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -DENABLE_MEDIA_ROUTER=1 -DFIELDTRIAL_TESTING_ENABLED -DCR_CLANG_REVISION=\"299960-1\" -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -D_GLIBCXX_DEBUG=1 -DBASE_IMPLEMENTATION -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -I../.. -Igen -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -B../../third_party/binutils/Linux_x64/Release/bin -fcolor-diagnostics -m64 -march=x86-64 -pthread -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-unneeded-internal-declaration -Wno-inconsistent-missing-override -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-address-of-packed-member -Wno-unused-lambda-capture -Wno-user-defined-warnings -O0 -fno-omit-frame-pointer -g2 -gsplit-dwarf -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wno-char-subscripts -Wexit-time-destructors -Wexit-time-destructors -fvisibility-inlines-hidden -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -std=gnu++11 -fno-rtti -fno-exceptions -c ../../base/message_loop/message_pump_glib.cc -o obj/base/base/message_pump_glib.o
In file included from ../../base/message_loop/message_pump_glib.cc:10:
In file included from /usr/include/glib-2.0/glib.h:54:
In file included from /usr/include/glib-2.0/glib/giochannel.h:34:
In file included from /usr/include/glib-2.0/glib/gstring.h:35:
/usr/include/glib-2.0/glib/gutils.h:310:3: error: 'register' storage class specifier is deprecated and incompatible with C++1z [-Werror,-Wdeprecated-register]
register guint n_bits = 0;
^~~~~~~~~
1 error generated.

Linker error:
Same error as described here: viewtopic.php?f=6&t=15051&hilit=3029+build

Are there updates to the compiler options that need to be committed (-Wno-deprecated-register) or is this being resolved in the source?

Also has the linker error been resolved yet? I did a clean install with the --force-update flag and it still fails. Unfortunately, this takes 4-5 hours to get to this error.

Thanks in advance!
danmontz
Techie
 
Posts: 28
Joined: Thu Apr 13, 2017 4:11 pm

Re: Building on Linux fails following Master Build instructi

Postby magreenblatt » Fri May 12, 2017 1:43 pm

Likely a configuration error in Chromium for Debug builds using the local toolchain instead of the sysroot toolchain. Try removing the 'target_cpu == "x86"' component from this line in your local source checkout: https://cs.chromium.org/chromium/src/bu ... b8e&l=1088. Then re-run cef_create_projects.bat and ninja.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Building on Linux fails following Master Build instructi

Postby danmontz » Fri May 12, 2017 2:49 pm

Thanks! i removed the target_cpu == "x86" in the build/config/compiler/BUILD.gn file. I think that gets me past the initial compiler error ... I'll know in 4 hours :)
danmontz
Techie
 
Posts: 28
Joined: Thu Apr 13, 2017 4:11 pm

Re: Building on Linux fails following Master Build instructi

Postby danmontz » Mon May 15, 2017 6:04 pm

Following the same changes mentioned here: http://magpcss.org/ceforum/viewtopic.php?f=6&t=15051&hilit=3029+build

I was able to link.
danmontz
Techie
 
Posts: 28
Joined: Thu Apr 13, 2017 4:11 pm


Return to Support Forum

Who is online

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