Error building branch 2357 on Linux

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.

Error building branch 2357 on Linux

Postby megaloni » Tue May 19, 2015 9:23 am

I am getting the following error trying to run automate-git.py on linux in a 32bit 12.04 chroot environment:

export GYP_GENERATORS='ninja'
export set GYP_DEFINES="use_gconf=0 remove_webcore_debug_symbols=1 include_tests=1 target_arch=ia32 branding=Chromium buildtype=Official proprietary_codecs=1 ffmpeg_branding=Chrome"
rm -rf chromium/src/out
precise32 python automate-git.py --force-config --no-debug-build --download-dir=. --branch=2357

Generating CEF project files...

________ running '/usr/bin/python ../build/gyp_chromium cef.gyp -I cef.gypi' in '/media/megan/ssd256/sandbox/cef/chromium/src/cef'
Updating projects from gyp files...
gyp: ../third_party/gflags/gflags.gyp not found (cwd: /media/megan/ssd256/sandbox/cef/chromium/src/cef)
Traceback (most recent call last):
File "tools/gclient_hook.py", line 106, in <module>
RunAction(cef_dir, gyper)
File "/media/megan/ssd256/sandbox/cef/chromium/src/cef/tools/gclient_util.py", line 39, in RunAction
command, cwd=dir, always=True)
File "/media/megan/ssd256/sandbox/cef/depot_tools/gclient_utils.py", line 293, in CheckCallAndFilterAndHeader
return CheckCallAndFilter(args, **kwargs)
File "/media/megan/ssd256/sandbox/cef/depot_tools/gclient_utils.py", line 538, in CheckCallAndFilter
rv, args, kwargs.get('cwd', None), None, None)
subprocess2.CalledProcessError: Command /usr/bin/python ../build/gyp_chromium cef.gyp -I cef.gypi returned non-zero exit status 1 in /media/megan/ssd256/sandbox/cef/chromium/src/cef
Traceback (most recent call last):
File "automate-git.py", line 834, in <module>
run(path, cef_src_dir, depot_tools_dir)
File "automate-git.py", line 55, in run
shell=(sys.platform == 'win32'))
File "/usr/lib/python2.7/subprocess.py", line 511, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/media/megan/ssd256/sandbox/cef/chromium/src/cef/cef_create_projects.sh']' returned non-zero exit status 1



Any tips would be appreciated if this looks familiar to anyone...
megaloni
Techie
 
Posts: 12
Joined: Tue May 19, 2015 9:18 am

Re: Error building branch 2357 on Linux

Postby magreenblatt » Tue May 19, 2015 10:36 am

Looks like gclient failed to download or sync third_party/gflags. Were there any errors related to that earlier in the output?
magreenblatt
Site Admin
 
Posts: 12407
Joined: Fri May 29, 2009 6:57 pm

Re: Error building branch 2357 on Linux

Postby megaloni » Tue May 19, 2015 10:49 am

I don't remember seeing one, but it took me several attempts to get this far - I had a handful of missing dependencies. I will try re-syncing and see if that makes a difference.
megaloni
Techie
 
Posts: 12
Joined: Tue May 19, 2015 9:18 am

Re: Error building branch 2357 on Linux

Postby megaloni » Tue May 19, 2015 2:10 pm

I just re-ran the sync and it died in the same spot with the same error. I saw no sync errors. I did see this - not sure what it means or if it is normal:

________ running '/usr/bin/python src/build/get_syzygy_binaries.py --output-dir=src/third_party/syzygy/binaries --revision=e869aa03e0f40f74321a70d6d4578f5bbbc29bda --overwrite' in '/media/megan/ssd256/sandbox/cef/chromium'
INFO:get_syzygy_binaries.py:Output directory does not exist, skipping cleanup.

________ running '/usr/bin/python src/build/get_syzygy_binaries.py --output-dir=src/third_party/kasko --revision=3278b959bdf6c9aa4b326a38e8b953e566c1ec58 --resource=kasko.zip --resource=kasko_symbols.zip --overwrite' in '/media/megan/ssd256/sandbox/cef/chromium'
INFO:get_syzygy_binaries.py:Unexpected output directory, skipping cleanup.

________ running 'download_from_google_storage --no_resume --platform=win32 --directory --recursive --no_auth --num_threads=16 --bucket chromium-apache-win32 src/third_party/apache-win32' in '/media/megan/ssd256/sandbox/cef/chromium'

________ running '/usr/bin/python src/third_party/mojo/src/mojo/public/tools/download_shell_binary.py --tools-directory=../../../../../../tools' in '/media/megan/ssd256/sandbox/cef/chromium'

________ running '/usr/bin/python src/third_party/instrumented_libraries/scripts/download_binaries.py' in '/media/megan/ssd256/sandbox/cef/chromium'

________ running '/usr/bin/python src/build/gyp_chromium' in '/media/megan/ssd256/sandbox/cef/chromium'
Skipping gyp_chromium due to GYP_CHROMIUM_NO_ACTION env var.


Any other pointers?
megaloni
Techie
 
Posts: 12
Joined: Tue May 19, 2015 9:18 am

Re: Error building branch 2357 on Linux

Postby magreenblatt » Tue May 19, 2015 3:17 pm

