Christoph Pospiech <christoph.pospi...@de.ibm.com> wrote on 08/17/2010 
08:11:45 AM:

> Hi,
> 
> after upgrading to X10DT to v2.0.5.1 and porting a simple user program 
to X10 
> v 2.0.5 (use Array.copyFrom() rather than Rail.copyFrom() ), the Eclipse 

> workspace (X10 with C++ backend) apparently doesn't finish compile. It 
says 
> "building workspace (17%)" and then stops. No error message is issued. 
All 
> windows stay silent. Also, the parser doesn't seem to be able to parse 
the 
> program (no colors in the editor window).
> 
> I thought this might be due to the upgrade, so I re-installed the 
workspace 
> from scratch. No avail. The standard hello.x10, however, works fine.
> 
> In order to make some progress, I installed the command line version of 
> x10c++. I got as far as this.
> c...@sirius:~/xample/MatMul/mm_X10$ export 
JAVA_HOME=/usr/lib/j2re1.6-ibm/jre
> c...@sirius:~/xample/MatMul/mm_X10$ x10c++ -o bin/matmul src/matmul.x10 
> Exception in thread "main" java.lang.NullPointerException
>    at polyglot.types.TypeEnv_c.isCastValid(TypeEnv_c.java:91)
>    at x10.types.X10TypeEnv_c.isCastValid(X10TypeEnv_c.java:1153)
>    at polyglot.types.TypeSystem_c.isCastValid(TypeSystem_c.java:363)
>    at x10.ast.X10Binary_c.typeCheck(X10Binary_c.java:373)
>    at x10.ast.AmbMacroTypeNode_c$1.subst(AmbMacroTypeNode_c.java:429)
> [... trace back follows ...]
> 
> At this point I am stuck. Any one any ideas ? Presumably my program 
isn't 
> correct. But still I would expect eclipse to guide me to the error.

Hi, Christoph,

You have apparently stumbled onto a compiler bug.  Unfortunately, once
there is a terminal exception in the compiler, there isn't much X10DT can
do to recover the information that is lost.

There has been a lot of work recently on improving the robustness of the
compiler to make sure that errors like the one you encountered are rare.
It would be helpful for us to have some sample code (in a JIRA report) to
verify that your particular problem is fixed by those changes.

Thanks,
        Igor
-- 
Igor Peshansky  (note the spelling change!)
IBM T.J. Watson Research Center
X10: Parallel Productivity and Performance (http://x10-lang.org/)
XJ: No More Pain for XML's Gain (http://www.research.ibm.com/xj/)
"I hear and I forget.  I see and I remember.  I do and I understand" -- 
Confucius


------------------------------------------------------------------------------
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

Reply via email to