-
Notifications
You must be signed in to change notification settings - Fork 2
Description
I followed the steps given in the README (downloaded and build Polygot first, put those Jar files in lib directory, set up config.properties, then did ant configure, ant jif-runtime, and ant).
The last step does not succeed. All of my current errors are in the file sig-classes/jif/lang/Principal.java. Among other things, it is complaining about jif.lang.Principal being a duplicate class. I tried to skip step 6 and tried to compile a jif program directly (battleship example) and i ended up getting this error: Caused by: polyglot.types.SemanticException: Class "jif.lang.Principal" not found. A class file was found at file:/Users/aaryanpatel/jif/rt-classes/jif/lang/Principal.class, but it did not contain appropriate information for the Polyglot-based compiler jifc. Try using jifc to recompile the source code.
Has anyone else faced a similar issue while building jif code? Thank you in advance for the help!
Other information:
Open-JDK Version: 21.0.4
Platform: macOS 15.1
Here's the error message I get when I am running ant:
jif-sig:
[apply] jifc: sig-classes/jif/lang/Principal.java:62: error: cannot find symbol
[apply] final Closure closure, final Label lb, final boolean executeNow);
[apply] ^
[apply] symbol: class Label
[apply] location: interface Principal
[apply] sig-classes/jif/lang/Closure.java:32: error: cannot find symbol
[apply] Label jif$getjif_lang_Closure_L();
[apply] ^
[apply] symbol: class Label
[apply] location: interface Closure
[apply] sig-classes/jif/lang/Closure_JIF_IMPL.java:5: error: cannot find symbol
[apply] final Label jif$L, final Object o) {
[apply] ^
[apply] symbol: class Label
[apply] location: class Closure_JIF_IMPL
[apply] sig-classes/jif/lang/Closure_JIF_IMPL.java:22: error: cannot find symbol
[apply] final Label jif$L,
[apply] ^
[apply] symbol: class Label
[apply] location: class Closure_JIF_IMPL
[apply] sig-classes/jif/lang/Closure_JIF_IMPL.java:10: error: cannot find symbol
[apply] PrincipalUtil.equivalentTo(c.jif$getjif_lang_Closure_P(),
[apply] ^
[apply] symbol: variable PrincipalUtil
[apply] location: class Closure_JIF_IMPL
[apply] sig-classes/jif/lang/Closure_JIF_IMPL.java:14: error: cannot find symbol
[apply] LabelUtil.singleton().equivalentTo(
[apply] ^
[apply] symbol: variable LabelUtil
[apply] location: class Closure_JIF_IMPL
[apply] 6 errors
[apply] /Users/aaryanpatel/jif/sig-src/jif/lang/Principal.jif:27: Duplicate class
[apply] "jif.lang.Principal".
[apply] public interface Principal {
[apply] ^-----------------^
[apply]
[apply] 1 error.