How to get googlesource account to fetch chromium code for windows

1,895 views
Skip to first unread message

n17...@gmail.com

unread,
Jul 11, 2018, 5:43:14 PM7/11/18
to Chromium-dev
How to featch source code for chromium for windows. I am following the steps to get chromium code for windows

Why it is asking me for my username for googlesource in for following steps:



Hook ''c:\Users\john\Src\depot_tools\win_tools-2_7_6_bin\python\bin\python.exe' src/build/download_nacl_toolchains.py --mode nacl_core_sdk sync --extract' took 168.58 secs
Username for 'https://chrome-internal.googlesource.com':

________ running 'c:\Users\john\Src\depot_tools\win_tools-2_7_6_bin\python\bin\python.exe src/build/vs_toolchain.py update --force' in 'C:\Users\john\Src\chromium'



Please follow the instructions at https://chromium.googlesource.com/chromium/src/+/master/docs/windows_build_instructions.md


Traceback (most recent call last):
  File "src/build/vs_toolchain.py", line 471, in <module>
    sys.exit(main())
  File "src/build/vs_toolchain.py", line 467, in main
    return commands[sys.argv[1]](*sys.argv[2:])
  File "src/build/vs_toolchain.py", line 413, in Update
    subprocess.check_call(get_toolchain_args)
  File "c:\Users\john\Src\depot_tools\win_tools-2_7_6_bin\python\bin\lib\subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['c:\\Users\\john\\Src\\depot_tools\\win_tools-2_7_6_bin\\python\\bin\\python.exe', 'C:\\Users\\john\\Src\\chromium\\src\\third_party\\depot_tools\\win_toolchain\\get_toolchain_if_necessary.py', '--output-json', 'C:\\Users\\john\\Src\\chromium\\src\\build\\win_toolchain.json', '3bc0ec615cf20ee342f3bc29bc991b5ad66d8d2c', '--force']' returned non-zero exit status 1
Error: Command 'c:\\Users\\john\\Src\\depot_tools\\win_tools-2_7_6_bin\\python\\bin\\python.exe src/build/vs_toolchain.py update --force' returned non-zero exit status 1 in C:\Users\john\Src\chromium
Hook ''c:\Users\john\Src\depot_tools\win_tools-2_7_6_bin\python\bin\python.exe' src/build/vs_toolchain.py update --force' took 1288.34 secs
Traceback (most recent call last):
  File "c:\Users\john\Src\depot_tools\\fetch.py", line 306, in <module>
    sys.exit(main())
  File "c:\Users\john\Src\depot_tools\\fetch.py", line 301, in main
    return run(options, spec, root)
  File "c:\Users\john\Src\depot_tools\\fetch.py", line 295, in run
    return checkout.init()
  File "c:\Users\john\Src\depot_tools\\fetch.py", line 137, in init
    self.run_gclient(*sync_cmd)
  File "c:\Users\john\Src\depot_tools\\fetch.py", line 82, in run_gclient
    return self.run(cmd_prefix + cmd, **kwargs)
  File "c:\Users\john\Src\depot_tools\\fetch.py", line 71, in run
    subprocess.check_call(cmd, **kwargs)
  File "c:\Users\john\Src\depot_tools\win_tools-2_7_6_bin\python\bin\lib\subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '('c:\\Users\\john\\Src\\depot_tools\\win_tools-2_7_6_bin\\python\\bin\\python.exe', 'c:\\Users\\john\\Src\\depot_tools\\gclient.py', 'sync', '--no-history')' returned non-zero exit status 2

Torne (Richard Coles)

unread,
Jul 11, 2018, 5:56:21 PM7/11/18
to n17...@gmail.com, Chromium-dev
You should follow the instructions in the page linked by the error message: https://chromium.googlesource.com/chromium/src/+/master/docs/windows_build_instructions.md
Specifically it looks like you missed this step:
"Also, add a DEPOT_TOOLS_WIN_TOOLCHAIN system variable in the same way, and set it to 0. This tells depot_tools to use your locally installed version of Visual Studio (by default, depot_tools will try to use a google-internal version)."

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/51bf18ff-1acb-4425-bbf6-5ea56a01c828%40chromium.org.

Nitish Sakhawalkar

