使用 fetch --no-history chromium 时出错

Errors when using fetch --no-history chromium

提问人:CodeSoft 提问时间:10/24/2023 最后编辑:AseshCodeSoft 更新时间:10/25/2023 访问量:18

问:

我在使用时遇到此错误fetch --no-history chromium

No downloadable toolchain found. In order to use your locally installed version of Visual Studio to build Chrome please set DEPOT_TOOLS_WIN_TOOLCHAIN=0.
For details search for DEPOT_TOOLS_WIN_TOOLCHAIN in the instructions at https://chromium.googlesource.com/chromium/src/+/HEAD/docs/windows_build_instructions.md


Traceback (most recent call last):
  File "src/build/vs_toolchain.py", line 589, in <module>
    sys.exit(main())
  File "src/build/vs_toolchain.py", line 585, in main
    return commands[sys.argv[1]](*sys.argv[2:])
  File "src/build/vs_toolchain.py", line 531, in Update
    subprocess.check_call(get_toolchain_args)
  File "C:\workspace\depot_tools\bootstrap-2@3_8_10_chromium_26_bin\python3\bin\lib\subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\workspace\\depot_tools\\bootstrap-2@3_8_10_chromium_26_bin\\python3\\bin\\python3.exe', 'C:\\chromium\\src\\third_party\\depot_tools\\win_toolchain\\get_toolchain_if_necessary.py', '--output-json', 'C:\\chromium\\src\\build\\win_toolchain.json', '27370823e7', '--force']' returned non-zero exit status 1.

我尝试但运行以尝试再次构建,但我收到相同的错误。set DEPOT_TOOLS_WIN_TOOLCHAIN=0gclient sync

Chromium gclient

评论

0赞 Asesh 10/25/2023
是否安装了 Visual Studio 2022?还需要安装受支持的 Visual Studio 版本。

答: 暂无答案