我正在尝试运行daCapo基准测试(https://github.com/dacapobench/dacapobench)。
我将JAVA_HOME作为export JAVA_HOME="/home/srcshetty/Desktop/ALL_JDKs/jdk-13.0.1/"
我已经安装了构建基准测试所需的所有依赖项。
我通过在benchmark
文件夹中运行ant lusearch
来测试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,我得到了上面的错误,我;I’我想不通。
Lucene构建使用了编译器(-Xdoclint
(的doclint特性,并且在JDK13中看起来更加严格。标志设置在lucene/common-build.xml
。。。-Djavac.doclint.args=""
。