Hi list, I get a ClassCastException while trying to run an x10 application. The application is fairly large to be posted here; so, I am just attaching the error messages here. Could you please point me to a possible problem?
I am using x10 2.1. Also, I must add that I applied a patch file to the x10 2.1 source, and built it for my use. When compiling with x10c++, I get the following errors: x10c++: Undefined symbols: "_main", referenced from: start in crt1.10.6.o (maybe you meant: _GC_dirty_maintained, _GC_register_main_static_data , _GC_get_main_stack_base ) ld: symbol(s) not found collect2: ld returned 1 exit status x10c++: Non-zero return code: 1 --------------------------------------------- When compiling with x10c, I get the following error: Exception in thread "main" java.lang.ClassCastException: x10c.ast.X10CBackingArrayAccess_c cannot be cast to polyglot.ast.Local at x10c.visit.AsyncInitializer$5.leave(AsyncInitializer.java:339) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:258) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.Eval_c.visitChildren(Eval_c.java:68) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.Node_c.visitList(Node_c.java:239) at polyglot.ast.AbstractBlock_c.visitChildren(AbstractBlock_c.java:72) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.For_c.visitChildren(For_c.java:105) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.Node_c.visitList(Node_c.java:239) at polyglot.ast.AbstractBlock_c.visitChildren(AbstractBlock_c.java:72) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.Node_c.visitList(Node_c.java:239) at polyglot.ast.AbstractBlock_c.visitChildren(AbstractBlock_c.java:72) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.Node_c.visitList(Node_c.java:239) at polyglot.ast.AbstractBlock_c.visitChildren(AbstractBlock_c.java:72) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.If_c.visitChildren(If_c.java:89) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.Node_c.visitList(Node_c.java:239) at polyglot.ast.AbstractBlock_c.visitChildren(AbstractBlock_c.java:72) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at x10.ast.Closure_c.visitChildren(Closure_c.java:234) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.Node_c.visitList(Node_c.java:239) at x10.ast.X10Call_c.visitChildren(X10Call_c.java:121) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visit(Node_c.java:183) at x10c.visit.AsyncInitializer.collectInfo(AsyncInitializer.java:319) at x10c.visit.AsyncInitializer.access$900(AsyncInitializer.java:77) at x10c.visit.AsyncInitializer$4.leave(AsyncInitializer.java:306) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:258) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.Eval_c.visitChildren(Eval_c.java:68) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.Node_c.visitList(Node_c.java:239) at polyglot.ast.AbstractBlock_c.visitChildren(AbstractBlock_c.java:72) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.For_c.visitChildren(For_c.java:105) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.Node_c.visitList(Node_c.java:239) at polyglot.ast.AbstractBlock_c.visitChildren(AbstractBlock_c.java:72) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at x10.ast.Closure_c.visitChildren(Closure_c.java:234) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.Node_c.visitList(Node_c.java:239) at x10.ast.X10Call_c.visitChildren(X10Call_c.java:121) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.Eval_c.visitChildren(Eval_c.java:68) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.Node_c.visitList(Node_c.java:239) at polyglot.ast.AbstractBlock_c.visitChildren(AbstractBlock_c.java:72) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at x10.ast.X10Loop_c.visitChildren(X10Loop_c.java:236) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.Node_c.visitList(Node_c.java:239) at polyglot.ast.AbstractBlock_c.visitChildren(AbstractBlock_c.java:72) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at x10.ast.Closure_c.visitChildren(Closure_c.java:234) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.Node_c.visitList(Node_c.java:239) at x10.ast.X10Call_c.visitChildren(X10Call_c.java:121) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.Eval_c.visitChildren(Eval_c.java:68) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.Node_c.visitList(Node_c.java:239) at polyglot.ast.AbstractBlock_c.visitChildren(AbstractBlock_c.java:72) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at x10.ast.X10Loop_c.visitChildren(X10Loop_c.java:236) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.Node_c.visitList(Node_c.java:239) at polyglot.ast.AbstractBlock_c.visitChildren(AbstractBlock_c.java:72) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.Node_c.visitList(Node_c.java:239) at polyglot.ast.AbstractBlock_c.visitChildren(AbstractBlock_c.java:72) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.Node_c.visitList(Node_c.java:239) at polyglot.ast.AbstractBlock_c.visitChildren(AbstractBlock_c.java:72) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visit(Node_c.java:183) at x10c.visit.AsyncInitializer.privatizeVariables(AsyncInitializer.java:298) at x10c.visit.AsyncInitializer.leaveCall(AsyncInitializer.java:163) at polyglot.visit.ErrorHandlingVisitor.leave(ErrorHandlingVisitor.java:279) at polyglot.visit.ContextVisitor.leave(ContextVisitor.java:140) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:258) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.Node_c.visitList(Node_c.java:239) at polyglot.ast.AbstractBlock_c.visitChildren(AbstractBlock_c.java:72) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.Node_c.visitList(Node_c.java:239) at polyglot.ast.AbstractBlock_c.visitChildren(AbstractBlock_c.java:72) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.Node_c.visitList(Node_c.java:239) at polyglot.ast.AbstractBlock_c.visitChildren(AbstractBlock_c.java:72) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.For_c.visitChildren(For_c.java:105) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.Node_c.visitList(Node_c.java:239) at polyglot.ast.AbstractBlock_c.visitChildren(AbstractBlock_c.java:72) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.Node_c.visitList(Node_c.java:239) at polyglot.ast.AbstractBlock_c.visitChildren(AbstractBlock_c.java:72) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.MethodDecl_c.visitChildren(MethodDecl_c.java:155) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.Node_c.visitList(Node_c.java:239) at polyglot.ast.ClassBody_c.visitChildren(ClassBody_c.java:64) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.ClassDecl_c.visitChildren(ClassDecl_c.java:156) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:179) at polyglot.ast.Node_c.visitList(Node_c.java:239) at polyglot.ast.SourceFile_c.visitChildren(SourceFile_c.java:116) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visit(Node_c.java:183) at polyglot.frontend.VisitorGoal.runTask(VisitorGoal.java:47) at x10.ExtensionInfo$X10Scheduler$ValidatingVisitorGoal.runTask(ExtensionInfo.java:841) at polyglot.frontend.Scheduler.runPass(Scheduler.java:328) at x10.ExtensionInfo$X10Scheduler.runPass(ExtensionInfo.java:992) at polyglot.frontend.AbstractGoal_c.run(AbstractGoal_c.java:106) at polyglot.types.LazyRef_c.get(LazyRef_c.java:47) at polyglot.frontend.AbstractGoal_c.run(AbstractGoal_c.java:53) at polyglot.types.LazyRef_c.get(LazyRef_c.java:47) at polyglot.frontend.AbstractGoal_c.run(AbstractGoal_c.java:53) at polyglot.types.LazyRef_c.get(LazyRef_c.java:47) at polyglot.frontend.AbstractGoal_c.run(AbstractGoal_c.java:53) at polyglot.types.LazyRef_c.get(LazyRef_c.java:47) at polyglot.frontend.AbstractGoal_c.run(AbstractGoal_c.java:53) at polyglot.types.LazyRef_c.get(LazyRef_c.java:47) at polyglot.frontend.AbstractGoal_c.run(AbstractGoal_c.java:53) at polyglot.types.LazyRef_c.get(LazyRef_c.java:47) at polyglot.frontend.Scheduler.attempt(Scheduler.java:238) at polyglot.frontend.Scheduler.runToCompletion(Scheduler.java:175) at polyglot.frontend.Scheduler.runToCompletion(Scheduler.java:161) at polyglot.frontend.Compiler.compile(Compiler.java:173) at polyglot.frontend.Compiler.compileFiles(Compiler.java:141) at polyglot.main.Main.start(Main.java:119) at polyglot.main.Main.start(Main.java:74) at polyglot.main.Main.main(Main.java:166) Thanks, Jeeva P. ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users