Hi, Looks like you aren't getting the right version of Polyglot - the ForgivingVisitorGoal is a relatively recent addition.
Are you setting LOCAL_POLYGLOT_JAR? If so, try not setting that, so that the ant script picks up the version of Polyglot that it needs (which I *think* is 3.2.0). You might have to clean out your x10.dist/ lib directory and run "ant update-jar-cache". Hope that helps... On Aug 5, 2010, at 4:29 PM, Jeeva Paudel wrote: > Hi all, > > I am trying to build X10 source in Eclipse (helios). I checked > out all the modules (common, compiler, constraints, dist, doc, > man, ..., tut) from the trunk as separate java projects. I am using > JRE 1.6, and the polyglot-epl.jar. When I try to build the runtime > module with ant (version 1.7.1), I get the following error: > > Buildfile: /Documents/X10Src/x10.runtime/build.xml > init: > check-xrx: > gen-xrx: > [echo] Building Java sources for XRX > [echo] x10c -c x10/array/Array.x10 x10/array/BaseDist.x10 x10/ > array/Dist.x10 x10/array/DistArray.x10 x10/array/EmptyRegion.x10 x10/ > array/FullRegion.x10 x10/array/Layout.x10 x10/array/Mat.x10 x10/util/ > concurrent/atomic/AtomicInteger.x10 x10/util/concurrent/atomic/ > AtomicLong.x10 x10/util/concurrent/atomic/AtomicReference.x10 x10/ > util/concurrent/atomic/Fences.x10 > [exec] Exception in thread "main" java.lang.Error: Unresolved > compilation problems: > [exec] The import polyglot.frontend.ForgivingVisitorGoal cannot > be resolved > [exec] The method getILexStream() from the type X10Lexer refers > to the missing type ILexStream > [exec] The method getIPrsStream() from the type X10Parser > refers to the missing type IPrsStream > [exec] The method TypesInitializedForCommandLineBarrier() is > undefined for the type ExtensionInfo.X10Scheduler > [exec] ForgivingVisitorGoal cannot be resolved to a type > [exec] ForgivingVisitorGoal cannot be resolved to a type > [exec] ForgivingVisitorGoal cannot be resolved to a type > [exec] ForgivingVisitorGoal cannot be resolved to a type > [exec] at x10.ExtensionInfo.<init>(ExtensionInfo.java:41) > [exec] at x10c.ExtensionInfo.<init>(ExtensionInfo.java:31) > [exec] at > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > [exec] at > sun > .reflect > .NativeConstructorAccessorImpl > .newInstance(NativeConstructorAccessorImpl.java:39) > [exec] at > sun > .reflect > .DelegatingConstructorAccessorImpl > .newInstance(DelegatingConstructorAccessorImpl.java:27) > [exec] at > java.lang.reflect.Constructor.newInstance(Constructor.java:513) > [exec] at java.lang.Class.newInstance0(Class.java:355) > [exec] at java.lang.Class.newInstance(Class.java:308) > [exec] at polyglot.main.Main.loadExtension(Main.java:189) > [exec] at polyglot.main.Main.getExtensionInfo(Main.java:64) > [exec] at polyglot.main.Main.start(Main.java:90) > [exec] at polyglot.main.Main.start(Main.java:74) > [exec] at polyglot.main.Main.main(Main.java:166) > > BUILD FAILED > /Documents/X10Src/x10.runtime/build.xml:236: exec returned: 1 > > The builds of common, compiler and constraints modules are > successful though. Can anyone suggest me what might be the problem > here? > > Thanks, > Jeeva P. > U of Alberta -- Cheers, -- Bob -------------------------------- Robert M. Fuhrer Research Staff Member Programming Technologies Dept. IBM T.J. Watson Research Center IMP Team Lead (http://www.eclipse.org/imp) X10: Productivity for High-Performance Parallel Programming (http://x10-lang.org ) ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users