Problems with building Chromium for Android

567 views
Skip to first unread message

DominiValenti

unread,
Aug 7, 2023, 1:59:23 PM8/7/23
to Chromium-dev
Hi,

I want building Chromium for Android and used Instructions by link:
https://chromium.googlesource.com/chromium/src/+/HEAD/docs/android_build_instructions.md
I try Ubuntu 16.04, 18.04, 20.04, Python2, Python3, but always the same problems:
$ gclient sync or gclient runhooks

Running hooks:  48% (71/147) doclava                                                
________ running 'python3 src/build/android/download_doclava.py' in '/root/chromium'
0> Downloading src/build/android/../../buildtools/android/doclava.tar.gz@1931becb8a8e21685f39c62854e9e814d64ccf1a...
0> Extracting 7 entries from src/build/android/../../buildtools/android/doclava.tar.gz to src/build/android/../../buildtools/android/doclava
Downloading 1 files took 5.953311 second(s)
Running hooks:  64% (95/147) Generate location tags for tests                          
________ running 'python3 src/testing/generate_location_tags.py --out src/testing/location_tags.json' in '/root/chromium'
/root/chromium/src/third_party/depot_tools/dirmd: line 14: /root/chromium/src/third_party/depot_tools/.cipd_bin/dirmd: No such file or directory
Error: Command 'python3 src/testing/generate_location_tags.py --out src/testing/location_tags.json' returned non-zero exit status 127 in /root/chromium
/root/chromium/src/third_party/depot_tools/dirmd: line 14: /root/chromium/src/third_party/depot_tools/.cipd_bin/dirmd: No such file or directory

How to solve this problem?

Lingqi Chi

unread,
Aug 11, 2023, 2:56:55 PM8/11/23
to Chromium-dev, DominiValenti
I encountered the same issue, and this workaround helped me out.
// at chromium/src
cd third_party/depot_tools/

./cipd ensure  --ensure-file $PWD/cipd_manifest.txt  --root $PWD/.cipd_bin 

vik dg

unread,
Aug 11, 2023, 2:57:05 PM8/11/23
to Chromium-dev, DominiValenti
Hello,

same problem here, building Chromium for Linux on Ubuntu 22.04:

~/chromium/chromium/src$ gclient runhooks
Updating depot_tools...
Running hooks:  36% (53/147) perfetto_testdata                    
________ running 'python3 src/third_party/perfetto/tools/test_data --dir src/base/tracing/test/data download' in '/home/vik/chromium/chromium'
Nothing to do, all files are synced

Running hooks:  64% (95/147) Generate location tags for tests                          
________ running 'python3 src/testing/generate_location_tags.py --out src/testing/location_tags.json' in '/home/vik/chromium/chromium'
/home/vik/chromium/chromium/src/third_party/depot_tools/dirmd: line 14: /home/vik/chromium/chromium/src/third_party/depot_tools/.cipd_bin/dirmd: No such file or directory
Error: Command 'python3 src/testing/generate_location_tags.py --out src/testing/location_tags.json' returned non-zero exit status 127 in /home/vik/chromium/chromium
/home/vik/chromium/chromium/src/third_party/depot_tools/dirmd: line 14: /home/vik/chromium/chromium/src/third_party/depot_tools/.cipd_bin/dirmd: No such file or directory

Nikolas Harris

unread,
Aug 11, 2023, 2:57:11 PM8/11/23
to Chromium-dev, DominiValenti
I'm having this same issue on Macbook Air M2 15inch, and Macbook M2 Pro. Can't seem to get past the fetching of the code and the runhooks. 
  1. I have tried a few times in fresh directories
  2. Tried deleting src/third_party/depot_tools and trying gclient sync
  3. Tried removing all other Python installations from the system.

Jon Jensen

unread,
Aug 11, 2023, 2:58:23 PM8/11/23
to Chromium-dev, DominiValenti
Seeing the exact same issue setting up Chromium on a new macbook... right after setting up depot_tools, I get the following when initially running `caffeinate fetch --no-history chromium`:

...
Running hooks:  64% (95/147) Generate location tags for tests
________ running 'python3 src/testing/generate_location_tags.py --out src/testing/location_tags.json' in '/Users/jonj/projects/chromium'
/Users/jonj/projects/chromium/src/third_party/depot_tools/dirmd: line 14: /Users/jonj/projects/chromium/src/third_party/depot_tools/.cipd_bin/dirmd: No such file or directory
/Users/jonj/projects/chromium/src/third_party/depot_tools/dirmd: line 14: exec: /Users/jonj/projects/chromium/src/third_party/depot_tools/.cipd_bin/dirmd: cannot execute: No such file or directory
Error: Command 'python3 src/testing/generate_location_tags.py --out src/testing/location_tags.json' returned non-zero exit status 126 in /Users/jonj/projects/chromium
/Users/jonj/projects/chromium/src/third_party/depot_tools/dirmd: line 14: /Users/jonj/projects/chromium/src/third_party/depot_tools/.cipd_bin/dirmd: No such file or directory
/Users/jonj/projects/chromium/src/third_party/depot_tools/dirmd: line 14: exec: /Users/jonj/projects/chromium/src/third_party/depot_tools/.cipd_bin/dirmd: cannot execute: No such file or directory

 I don't have a `/Users/jonj/projects/chromium/src/third_party/depot_tools/.cipd_bin` directory, though my depot_tools installation does 🤔.

vik dg

unread,
Aug 14, 2023, 11:43:11 AM8/14/23
to Chromium-dev, Lingqi Chi, DominiValenti
Thank you, it worked as a charm!

DominiValenti

unread,
Aug 14, 2023, 11:43:17 AM8/14/23
to Chromium-dev, Jon Jensen
 and solution at link.

пятница, 11 августа 2023 г. в 20:58:23 UTC+2, Jon Jensen:
Reply all
Reply to author
Forward
0 new messages