aionnetwork / AVM

Enabling Java code to run in a blockchain environment
https://theoan.com/
MIT License
49 stars 25 forks source link

Build fails on Windows 10 #367

Closed ghost closed 5 years ago

ghost commented 5 years ago
clean_buildmain:

buildmain:
     [echo] Building org-aion-avm-rt...
    [mkdir] Created dir: C:\pj\avm\org.aion.avm.rt\build\main
    [javac] Compiling 102 source files to C:\pj\avm\org.aion.avm.rt\build\main
    [javac] C:\pj\avm\org.aion.avm.rt\src\org\aion\avm\shadow\java\lang\Object.java:98: error: illegal character: '\u2039'
    [javac]     public final void avm_waitΓÇï(long timeout) throws InterruptedException {
    [javac]                                 ^
    [javac] C:\pj\avm\org.aion.avm.rt\src\org\aion\avm\shadow\java\lang\Object.java:98: error: ';' expected
    [javac]     public final void avm_waitΓÇï(long timeout) throws InterruptedException {
    [javac]                                               ^
    [javac] C:\pj\avm\org.aion.avm.rt\src\org\aion\avm\shadow\java\lang\Object.java:98: error: <identifier> expected
    [javac]     public final void avm_waitΓÇï(long timeout) throws InterruptedException {
    [javac]                                                                            ^
    [javac] C:\pj\avm\org.aion.avm.rt\src\org\aion\avm\shadow\java\lang\Object.java:102: error: illegal character: '\u2039'
    [javac]     public final void avm_waitΓÇï(long timeout, int nanos) throws InterruptedException {
    [javac]                                 ^
    [javac] C:\pj\avm\org.aion.avm.rt\src\org\aion\avm\shadow\java\lang\Object.java:102: error: <identifier> expected
    [javac]     public final void avm_waitΓÇï(long timeout, int nanos) throws InterruptedException {
    [javac]                                                ^
    [javac] C:\pj\avm\org.aion.avm.rt\src\org\aion\avm\shadow\java\lang\Object.java:102: error: ';' expected
    [javac]     public final void avm_waitΓÇï(long timeout, int nanos) throws InterruptedException {
    [javac]                                                          ^
    [javac] C:\pj\avm\org.aion.avm.rt\src\org\aion\avm\shadow\java\lang\Object.java:102: error: <identifier> expected
    [javac]     public final void avm_waitΓÇï(long timeout, int nanos) throws InterruptedException {
    [javac]                                                                                       ^
    [javac] 7 errors

BUILD FAILED
C:\pj\avm\build.xml:37: The following error occurred while executing this line:
C:\pj\avm\org.aion.avm.rt\build.xml:22: The following error occurred while executing this line:
C:\pj\avm\org.aion.avm.rt\build.xml:37: Compile failed; see the compiler error output for details.

looks like there are some corrupted chars.

ghost commented 5 years ago

(compilation is fine now, but ant test fails, as it depends on compile.sh)

ghost commented 5 years ago

To enable ant test, see https://github.com/aionnetwork/AVM/issues/365#issuecomment-470211550