【问题标题】:Getting error while fetching chromium source code获取铬源代码时出错
【发布时间】:2016-12-08 04:07:50
【问题描述】:

我按照链接https://chromium.googlesource.com/chromium/src/+/master/docs/windows_build_instructions.md上给出的说明进行操作

并尝试使用不同的 fetch 命令,例如 --no-history、nohooks 等。 但它继续失败并出现以下错误:

C:\chromium_nohistory>fetch --no-history chromium
Running: 'C:\depot_tools\python276_bin\python.exe' 'C:\depot_tools\gclient.py' root
Running: 'C:\depot_tools\python276_bin\python.exe' 'C:\depot_tools\gclient.py' config --spec 'solutions = [
  {
    "url": "https://chromium.googlesource.com/chromium/src.git",
    "managed": False,
    "name": "src",
    "deps_file": ".DEPS.git",
    "custom_deps": {},
  },
]
'
Running: 'C:\depot_tools\python276_bin\python.exe' 'C:\depot_tools\gclient.py' sync --no-history
Error: Command 'C:\\depot_tools\\python276_bin\\python.exe src/build/landmines.py' returned non-zero exit status 1 in C:\chromium_nohistory
Traceback (most recent call last):
  File "C:\depot_tools\\fetch.py", line 300, in <module>
    sys.exit(main())
  File "C:\depot_tools\\fetch.py", line 295, in main
    return run(options, spec, root)
  File "C:\depot_tools\\fetch.py", line 289, in run
    return checkout.init()
  File "C:\depot_tools\\fetch.py", line 132, in init
    self.run_gclient(*sync_cmd)
  File "C:\depot_tools\\fetch.py", line 76, in run_gclient
    return self.run(cmd_prefix + cmd, kwargs)
  File "C:\depot_tools\\fetch.py", line 66, in run
    return subprocess.check_output(cmd, kwargs)
  File "C:\depot_tools\python276_bin\lib\subprocess.py", line 573, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '('C:\\depot_tools\\python276_bin\\python.exe', 'C:\\depot_tools\\gclient.py', 'sync', '--no-history')' **returned non-zero exit status 2**

我是铬的新手,所以有什么我遗漏的吗? 对此的任何帮助表示赞赏。

提前致谢。

【问题讨论】:

    标签: web-applications desktop-application chromium webviewchromium


    【解决方案1】:

    创建 DEPOT_TOOLS_WIN_TOOLCHAIN 系统变量,并将其设置为 0

    我错过了这个设置,这就是错误出现的原因。 完成此操作后,一切都非常顺利。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-11-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-10-01
      • 1970-01-01
      相关资源
      最近更新 更多