Unable to build for hatch on stable or main

45 views
Skip to first unread message

Mitchell

unread,
May 26, 2025, 11:15:29 PMMay 26
to ChromiumOS Development
When I try main gclient sync freezes forever at "$ gclient sync
Syncing projects: 100% (228/228), done.
Running hooks:  35% (41/115) cros_simplechrome_artifacts_with_no_vm
________ running 'vpython3 src/third_party/chromite/bin/cros chrome-sdk --fallback-versions=20 --no-use-remoteexec --nogn-gen --no-shell --log-level=warning --cache-dir=src/build/cros_cache/ --use-external-config --boards=hatch' in '/home/user/chromium'
18:33:40: WARNING: No LATEST file matching SDK snapshot 1068983".

I also tried the latest stable 136.0.7103.142 and it seemed to require me to be a googler.
"$ gclient sync
Syncing projects: 100% (225/225), done.
Running hooks:  34% (41/118) cros_simplechrome_artifacts_with_no_vm
________ running 'vpython3 src/third_party/chromite/bin/cros chrome-sdk --fallback-versions=20 --no-use-remoteexec --nogn-gen --no-shell --log-level=warning --cache-dir=src/build/cros_cache/ --use-external-config --boards=hatch' in '/home/user/chromium'
18:42:30: WARNING: No LATEST file matching SDK version 16238.53.0
18:42:53: WARNING: No recent LATEST file found from 33.0.0 to 53.0.0
18:42:53: ERROR: cros chrome-sdk failed before completing.
18:42:53: ERROR: Cannot find SDK for hatch (external) with version 16238.53.0 from its builder: http://go/cros-ci-builds-/public/?f=build_target:in:hatch
18:42:53: ERROR: (Re-run with --debug for more details.)
Error: Command 'vpython3 src/third_party/chromite/bin/cros chrome-sdk --fallback-versions=20 --no-use-remoteexec --nogn-gen --no-shell --log-level=warning --cache-dir=src/build/cros_cache/ --use-external-config --boards=hatch' returned non-zero exit status 1 in /home/user/chromium
18:42:30: WARNING: No LATEST file matching SDK version 16238.53.0
18:42:53: WARNING: No recent LATEST file found from 33.0.0 to 53.0.0
18:42:53: ERROR: cros chrome-sdk failed before completing.
18:42:53: ERROR: Cannot find SDK for hatch (external) with version 16238.53.0 from its builder: http://go/cros-ci-builds-/public/?f=build_target:in:hatch
18:42:53: ERROR: (Re-run with --debug for more details.)

Hook 'vpython3 src/third_party/chromite/bin/cros chrome-sdk --fallback-versions=20 --no-use-remoteexec --nogn-gen --no-shell --log-level=warning --cache-dir=src/build/cros_cache/ --use-external-config --boards=hatch' took 24.13 secs"

I would really like to be able to run and modify chromiumOS for my real chromebook.

Qijiang Yūki Ishii

unread,
Jun 17, 2025, 7:58:20 AMJun 17
to Mitchell, ChromiumOS Development
Hello,

What you're doing is to build the Chromium Browser's chrome binary for ChromiumOS, which relies on the OS image and SDK.
We didn't build an external ChromiumOS image and SDK for hatch. Only limited boards are built for the external version of ChromiumOS.

If you would like to fully replace your stock ChromeOS to your customized built ChromiumOS, you can follow
to build the full image of the OS and flash to your Chromebook.
You may lose user data stored on your device.

Building Chromium for ChromiumOS without SDK is not possible, and building full sets of SDK locally is not straightforward.
It consists of toolchains (compilers, linkers), ChromiumOS sysroot (for system libraries, etc), environment (for populating necessary Chromium build flags) that you'll have to build separately for each.

You can modify your Chromium browser, build and deploy within the ChromiumOS chroot, by using portage related commands (https://dev.gentoo.org/~zmedico/portage/doc/man/ebuild.1.html, https://wiki.gentoo.org/wiki/Full_manpages/emerge)
We have emerge-$BOARD and ebuild-$BOARD command in the chroot for each board.
Developer guide above also has information on how to modify and build a single package (and its dependencies).
Chromium browser is at chromeos-base/chromeos-chrome package.
You can then use cros deploy to deploy the built package only, instead of the whole OS, to your Chromebook.
Please checkout to the correct base ChromiumOS version before building from scratch since libraries, and IPC shared across browser and OS is not guaranteed to be 100% compatible across versions.

Regards,

--
--
ChromiumOS Developers mailing list: chromiu...@chromium.org
View archives, change email options, or unsubscribe:
https://groups.google.com/a/chromium.org/group/chromium-os-dev
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-os-d...@chromium.org.


--


Qijiang Fan | Software Engineer | f...@google.com | +81-3-6384-9927

このメールには機密事項が記載されている可能性があります。このメールが間違って送信されたと思われる場合は、すぐにお問い合わせください。いかなる理由でもコピーしたり、第三者にコンテンツを公開しないでください。インターネットでのコミュニケーションはセキュリティが保護されておらず、このメッセージは公共のネットワークを通して送信されているため、Google でそのコンテンツに対する法的責任を負うことはいたしかねます。メッセージが第三者に傍受された、または改ざんされたと思われる場合、Google までお問い合わせください。
If you received this communication by mistake, please don't forward it to anyone else (it may contain confidential or privileged information), please erase all copies of it, including all attachments, and please let the sender know it went to the wrong person. Thanks.
Reply all
Reply to author
Forward
0 new messages