[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-kawa] [bug #19725] compile problems appearing in latest svn version
From: |
tk |
Subject: |
[Bug-kawa] [bug #19725] compile problems appearing in latest svn version (5971) |
Date: |
Fri, 27 Apr 2007 21:21:09 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 |
URL:
<http://savannah.gnu.org/bugs/?19725>
Summary: compile problems appearing in latest svn version
(5971)
Project: Kawa
Submitted by: huh
Submitted on: Friday 04/27/2007 at 21:21
Category: Code generation
Severity: 3 - Normal
Item Group: Compile-time exception
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
$ cat foo/f1.scm
(define (foo) #f)
$ cat foo/f2.scm
(define (bar) (foo))
;;; first case fails at compile time when gnu.expr.Compilation.moduleStatic
== 0
$ rlwrap java -jar kawa/kawa-1.9.3.jar
#|kawa:1|# (compile-file "foo/f1.scm" "foo/f1.zip")
#|kawa:2|# (load "foo/f1.zip")
#|kawa:3|# (compile-file "foo/f2.scm" "foo/f2.zip")
java.lang.NullPointerException
at gnu.expr.Declaration.allocateVariable(Declaration.java:708)
at gnu.expr.Declaration.load(Declaration.java:245)
at gnu.expr.Declaration.loadOwningObject(Declaration.java:142)
at gnu.expr.Declaration.load(Declaration.java:205)
at gnu.expr.ReferenceExp.compile(ReferenceExp.java:152)
at gnu.expr.ApplyExp.compile(ApplyExp.java:338)
at gnu.expr.ApplyExp.compile(ApplyExp.java:110)
at gnu.expr.Expression.compileNotePosition(Expression.java:157)
at gnu.expr.Expression.compileWithPosition(Expression.java:143)
at gnu.expr.LambdaExp.compileBody(LambdaExp.java:1500)
at gnu.expr.LambdaExp.compileAsMethod(LambdaExp.java:1477)
at gnu.expr.LambdaExp.compileSetField(LambdaExp.java:627)
at gnu.expr.SetExp.compile(SetExp.java:170)
at gnu.expr.Expression.compileNotePosition(Expression.java:157)
at gnu.expr.Expression.compileWithPosition(Expression.java:143)
at gnu.expr.LambdaExp.compileBody(LambdaExp.java:1500)
at gnu.expr.Compilation.generateBytecode(Compilation.java:2017)
at gnu.expr.Compilation.process(Compilation.java:1891)
at gnu.expr.Compilation.compileToArchive(Compilation.java:990)
at kawa.lib.system.compileFile(system.scm:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at gnu.expr.PrimProcedure.apply(PrimProcedure.java:251)
at gnu.mapping.CallContext.runUntilDone(CallContext.java:251)
at gnu.expr.ModuleExp.evalModule(ModuleExp.java:303)
at kawa.Shell.run(Shell.java:260)
at kawa.Shell.run(Shell.java:185)
at kawa.Shell.run(Shell.java:166)
at kawa.repl.main(repl.java:870)
#|kawa:4|#
#|kawa:5|#
#|kawa:6|# (static-field <gnu.expr.Compilation> 'moduleStatic)
0
;;; with gnu.expr.Compilation.moduleStatic == 1, get a little further,
;;; but fails at runtime
#|kawa:7|# (set! (static-field <gnu.expr.Compilation> 'moduleStatic) 1)
#|kawa:8|#
#|kawa:9|# (compile-file "foo/f1.scm" "foo/f1.zip")
#|kawa:10|# (load "foo/f1.zip")
#|kawa:11|# (compile-file "foo/f2.scm" "foo/f2.zip")
#|kawa:12|#
#|kawa:13|# (load "foo/f2.zip")
#|kawa:14|# (foo)
#f
#|kawa:15|# (bar)
java.lang.NoClassDefFoundError: foo/f1
at foo.f2.bar(f2.scm:1)
at foo.f2.apply0(f2.scm:1)
at gnu.expr.ModuleMethod.apply0(ModuleMethod.java:176)
at gnu.expr.ModuleMethod.apply(ModuleMethod.java:150)
at gnu.mapping.CallContext.runUntilDone(CallContext.java:251)
at gnu.expr.ModuleExp.evalModule(ModuleExp.java:303)
at kawa.Shell.run(Shell.java:260)
at kawa.Shell.run(Shell.java:185)
at kawa.Shell.run(Shell.java:166)
at kawa.repl.main(repl.java:870)
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?19725>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Bug-kawa] [bug #19725] compile problems appearing in latest svn version (5971),
tk <=