New issue
Advanced search Search tips

Issue 775265 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Closed: Jan 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Browser code won't compile for ChromiumOS inside chroot

Reported by daniel.c...@intel.com, Oct 16 2017

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
Platform: 10019.0.2017_10_16_0922

Steps to reproduce the problem:
1. sync ChromiumOS code and Chromium Browser code
2. compile ChromiumOS with local Chromium Broswercode, i.e. cros_workon start chromeos-chrome
3. try to build an image with this browser

What is the expected behavior?
chromeos-chrome-9999 ebuild should build properly

What went wrong?
It seems that gclient sync and run-hooks change lately.  I am build ChromiumOS with a local copy of Chromium browser code by cros_workon start chromeos-chrome.  There are a lot of errors related to access with gsutil that otherwise worked okay before and works fine when sync'ing browser code locally.  It is only the ChromiumOS build that is broken.

Some errors are:

chromeos-chrome-9999: ________ running '/usr/bin/python2.7 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/user/chrome_root'
chromeos-chrome-9999:  * ACCESS DENIED:  open_wr:      /home/user/depot_tools/tmp.KiJtS5Qc6C
chromeos-chrome-9999:  * ACCESS DENIED:  open_wr:      /home/user/depot_tools/.cipd_client.W4t5n7O
chromeos-chrome-9999:
chromeos-chrome-9999: ________ running '/usr/bin/python2.7 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/user/chrome_root'
chromeos-chrome-9999:  * ACCESS DENIED:  open_wr:      /home/user/depot_tools/tmp.xxNj2XLxNH
chromeos-chrome-9999:  * ACCESS DENIED:  open_wr:      /home/user/depot_tools/.cipd_client.aPAijsy
chromeos-chrome-9999:
chromeos-chrome-9999: ________ running '/usr/bin/python2.7 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/user/chrome_root'
chromeos-chrome-9999:  * ACCESS DENIED:  open_wr:      /home/user/depot_tools/tmp.VhKaxi7tRx
chromeos-chrome-9999:  * ACCESS DENIED:  open_wr:      /home/user/depot_tools/.cipd_client.J1SULDg
chromeos-chrome-9999:
chromeos-chrome-9999: ________ running '/usr/bin/python2.7 src/third_party/depot_tools/download_from_google_storage.py --no_resume --no_auth --bucket chromium-instrumented-libraries -s src/third_party/instrumented_libraries/binaries/msan-chained-origins-trusty.tgz.sha1' in '/home/user/chrome_root'
chromeos-chrome-9999:  * ACCESS DENIED:  open_wr:      /home/user/depot_tools/tmp.xVr3tloI8P
chromeos-chrome-9999:  * ACCESS DENIED:  open_wr:      /home/user/depot_tools/.cipd_client.vHme3UT
chromeos-chrome-9999:
chromeos-chrome-9999: ________ running '/usr/bin/python2.7 src/third_party/depot_tools/download_from_google_storage.py --no_resume --no_auth --bucket chromium-instrumented-libraries -s src/third_party/instrumented_libraries/binaries/msan-no-origins-trusty.tgz.sha1' in '/home/user/chrome_root'
chromeos-chrome-9999:  * ACCESS DENIED:  open_wr:      /home/user/depot_tools/tmp.cGLYrHmF7f
chromeos-chrome-9999:  * ACCESS DENIED:  open_wr:      /home/user/depot_tools/.cipd_client.mJ6bcqQ
chromeos-chrome-9999:
chromeos-chrome-9999: ________ running '/usr/bin/python2.7 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/user/chrome_root'
chromeos-chrome-9999:  * ACCESS DENIED:  open_wr:      /home/user/depot_tools/tmp.r0jzfBJv47
chromeos-chrome-9999:  * ACCESS DENIED:  open_wr:      /home/user/depot_tools/.cipd_client.gE706l2
chromeos-chrome-9999:
chromeos-chrome-9999: ________ running '/usr/bin/python2.7 src/third_party/WebKit/Source/devtools/scripts/local_node/node.py --running-as-hook --version' in '/home/user/chrome_root'
chromeos-chrome-9999:
chromeos-chrome-9999: ________ running '/usr/bin/python2.7 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/user/chrome_root'
chromeos-chrome-9999:  * ACCESS DENIED:  open_wr:      /home/user/depot_tools/tmp.fmMs8R5GJO
chromeos-chrome-9999:  * ACCESS DENIED:  open_wr:      /home/user/depot_tools/.cipd_client.ng5RARa
chromeos-chrome-9999:
chromeos-chrome-9999: ________ running '/usr/bin/python2.7 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/user/chrome_root'
chromeos-chrome-9999:  * ACCESS DENIED:  open_wr:      /home/user/depot_tools/tmp.tnn3a3IXqk
chromeos-chrome-9999:  * ACCESS DENIED:  open_wr:      /home/user/depot_tools/.cipd_client.vi2j3Eb
chromeos-chrome-9999:
chromeos-chrome-9999: ________ running '/usr/bin/python2.7 src/tools/perf/conditionally_execute --gyp-condition fetch_telemetry_dependencies=1 src/third_party/catapult/telemetry/bin/fetch_telemetry_binary_dependencies' in '/home/user/chrome_root'
chromeos-chrome-9999: Not found "fetch_telemetry_dependencies=1" condition in GYP_DEFINES="[]". Skip script execution.
chromeos-chrome-9999:
chromeos-chrome-9999: ________ running '/usr/bin/python2.7 src/third_party/depot_tools/download_from_google_storage.py --no_resume --platform=linux* --no_auth --num_threads=4 --bucket chromium-tools-traffic_annotation -d src/tools/traffic_annotation/bin/linux64' in '/home/user/chrome_root'
chromeos-chrome-9999:  * ACCESS DENIED:  open_wr:      /home/user/depot_tools/tmp.BoTclRARYY
chromeos-chrome-9999:  * ACCESS DENIED:  open_wr:      /home/user/depot_tools/.cipd_client.J4We8Q9
chromeos-chrome-9999:
chromeos-chrome-9999: ________ running '/usr/bin/python2.7 src/third_party/depot_tools/download_from_google_storage.py --no_resume --no_auth --num_threads=4 --bucket chromium-binary-patching -d src/chrome/installer/zucchini/testdata' in '/home/user/chrome_root'
chromeos-chrome-9999:  * ACCESS DENIED:  open_wr:      /home/user/depot_tools/tmp.gXPbo2fZpY
chromeos-chrome-9999:  * ACCESS DENIED:  open_wr:      /home/user/depot_tools/.cipd_client.9ccQHKQ
chromeos-chrome-9999:
chromeos-chrome-9999: ________ running '/usr/bin/python2.7 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-8.0-all.jar.sha1' in '/home/user/chrome_root'
chromeos-chrome-9999:  * ACCESS DENIED:  open_wr:      /home/user/depot_tools/tmp.JgVSW1t0o4
chromeos-chrome-9999:  * ACCESS DENIED:  open_wr:      /home/user/depot_tools/.cipd_client.o14F1yK
chromeos-chrome-9999:
chromeos-chrome-9999: ________ running 'vpython -vpython-spec src/.vpython -vpython-tool install' in '/home/user/chrome_root'
chromeos-chrome-9999:  * ACCESS DENIED:  open_wr:      /home/user/depot_tools/tmp.dIxYil9AnP
chromeos-chrome-9999:  * ACCESS DENIED:  open_wr:      /home/user/depot_tools/.cipd_client.V4IcPqb
chromeos-chrome-9999: /home/user/depot_tools/vpython: line 12: /home/user/depot_tools/.cipd_bin/vpython: No such file or directo

