你好,
这个问题是JDK版本造成的。目前香山的工程需要使用JDK11才能正常编译。我们之后会在README里面加上说明。
在2021年10月26日 20:38,枫叶CQ<mapleleaf.c...@qq.com> 写道:
嗨你们好,我最近从GitHub拉取OpenXiangShan的代码到Linux上想按照readme编译工程看看,遇到如下的错误提示,想问下你们有没有遇到过,可能是什么原因呢?cwq@cwqubuntu:~/1_xiangshan/XiangShan$ make verilog
mkdir -p build
mill -i XiangShan.runMain top.TopMain -td build \
--config DefaultConfig --full-stacktrace --output-file XSTop.v \
--disable-all --remove-assert --infer-rw \
--repl-seq-mem -c:top.TopMain:-o:build/XSTop.v.conf \
--gen-mem-verilog full \
--num-cores 1
[205/243] fudian.compile
[info] compiling 14 Scala sources to /home/cwq/1_xiangshan/XiangShan/out/fudian/compile/dest/classes ...
[error] /home/cwq/1_xiangshan/XiangShan/fudian/src/main/scala/fudian/Generator.scala:13:29: value getPackageName is not a member of Class[T]
[error] val pkg = this.getClass.getPackageName
[error] ^
[error] one error found
1 targets failed
fudian.compile Compilation failed
Makefile:47: recipe for target 'build/XSTop.v' failed
make: *** [build/XSTop.v] Error 11、我先执行make init、后执行make verilog,这样有没有影响?2、子模块的代码都是make init命令自动下载的,版本号如下:cwq@cwqubuntu:~/1_xiangshan/XiangShan$ cd ./fudian/cwq@cwqubuntu:~/1_xiangshan/XiangShan/fudian$ git status头指针分离于 e3263c7无文件要提交,干净的工作区cwq@cwqubuntu:~/1_xiangshan/XiangShan/fudian$ cd ../huancun/cwq@cwqubuntu:~/1_xiangshan/XiangShan/huancun$ git status头指针分离于 2410ef1无文件要提交,干净的工作区cwq@cwqubuntu:~/1_xiangshan/XiangShan/huancun$3、我的环境信息:虚拟机:VMware Workstation 16 PlayerOS:Linux cwqubuntu 4.15.0-112-generic #113~16.04.1-Ubuntu SMP Fri Jul 10 04:37:08 UTC 2020 x86_64 x86_64 x86_64 GNU/Linuxjava版本:openjdk version "1.8.0_292"OpenJDK Runtime Environment (build 1.8.0_292-8u292-b10-0ubuntu1~16.04.1-b10)OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)mill版本:mill Build Tool version 0.9.8Java version: 1.8.0_292, vendor: Private Build, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jreDefault locale: zh_CN, platform encoding: UTF-8OS name: "Linux", version: 4.15.0-112-generic, arch: amd64(期待回复)