OpenXiangShan / XiangShan-doc

Documentation for XiangShan
https://xiangshan-doc.readthedocs.io
Creative Commons Attribution 4.0 International
329 stars 126 forks source link

DRAMSIM3 文档 #82

Closed xiaokamikami closed 4 months ago

xiaokamikami commented 4 months ago

我在按照DRAMSIM3中的redame进行编译操作 使用cmake .. && make -j4 和 makefile的make all都无法使用,报错信息如下:

/usr/bin/ld: CMakeFiles/dramsim3main.dir/src/main.cc.o: in function `cosim_main()':
main.cc:(.text+0xe92): undefined reference to `ComplexCoDRAMsim3::ComplexCoDRAMsim3(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long)'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/dramsim3main.dir/build.make:114:dramsim3main] 错误 1
make[1]: *** [CMakeFiles/Makefile2:112:CMakeFiles/dramsim3main.dir/all] 错误 2

而使用cmake -D COSIM=1 && make -j4编译的话又不会生成.so库文件。目前在xiangshan-doc中没有找到可以参考的操作手册,请问下能否提供一个文档说明如何使用

xiaokamikami commented 4 months ago

recovered