export set GYP_DEFINES="use_gconf=0 remove_webcore_debug_symbols=1 include_tests=1 target_arch=ia32 branding=Chromium buildtype=Official proprietary_codecs=1 ffmpeg_branding=Chrome"

Where did you get this list of values from? It doesn't look like third_party/gflags exists in a normal Chromium checkout.
magreenblatt
Site Admin
 
Posts: 12407
Joined: Fri May 29, 2009 6:57 pm

Re: Error building branch 2357 on Linux

Postby megaloni » Tue May 19, 2015 3:29 pm

I had picked up those flags from other posts for building a version of that includes all the HTML5 support (various video/audio codecs). This set of flags had worked to build older versions of CEF - perhaps the root cause lies there. If I change those, do I have to do another full download?
megaloni
Techie
 
Posts: 12
Joined: Tue May 19, 2015 9:18 am

Re: Error building branch 2357 on Linux

Postby magreenblatt » Tue May 19, 2015 3:35 pm

You can change the flags and run cef_create_projects.sh directly. No need to re-download anything.
magreenblatt
Site Admin
 
Posts: 12407
Joined: Fri May 29, 2009 6:57 pm

Re: Error building branch 2357 on Linux

Postby megaloni » Wed May 20, 2015 10:46 am

Okay, some progress, I think... I stripped down the flags and tried again. Still failing, but at a different spot:

export set GYP_DEFINES="use_gconf=0 remove_webcore_debug_symbols=1"
python automate-git.py --force-config --no-debug-build --download-dir=. --branch=2357


.......


-------- Running "ninja -C out/Release cefclient chrome_sandbox" in "/media/megan/ssd256/sandbox/cef/chromium/src"...
ninja: Entering directory `out/Release'
ninja: warning: multiple rules generate gen/about_credits.html. builds involving this target will not be correct; continuing anyway
ninja: warning: multiple rules generate files/osr_test.html. builds involving this target will not be correct; continuing anyway
[10/12397] CC obj/third_party/libwebp/dsp/libwebp_dsp.upsampling.o
FAILED: ../../third_party/llvm-build/Release+Asserts/bin/clang -MMD -MF obj/third_party/libwebp/dsp/libwebp_dsp.upsampling.o.d -DV8_DEPRECATION_WARNINGS -D_FILE_OFFSET_BITS=64 -DCHROMIUM_BUILD -DCR_CLANG_REVISION=233105-1 -DTOOLKIT_VIEWS=1 -DUI_COMPOSITOR_IMAGE_TRANSPORT -DUSE_AURA=1 -DUSE_ASH=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1 -DUSE_X11=1 -DUSE_CLIPBOARD_AURAX11=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_PRE_SYNC_BACKUP -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DENABLE_HIDPI=1 -DUSE_UDEV -DDONT_EMBED_BUILD_METADATA -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_BACKGROUND=1 -DENABLE_GOOGLE_NOW=1 -DCLD_VERSION=2 -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 -DENABLE_SPELLCHECK=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_SUPERVISED_USERS=1 -DENABLE_MDNS=1 -DENABLE_SERVICE_DISCOVERY=1 -DV8_USE_EXTERNAL_STARTUP_DATA -DUSE_LIBPCI=1 -DUSE_GLIB=1 -DUSE_NSS=1 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -Igen -I../../third_party/libwebp -fstack-protector --param=ssp-buffer-size=4 -Werror -pthread -fno-strict-aliasing -Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -Wno-reserved-user-defined-literal -momit-leaf-frame-pointer -mstack-alignment=16 -mstackrealign -fcolor-diagnostics -B/media/megan/ssd256/sandbox/cef/chromium/src/third_party/binutils/Linux_x64/Release/bin -Wheader-hygiene -Wno-char-subscripts -Wno-unneeded-internal-declaration -Wno-covered-switch-default -Wstring-conversion -Wno-c++11-narrowing -Wno-deprecated-register -Wno-inconsistent-missing-override -Wno-format -Wno-unused-result -msse2 -mfpmath=sse -mmmx -m32 -O2 -fno-ident -fdata-sections -ffunction-sections -funwind-tables -c ../../third_party/libwebp/dsp/upsampling.c -o obj/third_party/libwebp/dsp/libwebp_dsp.upsampling.o
../../third_party/llvm-build/Release+Asserts/bin/clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory

I have installed libtinfo-dev in my chroot environment and it does not help. This so does exist in my chroot /lib/i386-linux-gnu
megaloni
Techie
 
Posts: 12
Joined: Tue May 19, 2015 9:18 am

Re: Error building branch 2357 on Linux

Postby megaloni » Wed May 20, 2015 3:54 pm

Just not making any progress here. Do you have an example GYP_DEFINES that work for your 32 bit build?
megaloni
Techie
 
Posts: 12
Joined: Tue May 19, 2015 9:18 am

Re: Error building branch 2357 on Linux

Postby megaloni » Thu May 21, 2015 8:32 am

For anyone this might help, I finally made some progress. I've been documenting what has worked for me so far here:

https://gist.github.com/megaloni/02c37b96d5c4da3b6a88


My setup:
Host: Ubuntu 14.04 with 8GB of memory
Target: 32bit CEF build on a 32bit 12.04 chroot environment
megaloni
Techie
 
Posts: 12
Joined: Tue May 19, 2015 9:18 am

Next

Return to Support Forum

Who is online

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