Ninja Error while building ChromePublic APK on ToT !

68 views
Skip to first unread message

Sohan

unread,
Jun 8, 2017, 4:40:07 AM6/8/17
to Chromium-dev
Hi,

I am trying to build Chromium from a fresh sync today.
MAJOR=61
MINOR=0
BUILD=3125
PATCH=0 

The gclient sync went fine, but on running build command,

ninja -C out/Default chrome_public_apk

I get the following Ninja error,

ninja: Entering directory `out/Default'
ninja: error: toolchain.ninja:1292: unknown pool name

I tried removing and re-cloning my depot_tools, and also the out/ folder, but the error persists. Any pointers ?


Thanks,
Sohan

Andrew Grieve

unread,
Jun 8, 2017, 11:16:55 AM6/8/17
to soh...@chromium.org, Chromium-dev
What's on line 1292 of your toolchain.ninja file?
Did you try doing an explicit "gn gen"?

--
--
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/ff7ac903-e5f4-4c29-8cfa-12938d9e2c4d%40chromium.org.

Sohan

unread,
Jun 9, 2017, 2:42:06 AM6/9/17
to Chromium-dev, soh...@chromium.org
Hi,

Yes, i did explicit,

gn gen out/Default/ and gn args out/Default/

before the ninja command,

The out/Default/toolchain.ninja at 1292 is blank, before that this is the last command.

build gen/android_webview/system_webview_apk/classes.dex.zip: __android_webview_system_webview_apk__final_dex___build_toolchain_android_android_clang_arm__rule | obj/android_webview/system_webview_apk__final_dex.inputdeps.stamp
  depfile = gen/android_webview/system_webview_apk__final_dex.d
  pool = console

Anything :/ ??

Thanks,
Sohan

Sylvain Defresne

unread,
Jun 9, 2017, 6:28:51 AM6/9/17
to soh...@chromium.org, Chromium-dev
Which version of ninja are you using? Is it the version from depot_tools or do you have another version in your PATH?
-- Sylvain

Sohan Jyoti Ghosh

unread,
Jun 9, 2017, 8:25:03 AM6/9/17
to Sylvain Defresne, Chromium-dev
I tried to delete all gen files but it didnt work either, so i decided to just nuke my src/ and gave a fresh sync, hopefully it turns out better !
I checked the ninja version btw, it is 1.3.4

Thanks,
Sohan

Sylvain Defresne

unread,
Jun 9, 2017, 8:34:11 AM6/9/17
to Sohan Jyoti Ghosh, Chromium-dev
Then you are probably not using the version of ninja from depot_tools. The version of ninja in depot_tools is 1.7.2.

Check your PATH. Try putting depot_tools as first item in your PATH and check whether this fix your issue.
-- Sylvain

Sohan Jyoti Ghosh

unread,
Jun 12, 2017, 2:46:24 AM6/12/17
to Sylvain Defresne, Chromium-dev
Thanks Sylvain. That indeed was the main problem. The ninja from my usr/bin/ was getting picked up instead of from depot_tools/.

Thanks,
Sohan

Nico Weber

unread,
Jun 12, 2017, 4:13:17 PM6/12/17
to soh...@chromium.org, Sylvain Defresne, Chromium-dev
Reply all
Reply to author
Forward
0 new messages