New issue
Advanced search Search tips

Issue 625962 link

Starred by 2 users

Issue metadata

Status: Verified
Owner:
Closed: Jul 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 1
Type: Bug-Regression



Sign in to add a comment

Cannot build Chrome on Mac with gn due to "Unknown function"

Project Member Reported by petrcermak@chromium.org, Jul 6 2016

Issue description

I get the following failure when I try to build Chrome on Mac:

$ gn gen out/Release
ERROR at //build/toolchain/mac/BUILD.gn:44:3: Unknown function.
  pool("bundle_pool") {
  ^---
See //BUILD.gn:63:1: which caused the file to be included.
group("gn_all") {
^----------------

sdefresene@: You were the last person to modify the relevant gn file. Could you please have a look?
 
Status: WontFix (was: Untriaged)
The support for pool was rolled in Chromium via a890223c049cdc372b5cd8980f4b720f6378563f (rolling gn via DEPS). The "gn" binary is updated when you run "gclient runhooks".

Two options:
1. you have not run "gclient runhooks",
2. you have an old local build of "gn".

I would recommend running "gclient runhooks" and checking what is the executable corresponding to "gn" in your path (you can use "which gn"). It should be the "gn" coming from "depot_tools".

I'm going to close as WontFix as this is likely a local issue. Please reopen if neither recommendation worked.
Sorry, it should have been "gclient sync" not "gclient runhooks" (unless you run "gclient sync" with "--nohooks" in which case you need both).
Status: Verified (was: WontFix)
Thanks for the quick reply. Running `gclient sync`, as you suggested, solved the problem. Thanks :-)

Sign in to add a comment