6

當我按照指令Getting Started with ARC Open Source on Linux步驟4得到以下錯誤。 OS是在Hyper-V中運行的Ubuntu 14.04 LTS。配置時在鉻ARC編譯時出錯

UBUNTU14:~/arc$ ./configure
ERROR:root:While running ['third_party/tools/depot_tools/third_party/gsutil/gsutil', 'cp', 'gs://arc-build/naclports/builds/pepper_40/python.zip', '/tmp/tmpUZ0IoK/naclports-python'] ERROR:root:GSResponseError: status=403, code=None, reason=Forbidden.

ERROR:root:Try prodaccess, and if it does not solve the problem try rm ~/.devstore_token @@@[email protected]@@ ERROR:root:Retrying after 9 s sleeping Traceback (most recent call last): File "/home/fkiller/arc/src/build/build_common.py", line 938, in wrapper return func(*args, **kwargs) File "/home/fkiller/arc/src/build/util/download_package_util.py", line 243, in _download_package_with_retries self._download_method(url, download_package_path) File "/home/fkiller/arc/src/build/util/download_package_util.py", line 119, in _download build_common.get_gsutil_executable(), 'cp', url, destination_path]) File "/home/fkiller/arc/src/build/util/download_package_util.py", line 97, in execute_subprocess output = subprocess.check_output(cmd, cwd=cwd, stderr=subprocess.STDOUT) File "/usr/lib/python2.7/subprocess.py", line 573, in check_output raise CalledProcessError(retcode, cmd, output=output) CalledProcessError: Command '['third_party/tools/depot_tools/third_party/gsutil/gsutil', 'cp', 'gs://arc-build/naclports/builds/pepper_40/python.zip', '/tmp/tmpUZ0IoK/naclports-python']' returned non-zero exit status 1

任何想法解決這個問題,而不改變構建腳本?我可能會從其他來源手動指向python.zip,例如https://naclports.storage.googleapis.com/builds/pepper_40/trunk-147-g49eb4c9/publish/python/pnacl/python.zip,但我想按原樣構建它而不更改腳本。

我已經嘗試設置gsutil及其驗證器,但它沒有解決問題。

編輯:後@伊利亞 - 泰勒固定下面

Traceback (most recent call last): File "src/build/configure.py", line 365, in sys.exit(main()) File "src/build/configure.py", line 347, in main _gclient_sync_third_party() File "src/build/configure.py", line 132, in _gclient_sync_third_party subprocess.check_output(cmd, cwd=os.path.dirname(gclient_filename)) File "/usr/lib/python2.7/subprocess.py", line 566, in check_output process = Popen(stdout=PIPE, *popenargs, **kwargs) File "/usr/lib/python2.7/subprocess.py", line 710, in init errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory

在線路132 ACL,現在我得到的錯誤,

File "src/build/configure.py", line 132, in _gclient_sync_third_party 
    subprocess.check_output(cmd, cwd=os.path.dirname(gclient_filename)) 

gclient_filename是 「THIRD_PARTY/.gclient」和os.path.dirname(gclient_filename)是「thrid_party」。

+1

你試過'rm〜/ .devstore_token'嗎?這適用於我:'〜depot_tools/third_party/gsutil/gsutil cp gs://arc-build/naclports/builds/pepper_40/python.zip foo.zip'。 –

+0

我得到了'rm:無法刪除'/home/xxx/.devstore_token':沒有這樣的文件或目錄' – Minime

+0

我懷疑ACL可能設置錯了,望着它... –

回答

3

問題是文件上的ACL錯誤。我向@ elijah-taylor尋求解決辦法,現在應該可以工作了!

+0

謝謝。儘管如此,我仍未在git https://chromium.googlesource.com/arc/arc/+/master上看到任何更新,但我會繼續檢查它是否已修復。 – Minime

+0

我收到了另一個錯誤。請回顧我編輯的問題。 – Minime

0

面臨同樣的問題..運行以下後固定。

apt-get install gsutil 
apt-get install libwww-perl 
chmod +x ./third_party/tools/depot_tools/third_party/gsutil/gsutil