New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 611797 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jun 2016
Cc:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug

Blocking:
issue 431177



Sign in to add a comment

can't build 'all' in gn/mac builds because gn doesn't escape spaces when writing the 'all' phony in the toplevel ninja.

Project Member Reported by thakis@chromium.org, May 13 2016

Issue description

I figured I'd build all targets and then compare the list of tests in each gyp and gn binaries.

I failed thusly:

thakis-macpro:src thakis$ time ninja -C out/gn/ -k 0 
ninja: Entering directory `out/gn/'
ninja: error: 'obj/chrome/chrome_framework_shared_library/Chromium', needed by 'all', missing and no known rule to make it


 

Comment 1 by thakis@chromium.org, May 13 2016

Labels: Proj-GN-Migration

Comment 2 by thakis@chromium.org, May 13 2016

Oh, looks like gn doesn't escape spaces when writing the 'all' alias. From out/gn/build.ninja:

    obj/chrome/chrome_framework_shared_library/Chromium Framework.TOC $

Note the unescaped space.

Comment 3 by thakis@chromium.org, May 13 2016

Labels: Build-Tools-GN
Summary: can't build 'all' in gn/mac builds because gn doesn't escape spaces when writing the 'all' phony in the toplevel ninja. (was: can't build 'all' in gn/mac builds)
Adding a bunch of $ in front of spaces in out/gn/build.ninja makes the build start. Tweaking title to include cause.
Can you try and see if the latest (tip-of-tree) GN fixes this? warning: it'll break other things until https://codereview.chromium.org/1981443002/ lands.

I'm not near a mac w/ a full build at the moment or I'd try it ...
Cc: brettw@chromium.org

Comment 6 by brettw@chromium.org, May 13 2016

I think my recent patch should have added the necessary escaping.

Comment 7 by thakis@chromium.org, May 13 2016

Yes, this works with out/gn/gn. So only needs a gn roll. Thanks for the fix!
Status: Assigned (was: Untriaged)
Owner: dpranke@chromium.org
I will close this when the roll lands (and sticks).
Status: Fixed (was: Assigned)

Sign in to add a comment