Failed to fetch chromium source code

56 views
Skip to first unread message

Yu Hui

unread,
Dec 22, 2024, 11:11:41 PM12/22/24
to Chromium-dev
I'm newbie to build a chrome for Android by myself. But I couldn't resolve this error after few days struggling. Hope someone big guy can help, thanks in advance.

When I ran this command according to Checking out and building Chromium for Android:

fetch --nohooks android

I got an error:
yuhui@yuhui:~/Desktop$ fetch --nohooks android
/home/yuhui/Desktop/depot_tools/vpython3: line 57: /home/yuhui/Desktop/depot_tools/.cipd_bin/vpython3: No such file or directory

The `.cipd_bin` directory does NOT exist:
yuhui@yuhui:~/Desktop$ ls -l depot_tools/.cipd_bin
ls: cannot access 'depot_tools/.cipd_bin': No such file or directory

As this thread said, run `update_depot_tools` before fetch, but I still got error:
yuhui@yuhui:~/Desktop$ update_depot_tools
/home/yuhui/Desktop/depot_tools/bootstrap_python3: line 32: boots...@3.11.8.chromium.35_bin/python3/bin/python3: No such file or directory

It looks like I don't have the specified python3 located in the desired directory.
I've noted that I don't have directory 
boots...@3.11.8.chromium.35_bin in depot_tools at all:
yuhui@yuhui:~/Desktop$ ls -l depot_tools/bootstrap*
-rw-rw-r-- 1 yuhui yuhui  984 Dec 21 09:06 depot_tools/bootstrap_python3

depot_tools/bootstrap:
total 56
-rw-rw-r-- 1 yuhui yuhui 19224 Dec 21 09:06 bootstrap.py
-rwxrwxr-x 1 yuhui yuhui   519 Dec 21 09:06 git-bash.template.sh
-rw-rw-r-- 1 yuhui yuhui   475 Dec 21 09:06 git.template.bat
-rw-rw-r-- 1 yuhui yuhui  1009 Dec 21 09:06 manifest_bleeding_edge.txt
-rw-rw-r-- 1 yuhui yuhui   979 Dec 21 09:06 manifest.txt
-rwxrwxr-x 1 yuhui yuhui   609 Dec 21 09:06 profile.d.python.sh
-rw-rw-r-- 1 yuhui yuhui  2165 Dec 21 09:06 python3.bat
-rw-rw-r-- 1 yuhui yuhui  5925 Dec 21 09:06 README.md
-rw-rw-r-- 1 yuhui yuhui  2850 Dec 21 09:06 win_tools.bat

So I guess there might be something wrong with the bootstrap process? But I am really newbie to the process of building chromium, hope someone can give me guidance.

Thank you!

------
Host Machine: Windows 10
Virtual Machine (where I ran those commands): Ubuntu 24.04.1 LTS

Junji Watanabe

unread,
Mar 6, 2025, 3:57:05 AM (13 days ago) Mar 6
to xiyua...@gmail.com, Chromium-dev
What happens if you run these commands in update_depot_tools directly?

source "$base_dir/cipd_bin_setup.sh" 
cipd_bin_setup

source "$base_dir/bootstrap_python3"
bootstrap_python3

$base_dir is /home/yuhui/Desktop/depot_tools in your case.

--
--
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 visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/24a291a1-33c4-4578-8369-ff124854f96cn%40chromium.org.
Reply all
Reply to author
Forward
0 new messages