无法在JDk13上运行dacapo基准测试

时间:2019-11-20 13:21:35

标签: java dacapo

我正在尝试运行可从此处(https://github.com/dacapobench/dacapobench)获得的daCapo基准测试。

我将JAVA_HOME设置为export JAVA_HOME="/home/srcshetty/Desktop/ALL_JDKs/jdk-13.0.1/"

我已经安装了构建基准所需的所有依赖项。

我通过在ant lusearch文件夹中运行benchmark测试了lusearch基准。

当我使用JDK12及更低版本时,它可以成功运行,而当我使用JDK13时,它将无法正常工作。

我使用JDK13收到以下错误消息。

[exec] compile-core:
     [exec]     [mkdir] Created dir: /home/srcshetty/Desktop/TheProjectParGC/Benchmarks/dacapobench/benchmarks/libs/lucene/build/lucene-7.1.0/build/core/classes/java
     [exec]     [javac] Compiling 824 source files to /home/srcshetty/Desktop/TheProjectParGC/Benchmarks/dacapobench/benchmarks/libs/lucene/build/lucene-7.1.0/build/core/classes/java
     [exec]     [javac] /home/srcshetty/Desktop/TheProjectParGC/Benchmarks/dacapobench/benchmarks/libs/lucene/build/lucene-7.1.0/core/src/java/org/apache/lucene/codecs/blocktree/BlockTreeTermsWriter.java:97: error: heading used out of sequence: <H3>, compared to implicit preceding heading: <H1>
     [exec]     [javac]  * <h3>Term Dictionary</h3>
     [exec]     [javac]    ^
     [exec]     [javac] /home/srcshetty/Desktop/TheProjectParGC/Benchmarks/dacapobench/benchmarks/libs/lucene/build/lucene-7.1.0/core/src/java/org/apache/lucene/codecs/lucene70/package-info.java:21: error: unexpected heading used: <H1>, compared to implicit preceding heading: <H1>
     [exec]     [javac]  * <h1>Apache Lucene - Index File Formats</h1>
     [exec]     [javac]    ^
     [exec]     [javac] /home/srcshetty/Desktop/TheProjectParGC/Benchmarks/dacapobench/benchmarks/libs/lucene/build/lucene-7.1.0/core/src/java/org/apache/lucene/index/PointValues.java:40: error: unexpected heading used: <H1>, compared to implicit preceding heading: <H1>
     [exec]     [javac]  * <h1>Basic Point Types</h1>
     [exec]     [javac]    ^
     [exec]     [javac] /home/srcshetty/Desktop/TheProjectParGC/Benchmarks/dacapobench/benchmarks/libs/lucene/build/lucene-7.1.0/core/src/java/org/apache/lucene/index/PointValues.java:67: error: unexpected heading used: <H1>, compared to implicit preceding heading: <H1>
     [exec]     [javac]  * <h1>Geospatial Point Types</h1>
     [exec]     [javac]    ^
     [exec]     [javac] /home/srcshetty/Desktop/TheProjectParGC/Benchmarks/dacapobench/benchmarks/libs/lucene/build/lucene-7.1.0/core/src/java/org/apache/lucene/index/PointValues.java:77: error: unexpected heading used: <H1>, compared to implicit preceding heading: <H1>
     [exec]     [javac]  * <h1>Advanced usage</h1>
     [exec]     [javac]    ^
     [exec]     [javac] /home/srcshetty/Desktop/TheProjectParGC/Benchmarks/dacapobench/benchmarks/libs/lucene/build/lucene-7.1.0/core/src/java/org/apache/lucene/search/Sort.java:37: error: heading used out of sequence: <H3>, compared to implicit preceding heading: <H1>
     [exec]     [javac]  * <h3>Valid Types of Values</h3>
     [exec]     [javac]    ^
     [exec]     [javac] /home/srcshetty/Desktop/TheProjectParGC/Benchmarks/dacapobench/benchmarks/libs/lucene/build/lucene-7.1.0/core/src/java/org/apache/lucene/util/packed/package-info.java:34: error: heading used out of sequence: <H3>, compared to implicit preceding heading: <H1>
     [exec]     [javac]  * <h3>In-memory structures</h3>
     [exec]     [javac]    ^
     [exec] 
     [exec] BUILD FAILED

当我使用JDK12运行时,我不得不将源代码从1.5更改为1.7或更高版本,并且构建成功,并且我成功运行了基准测试。但是使用JDK13时,我得到了上面的错误,我无法弄清楚。

1 个答案:

答案 0 :(得分:1)

Lucene构建使用编译器(-Xdoclint)的doclint功能,在JDK 13中看起来更加严格。标志在lucene/common-build.xml ... -Djavac.doclint.args=""中设置。