配置时 Chromium ARC 编译错误

Error on Chromium ARC Compilation when configure

当我按照 Getting Started with ARC Open Source on Linux 的指令的 步骤 4 进行操作时,出现如下错误。 OS 在 Hyper-V 中是 Ubuntu 14.04 LTS 运行。

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 @@@STEP_WARNINGS@@@ 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

有什么办法可以在不更改构建脚本的情况下解决这个问题吗?我可能会从其他来源(例如 https://naclports.storage.googleapis.com/builds/pepper_40/trunk-147-g49eb4c9/publish/python/pnacl/python.zip)手动指向 python.zip,但我想按原样构建它而不更改脚本。

我已经尝试设置 gsutil 及其验证器,但未能解决问题。

编辑: @elijah-taylor 修复 ACL 后,现在我收到以下错误

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行,

  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".

问题是文件上的 ACL 错误。我联系了@elijah-taylor 寻求修复,它现在应该可以工作了!

面临同样的问题..在 运行 以下内容后修复。

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