Yeah..something strange happening to the gclient sync off late.
So, to ensure i get the right version of the libgvr code, i deleted the third_party/gvr-android-sdk, and ran gclient sync. But now, the third_party/gvr-android-sdk only had src/ and no other files. Strange :/
After mutiple failures, I decided to delete my entire chromium src/ and run a fresh "
fetch --nohooks android", install build deps, ran runhooks (https://chromium.googlesource.com/chromium/src/+/master/docs/android_build_instructions.md )
But, now i have a different error, on running gn gen args, i get
sohan@heBrick ~/Chrome_Android/src ((detached from origin/master)) $ gn gen --args='target_os="android"' out/Default
ERROR at //build/config/android/rules.gni:2808:9: Script returned non-zero exit code.
exec_script("//build/android/gyp/aar.py",
^----------
Current dir: /home/sohan/Chrome_Android/src/out/Default/
Command: python -- /home/sohan/Chrome_Android/src/build/android/gyp/aar.py --input-file ../../third_party/android_support_test_runner/lib/rules-0.5.aar --list
Returned 1.
stderr:
Traceback (most recent call last):
File "/home/sohan/Chrome_Android/src/build/android/gyp/aar.py", line 114, in <module>
sys.exit(main())
File "/home/sohan/Chrome_Android/src/build/android/gyp/aar.py", line 81, in main
with zipfile.ZipFile(aar_file) as z:
File "/usr/lib/python2.7/zipfile.py", line 756, in __init__
self.fp = open(file, modeDict[mode])
IOError: [Errno 2] No such file or directory: '../../third_party/android_support_test_runner/lib/rules-0.5.aar'
See //third_party/android_support_test_runner/BUILD.gn:21:1: whence it was called.
android_aar_prebuilt("rules_java") {
^-----------------------------------
See //build/config/android/internal_rules.gni:122:23: which caused the file to be included.
deps += [ "${_target_label}__build_config" ]
I found some bug (https://bugs.chromium.org/p/webrtc/issues/detail?id=5578) asking to run
build/android/play_services/update.py download, but that doesnt help either.
Not sure why gclient sync wont report what is the problem. Heres the log.
$ gclient sync
Syncing projects: 100% (108/108), done.
________ running '/usr/bin/python src/build/landmines.py' in '/home/sohan/Chrome_Android'
________ running '/usr/bin/python src/third_party/depot_tools/update_depot_tools_toggle.py --disable' in '/home/sohan/Chrome_Android'
________ running '/usr/bin/python src/tools/remove_stale_pyc_files.py src/android_webview/tools src/build/android src/gpu/gles2_conform_support src/infra src/ppapi src/printing src/third_party/catapult src/third_party/closure_compiler/build src/third_party/WebKit/Tools/Scripts src/tools' in '/home/sohan/Chrome_Android'
________ running '/usr/bin/python src/build/download_nacl_toolchains.py --mode nacl_core_sdk sync --extract' in '/home/sohan/Chrome_Android'
________ running '/usr/bin/python src/build/linux/sysroot_scripts/install-sysroot.py --running-as-hook' in '/home/sohan/Chrome_Android'
Jessie amd64 sysroot image already up to date: /home/sohan/Chrome_Android/src/build/linux/debian_jessie_amd64-sysroot
Jessie i386 sysroot image already up to date: /home/sohan/Chrome_Android/src/build/linux/debian_jessie_i386-sysroot
________ running '/usr/bin/python src/build/vs_toolchain.py update' in '/home/sohan/Chrome_Android'
________ running '/usr/bin/python src/build/mac_toolchain.py' in '/home/sohan/Chrome_Android'
________ running '/usr/bin/python src/third_party/binutils/download.py' in '/home/sohan/Chrome_Android'
________ running '/usr/bin/python src/tools/clang/scripts/update.py --if-needed' in '/home/sohan/Chrome_Android'
Updating Clang to 305735-1...
Clang is already up to date.
________ running '/usr/bin/python src/build/util/lastchange.py -o src/build/util/LASTCHANGE' in '/home/sohan/Chrome_Android'
________ running '/usr/bin/python src/build/util/lastchange.py -m SKIA_COMMIT_HASH -s src/third_party/skia --header src/skia/ext/skia_commit_hash.h' in '/home/sohan/Chrome_Android'
________ running '/usr/bin/python src/third_party/depot_tools/download_from_google_storage.py --no_resume --platform=win32 --no_auth --bucket chromium-gn -s src/buildtools/win/gn.exe.sha1' in '/home/sohan/Chrome_Android'
The current platform doesn't match "win32", skipping.
________ running '/usr/bin/python src/third_party/depot_tools/download_from_google_storage.py --no_resume --platform=darwin --no_auth --bucket chromium-gn -s src/buildtools/mac/gn.sha1' in '/home/sohan/Chrome_Android'
The current platform doesn't match "darwin", skipping.
________ running '/usr/bin/python src/third_party/depot_tools/download_from_google_storage.py --no_resume --platform=linux* --no_auth --bucket chromium-gn -s src/buildtools/linux64/gn.sha1' in '/home/sohan/Chrome_Android'
0> File src/buildtools/linux64/gn exists and SHA1 matches. Skipping.
Success!
Downloading 1 files took 0.002840 second(s)
________ running '/usr/bin/python src/third_party/depot_tools/download_from_google_storage.py --no_resume --platform=win32 --no_auth --bucket chromium-clang-format -s src/buildtools/win/clang-format.exe.sha1' in '/home/sohan/Chrome_Android'
The current platform doesn't match "win32", skipping.
________ running '/usr/bin/python src/third_party/depot_tools/download_from_google_storage.py --no_resume --platform=darwin --no_auth --bucket chromium-clang-format -s src/buildtools/mac/clang-format.sha1' in '/home/sohan/Chrome_Android'
The current platform doesn't match "darwin", skipping.
________ running '/usr/bin/python src/third_party/depot_tools/download_from_google_storage.py --no_resume --platform=linux* --no_auth --bucket chromium-clang-format -s src/buildtools/linux64/clang-format.sha1' in '/home/sohan/Chrome_Android'
0> File src/buildtools/linux64/clang-format exists and SHA1 matches. Skipping.
Success!
Downloading 1 files took 0.003210 second(s)
________ running '/usr/bin/python src/third_party/depot_tools/download_from_google_storage.py --no_resume --platform=win32 --no_auth --bucket chromium-browser-clang/orderfiles -d src/chrome/build' in '/home/sohan/Chrome_Android'
The current platform doesn't match "win32", skipping.
________ running '/usr/bin/python src/third_party/depot_tools/download_from_google_storage.py --no_resume --platform=win32 --no_auth --bucket chromium-luci -d src/tools/luci-go/win64' in '/home/sohan/Chrome_Android'
The current platform doesn't match "win32", skipping.
________ running '/usr/bin/python src/third_party/depot_tools/download_from_google_storage.py --no_resume --platform=darwin --no_auth --bucket chromium-luci -d src/tools/luci-go/mac64' in '/home/sohan/Chrome_Android'
The current platform doesn't match "darwin", skipping.
________ running '/usr/bin/python src/third_party/depot_tools/download_from_google_storage.py --no_resume --platform=linux* --no_auth --bucket chromium-luci -d src/tools/luci-go/linux64' in '/home/sohan/Chrome_Android'
0> File src/tools/luci-go/linux64/isolate exists and SHA1 matches. Skipping.
Success!
Downloading 1 files took 0.016837 second(s)
________ running '/usr/bin/python src/third_party/depot_tools/download_from_google_storage.py --no_resume --platform=linux* --no_auth --bucket chromium-eu-strip -s src/build/linux/bin/eu-strip.sha1' in '/home/sohan/Chrome_Android'
0> File src/build/linux/bin/eu-strip exists and SHA1 matches. Skipping.
Success!
Downloading 1 files took 0.000755 second(s)
________ running '/usr/bin/python src/third_party/depot_tools/download_from_google_storage.py --no_resume --platform=win32 --no_auth --bucket chromium-drmemory -s src/third_party/drmemory/drmemory-windows-sfx.exe.sha1' in '/home/sohan/Chrome_Android'
The current platform doesn't match "win32", skipping.
________ running '/usr/bin/python src/build/get_syzygy_binaries.py --output-dir=src/third_party/syzygy/binaries --revision=dbb218b6d05ff1c17a4d86252b10880c2d8ebe08 --overwrite --copy-dia-binaries' in '/home/sohan/Chrome_Android'
INFO:get_syzygy_binaries.py:Output directory does not exist, skipping cleanup.
________ running '/usr/bin/python src/third_party/depot_tools/download_from_google_storage.py --no_resume --platform=win32 --directory --recursive --no_auth --num_threads=16 --bucket chromium-apache-win32 src/third_party/apache-win32' in '/home/sohan/Chrome_Android'
The current platform doesn't match "win32", skipping.
________ running '/usr/bin/python src/third_party/instrumented_libraries/scripts/download_binaries.py' in '/home/sohan/Chrome_Android'
________ running '/usr/bin/python src/third_party/depot_tools/download_from_google_storage.py --no_resume --no_auth -u --bucket v8-wasm-fuzzer -s src/v8/test/fuzzer/wasm_corpus.tar.gz.sha1' in '/home/sohan/Chrome_Android'
0> File src/v8/test/fuzzer/wasm_corpus.tar.gz exists and SHA1 matches. Skipping.
Success!
Downloading 1 files took 0.001977 second(s)
________ running '/usr/bin/python src/third_party/WebKit/Source/devtools/scripts/local_node/node.py --running-as-hook --version' in '/home/sohan/Chrome_Android'
________ running '/usr/bin/python src/third_party/depot_tools/download_from_google_storage.py --no_resume --platform=linux* --extract --no_auth --bucket chromium-nodejs/6.9.4 -s src/third_party/node/linux/node-linux-x64.tar.gz.sha1' in '/home/sohan/Chrome_Android'
0> File src/third_party/node/linux/node-linux-x64.tar.gz exists and SHA1 matches. Skipping.
Success!
Downloading 1 files took 0.018922 second(s)
________ running '/usr/bin/python src/third_party/depot_tools/download_from_google_storage.py --no_resume --platform=darwin --extract --no_auth --bucket chromium-nodejs/6.9.4 -s src/third_party/node/mac/node-darwin-x64.tar.gz.sha1' in '/home/sohan/Chrome_Android'
The current platform doesn't match "darwin", skipping.
________ running '/usr/bin/python src/third_party/depot_tools/download_from_google_storage.py --no_resume --platform=win32 --no_auth --bucket chromium-nodejs/6.9.4 -s src/third_party/node/win/node.exe.sha1' in '/home/sohan/Chrome_Android'
The current platform doesn't match "win32", skipping.
________ running '/usr/bin/python src/third_party/depot_tools/download_from_google_storage.py --no_resume --extract --no_auth --bucket chromium-nodejs -s src/third_party/node/node_modules.tar.gz.sha1' in '/home/sohan/Chrome_Android'
0> File src/third_party/node/node_modules.tar.gz exists and SHA1 matches. Skipping.
Success!
Downloading 1 files took 0.006450 second(s)
________ running '/usr/bin/python src/tools/perf/conditionally_execute --gyp-condition fetch_telemetry_dependencies=1 src/third_party/catapult/telemetry/bin/fetch_telemetry_binary_dependencies' in '/home/sohan/Chrome_Android'
Not found "fetch_telemetry_dependencies=1" condition in GYP_DEFINES="[]". Skip script execution.
________ running '/usr/bin/python src/third_party/depot_tools/download_from_google_storage.py --no_resume --no_auth --bucket chromium-android-tools/checkstyle -s src/third_party/checkstyle/checkstyle-7.6.1-all.jar.sha1' in '/home/sohan/Chrome_Android'
0> File src/third_party/checkstyle/checkstyle-7.6.1-all.jar exists and SHA1 matches. Skipping.
Success!
Can anyone please help ?
Thanks,
Sohan