"No such file or directory" error in "gn gen" in simple chrome workflow.

1,350 views
Skip to first unread message

oshima

unread,
Dec 5, 2017, 6:24:53 PM12/5/17
to Chromium OS dev
Sending on behalf of abhishekbh@ who can't access chromium.org right now.
Does anyone a clue what's causing this problem? He's trying to use simple chrome workflow.

-------------------

I am getting the following error while setting up Chromium in  with BOARD=veyron_minnie if it matters.

gn gen out_$SDK_BOARD/Release --args="$GN_ARGS"
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/abhishekbh/projects/chromium/src/out_veyron_minnie/Release/
Command: python -- /home/abhishekbh/projects/chromium/src/build/config/linux/pkg-config.py -s /home/abhishekbh/projects/chromium/.cros_cache/chrome-sdk/tarballs/veyron_minnie+10171.0.0+sysroot_chromeos-base_chromeos-chrome.tar.xz -a arm --system_libdir lib nss -v -lssl3
Returned 1.
stderr:

Traceback (most recent call last):
  File "/home/abhishekbh/projects/chromium/src/build/config/linux/pkg-config.py", line 232, in <module>
    sys.exit(main())
  File "/home/abhishekbh/projects/chromium/src/build/config/linux/pkg-config.py", line 139, in main
    prefix = GetPkgConfigPrefixToStrip(options, args)
  File "/home/abhishekbh/projects/chromium/src/build/config/linux/pkg-config.py", line 80, in GetPkgConfigPrefixToStrip
    "--variable=prefix"] + args, 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 //third_party/nss/BUILD.gn:15:3: whence it was called.
  pkg_config("system_nss_no_ssl_config") {
  ^---------------------------------------
See //crypto/BUILD.gn:221:25: which caused the file to be included.
    public_configs += [ "//third_party/nss:system_nss_no_ssl_config" ]

Any help will be appreciated.
-
Abhishek

Mike Frysinger

unread,
Dec 5, 2017, 6:54:00 PM12/5/17
to oshima, Chromium OS dev
that's running `pkg-config` iirc.  do you not have that installed ?

the Simple Chrome workflow doesn't mean you don't have to follow standard Chromium build procedures ... i.e. have you run `./build/install-build-deps.sh` or the equiv dev system setup first ?
-mike

--
--
Chromium OS Developers mailing list: chromiu...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-os-dev?hl=en


oshima

unread,
Dec 6, 2017, 2:41:47 AM12/6/17
to Mike Frysinger, Chromium OS dev
On Tue, Dec 5, 2017 at 3:53 PM, Mike Frysinger <vap...@chromium.org> wrote:
that's running `pkg-config` iirc.  do you not have that installed ?

Yep he didn't have pkg-config, although he did run install-build-deps.sh.
For some reason, it couldn't find nss and he had to add PKG_CONFIG_LIBDIR. Now "gn gen" works, but he's
still having other issues (compilation seems to be failing due to missing header etc).

He said he's using gLinux. Should he switch to Goobuntu?

- oshima

Mike Frysinger

unread,
Dec 6, 2017, 3:39:46 AM12/6/17
to oshima, Chromium OS dev
gLinux should be fine ... i've done simple chrome builds in that for a few boards now

you shouldn't need to mess with any env vars like PKG_CONFIG_LIBDIR.  if you do, that implies something else is broken and that's papering over the issue.  i'm not sure if you're referring to the target build failing, or some host tools.  the former should be part of the board sysroot while the latter should be another dev package that's installed on the host.
-mike

oshima

unread,
Dec 7, 2017, 4:19:25 PM12/7/17
to Mike Frysinger, Chromium OS dev
It's not my device so it's hard to troubleshoot. He just switched to Goobuntu and everything seems to be working fine now. (not sure what was wrong with his machine though)

Thanks,
- oshima

Junichi Uekawa (上川純一)

unread,
Dec 8, 2017, 12:34:08 AM12/8/17
to oshima, Mike Frysinger, Chromium OS dev
It is strange, that should be happening inside a chroot image.
why would 10171.0.0 sysroot (which seems a bit old) be missing pkg-config etc?


---
You received this message because you are subscribed to the Google Groups "Chromium OS dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-os-dev+unsubscribe@chromium.org.



--
Junichi Uekawa
Google

Mike Frysinger

unread,
Dec 8, 2017, 12:52:31 AM12/8/17
to Junichi Uekawa (上川純一), oshima, Chromium OS dev
simple chrome builds outside the cros sdk
-mike
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages