gclient sync: No such package error (binutils.tar.bz2)

403 views
Skip to first unread message

Ronny Ko

unread,
Oct 2, 2019, 3:24:00 PM10/2/19
to Chromium-discuss
Hi,

When I build chromium-browser from source code, my "gclient sync" command fails because it cannot find gs://chromium-binutils/69bedb1192a03126687f75cb6cf1717758a1a59f for /home/skyer/Desktop/testbuild/src/third_party/binutils/Linux_x64/binutils.tar.bz2. I wonder if anyone has a clue on how to solve this problem. The following is a detailed log:

:testbuild/src$ gclient sync
Warning: gclient doesn't yet support Python 3 and may not work correctly.
Syncing projects: 100% (106/106), done.                                        
Hook 'vpython src/build/landmines.py' took 69.41 secs
Running hooks:  18% (15/79) binutils                      
________ running 'vpython src/third_party/binutils/download.py' in '/home/skyer/Desktop/testbuild'
...
Failed to fetch file gs://chromium-binutils/69bedb1192a03126687f75cb6cf1717758a1a59f for /home/skyer/Desktop/testbuild/src/third_party/binutils/Linux_x64/binutils.tar.bz2. [Err: [E2019-10-02T15:20:00.077260-04:00 9087 0 annotate.go:241] original error: no such package
...Downloading 1 files took 0.614625 second(s)
Downloading /home/skyer/Desktop/testbuild/src/third_party/binutils/Linux_x64/binutils.tar.bz2
Traceback (most recent call last):
  File "src/third_party/binutils/download.py", line 120, in <module>
    sys.exit(main(sys.argv[1:]))
  File "src/third_party/binutils/download.py", line 107, in main
    return FetchAndExtract(arch)
  File "src/third_party/binutils/download.py", line 72, in FetchAndExtract
    '-s', sha1file])
  File "/usr/lib/python2.7/subprocess.py", line 190, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['download_from_google_storage', '--no_resume', '--no_auth', '--bucket', 'chromium-binutils', '-s', '/home/skyer/Desktop/testbuild/src/third_party/binutils/Linux_x64/binutils.tar.bz2.sha1']' returned non-zero exit status 1
Error: Command 'vpython src/third_party/binutils/download.py' returned non-zero exit status 1 in /home/skyer/Desktop/testbuild


Yuta Kitamura

unread,
Oct 3, 2019, 2:15:36 AM10/3/19
to hr...@g.harvard.edu, Chromium-discuss
> Warning: gclient doesn't yet support Python 3 and may not work correctly.

Did you enable experimental Python3 support for gclient somewhere? Or, if you type "python -V" in the command line, do you see Python3 running instead of 2? You need to have Python2, and "python" command should point to python2 by default. Normally you shouldn't see this warning text.

(I hit this trap when I used python venv with my scripts -- venv modifies the PATH so "python" points to python3 (or whatever version you used in your venv), and this causes subtle issues with Chromium builds.)

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

Ronny Ko

unread,
Oct 3, 2019, 3:59:31 AM10/3/19
to Yuta Kitamura, Chromium-discuss
Thanks a lot, now it works fine. The issue was not using Python 2 (I was using Python 3).

Ronny
Oct 3, 2019, 2:15 AM
Reply all
Reply to author
Forward
0 new messages