Errors building on windows

10 views
Skip to first unread message

Urvang Joshi

unread,
Aug 26, 2015, 2:46:09 PM8/26/15
to blink-dev
"gclient sync" gives following error:

----
get_toolchain_if_necessary.py: error: no such option: --force
Sending crash report ...
  args: ['src/build/vs_toolchain.py', 'update']
  cwd: C:\src\blink_src
  exception: Command '['C:\\src\\depot_tools\\python276_bin\\py
  stack:   File "src/build/vs_toolchain.py", line 266, in <
  user: urvang
  version: 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500
A stack trace has been sent to the maintainers.
Traceback (most recent call last):
  File "src/build/vs_toolchain.py", line 266, in <module>
    sys.exit(main())
  File "src/build/vs_toolchain.py", line 262, in main
    return commands[sys.argv[1]](*sys.argv[2:])
  File "src/build/vs_toolchain.py", line 224, in Update
    subprocess.check_call(get_toolchain_args)
  File "C:\src\depot_tools\python276_bin\lib\subprocess.py", line 540, in check_
call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\src\\depot_tools\\python276_bin\\p
ython.exe', 'C:\\src\\depot_tools\\win_toolchain\\get_toolchain_if_necessary.py'
, '--output-json', 'C:\\src\\blink_src\\src\\build\\win_toolchain.json', 'ee7d71
8ec60c2dc5d255bbe325909c2021a7efef', '--force']' returned non-zero exit status 2

Error: Command 'C:\\src\\depot_tools\\python276_bin\\python.exe src/build/vs_too
lchain.py update' returned non-zero exit status 1 in C:\src\blink_src
-------

How can I fix this?

Christian Biesinger

unread,
Aug 26, 2015, 2:47:19 PM8/26/15
to Urvang Joshi, blink-dev
"git pull --rebase" in your depot_tools directory

-christian
Reply all
Reply to author
Forward
0 new messages