Did this work before? Yes A sync from a week ago did work

Chrome version: 63.0.3230.0  Channel: dev
OS Version: 
Flash Version:
 
I have the same issue and here's my temporary solution.

`vi chromiumos/chroot/etc/sandbox.conf` and add the following line

# Needed for shells
SANDBOX_WRITE="${HOME}/.bash_history"
+# Needed for depot_tools
+SANDBOX_WRITE="/home/dshwang/depot_tools/"

However, chromiumos/chroot/ is downloaded from the cloud and I don't know how to change it in the cloud.

Comment 2 by caseq@chromium.org, Oct 17 2017

Components: -Platform>DevTools Build
FWIW, the workaround on comment #1 does make it compile properly. 

Comment 4 by dbehr@chromium.org, Nov 30 2017

Owner: hinoka@chromium.org
Or revert this 83fd81f8a4eef6c8f176a7257662b18cac3e89be in your depot_tools

https://chromium-review.googlesource.com/707758

Comment 5 by hinoka@chromium.org, Nov 30 2017

Owner: dgarr...@chromium.org
I don't have knowledge on how the chroot works in CrOS, i think dgarrett@ may know more.
The chroot uses a pinned version of depot_tools, which is defined in the ChromeOS manifest (and a matching pin in our recipe):

https://cs.corp.google.com/chromeos_public/manifest/full.xml?rcl=d80a13a1951d7e238659e03fb580abfa7fabfc07&l=406

Would this problem be resolved by updating the pin to a newer version?
Based on that email thread, is this now resolved?
Assuming resolved.
Status: Fixed (was: Unconfirmed)

Sign in to add a comment