gn gen out\Default problem

691 views
Skip to first unread message

Abdi Urgessa

unread,
Aug 7, 2023, 6:37:05 AM8/7/23
to Chromium-dev
Hi Chromium community, I am getting the following error when I try to run `gn gen out\Default`:

PS C:\src\chromium\src> gn gen out\Default

Traceback (most recent call last): File "C:/src/chromium/src/build/toolchain/win/setup_toolchain.py", line 316, in <module> main() File "C:/src/chromium/src/build/toolchain/win/setup_toolchain.py", line 274, in main env = _LoadToolchainEnv(cpu, toolchain_root, win_sdk_path, target_store) File "C:/src/chromium/src/build/toolchain/win/setup_toolchain.py", line 190, in _LoadToolchainEnv return _ExtractImportantEnvironment(variables) File "C:/src/chromium/src/build/toolchain/win/setup_toolchain.py", line 68, in _ExtractImportantEnvironment raise Exception( Exception: Path "C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\um" from environment variable "include" does not exist. Make sure the necessary SDK is installed. ERROR at //build/toolchain/win/win_toolchain_data.gni:9:7: Script returned non-zero exit code. exec_script("//build/toolchain/win/setup_toolchain.py", ^---------- Current dir: C:/src/chromium/src/out/Default/ Command: C:/src/depot_tools/bootstrap-2@3_8_10_chromium_26_bin/python3/bin/python3.exe C:/src/chromium/src/build/toolchain/win/setup_toolchain.py "C:\Program Files/Microsoft Visual Studio/2022/Community" "C:\Program Files (x86)\Windows Kits\10" "C:\WINDOWS\System32;C:\WINDOWS\SysWOW64;Arm64Unused" win x86 environment.x86 Returned 1. See //build/toolchain/win/toolchain.gni:14:1: whence it was imported. import("//build/toolchain/win/win_toolchain_data.gni") ^---------------------------------------------------- See //build/toolchain/win/BUILD.gn:6:1: whence it was imported. import("//build/toolchain/win/toolchain.gni") ^------------------------------------------- See //BUILD.gn:80:1: which caused the file to be included. group("gn_all") { ^----------------

I am wondering if anyone else has seen this error and knows how to fix it.

Thanks,

Greg Thompson

unread,
Aug 7, 2023, 11:00:11 AM8/7/23
to abdiur...@gmail.com, Chromium-dev
I'm not sure what the problem is, but you're likely missing some steps in https://chromium.googlesource.com/chromium/src/+/main/docs/windows_build_instructions.md#setting-up-windows. In particular, "You may also have to set variable vs2022_install to...".

You may have better luck using normal cmd.exe rather than PowerShell (note that the instructions say "From a cmd.exe shell, run [...] gclient".

--
--
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.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/990c72d2-fa1a-4a9b-a2c7-c7f160714da6n%40chromium.org.

Abdi Urgessa

unread,
Aug 7, 2023, 5:37:15 PM8/7/23
to Chromium-dev, Greg Thompson, Chromium-dev, abdiur...@gmail.com
it works now, tnx very much. i have just missed installing necessary Sdk
Reply all
Reply to author
Forward
0 new messages