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

AM、hello.c 编译问题 #197

Open
wyz-icer opened this issue May 16, 2024 · 0 comments
Open

AM、hello.c 编译问题 #197

wyz-icer opened this issue May 16, 2024 · 0 comments

Comments

@wyz-icer
Copy link

为 Nutshell编译报生成Case报错如下

~/xs-env.kunminghu.master/nexus-am/apps/hello
make ARCH=riscv64-nemu LINUX_GNU_TOOLCHAIN=1

Building hello [riscv64-nemu] with AM_HOME {/home/cp1/xs-env.kunminghu.master/nexus-am}

  • CC hello.c
    riscv64-linux-gnu-gcc -std=gnu11 -fno-pic -march=rv64gc -mcmodel=medany -static -I/home/cp1/xs-env.kunminghu.master/nexus-am/am/src/nemu/include -DISA_H="riscv.h" -O2 -MMD -Wall -Werror -ggdb -I/home/cp1/xs-env.kunminghu.master/nexus-am/apps/hello/include/ -I/home/cp1/xs-env.kunminghu.master/nexus-am/libs/klib/include/ -I/home/cp1/xs-env.kunminghu.master/nexus-am/am/ -I/home/cp1/xs-env.kunminghu.master/nexus-am/am/include -D__ISA__="riscv64" -D__ISA_RISCV64__ -D__PLATFORM__="nemu" -D__PLATFORM_NEMU__ -D__ARCH__=riscv64-nemu -D__ARCH_RISCV64_NEMU -DARCH_H="arch/riscv64-nemu.h" -fno-asynchronous-unwind-tables -fno-builtin -fno-stack-protector -Wno-main -c -o /home/cp1/xs-env.kunminghu.master/nexus-am/apps/hello/build/riscv64-nemu//hello.o /home/cp1/xs-env.kunminghu.master/nexus-am/apps/hello/hello.c

Building lib-am [riscv64-nemu]

  • AS src/nemu/common/mainargs.S
  • CC src/nemu/isa/riscv/cte64.c
    /home/cp1/xs-env.kunminghu.master/nexus-am/am/src/nemu/isa/riscv/cte64.c:17:10: fatal error: csr.h: 没有那个文件或目录
    17 | #include <csr.h>
    | ^~~~~~~
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