ninja crashes on Ubuntu 14.04, SkPathOpsTSect.o

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.

ninja crashes on Ubuntu 14.04, SkPathOpsTSect.o

Postby bruth » Mon Apr 30, 2018 10:32 pm

Not sure what's going on and I tried other things from other posts, but can't get past this:

Code: Select all
aws_instance.cef-build-64 (remote-exec): [5264/35388] CXX o...s/SkPathOpsTSect.o
aws_instance.cef-build-64 (remote-exec): ninja: build stopped: subcommand failed.
aws_instance.cef-build-64 (remote-exec): Traceback (most recent call last):
aws_instance.cef-build-64 (remote-exec):   File "automate/automate-git.py", line 1107, in <module>
aws_instance.cef-build-64 (remote-exec):     if options.buildlogfile else None)
aws_instance.cef-build-64 (remote-exec):   File "automate/automate-git.py", line 55, in run
aws_instance.cef-build-64 (remote-exec):     args, cwd=working_dir, env=env, shell=(sys.platform == 'win32'))
aws_instance.cef-build-64 (remote-exec):   File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
aws_instance.cef-build-64 (remote-exec):     raise CalledProcessError(retcode, cmd)
aws_instance.cef-build-64 (remote-exec): subprocess.CalledProcessError: Command '['ninja', '-C', 'out/Release_GN_x64', 'cefclient', 'chrome_sandbox']' returned non-zero exit status 1


Here's what my script looks like:

Code: Select all
#!/bin/bash
export GN_DEFINES="proprietary_codecs=true ffmpeg_branding=Chrome"
export GYP_DEFINES="disable_nacl=1 proprietary_codecs=1 ffmpeg_branding=Chrome"

sudo apt-get -y install htop iftop

mkdir -p ~/code/automate
mkdir -p ~/code/chromium_git

cd ~/code

curl 'https://chromium.googlesource.com/chromium/src/+/master/build/install-build-deps.sh?format=TEXT' | base64 -d > install-build-deps.sh
chmod 755 install-build-deps.sh
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections
sudo ./install-build-deps.sh --no-prompt --no-chromeos-fonts

sudo apt-get -y install libgtkglext1-dev git libcups2-dev libnss3-dev libdbus-1-dev libgnome-keyring-dev libasound2-dev bison

cd ~/code/automate
wget https://bitbucket.org/chromiumembedded/cef/raw/master/tools/automate/automate-git.py

cd ~/code
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git

export PATH=`pwd`/depot_tools:$PATH

cd ~/code/chromium_git
cat > update.sh <<EOF
#!/bin/bash
export CEF_USE_GN=1
export GN_DEFINES="$GN_DEFINES is_official_build=true use_sysroot=true"
python ../automate/automate-git.py --download-dir=/home/ubuntu/code/chromium_git --no-distrib --no-build --branch=3359
EOF

chmod 755 update.sh
./update.sh

cd ~/code/chromium_git/chromium/src/cef
cat > create.sh <<EOF
#!/bin/bash
export CEF_USE_GN=1
export GN_DEFINES="$GN_DEFINES is_official_build=true enable_vr=false"
./cef_create_projects.sh
EOF

chmod 755 create.sh
./create.sh

cd ~/code
echo "Building 64-bit"
python automate/automate-git.py --download-dir=`pwd`/chromium_git --branch=3359 --force-clean --force-build --x64-build --no-debug-build --force-update
bruth
Techie
 
Posts: 44
Joined: Mon Dec 09, 2013 5:45 pm

Re: ninja crashes on Ubuntu 14.04, SkPathOpsTSect.o

Postby bruth » Tue May 01, 2018 8:23 am

Here's the actual error - it was hidden up the screen, running on 72 cores will do that, I guess :\

Code: Select all
aws_instance.cef-build-64 (remote-exec): FAILED: gen/blink/core/CSSPropertyNames.cpp gen/blink/core/CSSPropertyNames.h
aws_instance.cef-build-64 (remote-exec): python ../../third_party/WebKit/Source/build/scripts/make_css_property_names.py ../../third_party/WebKit/Source/core/css/CSSProperties.json5 ../../third_party/WebKit/Source/core/css/ComputedStyleFieldAliases.json5 --output_dir gen/blink/core --gperf gperf
aws_instance.cef-build-64 (remote-exec): Traceback (most recent call last):
aws_instance.cef-build-64 (remote-exec):   File "../../third_party/WebKit/Source/build/scripts/make_css_property_names.py", line 80, in <module>
aws_instance.cef-build-64 (remote-exec):     json5_generator.Maker(CSSPropertyNamesWriter).main()
aws_instance.cef-build-64 (remote-exec):   File "/home/ubuntu/code/chromium_git/chromium/src/third_party/WebKit/Source/build/scripts/json5_generator.py", line 278, in main
aws_instance.cef-build-64 (remote-exec):     writer.write_files(args.output_dir)
aws_instance.cef-build-64 (remote-exec):   File "/home/ubuntu/code/chromium_git/chromium/src/third_party/WebKit/Source/build/scripts/json5_generator.py", line 240, in write_files
aws_instance.cef-build-64 (remote-exec):     self._write_file_if_changed(output_dir, generator(), file_name)
aws_instance.cef-build-64 (remote-exec):   File "/home/ubuntu/code/chromium_git/chromium/src/third_party/WebKit/Source/build/scripts/gperf.py", line 62, in generator_internal
aws_instance.cef-build-64 (remote-exec):     return generate_gperf(gperf_path, gperf_input, gperf_args)
aws_instance.cef-build-64 (remote-exec):   File "/home/ubuntu/code/chromium_git/chromium/src/third_party/WebKit/Source/build/scripts/gperf.py", line 45, in generate_gperf
aws_instance.cef-build-64 (remote-exec):     127, gperf_args, output='Command not found.')
aws_instance.cef-build-64 (remote-exec): subprocess.CalledProcessError: Command '['--key-positions=*', '-P', '-n', '-m', '50', '-D', '-Q', 'CSSPropStringPool']' returned non-zero exit status 127
bruth
Techie
 
Posts: 44
Joined: Mon Dec 09, 2013 5:45 pm

Re: ninja crashes on Ubuntu 14.04, SkPathOpsTSect.o

Postby bruth » Tue May 01, 2018 9:14 am

Nevermind. Looks like 'gperf' wasn't installed ... for some reason, 'install-build-deps.sh' doesn't seem as comprehensive as it used to be. I used to only have to add 'libgtkglext1-dev', but now I've added (so far) 'git libcups2-dev libnss3-dev libdbus-1-dev libgnome-keyring-dev libasound2-dev bison gperf' ... or maybe depot_tools has less stuff in it? Not sure.
bruth
Techie
 
Posts: 44
Joined: Mon Dec 09, 2013 5:45 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 73 guests