gpt4 book ai didi

java - 无法在 JDK13 上运行 dacapo 基准测试

转载 作者:行者123 更新时间:2023-12-02 09:16:18 25 4
gpt4 key购买 nike

我正在尝试运行此处提供的 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 时,出现上述错误,我无法弄清楚。

最佳答案

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

关于java - 无法在 JDK13 上运行 dacapo 基准测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58955385/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com