Building chromium fails

53 views
Skip to first unread message

Bhogi Yogi

unread,
Apr 22, 2022, 8:51:18 AM4/22/22
to android-w...@chromium.org
Hey there.

I'm trying out building chromium by the following link I strictly followed the tutorial steps.

Every step is performed. then when I run autoninja -C out/Default chrome_public_apk, it fails. Please see the error logs which contain "web layer - webview" related steps

Please note - I'm using: python 3.7.5 ubuntu 18.04.5

I also tried building it from scratch but the same thing happens.

Anyone please guild me

Error log :

FAILED: gen/android_webview/system_webview_no_weblayer_apk__compile_resources.srcjar obj/android_webview/system_webview_no_weblayer_apk.ap_ obj/android_webview/system_webview_no_weblayer_apk.ap_.info gen/android_webview/system_webview_no_weblayer_apk__compile_resources_R.txt obj/android_webview/system_webview_no_weblayer_apk/system_webview_no_weblayer_apk.resources.proguard.txt gen/android_webview/system_webview_no_weblayer_apk__compile_resources.resource_ids 


python3 
../../build/android/gyp/compile_resources.py 
--include-resources=@FileArg\(gen/android_webview/system_webview_no_weblayer_apk.build_config.json:android:sdk_jars\) 
--aapt2-path ../../third_party/android_build_tools/aapt2/aapt2 
--dependencies-res-zips=@FileArg\(gen/android_webview/system_webview_no_weblayer_apk.build_config.json:deps_info:dependency_zips\) 
--extra-res-packages=@FileArg\(gen/android_webview/system_webview_no_weblayer_apk.build_config.json:deps_info:extra_package_names\) 
--extra-main-r-text-files=@FileArg\(gen/android_webview/system_webview_no_weblayer_apk.build_config.json:deps_info:extra_main_r_text_files\) 
--min-sdk-version=23 
--target-sdk-version=31 
--webp-cache-dir=obj/android-webp-cache 
--android-manifest gen/android_webview/system_webview_no_weblayer_apk_manifest/AndroidManifest.xml 
--srcjar-out gen/android_webview/system_webview_no_weblayer_apk__compile_resources.srcjar 
--version-code 489609200 
--version-name 100.0.4896.92 
--arsc-path obj/android_webview/system_webview_no_weblayer_apk.ap_ 
--info-path obj/android_webview/system_webview_no_weblayer_apk.ap_.info 
--debuggable 
--r-text-out gen/android_webview/system_webview_no_weblayer_apk__compile_resources_R.txt 
--shared-resources 
--dependencies-res-zip-overlays=@FileArg\(gen/android_webview/system_webview_no_weblayer_apk.build_config.json:deps_info:dependency_zip_overlays\) 
--proguard-file obj/android_webview/system_webview_no_weblayer_apk/system_webview_no_weblayer_apk.resources.proguard.txt 
--locale-allowlist=\[\"af\",\ \"am\",\ \"ar\",\ \"as\",\ \"az\",\ \"be\",\ \"bg\",\ \"bn\",\ \"bs\",\ \"ca\",\ \"cs\",\ \"da\",\ \"de\",\ \"el\",\ \"en-GB\",\ \"en-US\",\ \"es\",\ \"es-419\",\ \"et\",\ \"eu\",\ \"fa\",\ \"fi\",\ \"fil\",\ \"fr\",\ \"fr-CA\",\ \"gl\",\ \"gu\",\ \"he\",\ \"hi\",\ \"hr\",\ \"hu\",\ \"hy\",\ \"id\",\ \"is\",\ \"it\",\ \"ja\",\ \"ka\",\ \"kk\",\ \"km\",\ \"kn\",\ \"ko\",\ \"ky\",\ \"lo\",\ \"lt\",\ \"lv\",\ \"mk\",\ \"ml\",\ \"mn\",\ \"mr\",\ \"ms\",\ \"my\",\ \"nb\",\ \"ne\",\ \"nl\",\ \"or\",\ \"pa\",\ \"pl\",\ \"pt-BR\",\ \"pt-PT\",\ \"ro\",\ \"ru\",\ \"si\",\ \"sk\",\ \"sl\",\ \"sq\",\ \"sr\",\ \"sr-Latn\",\ \"sv\",\ \"sw\",\ \"ta\",\ \"te\",\ \"th\",\ \"tr\",\ \"uk\",\ \"ur\",\ \"uz\",\ \"vi\",\ \"zh-CN\",\ \"zh-HK\",\ \"zh-TW\",\ \"zu\",\ \"ar-XB\",\ \"en-XA\"\] 
--resource-exclusion-regex=drawable\[\^/\]\*-xxxhdpi\|-watch\\b\|-ldpi\\b\|com_google_android_material.\*values-small\|com_google_android_material.\*-\(w480dp-port\|w360dp-port\|h480dp-land\|h360dp-land\)\|com_google_android_material.\*/layout\|com_google_android_material.\*/color.\*\(calendar_\|bottom_nav_\|slider_\)\|com_google_android_material.\*/drawable.\*design_snackbar\|com_google_android_material.\*/xml.\*badge_ 
--resource-exclusion-exceptions=\[\"\*shadow\*\",\ \"\*.9.\*\",\ \"\*ic_group_\*\",\ \"\*com_google_android_material\*/design_text_\*\",\ \"\*com_google_android_material\*/text_\*\",\ \"\*com_google_android_material\*/design_layout_tab_\*\",\ \"\*com_google_android_material\*/layout/m3_auto_complete_simple_item.xml\"\] 
--values-filter-rules=\[\"\*com_google_android_material\*:\[Bb\]adge\",\ \"\*com_google_android_material\*:\[Bb\]ottomNavigation\",\ \"\*com_google_android_material\*:\[Bb\]ottomSheet\",\ \"\*com_google_android_material\*:\[Bb\]uttonToggleGroup\",\ \"\*com_google_android_material\*:\[Cc\]alendar\",\ \"\*com_google_android_material\*:design_snackbar\",\ \"\*com_google_android_material\*:\[Ff\]loatingActionButton\",\ \"\*com_google_android_material\*:\[Mm\]aterialAlertDialog\",\ \"\*com_google_android_material\*:mtrl_alert\",\ \"\*com_google_android_material\*:mtrl_slider\",\ \"\*com_google_android_material\*:\[Nn\]avigationView\",\ \"\*com_google_android_material\*:\[Pp\]icker\",\ \"\*com_google_android_material\*:\[Ss\]nackbar\",\ \"\*com_google_android_material\*:\[Ss\]lider\",\ \"\*com_google_android_material\*:\[Tt\]oolbarLayout\"\] 
--emit-ids-out=gen/android_webview/system_webview_no_weblayer_apk__compile_resources.resource_ids 
--depfile gen/android_webview/system_webview_no_weblayer_apk__compile_resources.d
  File "<fstring>", line 1
    (exit_code=)
              ^
SyntaxError: invalid syntax


Please help me in this

Nate Fischer

unread,
Apr 22, 2022, 3:05:54 PM4/22/22
to Bhogi Yogi, android-w...@chromium.org
Are you (intentionally) attempting to compile 'system_webview_no_weblayer_apk'? I ask because, as far as I know, that should not be a dependency of 'chrome_public_apk'. They share some of the same code, but they're two different top-level targets.

If your goal is just to compile 'chrome_public_apk' and you don't actually intend to compile WebView, then I think chromi...@chromium.org would be a better mailing list because this seems to be a problem with either chrome build documentation or the chrome build target's dependencies.

Nate Fischer | Software Engineer | ntf...@google.com



--
You received this message because you are subscribed to the Google Groups "android-webview-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-webview...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/android-webview-dev/CAKUmpvZhmX4mJJ1W3wtn1CfBJXexoQF0vCpuunGU88UwHSuX2g%40mail.gmail.com.

Bhogi Yogi

unread,
Apr 24, 2022, 2:49:26 AM4/24/22
to Nate Fischer, android-w...@chromium.org
I just try to build 'chrome_public_apk' but it is giving this error, that's why I was wondering!!

Nate Fischer

unread,
Apr 25, 2022, 4:15:53 PM4/25/22
to Bhogi Yogi, android-w...@chromium.org
It's very surprising to me that compiling that target would cause this error. I think you should ask chromium-dev@ and explicitly mention that you're not compiling WebView and you don't understand why your GN args (which you should include in the email) don't work for a fresh compile.

The WebView team would be happy to investigate if WebView really is the culprit here, but generally speaking our team is not responsible for the chrome_public_apk build target so I think it's more productive if that target's owners do a first triage pass.


Nate Fischer | Software Engineer | ntf...@google.com


Bhogi Yogi

unread,
May 24, 2022, 2:42:13 AM5/24/22
to Nate Fischer, android-w...@chromium.org
Okay, Thanks for the reference.

Bhogi Yogi

unread,
May 24, 2022, 2:42:59 AM5/24/22
to chromi...@chromium.org, android-w...@chromium.org, Nate Fischer
Hey chromium-dev
Can you guys please look into it a bit and help me out?

Takuto Ikuta

unread,
May 24, 2022, 10:12:33 PM5/24/22
to bhogi...@gmail.com, Chromium-dev, android-w...@chromium.org, Nate Fischer
Which git revision and what args.gn do you use for your build?

--
--
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/CAKUmpvbH_zgT_OT6ry2xU89gd1eB%3D3ryybpVFGQY%3D2xaYXnh8Q%40mail.gmail.com.

Bhogi Yogi

unread,
May 25, 2022, 5:25:42 AM5/25/22
to Takuto Ikuta, Chromium-dev, android-w...@chromium.org, Nate Fischer
chromium git revision having tag v100.0.4896.92 (i.e. 81820453ed7ee46ca0606074034b35f2e0817592)

args.gn :

target_os = "android"

target_cpu = "arm64"

also tried with

is_debug = false

is_component_build = false

target_os = "android"

target_cpu = "arm"

Takuto Ikuta

unread,
May 25, 2022, 10:34:10 PM5/25/22
to Bhogi Yogi, Chromium-dev, android-w...@chromium.org, Nate Fischer
This reproduced locally and there is a fix in https://crbug.com/1305492#c1.
Reply all
Reply to author
Forward
0 new messages