[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-kawa] [bug #45526] kawa-2.0: compilation is broken on Windows (prop
From: |
anonymous |
Subject: |
[Bug-kawa] [bug #45526] kawa-2.0: compilation is broken on Windows (proposing a fix) |
Date: |
Fri, 10 Jul 2015 22:48:39 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?45526>
Summary: kawa-2.0: compilation is broken on Windows
(proposing a fix)
Project: Kawa
Submitted by: None
Submitted on: Птн 10 Июл 2015 22:48:38
Category: None
Severity: 3 - Normal
Item Group: Problem building Kawa
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
I am compiling Kawa with ant on Windows 7 getting an error. Not sure if it is
OS-specific, but it seems so. I get this error:
[kawac] (compiling
D:\storage\distribs\programming\lisp\kawa-2.0-2\kawa-2.0\kawa\lib\kawa\string-cursors.scm
to kawa.lib.kawa.string$Mncursors)
[kawac] (compiling
D:\storage\distribs\programming\lisp\kawa-2.0-2\kawa-2.0\kawa\lib\kawa\quaternions.scm
to kawa.lib.kawa.quaternions)
[kawac] (compiling
D:\storage\distribs\programming\lisp\kawa-2.0-2\kawa-2.0\kawa\lib\kawa\hashtable.scm
to kawa.lib.kawa.hashtable)
[kawac] (compiling
D:\storage\distribs\programming\lisp\kawa-2.0-2\kawa-2.0\kawa\lib\kawa\regex.scm
to kawa.lib.kawa.regex)
[kawac] (compiling
D:\storage\distribs\programming\lisp\kawa-2.0-2\kawa-2.0\kawa\lib\rnrs\hashtables.scm
to kawa.lib.rnrs.hashtables)
[kawac] (compiling
D:\storage\distribs\programming\lisp\kawa-2.0-2\kawa-2.0\kawa\lib\rnrs\lists.scm
to kawa.lib.rnrs.lists)
[kawac] internal error while compiling
D:\storage\distribs\programming\lisp\kawa-2.0-2\kawa-2.0\kawa\lib\rnrs\lists.scm
[kawac] java.lang.IllegalArgumentException: Illegal character in opaque
part at index 2:
D:\storage\distribs\programming\lisp\kawa-2.0-2\kawa-2.0\kawa\lib\rnrs/../lists.scm
[kawac] at java.net.URI.create(URI.java:852)
[kawac] at java.net.URI.resolve(URI.java:1036)
[kawac] at gnu.kawa.io.FilePath.resolve(FilePath.java:270)
[kawac] at
kawa.standard.ImportFromLibrary.handleImport(ImportFromLibrary.java:375)
[kawac] at kawa.standard.require.scanForDefinitions(require.java:177)
[kawac] at kawa.lang.Syntax.scanForm(Syntax.java:57)
[kawac] at kawa.lang.Translator.scanForm(Translator.java:1508)
[kawac] at gnu.kawa.lispexpr.LispLanguage.parse(LispLanguage.java:82)
[kawac] at gnu.expr.Compilation.process(Compilation.java:1935)
[kawac] at gnu.expr.ModuleInfo.loadByStages(ModuleInfo.java:290)
[kawac] at gnu.expr.ModuleInfo.loadByStages(ModuleInfo.java:272)
[kawac] at gnu.expr.ModuleInfo.loadByStages(ModuleInfo.java:272)
[kawac] at gnu.expr.ModuleInfo.loadByStages(ModuleInfo.java:272)
[kawac] at gnu.expr.ModuleInfo.loadByStages(ModuleInfo.java:272)
[kawac] at gnu.expr.ModuleInfo.loadByStages(ModuleInfo.java:272)
[kawac] at gnu.expr.ModuleInfo.loadByStages(ModuleInfo.java:272)
[kawac] at kawa.repl.compileFiles(repl.java:824)
[kawac] at kawa.repl.processArgs(repl.java:444)
[kawac] at kawa.repl.main(repl.java:871)
[kawac] Caused by: java.net.URISyntaxException: Illegal character in
opaque part at index 2:
D:\storage\distribs\programming\lisp\kawa-2.0-2\kawa-2.0\kawa\lib\rnrs/../lists.scm
[kawac] at java.net.URI$Parser.fail(URI.java:2848)
[kawac] at java.net.URI$Parser.checkChars(URI.java:3021)
[kawac] at java.net.URI$Parser.parse(URI.java:3058)
[kawac] at java.net.URI.<init>(URI.java:588)
[kawac] at java.net.URI.create(URI.java:850)
[kawac] ... 18 more
Apparently, the path won't do for the URI creation. I have patched
ImportFromLibrary.java, on line 376 insert:
...
pathStr = pathStr.replaceAll("\\\\", "/");
pathStr = java.nio.file.Paths.get(new
java.io.File(pathStr).toURI()).normalize().toString();
pathStr = "file://" + pathStr.replaceAll("\\\\", "/");
Path path = currentRoot.resolve(pathStr);
...
I have attached the changed source file.
This makes Kawa compilable for me. Maybe it is a bug and needs a fix?
If you need more info, you can contact me on address@hidden but I
believe that's pretty very much it.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Птн 10 Июл 2015 22:48:38 Name: ImportFromLibrary.java Size: 23kB
By: None
<http://savannah.gnu.org/bugs/download.php?file_id=34422>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45526>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Bug-kawa] [bug #45526] kawa-2.0: compilation is broken on Windows (proposing a fix),
anonymous <=