ANT build problem

53 views
Skip to first unread message

alex.t...@gmail.com

unread,
Dec 13, 2006, 3:49:21 AM12/13/06
to Google Web Toolkit Contributors
I have following error trying to to build GWT:

[java] java.io.IOException: CreateProcess: chmod u+x
C:\GWT-DEV\trunk\build\out\samples\dynatable\scripts\linux\DynaTable-shell
error=2

Here is ANT output log:

Buildfile: build.xml

compile:
[mkdir] Created dir:
C:\GWT-DEV\trunk\build\out\samples\dynatable\bin
[gwt.javac] Compiling 13 source files to
C:\GWT-DEV\trunk\build\out\samples\dynatable\bin

gwtc:
[mkdir] Created dir:
C:\GWT-DEV\trunk\build\out\samples\dynatable\www
[java] Output will be written into
C:\GWT-DEV\trunk\build\out\samples\dynatable\www\com.google.gwt.sample.dynatable.DynaTable
[java] Copying all files found on public path
[java] Compilation succeeded

scripts:

antcall.script:
[mkdir] Created dir:
C:\GWT-DEV\trunk\build\out\samples\dynatable\scripts\linux
[java] Created directory
C:\GWT-DEV\trunk\build\out\samples\dynatable\scripts\linux\src
[java] Created directory
C:\GWT-DEV\trunk\build\out\samples\dynatable\scripts\linux\src\com\google\gwt\sample\dynatable
[java] Created directory
C:\GWT-DEV\trunk\build\out\samples\dynatable\scripts\linux\src\com\google\gwt\sample\dynatable\client
[java] Created directory
C:\GWT-DEV\trunk\build\out\samples\dynatable\scripts\linux\src\com\google\gwt\sample\dynatable\public
[java] Created file
C:\GWT-DEV\trunk\build\out\samples\dynatable\scripts\linux\src\com\google\gwt\sample\dynatable\DynaTable.gwt.xml
[java] Created file
C:\GWT-DEV\trunk\build\out\samples\dynatable\scripts\linux\src\com\google\gwt\sample\dynatable\public\DynaTable.html
[java] Created file
C:\GWT-DEV\trunk\build\out\samples\dynatable\scripts\linux\src\com\google\gwt\sample\dynatable\client\DynaTable.java
[java] Created file
C:\GWT-DEV\trunk\build\out\samples\dynatable\scripts\linux\DynaTable-shell
[java] java.io.IOException: CreateProcess: chmod u+x
C:\GWT-DEV\trunk\build\out\samples\dynatable\scripts\linux\DynaTable-shell
error=2

Scott Blum

unread,
Dec 13, 2006, 1:44:48 PM12/13/06
to Google-Web-Tool...@googlegroups.com
Yeah, I didn't realize when I put them together that Ant's <chmod> actually invokes the underlying OS chmod, which doesn't work so well for most Windows boxes.  I didn't notice because I have a bunch of unix utils installed.

alex.t...@gmail.com

unread,
Dec 13, 2006, 3:34:07 PM12/13/06
to Google Web Toolkit Contributors
Any hope for fix?

On Dec 13, 9:44 pm, "Scott Blum" <sco...@google.com> wrote:
> Yeah, I didn't realize when I put them together that Ant's <chmod> actually
> invokes the underlying OS chmod, which doesn't work so well for most Windows
> boxes. I didn't notice because I have a bunch of unix utils installed.
>

Jason Essington

unread,
Dec 13, 2006, 3:37:14 PM12/13/06
to Google-Web-Tool...@googlegroups.com
The immediate fix would be to install SFU (Microsoft Services for
Unix) or Cygwin.

-jason

Scott Blum

unread,
Dec 13, 2006, 7:05:24 PM12/13/06
to Google-Web-Tool...@googlegroups.com
My plan right now to only build out the full staging directory for the platform you're actually running on.  We don't need the staging directories to build the full distros, just to run unit tests.  This would get around the chmod problem since a chmod on Windows isn't useful.

Scott Blum

unread,
Dec 15, 2006, 11:22:43 AM12/15/06
to Google-Web-Tool...@googlegroups.com
Hi guys,

If you can't build on Windows do to the chmod issue, please go to your trunk directory and execute:
svn merge http://google-web-toolkit.googlecode.com/svn/trunk@178 http://google-web-toolkit.googlecode.com/svn/changes/trunk/scottb/chmod-fix-r178

This should merge in my fix.  Please verify that you can build and that what you build works.

Thanks,
Scott

Scott Blum

unread,
Dec 15, 2006, 2:56:21 PM12/15/06
to digitalsanctum, Google-Web-Tool...@googlegroups.com
Thanks for trying this out.

Blimey.  This isn't the build system-- this is actually ApplicationCreator itself.  It's internally trying to chmod in order to set the correct perms on the generated Linux scripts.  I've added a fix for this to the same change list.

