Is anyone else having problems with depot_tools while building chromium?

1,649 views
Skip to first unread message

Sebastian M.D.

unread,
Mar 15, 2021, 6:46:30 PM3/15/21
to Chromium-dev
Steps to reproduce:

Follow official documentation at:


In short:


$ export PATH="$PATH:${HOME}/depot_tools"

$ mkdir ~/chromium && cd ~/chromium

$ fetch --nohooks chromium

gives:
 
-----------------------------------
Errors:
  failed to resolve infra/3pp/tools/git/linux-386@version:2.28.0.chromium.6 (line 27): no such package: infra/3pp/tools/git/linux-386
  failed to resolve infra/3pp/tools/cpython/linux-386@version:2.7.17.chromium.22 (line 21): no such package: infra/3pp/tools/cpython/linux-386
  failed to resolve infra/3pp/tools/cpython3/linux-386@version:3.8.0.chromium.8 (line 24): no such package: infra/3pp/tools/cpython3/linux-386
/home/sebi/depot_tools/bootstrap_python3: line 32: bootstrap-3.8.0.chromium.8_bin/python3/bin/python3: No such file or directory
Errors:
  failed to resolve infra/3pp/tools/git/linux-386@version:2.28.0.chromium.6 (line 27): no such package: infra/3pp/tools/git/linux-386
  failed to resolve infra/3pp/tools/cpython/linux-386@version:2.7.17.chromium.22 (line 21): no such package: infra/3pp/tools/cpython/linux-386
  failed to resolve infra/3pp/tools/cpython3/linux-386@version:3.8.0.chromium.8 (line 24): no such package: infra/3pp/tools/cpython3/linux-386
/home/sebi/depot_tools/bootstrap_python3: line 32: bootstrap-3.8.0.chromium.8_bin/python3/bin/python3: No such file or directory
cat: /home/sebi/depot_tools/python3_bin_reldir.txt: No such file or directory
[E2021-03-11T16:04:40.427557+01:00 12027 0 annotate.go:266] original error: no such file or directory

goroutine 1:
#0 go.chromium.org/luci/vpython/python/interpreter.go:120 - python.(*Interpreter).GetVersion()
#1 go.chromium.org/luci/vpython/venv/config.go:286 - venv.(*Config).resolvePythonInterpreter()
  reason: failed to determine Python version for: /home/sebi/depot_tools//python3

  reason: failed to resolve system Python interpreter

  reason: failed to initialize empty probe environment

#5 go.chromium.org/luci/vpython/application/application.go:320 - application.(*application).mainImpl()
#6 go.chromium.org/luci/vpython/application/application.go:408 - application.(*Config).Main.func1()
#9 vpython/main.go:110 - main.mainImpl()
#10 vpython/main.go:116 - main.main()
#11 runtime/proc.go:225 - runtime.main()
#12 runtime/asm_386.s:1315 - runtime.goexit()
-------------------------------------------------

All depot_tool commands return the same output as above, even if chrome has been cloned manually (and running:

gclient runhooks).

It looks like it needs git, python & python3 in  infra/3pp/tools/ but in my case
infra only has a config/ dir inside.

What exactly is a "package" for depot_tools. As a workaround, I could create those directories and add the binaries manually.

Is there a real fix?

Dirk Pranke

unread,
Mar 15, 2021, 7:59:14 PM3/15/21
to mdnsse...@gmail.com, Chromium-dev
That looks like you're trying to build on a 32-bit Linux x86 platform, which isn't supported. You need to be running a 64-bit system.

-- Dirk

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/876166fe-d0d9-4844-b2ed-c3fbb1c2a97an%40chromium.org.

Sebastian M.D.

unread,
Apr 19, 2021, 9:31:56 AM4/19/21
to Chromium-dev, Dirk Pranke, Chromium-dev, Sebastian M.D.
Yep. Thx! Fixed!
Reply all
Reply to author
Forward
0 new messages