build fail:"gclient runhooks' from src produces error

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 fail:"gclient runhooks' from src produces error

Postby wrightpt » Sat Jul 16, 2016 3:43 pm

Happened when building manually and automating. I get the same error both times

Any input on where to approach? I am running Ubuntu 14.04 desktop.

Code: Select all
c@c:~/Downloads/chromium/src$ gclient runhooks

________ running '/usr/bin/python src/build/landmines.py' in '/home/c/Downloads/chromium'

________ running '/usr/bin/python src/tools/remove_stale_pyc_files.py src/android_webview/tools src/build/android src/gpu/gles2_conform_support src/infra src/ppapi src/printing src/third_party/catapult src/third_party/closure_compiler/build src/tools' in '/home/c/Downloads/chromium'

________ running '/usr/bin/python src/build/download_nacl_toolchains.py --mode nacl_core_sdk sync --extract' in '/home/c/Downloads/chromium'

________ running '/usr/bin/python src/build/android/play_services/update.py download' in '/home/c/Downloads/chromium'

________ running '/usr/bin/python src/build/android/update_deps/update_third_party_deps.py download -b chromium-javax-inject -l third_party/javax_inject' in '/home/c/Downloads/chromium'

________ running '/usr/bin/python src/build/android/update_deps/update_third_party_deps.py download -b chromium-hamcrest -l third_party/hamcrest' in '/home/c/Downloads/chromium'

________ running '/usr/bin/python src/build/android/update_deps/update_third_party_deps.py download -b chromium-guava -l third_party/guava' in '/home/c/Downloads/chromium'

________ running '/usr/bin/python src/build/android/update_deps/update_third_party_deps.py download -b chromium-android-support-test-runner -l third_party/android_support_test_runner' in '/home/c/Downloads/chromium'

________ running '/usr/bin/python src/build/android/update_deps/update_third_party_deps.py download -b chromium-espresso -l third_party/espresso' in '/home/c/Downloads/chromium'

________ running '/usr/bin/python src/build/android/update_deps/update_third_party_deps.py download -b chromium-apache-velocity -l third_party/apache_velocity' in '/home/c/Downloads/chromium'

________ running '/usr/bin/python src/build/android/update_deps/update_third_party_deps.py download -b chromium-ow2-asm -l third_party/ow2_asm' in '/home/c/Downloads/chromium'

________ running '/usr/bin/python src/build/android/update_deps/update_third_party_deps.py download -b chromium-icu4j -l third_party/icu4j' in '/home/c/Downloads/chromium'

________ running '/usr/bin/python src/build/android/update_deps/update_third_party_deps.py download -b chromium-accessibility-test-framework -l third_party/accessibility_test_framework' in '/home/c/Downloads/chromium'

________ running '/usr/bin/python src/build/android/update_deps/update_third_party_deps.py download -b chromium-bouncycastle -l third_party/bouncycastle' in '/home/c/Downloads/chromium'

________ running '/usr/bin/python src/build/android/update_deps/update_third_party_deps.py download -b chromium-sqlite4java -l third_party/sqlite4java' in '/home/c/Downloads/chromium'

________ running '/usr/bin/python src/build/linux/sysroot_scripts/install-sysroot.py --running-as-hook' in '/home/c/Downloads/chromium'
Installing Debian Wheezy amd64 root image: /home/c/Downloads/chromium/src/build/linux/debian_wheezy_amd64-sysroot
Downloading https://commondatastorage.googleapis.com/chrome-linux-sysroot/toolchain/c52471d9dec240c8d0a88fa98aa1eefeee32e22f/debian_wheezy_amd64_sysroot.tgz
Traceback (most recent call last):
  File "src/build/linux/sysroot_scripts/install-sysroot.py", line 219, in <module>
    sys.exit(main(sys.argv[1:]))
  File "src/build/linux/sysroot_scripts/install-sysroot.py", line 148, in main
    InstallDefaultSysroots()
  File "src/build/linux/sysroot_scripts/install-sysroot.py", line 122, in InstallDefaultSysroots
    InstallSysroot(host_arch)
  File "src/build/linux/sysroot_scripts/install-sysroot.py", line 205, in InstallSysroot
    ['curl', '--fail', '--retry', '3', '-L', url, '-o', tarball])
  File "/usr/lib/python2.7/subprocess.py", line 535, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 522, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