If you revert your tree and then merge again, it should pick up a chage to ApplicationCreator.java which should fix this.  Lemme know if that works.

Thanks,
Scott

On 12/15/06, digitalsanctum <shane....@gmail.com> wrote:
Scott,

Your fix didn't help my build on windows. After applying the merge,
here's what I'm getting:

scripts:
    [mkdir] Created dir:
C:\projects\gwt\trunk\build\out\samples-scripts\linux\D
ynaTable
     [java] Created directory
C:\projects\gwt\trunk\build\out\samples-scripts\li
nux\DynaTable\src
     [java] Created directory
C:\projects\gwt\trunk\build\out\samples-scripts\li
nux\DynaTable\src\com\google\gwt\sample\dynatable
     [java] Created directory
C:\projects\gwt\trunk\build\out\samples-scripts\li
nux\DynaTable\src\com\google\gwt\sample\dynatable\client
     [java] Created directory
C:\projects\gwt\trunk\build\out\samples-scripts\li
nux\DynaTable\src\com\google\gwt\sample\dynatable\public
     [java] Created file
C:\projects\gwt\trunk\build\out\samples-scripts\linux\D
ynaTable\src\com\google\gwt\sample\dynatable\DynaTable.gwt.xml
     [java] Created file
C:\projects\gwt\trunk\build\out\samples-scripts\linux\D
ynaTable\src\com\google\gwt\sample\dynatable\public\DynaTable.html
     [java] Created file
C:\projects\gwt\trunk\build\out\samples-scripts\linux\D
ynaTable\src\com\google\gwt\sample\dynatable\client\DynaTable.java
     [java] Created file
C:\projects\gwt\trunk\build\out\samples-scripts\linux\D
ynaTable\DynaTable-shell
     [java] java.io.IOException: Cannot run program "chmod":
CreateProcess error
=2, The system cannot find the file specified

BUILD FAILED
C:\projects\gwt\trunk\build.xml:44: The following error occurred while
executing
this line:
C:\projects\gwt\trunk\build.xml:34: The following error occurred while
executing
this line:
C:\projects\gwt\trunk\samples\build.xml:40: The following error
occurred while e
xecuting this line:
C:\projects\gwt\trunk\samples\build.xml:10: The following error
occurred while e
xecuting this line:
C:\projects\gwt\trunk\samples\common.ant.xml:80: The following error
occurred wh
ile executing this line:
C:\projects\gwt\trunk\samples\common.ant.xml:66: Java returned: 1




On Dec 15, 11:22 am, "Scott Blum" < sco...@google.com> wrote:
> Hi guys,
>
> If you can't build on Windows do to the chmod issue, please go to your trunk
> directory and execute:

>
> This should merge in my fix.  Please verify that you can build and that what
> you build works.
>
> Thanks,
> Scott
>
> On 12/13/06, Scott Blum < sco...@google.com> wrote:
>
>
>
> > My plan right now to only build out the full staging directory for the
> > platform you're actually running on.  We don't need the staging directories
> > to build the full distros, just to run unit tests.  This would get around
> > the chmod problem since a chmod on Windows isn't useful.
>

alex.t...@gmail.com

unread,
Dec 15, 2006, 7:06:56 PM12/15/06
to Google Web Toolkit Contributors
Thank you, Scott! It works great.

On Dec 15, 7:22 pm, "Scott Blum" <sco...@google.com> wrote:
> Hi guys,
>
> If you can't build on Windows do to the chmod issue, please go to your trunk
> directory and execute:

> svn mergehttp://google-web-toolkit.googlecode.com/svn/trunk@178http://google-web-toolkit.googlecode.com/svn/changes/trunk/scottb/chm...


>
> This should merge in my fix. Please verify that you can build and that what
> you build works.
>
> Thanks,
> Scott
>
> On 12/13/06, Scott Blum <sco...@google.com> wrote:
>
> > My plan right now to only build out the full staging directory for the
> > platform you're actually running on. We don't need the staging directories
> > to build the full distros, just to run unit tests. This would get around
> > the chmod problem since a chmod on Windows isn't useful.
>

Ted Husted

unread,
Dec 18, 2006, 7:58:31 PM12/18/06
to Google Web Toolkit Contributors
Is the HEAD suppose to building under Windows now?

I've checked out revision 187, and it also fails on a chmod for me.

[java] java.io.IOException: CreateProcess: chmod u+x

C:\projects\googlecode
\gwt\trunk\build\out\samples\dynatable\scripts\mac\DynaTable-shell
error=2


-Ted.

Scott Blum

unread,
Dec 18, 2006, 8:18:39 PM12/18/06
to Google-Web-Tool...@googlegroups.com
No, that change hasn't been committed to the trunk.  If you need to build now, merge in the change branch as described earlier in the thread.  You might need to "svn update -r178" before applying the merge if the merge causes conflicts.
Reply all
Reply to author
Forward
0 new messages