bug-kawa
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-kawa] Fwd: compiling swank-kawa.scm gives NullPointerException


From: Tristan Straub
Subject: [Bug-kawa] Fwd: compiling swank-kawa.scm gives NullPointerException
Date: Wed, 13 Jun 2012 13:56:19 +1000

Hi,

I'm trying to compile swank-kawa.scm but get the following exception:

$ kawa -C swank-kawa.scm 
(compiling swank-kawa.scm to swank$Mnkawa)
swank-kawa.scm:378:5: warning - no use of %vm
swank-kawa.scm:556:5: warning - no use of eval-for-emacs
swank-kawa.scm:1100:5: warning - no use of test-disas
swank-kawa.scm:1705:5: warning - no use of thread-step
swank-kawa.scm:1715:5: warning - no use of eval-in-thread
swank-kawa.scm:1798:5: warning - no use of set-stacktrace-recording
swank-kawa.scm:2120:5: warning - no use of list-env
swank-kawa.scm:2126:5: warning - no use of list-file
swank-kawa.scm:2133:5: warning - no use of list-decls
swank-kawa.scm:2182:5: warning - no use of gc
swank-kawa.scm:2192:5: warning - no use of room
swank-kawa.scm:2230:5: warning - no use of read-bytes
swank-kawa.scm:2238:5: warning - no use of read-class-file
swank-kawa.scm:2249:5: warning - no use of all-instances
swank-kawa.scm:2253:5: warning - no use of %all-subclasses
swank-kawa.scm:2257:5: warning - no use of with-output-to-string
swank-kawa.scm:2294:5: warning - no use of as-list
swank-kawa.scm:614:4: warning - unreachable code
swank-kawa.scm:872:27: warning - unreachable code
swank-kawa.scm:875:26: warning - unreachable code
swank-kawa.scm:877:34: warning - unreachable code
swank-kawa.scm:2122: internal error while compiling swank-kawa.scm
java.lang.NullPointerException
        at gnu.expr.Declaration.load(Declaration.java:372)
        at gnu.expr.ReferenceExp.compile(ReferenceExp.java:169)
        at gnu.expr.Expression.compileNotePosition(Expression.java:156)
        at gnu.expr.Expression.compileWithPosition(Expression.java:127)
        at gnu.expr.ApplyExp.compile(ApplyExp.java:401)
        at gnu.expr.ApplyExp.compile(ApplyExp.java:126)
        at gnu.expr.Expression.compileWithPosition(Expression.java:130)
        at gnu.expr.BeginExp.compile(BeginExp.java:153)
        at gnu.expr.Expression.compileNotePosition(Expression.java:156)
        at gnu.expr.Expression.compileWithPosition(Expression.java:127)
        at gnu.expr.LetExp.compile(LetExp.java:193)
        at gnu.expr.Expression.compileNotePosition(Expression.java:156)
        at gnu.expr.Expression.compileWithPosition(Expression.java:127)
        at gnu.expr.LetExp.compile(LetExp.java:193)
        at gnu.expr.Expression.compileNotePosition(Expression.java:156)
        at gnu.expr.Expression.compileWithPosition(Expression.java:142)
        at gnu.expr.LambdaExp.compileBody(LambdaExp.java:1670)
        at gnu.expr.LambdaExp.compileAsMethod(LambdaExp.java:1646)
        at gnu.expr.LambdaExp.compileEnd(LambdaExp.java:587)
        at gnu.expr.Compilation.generateBytecode(Compilation.java:2075)
        at gnu.expr.Compilation.process(Compilation.java:1952)
        at gnu.expr.ModuleInfo.loadByStages(ModuleInfo.java:305)
        at gnu.expr.ModuleInfo.loadByStages(ModuleInfo.java:290)
        at kawa.repl.compileFiles(repl.java:824)
        at kawa.repl.processArgs(repl.java:444)
        at kawa.repl.main(repl.java:870)

I don't understand the compiler code well enough to fix it.

Any ideas?

Thanks,

Tristan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]