Re: [abc-users] Internal compiler error while compiling AJHotDraw

From: Eric Bodden <eric.bodden_at_mail.mcgill.ca>
Date: Wed, 12 Mar 2008 09:50:53 -0400

This sounds relatively long. Can you try "-debug abcTimer -debug
timerTrace" ? That should give you some information about where abc
spends its time.

Eric

On 12/03/2008, Guillaume Pothier <gpothier_at_gmail.com> wrote:
> Hi, I tried with rev 4924 (latest at the time I updated), and now I
> don't get any error, but... I started the compilation about 15 minutes
> ago and it still doesn't say anything... I guess that is not normal,
> or is it?
>
> g
>
>
> On Thu, Mar 13, 2008 at 6:37 AM, Pavel Avgustinov
> <pavel.avgustinov_at_magd.ox.ac.uk> wrote:
> > Hi Guillaume,
> >
> > Thank you very much for reporting this. Could you try abc revision 4921 or
> > later? Torbjörn has committed a fix to the way location information is
> > computed, which will hopefully resolve this problem.
> >
> > Many thanks,
> > - Pavel
> >
> >
> >
> > On Wednesday 12 March 2008 02:31:39 Guillaume Pothier wrote:
> > > Hi,
> > > I'm having this error while compiling AJHotDraw (HEAD) with abc-ja (HEAD):
> > >
> > > Unexpected error of kind java.lang.NullPointerException
> > > Exception in thread "main" polyglot.util.InternalCompilerError:
> > > unhandled exception during compilation
> > > at abc.main.CompileSequence.runSequence(CompileSequence.java:89)
> > > at abc.main.Main.run(Main.java:487)
> > > at abc.main.Main.main(Main.java:144)
> > > Caused by: java.lang.IllegalArgumentException: Polyglot usage error:
> > > /home/gpothier/eclipse/workbench-3.1/AJHotDraw-cvs/src/aspects/org/jhotdraw
> > >/ccconcerns/commands/CommandObserver.aj: null
> > > at abc.ja.CompileSequence.compile(CompileSequence.java:176)
> > > at abc.main.CompileSequence.runSequence(CompileSequence.java:79)
> > > ... 2 more
> > > Caused by: java.lang.Error:
> > > /home/gpothier/eclipse/workbench-3.1/AJHotDraw-cvs/src/aspects/org/jhotdraw
> > >/ccconcerns/commands/CommandObserver.aj: null
> > > at abc.ja.jrag.PathPart.getCompilationUnit(PathPart.java:145)
> > > at abc.ja.jrag.FileNamesPart.addSourceFile(FileNamesPart.java:64)
> > > at abc.ja.jrag.Program.addSourceFile(Program.java:124)
> > > at abc.ja.CompileSequence.compile(CompileSequence.java:118)
> > > ... 3 more
> > > Caused by: java.lang.NullPointerException
> > > at
> > > abc.ja.jrag.IntertypeMethodDecl.Define_SimpleSet_lookupType(IntertypeMethod
> > >Decl.java:960) at
> > > abc.ja.jrag.AbstractDot.Define_SimpleSet_lookupType(AbstractDot.java:540)
> > > at abc.ja.jrag.Expr.lookupType(Expr.java:746)
> > > at
> > > abc.ja.jrag.PackageOrTypeAccess.rewriteRule0(PackageOrTypeAccess.java:191)
> > > at abc.ja.jrag.PackageOrTypeAccess.rewriteTo(PackageOrTypeAccess.java:180)
> > > at abc.ja.jrag.ASTNode.getChild(ASTNode.java:836)
> > > at abc.ja.jrag.ASTNode.getChild(ASTNode.java:817)
> > > at abc.ja.jrag.Dot.getLeft(Dot.java:117)
> > > at abc.ja.jrag.AbstractDot.leftSide_compute(AbstractDot.java:341)
> > > at abc.ja.jrag.AbstractDot.leftSide(AbstractDot.java:337)
> > > at abc.ja.jrag.Dot.rewriteTo(Dot.java:148)
> > > at abc.ja.jrag.ASTNode.getChild(ASTNode.java:836)
> > > at abc.ja.jrag.ASTNode.getChild(ASTNode.java:817)
> > > at abc.ja.jrag.MethodDecl.lineNumber_compute(MethodDecl.java:804)
> > > at abc.ja.jrag.MethodDecl.lineNumber(MethodDecl.java:798)
> > > at abc.ja.parse.JavaParser.invokeReduceAction(JavaParser.java:4139)
> > > at beaver.Parser.reduce(Parser.java:539)
> > > at beaver.Parser.parse(Parser.java:447)
> > > at beaver.Parser.parse(Parser.java:407)
> > > at abc.ja.parse.JavaParser.parse(JavaParser.java:903)
> > > at abc.ja.CompileSequence$1.parse(CompileSequence.java:94)
> > > at abc.ja.jrag.PathPart.getCompilationUnit(PathPart.java:132)
> > > ... 6 more
> > >
> > >
> > > Any idea what this means? What additional information should I provide?
> > >
> > > Regards,
> > > g
> >
> >
> >
> >
>
>

-- 
Eric Bodden
Sable Research Group
McGill University, Montréal, Canada
Received on Wed Mar 12 2008 - 13:50:57 GMT

This archive was generated by hypermail 2.2.0 : Wed Mar 12 2008 - 14:00:11 GMT