An error when building chromiun on windows (gn gen <dir>)

2,250 views
Skip to first unread message

Ben Amsalem

unread,
Nov 7, 2017, 10:15:14 AM11/7/17
to Chromium-dev
When I run `gn gen out/Default` I get an unexpected error:

ERROR at //components/nacl/features.gni:6:1: Can't load input file.
import("//build/config/gclient_args.gni")
^---------------------------------------
Unable to load:
  D:/chromium/src/build/config/gclient_args.gni
I also checked in the secondary tree for:
  D:/chromium/src/build/secondary/build/config/gclient_args.gni
See //BUILD.gn:15:1: whence it was imported.
import("//components/nacl/features.gni")
^--------------------------------------


* it used to work for me on the same computer in the past, I'm afraid the chromium code has changed while depot_tools still expect an old file(s).
Anyone can help?

Dirk Pranke

unread,
Nov 7, 2017, 11:54:47 AM11/7/17
to Ben Amsalem, Chromium-dev
I landed a change last week that started using this file, which is supposed to be generated by gclient when `gclient sync` is run.

Make sure that your depot_tools checkout is up-to-date, and that `gclient sync` is running successfully to completion. If you're
pretty sure that they both are, and you're still seeing the problem, please file a bug and cc' me and we can follow up there.

-- Dirk

--
--
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/aa89897b-b742-476b-b30b-2e95eaa15152%40chromium.org.

游枭

unread,
Nov 8, 2017, 2:34:31 AM11/8/17
to Chromium-dev
maybe your source code is incomplete.
you can use "gclient sync --force" and try again.

在 2017年11月7日星期二 UTC+8下午11:15:14,Ben Amsalem写道:

John West

unread,
Oct 29, 2019, 2:27:00 AM10/29/19
to Chromium-dev
Did you find a solution?
I have the same problem on my mac

John West

unread,
Oct 29, 2019, 3:14:48 AM10/29/19
to Chromium-dev, ben...@gmail.com
mkdir chromium
cd chromium
mkdir src
cd src
git init
git fetch https://chromium.googlesource.com/chromium/src.git +refs/tags/75.0.3770.142:chromium_75.0.3770.142 --depth 5
git checkout chromium_75.0.3770.142
gclient sync
gclient sync --with_branch_heads
gclient runhooks
gn gen out/Debug


ERROR at //build_overrides/build.gni:5:1: Unable to load "/xxxxxxxx/chromium/src/build/config/gclient_args.gni".
import("//build/config/gclient_args.gni")
^---------------------------------------
See //build/toolchain/toolchain.gni:9:1: whence it was imported.
import("//build_overrides/build.gni")
^-----------------------------------
See //build/config/coverage/coverage.gni:5:1: whence it was imported.
import("//build/toolchain/toolchain.gni")
^---------------------------------------
See //build/config/sanitizers/sanitizers.gni:7:1: whence it was imported.
import("//build/config/coverage/coverage.gni")
^--------------------------------------------
See //build/config/compiler/compiler.gni:8:1: whence it was imported.
import("//build/config/sanitizers/sanitizers.gni")
^------------------------------------------------
See //BUILD.gn:11:1: whence it was imported.

David TheFIRE

unread,
Feb 28, 2022, 12:12:32 AM2/28/22
to Chromium-dev, ben...@gmail.com
i am new to chrome development and getting error of ,
1) while running gclient sync
FileNotFoundError: [Errno 2] No such file or directory: 'F:\\Chromium\\src/build/config/gclient_args.gni'.

2) when i run gclient runhooks

F:\Chromium\depot_tools\.cipd_bin\vpython.exe: could not resolve options: failed to resolve Python script: CreateFile F:\Chromium\src\build\landmines.py: The system cannot find the path specified.

Could you help me out.
Thanks,
DavidMurali

Reply all
Reply to author
Forward
0 new messages