Fwd: problems trying to download sources...

1,555 views
Skip to first unread message

Caroline Tice

unread,
Dec 4, 2013, 12:25:14 PM12/4/13
to chromi...@chromium.org
---------- Forwarded message ----------
From: Caroline Tice <cmt...@chromium.org>
Date: Tue, Dec 3, 2013 at 11:56 AM
Subject: problems trying to download sources...
To: chromi...@chromium.org


I'm trying to download a new Chromium source tree; I'm following the
instructions on

http://dev.chromium.org/developers/how-tos/get-the-code


I only get as far as the step "fetch chromium", which fails with the
following errors:

________ running '/usr/bin/python src/build/gyp_chromium' in
'/usr/local/google/home/cmtice/chrome-top-internal'
Updating projects from gyp files...
Package nss was not found in the pkg-config search path.
Perhaps you should add the directory containing `nss.pc'
to the PKG_CONFIG_PATH environment variable
No package 'nss' found
gyp: Call to 'pkg-config --libs-only-l nss | sed -e "s/-lssl3//"'
returned exit status 0.
/bin/sh: cups-config: command not found
gyp: Call to 'cups-config --api-version' returned exit status 127.
Package libpulse was not found in the pkg-config search path.
Perhaps you should add the directory containing `libpulse.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libpulse' found
gyp: Call to 'pkg-config --cflags libpulse' returned exit status 1.
Package gdk-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gdk-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gdk-2.0' found
gyp: Call to 'pkg-config --cflags gdk-2.0' returned exit status 1.
Error: Command /usr/bin/python src/build/gyp_chromium returned
non-zero exit status 1 in
/usr/local/google/home/cmtice/chrome-top-internal
Traceback (most recent call last):
File "/home/cmtice/depot_tools/fetch.py", line 278, in <module>
sys.exit(main())
File "/home/cmtice/depot_tools/fetch.py", line 274, in main
return run(dryrun, spec, root)
File "/home/cmtice/depot_tools/fetch.py", line 268, in run
return checkout.init()
File "/home/cmtice/depot_tools/fetch.py", line 149, in init
super(GclientGitSvnCheckout, self).init()
File "/home/cmtice/depot_tools/fetch.py", line 117, in init
self.run_gclient('sync')
File "/home/cmtice/depot_tools/fetch.py", line 75, in run_gclient
return self.run(cmd_prefix + cmd, **kwargs)
File "/home/cmtice/depot_tools/fetch.py", line 65, in run
return subprocess.check_call(cmd, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 511, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '('gclient', 'sync')' returned
non-zero exit status 2

Does anyone know what I'm missing or what I need to do to fix this?

-- Caroline Tice
cmt...@chromium.org

Nico Weber

unread,
Dec 4, 2013, 12:27:57 PM12/4/13
to cmt...@chromium.org, Chromium-dev
Hi Caroline,

try running `build/install-build-deps.sh` and then run `gclient sync` again. Does that help?

Nico



--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
    http://groups.google.com/a/chromium.org/group/chromium-dev

Sylvain Defresne

unread,
Dec 4, 2013, 12:28:51 PM12/4/13
to cmt...@chromium.org, chromi...@chromium.org
Did you follow the first time build boostrap instruction for building on Linux?
-- Sylvain


Scott Graham

unread,
Dec 4, 2013, 12:38:05 PM12/4/13
to sdef...@chromium.org, cmt...@chromium.org, chromium-dev
Is there a bug for this already? This makes fetch chromium not so useful because gclient sync isn't enough to complete the fetch (git submodule and git svn setup happen afterwards).

So you really need to fetch, have it fail, run install-build-deps and then nuke it all and re-fetch which is a bit silly.

David Turner

unread,
Dec 4, 2013, 12:56:53 PM12/4/13
to sco...@chromium.org, sdef...@chromium.org, cmt...@chromium.org, chromium-dev
On Wed, Dec 4, 2013 at 6:38 PM, Scott Graham <sco...@chromium.org> wrote:
Is there a bug for this already? This makes fetch chromium not so useful because gclient sync isn't enough to complete the fetch (git submodule and git svn setup happen afterwards).

Looks like the bug is that "fetch chromium" runs "gclient sync" instead of "gclient sync --nohooks", so it will try to run various things after the checkout like build/gyp_chromium, which will fail if the build-deps are not installed.
Looks like a simple solution is to change line 117 of depot_tools/fetch.py from:

    self.run_gclient('sync')

to:

    self.run_gclient('sync', '--nohooks')

Caroline Tice

unread,
Dec 4, 2013, 1:32:41 PM12/4/13
to chromi...@chromium.org
+ chromium-dev (accidentally hit reply instead of reply-all)

---------- Forwarded message ----------
From: Caroline Tice <cmt...@chromium.org>
Date: Wed, Dec 4, 2013 at 10:24 AM
Subject: Re: [chromium-dev] Fwd: problems trying to download sources...
To: Scott Graham <sco...@chromium.org>


I hadn't run install-build-deps, because I thought the 'fetch
chromium' had to successfully finish first. I now did:

$ mkdir chrome-top
$ cd chrome-top
$ fetch chromium
[fail]
$ src/build/install-build-deps.sh
$ rm -Rf *
$ fetch chromium

I thought that was going to work this time, but it failed (much
farther along) with the following:

________ running 'download_from_google_storage --no_resume
--platform=linux* --no_auth --bucket chromium-gn -s
src/tools/gn/bin/linux/gn32.sha1' in
'/usr/local/google/home/cmtice/chrome-top-internal'
0> Downloading src/tools/gn/bin/linux/gn32...
Hook 'download_from_google_storage --no_resume '--platform=linux*'
--no_auth --bucket chromium-gn -s src/tools/gn/bin/linux/gn32.sha1'
took 32.01 secs

________ running '/usr/bin/python src/build/gyp_chromium' in
'/usr/local/google/home/cmtice/chrome-top-internal'
Updating projects from gyp files...
gyp: name 'android_goma_dir' is not defined while evaluating condition
'android_goma_dir!=""' in
/usr/local/google/home/cmtice/chrome-top-internal/src/build/all.gyp
Error: Command /usr/bin/python src/build/gyp_chromium returned
non-zero exit status 1 in
/usr/local/google/home/cmtice/chrome-top-internal
Traceback (most recent call last):
File "/home/cmtice/depot_tools/fetch.py", line 278, in <module>
sys.exit(main())
File "/home/cmtice/depot_tools/fetch.py", line 274, in main
return run(dryrun, spec, root)
File "/home/cmtice/depot_tools/fetch.py", line 268, in run
return checkout.init()
File "/home/cmtice/depot_tools/fetch.py", line 149, in init
super(GclientGitSvnCheckout, self).init()
File "/home/cmtice/depot_tools/fetch.py", line 117, in init
self.run_gclient('sync')
File "/home/cmtice/depot_tools/fetch.py", line 75, in run_gclient
return self.run(cmd_prefix + cmd, **kwargs)
File "/home/cmtice/depot_tools/fetch.py", line 65, in run
return subprocess.check_call(cmd, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 511, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '('gclient', 'sync')' returned
non-zero exit status 2

What else do I need to do?

-- Caroline
cmt...@chromium.org

溫啟清

unread,
Dec 4, 2013, 9:59:31 PM12/4/13
to chromi...@chromium.org
refer https://groups.google.com/a/chromium.org/forum/#!starred/chromium-dev/R2NYf5pSdPU

Normal checkout

Use this advice if you just want to do a normal checkout of Chromium with Git, and do not need direct Subversion write access. (Most developers who are just submitting patches do not need Subversion write access.)
  1. Set up depot_tools.
  2. mkdir ~/chromium
  3. cd ~/chromium
  4. fetch chromium --nosvn=True
I got a good result(sync pass, and build pass with gcc) with this step

Luis de Bethencourt

unread,
Dec 4, 2013, 10:26:33 PM12/4/13
to wench...@gmail.com, Chromium-dev
Your problem is "Package nss was not found in the pkg-config search path."

You need to install the development package of nss :)
(usually nss-devel)


--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.

Paweł Hajdan, Jr.

unread,
Dec 5, 2013, 10:16:31 PM12/5/13
to bethe...@gmail.com, wench...@gmail.com, Chromium-dev
I have a patch in review for depot tools that should fix it, https://codereview.chromium.org/107703002/

Paweł
Reply all
Reply to author
Forward
0 new messages