Error: Command '/usr/bin/python src/build/linux/sysroot_scripts/install-sysroot.py --running-as-hook' returned non-zero exit status 1 in /home/c/Downloads/chromium
Last edited by wrightpt on Sat Jul 16, 2016 5:03 pm, edited 2 times in total.
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: buildl fail:"gclient runhooks' from src produces error

Postby wrightpt » Sat Jul 16, 2016 4:12 pm

I have a x86_64 architecture. I think that may be the issue.
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: buildl fail:"gclient runhooks' from src produces error

Postby wrightpt » Sat Jul 16, 2016 4:20 pm

How to specify "--arch" when building?
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: buildl fail:"gclient runhooks' from src produces error

Postby wrightpt » Sat Jul 16, 2016 4:50 pm

Is there a way to use "make_distrib.py" for 'cefsimple' without building manually? I can download a binary and run cefsimple but I need to cefsimple with a toolchain and I am not able to.
Thank you
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: buildl fail:"gclient runhooks' from src produces error

Postby wrightpt » Sat Jul 16, 2016 5:01 pm

Here are the lines of python code giving me problems:
Code: Select all
  InstallSysroot(host_arch)

  if host_arch == 'amd64':
    InstallSysroot('i386')

  # Finally, if we can detect a non-standard target_arch such as ARM or
  # MIPS, then install the sysroot too.
  # Don't attampt to install arm64 since this is currently and android-only
  # architecture.
  target_arch = DetectTargetArch()
  if target_arch and target_arch not in (host_arch, 'i386', 'arm64'):
    InstallSysroot(target_arch)


def main(args):
  parser = optparse.OptionParser('usage: %prog [OPTIONS]', description=__doc__)
  parser.add_option('--running-as-hook', action='store_true',
                    default=False, help='Used when running from gclient hooks.'
                                        ' Installs default sysroot images.')
  parser.add_option('--arch', type='choice', choices=valid_archs,
                    help='Sysroot architecture: %s' % ', '.join(valid_archs))
  options, _ = parser.parse_args(args)
  if options.running_as_hook and not sys.platform.startswith('linux'):
    return 0

  if options.running_as_hook:
    InstallDefaultSysroots()
  else:
    if not options.arch:
      print 'You much specify either --arch or --running-as-hook'
      return 1
    InstallSysroot(options.arch)

  return 0
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: build fail:"gclient runhooks' from src produces error

Postby Czarek » Sun Jul 17, 2016 1:41 am

The sysroot.tgz link works fine now, re-run the script.
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

Re: build fail:"gclient runhooks' from src produces error

Postby wrightpt » Sun Jul 17, 2016 5:57 am

thx, I had to run the install-build-deps.sh script in order for it to work. thank you
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: build fail:"gclient runhooks' from src produces error

Postby wrightpt » Sun Jul 17, 2016 6:12 am

Running the cef_create_projects.sh script:



Code: Select all
Package gtkglext-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtkglext-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtkglext-1.0' found
gyp: Call to 'pkg-config --cflags gtkglext-1.0' returned exit status 1 while in cef.gyp.
Traceback (most recent call last):
File "tools/gclient_hook.py", line 144, in <module>
    RunAction(cef_dir, gyper)
  File "/home/c/Downloads/chromium/src/cef/tools/gclient_util.py", line 39, in RunAction
    command, cwd=dir, always=True)
  File "/home/c/Downloads/depot_tools/gclient_utils.py", line 293, in CheckCallAndFilterAndHeader
    return CheckCallAndFilter(args, **kwargs)
  File "/home/c/Downloads/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 /home/c/Downloads/chromium/src/cef


I have installed GTK with the following commands:

GTK 2.0:
sudo apt-get install gtk2.0

GTK 3.0:
sudo apt-get install libgtk-3-dev

Still working but if there is anything obvious please mention
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: build fail:"gclient runhooks' from src produces error

Postby wrightpt » Sun Jul 17, 2016 6:17 am

I had to install the following package. Google search for the error worked. :D


sudo apt-get install libgtkglextmm-x11-1.2-dev
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 27 guests