Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于nexus-am/tests目录下15个不同类用例编译错误问题 #26

Open
Jishuaishuai123 opened this issue Dec 14, 2022 · 2 comments

Comments

@Jishuaishuai123
Copy link

No description provided.

@Jishuaishuai123
Copy link
Author

1.最开始使用2021/10/17版本,/nexus-am/tests下有11个用例类型,当时使用make进行编译,其中可编译成功7个,另外4个出现一些编译错误;
2.进行下载2022/12/11版本,/nexus-am/tests下有15个用例类型,使用make进行编译,均编译失败;
请问是编译方式进行了改变吗?

@Jishuaishuai123
Copy link
Author

Jishuaishuai123 commented Dec 14, 2022

我列举2个错误类型:
错误1:
/nexus-am/tests/cacheoptest/dcache$ make

Building dcacheop-test [native] with AM_HOME {.../nexus-am}

  • CC src/main.c
    .../nexus-am/tests/cacheoptest/dcache/src/main.c: Assembler messages:
    .../nexus-am/tests/cacheoptest/dcache/src/main.c:11: 错误: no such instruction: li a0,0' .../nexus-am/tests/cacheoptest/dcache/src/main.c:17: 错误: no such instruction: li a0,1'
    make: *** [.../nexus-am/Makefile.compile:27:.../nexus-am/tests/cacheoptest/dcache/build/native//./src/main.o] 错误 1
    错误2:
    nexus-am/tests/softmdutest$ make

Building softmdutest [native] with AM_HOME {.../nexus-am}

  • CC main.c
    .../nexus-am/tests/softmdutest/main.c: In function ‘check_mul’:
    .../nexus-am/tests/softmdutest/main.c:82:31: error: ‘true’ undeclared (first use in this function)
    82 | uint32_t lo = softmul(x, y, true, false);
    | ^~~~
    .../nexus-am/tests/softmdutest/main.c:82:31: note: each undeclared identifier is reported only once for each function it appears in
    .../nexus-am/tests/softmdutest/main.c:82:37: error: ‘false’ undeclared (first use in this function)
    82 | uint32_t lo = softmul(x, y, true, false);
    | ^~~~~
    .../nexus-am/tests/softmdutest/main.c: In function ‘check_div’:
    .../nexus-am/tests/softmdutest/main.c:96:30: error: ‘true’ undeclared (first use in this function)
    96 | uint32_t q = softdiv(x, y, true, false);
    | ^~~~
    /riscv/jishuaishuai/Xiangshan_case/Xiangshan_1211/nexus-am/tests/softmdutest/main.c:96:36: error: ‘false’ undeclared (first use in this function)
    96 | uint32_t q = softdiv(x, y, true, false);
    | ^~~~~
    .../nexus-am/tests/softmdutest/main.c: In function ‘check_divu’:
    .../nexus-am/tests/softmdutest/main.c:110:30: error: ‘false’ undeclared (first use in this function)
    110 | uint32_t q = softdiv(x, y, false, false);
    | ^~~~~
    .../nexus-am/tests/softmdutest/main.c:111:37: error: ‘true’ undeclared (first use in this function)
    111 | uint32_t r = softdiv(x, y, false, true);
    | ^~~~
    .../nexus-am/tests/softmdutest/main.c: In function ‘main’:
    .../nexus-am/tests/softmdutest/main.c:127:19: error: implicit declaration of function ‘LENGTH’ [-Werror=implicit-function-declaration]
    127 | for (i = 0; i < LENGTH(v); i ++) {
    | ^~~~~~
    cc1: all warnings being treated as errors
    make: *** [.../nexus-am/Makefile.compile:27:.../nexus-am/tests/softmdutest/build/native//main.o] 错误 1
    等等,

@Jishuaishuai123 Jishuaishuai123 changed the title 关于nexus-am/tests目录下15个这种类用例编译不过问题 关于nexus-am/tests目录下15个不同类用例编译错误问题 Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant