beast-mcmc icon indicating copy to clipboard operation
beast-mcmc copied to clipboard

encoding utf8 required on some OSes

Open EricDeveaud opened this issue 3 years ago • 0 comments

Hello

while building, on a minimalistic linux docker, beast-mcmc (commit 2589e1ae047aa1e25da78cd26024d3fca2c834ed) using ant/1.10.7 and graalvm/ce-java8-20.0.0 I had to patch the build.xml definition file for javac secification including <compilerarg line="-encoding utf-8"/>

maybee it will worth the addition.

without patch here the error reported by javac


init:
     [echo] BEAST: /opt/gensoft/src/beast-mcmc/beast-mcmc/build.xml

compile-all:
    [javac] Compiling 2808 source files to /opt/gensoft/src/beast-mcmc/beast-mcmc/build
    [javac] /opt/gensoft/src/beast-mcmc/beast-mcmc/src/dr/app/checkpoint/BeastCheckpointer.java:616: error: unmappable character for encoding ASCII
    [javac]                         //adopt the loaded tree structure;???
    [javac]                                                           ^
    [javac] /opt/gensoft/src/beast-mcmc/beast-mcmc/src/dr/app/checkpoint/BeastCheckpointer.java:616: error: unmappable character for encoding ASCII
    [javac]                         //adopt the loaded tree structure;???
    [javac]                                                            ^
    [javac] /opt/gensoft/src/beast-mcmc/beast-mcmc/src/dr/app/checkpoint/BeastCheckpointer.java:616: error: unmappable character for encoding ASCII
    [javac]                         //adopt the loaded tree structure;???
    [javac]                                                             ^
    [javac] /opt/gensoft/src/beast-mcmc/beast-mcmc/src/dr/evomodel/bigfasttree/constrainedtree/CladeAwareSubtreeLeap.java:290: error: unmappable character for encoding ASCII
    [javac]                     System.out.println("????????????????????????????????????????????????????????????????????????   destination not in tree  !!!!!!!!!!!!!!!!!!!!!!!!!");
    [javac]                                         ^
    [javac] /opt/gensoft/src/beast-mcmc/beast-mcmc/src/dr/evomodel/bigfasttree/constrainedtree/CladeAwareSubtreeLeap.java:290: error: unmappable character for encoding ASCII
    [javac]                     System.out.println("????????????????????????????????????????????????????????????????????????   destination not in tree  !!!!!!!!!!!!!!!!!!!!!!!!!");
    [javac]                                          ^
    [javac] /opt/gensoft/src/beast-mcmc/beast-mcmc/src/dr/evomodel/bigfasttree/constrainedtree/CladeAwareSubtreeLeap.java:290: error: unmappable character for encoding ASCII
    [javac]                     System.out.println("????????????????????????????????????????????????????????????????????????   destination not in tree  !!!!!!!!!!!!!!!!!!!!!!!!!");

here the patch

diff --git a/build.xml b/build.xml
index f953c51bb..ea83f2cd6 100644
--- a/build.xml
+++ b/build.xml
@@ -75,6 +75,7 @@
                includeantruntime="false"
                memoryinitialsize="256m"
                memorymaximumsize="1024m">
+           <compilerarg line="-encoding utf-8"/>
             <include name="dr/app/beast/**"/>
             <include name="dr/app/beauti/**"/>
             <include name="dr/app/bss/**"/>

EricDeveaud avatar Dec 04 '20 15:12 EricDeveaud