xs-env icon indicating copy to clipboard operation
xs-env copied to clipboard

使用 NEMU 模拟器运行 workload失败

Open sdudyl opened this issue 9 months ago • 0 comments

按照教程说明,使用以下命令编译 NEMU 模拟器:make -j 失败:

+ CC src/isa/riscv64/instr/rvv/vldst_impl.c
+ CC src/isa/riscv64/instr/vp.c
+ CC src/isa/riscv64/instr/rvk/aes_common.c
+ CC src/isa/riscv64/logo.c
+ CC src/engine/interpreter/init.c
+ CC src/engine/interpreter/hostcall.c
+ CC src/engine/interpreter/fp.c
+ CC src/device/io/port-io.c
+ CC src/device/io/map.c
+ CC src/device/io/mmio.c
+ CC src/profiling/profiling_control.c
+ CC src/checkpoint/cpt_env.c
src/isa/riscv64/instr/rvv/vldst_impl.c: In function ‘vld’:
src/isa/riscv64/instr/rvv/vldst_impl.c:251:3: error: ‘__attribute_maybe_unused__’ undeclared (first use in this function)
  251 |   __attribute_maybe_unused__ bool cross_page = last_addr / PAGE_SIZE != start_addr / PAGE_SIZE;
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/isa/riscv64/instr/rvv/vldst_impl.c:251:3: note: each undeclared identifier is reported only once for each function it appears in
src/isa/riscv64/instr/rvv/vldst_impl.c:251:29: error: expected ‘;’ before ‘_Bool’
  251 |   __attribute_maybe_unused__ bool cross_page = last_addr / PAGE_SIZE != start_addr / PAGE_SIZE;
      |                             ^
      |                             ;
src/isa/riscv64/instr/rvv/vldst_impl.c:257:81: error: ‘cross_page’ undeclared (first use in this function)
  257 |   if (is_unit_stride && nf == 1 && vl_val > vstart->val && vtype->vlmul < 4 && !cross_page) {
      |                                                                                 ^~~~~~~~~~
src/isa/riscv64/instr/rvv/vldst_impl.c:270:33: error: expected ‘;’ before ‘unsigned’
  270 |       __attribute_maybe_unused__ unsigned count = gen_mask_for_unit_stride(s, eew, vstart, vl_val, masks);
      |                                 ^~~~~~~~~
      |                                 ;
src/isa/riscv64/instr/rvv/vldst_impl.c: In function ‘vst’:
src/isa/riscv64/instr/rvv/vldst_impl.c:483:3: error: ‘__attribute_maybe_unused__’ undeclared (first use in this function)
  483 |   __attribute_maybe_unused__ bool cross_page = last_addr / PAGE_SIZE != start_addr / PAGE_SIZE;
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/isa/riscv64/instr/rvv/vldst_impl.c:483:29: error: expected ‘;’ before ‘_Bool’
  483 |   __attribute_maybe_unused__ bool cross_page = last_addr / PAGE_SIZE != start_addr / PAGE_SIZE;
      |                             ^
      |                             ;
src/isa/riscv64/instr/rvv/vldst_impl.c:486:81: error: ‘cross_page’ undeclared (first use in this function)
  486 |   if (is_unit_stride && nf == 1 && vl_val > vstart->val && vtype->vlmul < 4 && !cross_page) {
      |                                                                                 ^~~~~~~~~~
make: *** [/mnt/data/dyl/250317xiangshan/xs-env/NEMU/scripts/build.mk:58: /mnt/data/dyl/250317xiangshan/xs-env/NEMU/build/obj-riscv64-nemu-interpreter/src/isa/riscv64/instr/rvv/vldst_impl.o] Error 1
make: *** Waiting for unfinished jobs....
+ CXX src/checkpoint/serializer.cpp

sdudyl avatar Mar 17 '25 08:03 sdudyl