[gwt-contrib] Re: Trouble building GWT 2.0 from svn
Something wrong with my windows env. I rebuilt successfully on a different windows env. On Jul 24, 9:24 am, Freeland Abbott fabb...@google.com wrote: Huh. Well, if you look in dev/core/build.xml, you should see the rules for building alldeps.jar; I'd edit that block heavily to add some more diagnostics. I also like using both the -d and also -v (verbose) flag to ant; it should, for example, mention classpath entries it skips because they aren't there, or things skipped because they're already up-to-date, etc. I don't see any good reason---or, off the top of my head, any bad reason---it shouldn't work if your environment is correctly configured. I'll trust you that is, but in the Reagan-esque trust but verify construct... do files from the PatternSet, e.g. /home/federico/gwt-trunk/tools/lib/eclipse/jdt-3.4.2.jar, actually exist in that path? You could also try changing that alldeps.jar target back to a vanilla jar from jar.bydate; see my change at r5537. The downside of that is that we have several different versions of, say, the servlet api classes, and without jar.bydate you'll get an old one in the jar first, and so a no-changes rebuild will think it's out-of-date, causing a lot of spurious rebuild activity to waste your time. Since this is used working in other settings, I hope it's not a factor here, but it's not hard to unmerge change 5537 and find out. Also, did I see Mark M. reporting the same misbehavior with alldeps.jar on Windows? Is that still bad? On Fri, Jul 24, 2009 at 10:06 AM, mescali...@gmail.com mescali...@gmail.com wrote: brett.wooldridge wrote: That one is going to be tough to track down. I would start by comparing the shell environments. You might also try running ant with the -d (debug option) and redirecting output to a file. If possible, make sure the directory names you are building in are identical between the Ubuntu machine and the Gentoo machine -- then diff the two outputs (successful and unsuccessful). If both are running after an 'ant clean', and the paths are the same, there should be very few diffs. The crucial difference between those two machines is probably somewhere in that diff. -Brett nice idea I tried diffing the outputs and the first relevant difference I notice is in performing the task build.alldeps.jar. here the Gentoo box output: build.alldeps.jar: [mkdir] Created dir: /home/federico/gwt-trunk/trunk/build/out/dev/core fileset: Setup scanner in dir /home/federico/gwt-trunk/tools/lib with patternSet{ includes: [apache/tapestry-util-text-4.0.2.jar, apache/ant-1.6.5.jar, eclipse/jdt-3.4.2.jar, jetty/jetty-6.1.11.jar, tomcat/ant-launcher-1.6.5.jar, tomcat/catalina-1.0.jar, tomcat/catalina-optional-1.0.jar, tomcat/commons-beanutils-1.6.jar, tomcat/commons-collections-3.1.jar, tomcat/commons-digester-1.5.jar, tomcat/commons-el-1.0.jar, tomcat/commons-logging-1.0.jar, tomcat/commons-modeler-1.1.jar, tomcat/jakarta-regexp-1.3.jar, tomcat/jasper-compiler-1.0.jar, tomcat/jasper-runtime-1.0.jar, tomcat/jsp-api-2.0.jar, tomcat/mx4j-jmx-1.1.jar, tomcat/naming-common-1.0.jar, tomcat/naming-factory-1.0.jar, tomcat/naming-java-1.0.jar, tomcat/naming-resources-1.0.jar, tomcat/servlet-api-2.5.jar, tomcat/servlet-api-2.4.jar, tomcat/servlets-common-1.0.jar, tomcat/servlets-default-1.0.jar, tomcat/servlets-invoker-1.0.jar, tomcat/tomcat-coyote-1.0.jar, tomcat/tomcat-http11-1.0.jar, tomcat/tomcat-jk2-2.1.jar, tomcat/tomcat-util-5.1.jar] excludes: [] } fileset: Setup scanner in dir /home/federico/gwt-trunk/trunk/dev/core with patternSet{ includes: [build.xml] excludes: [] } fileset: Setup scanner in dir /home/federico/gwt-trunk/trunk/build/out/dev/core with patternSet{ includes: [alldeps.jar] excludes: [] } the Ubuntu box output is very long, as it is actually making something: build.alldeps.jar: [mkdir] Created dir: /home/federico/gwt-trunk/trunk/build/out/dev/core Class java.util.Vector loaded from parent loader (parentFirst) Finding class net.sf.antcontrib.logic.OutOfDate$CollectionEnum Loaded from /home/federico/gwt-trunk/tools/antlib/ant-contrib-1.0b3.jar net/sf/antcontrib/logic/OutOfDate$CollectionEnum.class Class org.apache.tools.ant.types.EnumeratedAttribute loaded from parent loader (parentFirst) Class net.sf.antcontrib.logic.OutOfDate$CollectionEnum loaded from ant loader (parentFirst) Finding class net.sf.antcontrib.logic.OutOfDate$DeleteTargets Loaded from /home/federico/gwt-trunk/tools/antlib/ant-contrib-1.0b3.jar net/sf/antcontrib/logic/OutOfDate$DeleteTargets.class Class net.sf.antcontrib.logic.OutOfDate$DeleteTargets loaded from ant loader (parentFirst) Class java.util.Iterator loaded from parent loader (parentFirst) fileset: Setup scanner in dir /home/federico/gwt-trunk/tools/lib with patternSet{ includes: [apache/tapestry-util-text-4.0.2.jar, apache/ant-1.6.5.jar,
[gwt-contrib] Re: Trouble building GWT 2.0 from svn
update: I tried it on a ubuntu laptop and build flawlessy. perhaps my problem is Gentoo specific, or perhaps the build system is making some (wrong) assumptions about my system I'm working hard to provide a patch for making it compile on Gentoo. do you guys have any hints? signature.asc Description: OpenPGP digital signature
[gwt-contrib] Re: Trouble building GWT 2.0 from svn
That one is going to be tough to track down. I would start by comparing the shell environments. You might also try running ant with the -d (debug option) and redirecting output to a file. If possible, make sure the directory names you are building in are identical between the Ubuntu machine and the Gentoo machine -- then diff the two outputs (successful and unsuccessful). If both are running after an 'ant clean', and the paths are the same, there should be very few diffs. The crucial difference between those two machines is probably somewhere in that diff. -Brett On Jul 23, 7:24 pm, mescali...@gmail.com mescali...@gmail.com wrote: update: I tried it on a ubuntu laptop and build flawlessy. perhaps my problem is Gentoo specific, or perhaps the build system is making some (wrong) assumptions about my system I'm working hard to provide a patch for making it compile on Gentoo. do you guys have any hints? signature.asc 1KViewDownload --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Trouble building GWT 2.0 from svn
This happens on my Windows env. For some reason the alldeps.jar is not being built. It does not happen on my Linux env. Mark. On Jul 21, 8:51 am, mescali...@gmail.com mescali...@gmail.com wrote: Kango_V wrote: Same as Brett, that's all you need. Using ant 1.7.1 java 6u14 amd64. On Jul 19, 4:01 am, brett.wooldridge brett.wooldri...@gmail.com wrote: Not sure what the problem is. This is all I did (literally): mkdir gwt-trunk cd gwt-trunk svn checkouthttp://google-web-toolkit.googlecode.com/svn/tools/tools svn checkouthttp://google-web-toolkit.googlecode.com/svn/trunk/trunk cd trunk ant so I did I. I repeated the above steps today. ant (1.7.1) run up to some point, then I get this error: [gwt.javac] Compiling 725 source files to /home/federico/gwt-trunk/trunk/build/out/dev/core/bin [gwt.javac] /home/federico/gwt-trunk/trunk/dev/core/src/com/google/gwt/dev/javac/CompilationUnit.java:32: package org.eclipse.jdt.core.compiler does not exist [gwt.javac] import org.eclipse.jdt.core.compiler.CategorizedProblem; [gwt.javac] ^ [gwt.javac] /home/federico/gwt-trunk/trunk/dev/core/src/com/google/gwt/dev/javac/CompilationUnit.java:33: cannot find symbol that's why I was passing all the classpaths and the directories. here is: amd64 ant-1.7.1 java version 1.6.0_13 javac 1.6.0_13 signature.asc 1KViewDownload --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Trouble building GWT 2.0 from svn
John Tamplin wrote: On Tue, Jul 21, 2009 at 9:51 AM, mescali...@gmail.com mailto:mescali...@gmail.com mescali...@gmail.com mailto:mescali...@gmail.com wrote: so I did I. I repeated the above steps today. ant (1.7.1) run up to some point, then I get this error: [gwt.javac] Compiling 725 source files to /home/federico/gwt-trunk/trunk/build/out/dev/core/bin [gwt.javac] /home/federico/gwt-trunk/trunk/dev/core/src/com/google/gwt/dev/javac/CompilationUnit.java:32: package org.eclipse.jdt.core.compiler does not exist [gwt.javac] import org.eclipse.jdt.core.compiler.CategorizedProblem; [gwt.javac] ^ [gwt.javac] /home/federico/gwt-trunk/trunk/dev/core/src/com/google/gwt/dev/javac/CompilationUnit.java:33: cannot find symbol Can you svn up in the tools directory? It sounds like perhaps you are missing the more recent JDT. feder...@gentoo64 ~/gwt-trunk/tools $ svn up At revision 5768. my guess is that's not finding JDT (or anytinhg else). that's why I had to put all (latest version of) jars I found in toolls directory to CLASSPATH. when doing so, compile goes well for a while, but stop later -for the error reported in original message- -- signature.asc Description: OpenPGP digital signature
[gwt-contrib] Re: Trouble building GWT 2.0 from svn
John Tamplin wrote: Can you svn up in the tools directory? It sounds like perhaps you are missing the more recent JDT. btw, feder...@gentoo64 ~/gwt-trunk/tools $ ls -1 lib/eclipse/jdt* lib/eclipse/jdt-3.1.1.jar lib/eclipse/jdt-3.1.1-src.zip lib/eclipse/jdt-3.3.1.jar lib/eclipse/jdt-3.3.1-src.zip lib/eclipse/jdt-3.4.2.jar lib/eclipse/jdt-3.4.2-src.zip when declaring the classpath (first try - original message) I was referring to latest available (3.4.2) version signature.asc Description: OpenPGP digital signature
[gwt-contrib] Re: Trouble building GWT 2.0 from svn
Kango_V wrote: Same as Brett, that's all you need. Using ant 1.7.1 java 6u14 amd64. On Jul 19, 4:01 am, brett.wooldridge brett.wooldri...@gmail.com wrote: Not sure what the problem is. This is all I did (literally): mkdir gwt-trunk cd gwt-trunk svn checkouthttp://google-web-toolkit.googlecode.com/svn/tools/tools svn checkouthttp://google-web-toolkit.googlecode.com/svn/trunk/trunk cd trunk ant so I did I. I repeated the above steps today. ant (1.7.1) run up to some point, then I get this error: [gwt.javac] Compiling 725 source files to /home/federico/gwt-trunk/trunk/build/out/dev/core/bin [gwt.javac] /home/federico/gwt-trunk/trunk/dev/core/src/com/google/gwt/dev/javac/CompilationUnit.java:32: package org.eclipse.jdt.core.compiler does not exist [gwt.javac] import org.eclipse.jdt.core.compiler.CategorizedProblem; [gwt.javac] ^ [gwt.javac] /home/federico/gwt-trunk/trunk/dev/core/src/com/google/gwt/dev/javac/CompilationUnit.java:33: cannot find symbol that's why I was passing all the classpaths and the directories. here is: amd64 ant-1.7.1 java version 1.6.0_13 javac 1.6.0_13 signature.asc Description: OpenPGP digital signature
[gwt-contrib] Re: Trouble building GWT 2.0 from svn
Same as Brett, that's all you need. Using ant 1.7.1 java 6u14 amd64. On Jul 19, 4:01 am, brett.wooldridge brett.wooldri...@gmail.com wrote: Not sure what the problem is. This is all I did (literally): mkdir gwt-trunk cd gwt-trunk svn checkouthttp://google-web-toolkit.googlecode.com/svn/tools/tools svn checkouthttp://google-web-toolkit.googlecode.com/svn/trunk/trunk cd trunk ant That's it. I didn't set any environment variables (not even GWT_TOOLS), I have no classpath in my environment, etc. The only thing in my path is Ant and Java. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Trouble building GWT 2.0 from svn
Freeland Abbott wrote: gwt-dev-*.jar are things that ant should build for you, fairly early (but after the build-tools directory). Is there a reason you're setting the classpath and all those -lib flags to ant? It should just find them, using $GWT_TOOLS. because if I don't set it, it would -obviously?- fail, because it won't find jdt, then servlet api, then apace commons, and so on $ ant -version Apache Ant version 1.7.1 compiled on March 31 2009 $ export GWT_TOOLS=~/gwt/tools $ export GWT_VERSION=2.0.0-SNAPSHOT $ ant clean Buildfile: build.xml Trying to override old definition of task for clean: [delete] Deleting directory /home/federico/gwt/trunk/build BUILD SUCCESSFUL Total time: 0 seconds $ echo $CLASSPATH . $ unset CLASSPATH # not really necessary $ ant dist-one Buildfile: build.xml Trying to override old definition of task for buildonly: Trying to override old definition of task for Trying to override old definition of task for dev-one: Trying to override old definition of task for Trying to override old definition of task for buildtools: Trying to override old definition of task for Trying to override old definition of task for build: Trying to override old definition of task for Trying to override old definition of task for ant-gwt: Trying to override old definition of task for Trying to override old definition of task for compile: [mkdir] Created dir: /home/federico/gwt/trunk/build/out/build-tools/ant-gwt/bin [gwt.javac] Compiling 5 source files to /home/federico/gwt/trunk/build/out/build-tools/ant-gwt/bin build: [mkdir] Created dir: /home/federico/gwt/trunk/build/lib [jar] Building jar: /home/federico/gwt/trunk/build/lib/ant-gwt.jar customchecks: Trying to override old definition of task for Trying to override old definition of task for compile: [mkdir] Created dir: /home/federico/gwt/trunk/build/out/build-tools/customchecks/bin [gwt.javac] Compiling 2 source files to /home/federico/gwt/trunk/build/out/build-tools/customchecks/bin build: [jar.bydate] Building jar: /home/federico/gwt/trunk/build/lib/gwt-customchecks.jar doctool: Trying to override old definition of task for Trying to override old definition of task for compile: [mkdir] Created dir: /home/federico/gwt/trunk/build/out/build-tools/doctool/bin [gwt.javac] Compiling 13 source files to /home/federico/gwt/trunk/build/out/build-tools/doctool/bin [gwt.javac] Note: Some input files use unchecked or unsafe operations. [gwt.javac] Note: Recompile with -Xlint:unchecked for details. build: [jar.bydate] Building jar: /home/federico/gwt/trunk/build/lib/gwt-doctool.jar -do: Trying to override old definition of task for Trying to override old definition of task for core: Trying to override old definition of task for Trying to override old definition of task for build.alldeps.jar: [mkdir] Created dir: /home/federico/gwt/trunk/build/out/dev/core build: [mkdir] Created dir: /home/federico/gwt/trunk/build/out/dev/core/bin-dummy [gwt.javac] Compiling 1 source file to /home/federico/gwt/trunk/build/out/dev/core/bin-dummy [mkdir] Created dir: /home/federico/gwt/trunk/build/out/dev/core/bin [gwt.javac] Compiling 5 source files to /home/federico/gwt/trunk/build/out/dev/core/bin [gwt.javac] Compiling 725 source files to /home/federico/gwt/trunk/build/out/dev/core/bin [gwt.javac] /home/federico/gwt/trunk/dev/core/src/com/google/gwt/dev/javac/CompilationUnit.java:32: package org.eclipse.jdt.core.compiler does not exist [gwt.javac] import org.eclipse.jdt.core.compiler.CategorizedProblem; [gwt.javac] ^ [gwt.javac] /home/federico/gwt/trunk/dev/core/src/com/google/gwt/dev/javac/CompilationUnit.java:33: cannot find symbol [gwt.javac] symbol : class ASTVisitor [gwt.javac] location: package org.eclipse.jdt.internal.compiler [gwt.javac] import org.eclipse.jdt.internal.compiler.ASTVisitor; [gwt.javac] ^ [gwt.javac] /home/federico/gwt/trunk/dev/core/src/com/google/gwt/dev/javac/CompilationUnit.java:34: package org.eclipse.jdt.internal.compiler.ast does not exist [gwt.javac] import org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration; [gwt.javac] ^ [gwt.javac] /home/federico/gwt/trunk/dev/core/src/com/google/gwt/dev/javac/CompilationUnit.java:35: package org.eclipse.jdt.internal.compiler.ast does not exist [gwt.javac] import org.eclipse.jdt.internal.compiler.ast.Expression; [gwt.javac] ^ [gwt.javac] /home/federico/gwt/trunk/dev/core/src/com/google/gwt/dev/javac/CompilationUnit.java:36: package org.eclipse.jdt.internal.compiler.ast does not exist [gwt.javac] import org.eclipse.jdt.internal.compiler.ast.TypeDeclaration; [gwt.javac] ^ [gwt.javac] /home/federico/gwt/trunk/dev/core/src/com/google/gwt/dev/javac/CompilationUnit.java:37: cannot find symbol [gwt.javac] symbol : class
[gwt-contrib] Re: Trouble building GWT 2.0 from svn
gwt-dev-*.jar are things that ant should build for you, fairly early (but after the build-tools directory). Is there a reason you're setting the classpath and all those -lib flags to ant? It should just find them, using $GWT_TOOLS. I suspect (but am not certain) the -lib's explain all of your trying to override old definition of task messages. I also think they're what's causing your errors... do you have trunk/build/out and trunk/build/lib directories, and do they have reasonable contents? I think I see a few class files being compiled, but I'm suspicious that the task redefinitions caused the jar'ing to not to happen. Also, which ant are you running? 1.7.0 has known issues (though not these ones); 1.6.5 or 1.7.1 should both work fine. On Wed, Jul 15, 2009 at 3:31 PM, mescalinum mescali...@gmail.com wrote: I followed instructions I found somewhere to build gwt. I checked out tools and trunk, adjusted my CLASSPATH, GWT_TOOLS and GWT_VERSION env vars, and run ant dist-one $ cd ~/gwt $ ls tools trunk $ export GWT_TOOLS=~/gwt/tools $ export GWT_VERSION=2.0.0-SNAPSHOT $ cd trunk $ CLASSPATH=.:$GWT_TOOLS/lib/tomcat/jsp-api-2.1.jar:$GWT_TOOLS/lib/ tomcat/servlet-api-2.5.jar ant -lib $GWT_TOOLS/lib/apache -lib $GWT_TOOLS/lib/eclipse -lib $GWT_TOOLS/lib/w3c -lib $GWT_TOOLS/lib/w3c/ sac -lib $GWT_TOOLS/lib/w3c/flute -lib $GWT_TOOLS/lib/jetty -lib $GWT_TOOLS/lib/javaswf -lib $GWT_TOOLS/lib/selenium -lib $GWT_TOOLS/ lib/tomcat -lib $GWT_TOOLS/lib/objectweb -lib $GWT_TOOLS/lib/ jfreechart -lib $GWT_TOOLS/lib/tonicsystems -lib $GWT_TOOLS/lib/junit - lib $GWT_TOOLS/lib/sun -lib $GWT_TOOLS/lib/sun/swingworker -lib $GWT_TOOLS/lib/xerces -lib $GWT_TOOLS/lib/xerces/xerces-2_9_1 dist-one Buildfile: build.xml Trying to override old definition of task for buildonly: Trying to override old definition of task for Trying to override old definition of task for dev-one: Trying to override old definition of task for Trying to override old definition of task for buildtools: Trying to override old definition of task for Trying to override old definition of task for build: Trying to override old definition of task for Trying to override old definition of task for ant-gwt: Trying to override old definition of task for Trying to override old definition of task for compile: [mkdir] Created dir: /home/federico/gwt/trunk/build/out/build- tools/ant-gwt/bin [gwt.javac] Compiling 5 source files to /home/federico/gwt/trunk/build/ out/build-tools/ant-gwt/bin build: [mkdir] Created dir: /home/federico/gwt/trunk/build/lib [jar] Building jar: /home/federico/gwt/trunk/build/lib/ant- gwt.jar customchecks: Trying to override old definition of task for Trying to override old definition of task for compile: [mkdir] Created dir: /home/federico/gwt/trunk/build/out/build- tools/customchecks/bin [gwt.javac] Compiling 2 source files to /home/federico/gwt/trunk/build/ out/build-tools/customchecks/bin build: [jar.bydate] Building jar: /home/federico/gwt/trunk/build/lib/gwt- customchecks.jar doctool: Trying to override old definition of task for Trying to override old definition of task for compile: [mkdir] Created dir: /home/federico/gwt/trunk/build/out/build- tools/doctool/bin [gwt.javac] Compiling 13 source files to /home/federico/gwt/trunk/ build/out/build-tools/doctool/bin [gwt.javac] Note: Some input files use unchecked or unsafe operations. [gwt.javac] Note: Recompile with -Xlint:unchecked for details. build: [jar.bydate] Building jar: /home/federico/gwt/trunk/build/lib/gwt- doctool.jar -do: Trying to override old definition of task for Trying to override old definition of task for core: Trying to override old definition of task for Trying to override old definition of task for build.alldeps.jar: [mkdir] Created dir: /home/federico/gwt/trunk/build/out/dev/core build: [mkdir] Created dir: /home/federico/gwt/trunk/build/out/dev/core/ bin-dummy [gwt.javac] Compiling 1 source file to /home/federico/gwt/trunk/build/ out/dev/core/bin-dummy [mkdir] Created dir: /home/federico/gwt/trunk/build/out/dev/core/ bin [gwt.javac] Compiling 5 source files to /home/federico/gwt/trunk/build/ out/dev/core/bin [gwt.javac] Compiling 725 source files to /home/federico/gwt/trunk/ build/out/dev/core/bin [gwt.javac] Note: Some input files use or override a deprecated API. [gwt.javac] Note: Recompile with -Xlint:deprecation for details. [gwt.javac] Note: Some input files use unchecked or unsafe operations. [gwt.javac] Note: Recompile with -Xlint:unchecked for details. [gwt.javac] Creating empty /home/federico/gwt/trunk/build/out/dev/core/ bin/com/google/gwt/core/ext/soyc/package-info.class [copy] Copying 1 file to /home/federico/gwt/trunk/build/out/dev/ core/bin [mkdir] Created dir: /home/federico/gwt/trunk/build/out/dev/core/ sentinels Trying to override old definition of task for Trying to override old definition of