1

我正在尝试v8按照这里所说的进行构建:https ://github.com/v8/v8/wiki/Building%20with%20Gyp By this command gclient sync。但我得到了这个结果:

Running depot tools as root is sad.
/home/m/.gclient_entries missing, .gclient file in parent directory /home/m might not be the file you want to use.
Syncing projects: 100% (23/23), done.

________ running '/usr/bin/python v8/gypfiles/landmines.py' in '/home/m'
Clobbering due to missing landmines file.
Running hooks:  17% ( 4/23) clang_format_linux
________ running 'download_from_google_storage --no_resume --platform=linux* --no_auth --bucket chromium-clang-format -s v8/buildtools/linux64/clang-format.sha1' in '/home/m'
Failed to fetch file gs://chromium-clang-format/5349d1954e17f6ccafb6e6663b0f13cdb2bb33c8 for v8/buildtools/linux64/clang-format. [Err: Traceback (most recent call last):
  File "/home/m/depot_tools/gsutil.py", line 182, in <module>
    sys.exit(main())
  File "/home/m/depot_tools/gsutil.py", line 179, in main
    clean=args.clean)
  File "/home/m/depot_tools/gsutil.py", line 128, in run_gsutil
    gsutil_bin = ensure_gsutil(force_version, target, clean)
  File "/home/m/depot_tools/gsutil.py", line 107, in ensure_gsutil
    target_zip_filename = download_gsutil(version, instance_dir)
  File "/home/m/depot_tools/gsutil.py", line 65, in download_gsutil
    u = urllib2.urlopen(url)
  File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 403: Forbidden
]
0> Failed to fetch file gs://chromium-clang-format/5349d1954e17f6ccafb6e6663b0f13cdb2bb33c8 for v8/buildtools/linux64/clang-format, skipping. [Err: Traceback (most recent call last):
  File "/home/m/depot_tools/gsutil.py", line 182, in <module>
    sys.exit(main())
  File "/home/m/depot_tools/gsutil.py", line 179, in main
    clean=args.clean)
  File "/home/m/depot_tools/gsutil.py", line 128, in run_gsutil
    gsutil_bin = ensure_gsutil(force_version, target, clean)
  File "/home/m/depot_tools/gsutil.py", line 107, in ensure_gsutil
    target_zip_filename = download_gsutil(version, instance_dir)
  File "/home/m/depot_tools/gsutil.py", line 65, in download_gsutil
    u = urllib2.urlopen(url)
  File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 403: Forbidden
]
Downloading 1 files took 6.526568 second(s)
Error: Command 'download_from_google_storage --no_resume --platform=linux* --no_auth --bucket chromium-clang-format -s v8/buildtools/linux64/clang-format.sha1' returned non-zero exit status 1 in /home/m
Hook 'download_from_google_storage --no_resume '--platform=linux*' --no_auth --bucket chromium-clang-format -s v8/buildtools/linux64/clang-format.sha1' took 13.36 secs

另外我不知道我是否应该运行所有命令直到该页面结束?!

我使用带有 armbian OS(armv7l armv7l armv7l GNU/Linux)的基于 ARM 的板。我的构建目标v8是在程序内部使用它,libaiml因为它想通过以下命令启用它:--enable-javascript --with-v8-path=/path/to/v8.

4

0 回答 0