我正在尝试从这里(https://github.com/dacapobench/dacapobench)运行daCapo基准测试。
我给了JAVA_HOME作为export JAVA_HOME="/home/srcshetty/Desktop/ALL_JDKs/jdk-13.0.1/"
我已经安装了构建基准所需的所有依赖项。
我通过在benchmark文件夹中运行ant lusearch来测试lusearch benchmark。
当我使用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时,我得到了上面的错误,但我无法找出。
发布于 2019-11-21 23:27:42
Lucene build使用了编译器(-Xdoclint)的doclint特性,看起来在JDK13中变得更加严格。标志在lucene/common-build.xml... -Djavac.doclint.args=""中设置。
https://stackoverflow.com/questions/58955385
复制相似问题