New issue
Advanced search Search tips

Issue 762880 link

Starred by 2 users

Issue metadata

Status: Untriaged
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug

Blocking:
issue 741235



Sign in to add a comment

sort out dependency on system pkg-config

Project Member Reported by phajdan.jr@chromium.org, Sep 7 2017

Issue description

One of the ways I've been testing this is a vanilla debian stable chroot created using debootstrap.

If the system does not have pkg-config installed, "gn gen out/Release" fails:

ERROR at //build/config/linux/pkg_config.gni:103:17: Script returned non-zero exit code.
    pkgresult = exec_script(pkg_config_script, args, "value")
                ^----------
Current dir: /home/ph/chromium/src/out/Release/
Command: python -- /home/ph/chromium/src/build/config/linux/pkg-config.py -s /home/ph/chromium/src/build/linux/debian_jessie_amd64-sysroot -a x64 glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0
Returned 1.
stderr:

Traceback (most recent call last):
  File "/home/ph/chromium/src/build/config/linux/pkg-config.py", line 223, in <module>
    sys.exit(main())
  File "/home/ph/chromium/src/build/config/linux/pkg-config.py", line 142, in main
    prefix = GetPkgConfigPrefixToStrip(options, args)
  File "/home/ph/chromium/src/build/config/linux/pkg-config.py", line 81, in GetPkgConfigPrefixToStrip
    prefix = subprocess.check_output(argv, env=os.environ)
  File "/usr/lib/python2.7/subprocess.py", line 212, in check_output
    process = Popen(stdout=PIPE, *popenargs, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

See //build/config/linux/BUILD.gn:83:3: whence it was called.
  pkg_config("glib") {
  ^-------------------
See //ui/gfx/BUILD.gn:382:18: which caused the file to be included.
    configs += [ "//build/config/linux:x11" ]
                 ^-------------------------
 
Owner: ----
Status: Untriaged (was: Started)
Removing myself from bugs because of team transfer, back to re-triage.

See https://goto.google.com/phajdan-goodbye-chrome (Google-internal) and  issue 783662  .

In case of any questions, feel free to ask - use phajdan@google.com for a faster response.

Sign in to add a comment