unread,
Jul 11, 2018, 7:17:23 PM7/11/18
to n17...@gmail.com, chromi...@chromium.org
Are you sure you set the `DEPOT_TOOLS_WIN_TOOLCHAIN` environment variable to zero?

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.

Winux Worx

unread,
Apr 5, 2019, 12:47:47 PM4/5/19
to Chromium-dev
I did set in the systems environment variables 'DEPOT_TOOLS_WIN_TOOLCHAIN' to 0 and still got this similar error on my side:

File "src/tools/clang/scripts/update.py", line 506, in UpdateClang
    CopyDiaDllTo(os.path.join(LLVM_BUILD_DIR, 'bin'))
  File "src/tools/clang/scripts/update.py", line 433, in CopyDiaDllTo
    GetWinSDKDir()
  File "src/tools/clang/scripts/update.py", line 413, in GetWinSDKDir
    win_sdk_dir = vs_toolchain.SetEnvironmentAndGetSDKDir()
  File "C:\Users\Winux\Desktop\chromium\src\build\vs_toolchain.py", line 467, in SetEnvironmentAndGetSDKDir
    SetEnvironmentAndGetRuntimeDllDirs()
  File "C:\Users\Winux\Desktop\chromium\src\build\vs_toolchain.py", line 82, in SetEnvironmentAndGetRuntimeDllDirs
    os.environ['GYP_MSVS_OVERRIDE_PATH'] = DetectVisualStudioPath()
  File "C:\Users\Winux\Desktop\chromium\src\build\vs_toolchain.py", line 151, in DetectVisualStudioPath
    version_as_year, ', '.join(year_to_version.keys())))
Exception: Visual Studio version 2015 (from GYP_MSVS_VERSION) not supported. Supported versions are: 2017, 2019
Error: Command 'C:\\Users\\Winux\\Desktop\\ungoogled_chromium\\depot_tools\\win_tools-2_7_6_bin\\python\\bin\\python.exe src/tools/clang/scripts/update.py --with-android=False' returned non-zero exit status 1 in C:\Users\Winux\Desktop\chromium
Hook ''C:\Users\Winux\Desktop\ungoogled_chromium\depot_tools\win_tools-2_7_6_bin\python\bin\python.exe' src/tools/clang/scripts/update.py --with-android=False' took 89.86 secs
Traceback (most recent call last):
  File "C:\Users\Winux\Desktop\ungoogled_chromium\depot_tools\\fetch.py", line 309, in <module>
    sys.exit(main())
  File "C:\Users\Winux\Desktop\ungoogled_chromium\depot_tools\\fetch.py", line 304, in main
    return run(options, spec, root)
  File "C:\Users\Winux\Desktop\ungoogled_chromium\depot_tools\\fetch.py", line 298, in run
    return checkout.init()
  File "C:\Users\Winux\Desktop\ungoogled_chromium\depot_tools\\fetch.py", line 140, in init
    self.run_gclient(*sync_cmd)
  File "C:\Users\Winux\Desktop\ungoogled_chromium\depot_tools\\fetch.py", line 84, in run_gclient
    return self.run(cmd_prefix + cmd, **kwargs)
  File "C:\Users\Winux\Desktop\ungoogled_chromium\depot_tools\\fetch.py", line 73, in run
    subprocess.check_call(cmd, **kwargs)
  File "C:\Users\Winux\Desktop\ungoogled_chromium\depot_tools\win_tools-2_7_6_bin\python\bin\lib\subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '('C:\\Users\\Winux\\Desktop\\ungoogled_chromium\\depot_tools\\win_tools-2_7_6_bin\\python\\bin\\python.exe', 'C:\\Users\\Winux\\Desktop\\ungoogled_chromium\\depot_tools\\gclient.py', 'sync', '--no-history')' returned non-zero exit status 2

Torne (Richard Coles)

unread,
Apr 5, 2019, 1:52:29 PM4/5/19
to winu...@gmail.com, Chromium-dev
This is the error:
Exception: Visual Studio version 2015 (from GYP_MSVS_VERSION) not supported. Supported versions are: 2017, 2019

You've got a variable set (possibly from an older attempt to build chromium) that refers to an old version of MSVS we don't support any more.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
Reply all
Reply to author
Forward
0 new messages