I just checked in a patch that runs GN at the beginning of GYP
execution. You should see a message to this effect when you do gclient
runhooks next time. Currently, this step reads the GN build but no
targets are configured so it generates nothing. A followup patch will
try to generate a GYP file from one target. I somewhat arbitrarily
picked the “third_party/re2” target as the initial step so keep an eye
out for errors there.
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
So what should gnpath be set to? Where should gn.exe be located? How do we check it is correctly synced?
I can't find anything at all about the chromium setup for this.
On Wed, Dec 4, 2013 at 5:00 PM, Stephen Chenney <sche...@chromium.org> wrote:
So what should gnpath be set to? Where should gn.exe be located? How do we check it is correctly synced?The idea is that it Just Works and everything is set correctly. If that isn't the case, please file a bug!
In Peter's case, I'm guessing nobody thought of testing with cygwin.
I can't find anything at all about the chromium setup for this.That's because no setup should be necessary in theory :-)
Looks like you might be missing gn.exe or gnpath is incorrect.
--
The change that enabled this is here...https://codereview.chromium.org/102243005/... idk if we want to revert of if the few cygwin users want to workaround locally?
I believe these patches will fix the cygwin issue:
https://codereview.chromium.org/106243002/
https://codereview.chromium.org/104763003/
Since it's late I'm not going to try to TBR them into the tree and
risk more problems. If anybody with this problem wants to check them,
verification would be great.
On Dec 5, 2013 8:57 AM, "Michael Moss" <mm...@google.com> wrote:
>
> I'm not sure about the cygwin issue, buy the python_bin path in the error message is also a problem since that doesn't exist on machines upgraded to 2.7. I think it should be running depot_tools\python.bat instead.
For some reason the execute bit wasn't set properly on gn.exe for me.
Also, since the output said "Wrote 0 targets to 0 GYP files read from
40 GN files in 35ms" apparently no gyp file is generated, why is that?
On Thu, Dec 5, 2013 at 10:39 PM, Jiang Jiang <jia...@opera.com> wrote:
> I found an interesting error on Mac, when I try to invoke gn directly
> from ~/chromium/src:
>
> tools/gn/bin/mac/gn gyp --root=/Users/jjgod/chromium/src --args=is_gyp=true
>
> or
>
> tools/gn/bin/mac/gn gyp --args=is_gyp=true
>
> both works:
>
> Done. Wrote 0 targets to 0 GYP files read from 40 GN files in 35ms
>
> But:
>
> tools/gn/bin/mac/gn gyp --root=~/chromium/src --args=is_gyp=true
>
> didn't:
The executable is pulled from Google Code (since we don't want toOn Thu, Dec 5, 2013 at 11:18 AM, Peter Kasting <pkas...@chromium.org> wrote:
> On Thu, Dec 5, 2013 at 8:00 AM, Scott Violet <s...@chromium.org> wrote:
>>
>> For some reason the execute bit wasn't set properly on gn.exe for me.
>
>
> Usually that means someone needs to "svn propset svn:executable=* gn.exe".
check binaries into git).
I talked with Scott this morning and I don't know how cygwin deals
with the executable bits. Won't it treat anything with a .exe
extension as executable?