riscv-software-src / riscv-pk

RISC-V Proxy Kernel
Other
570 stars 304 forks source link

spike pk hello, failed with assertion failed: !(eh.e_flags & EF_RISCV_RVC) #297

Closed jundijiujieke closed 1 year ago

jundijiujieke commented 1 year ago

spike pk hello, failed with assertion failed: !(eh.e_flags & EF_RISCV_RVC) Does any know how to fix this probelm? I don't know whether is my riscv-tool's problem or pk's problem?

bbl loader ../pk/elf.c:47: assertion failed: !(eh.e_flags & EF_RISCV_RVC) Power off

aswaterman commented 1 year ago

Looks like pk was compiled without support for the C extension, but you're trying to run a binary that requires the C extension.

jundijiujieke commented 1 year ago

Looks like pk was compiled without support for the C extension, but you're trying to run a binary that requires the C extension.

Thanks for your reply, do you mean i have to reinstall the pk with C extension.

aswaterman commented 1 year ago

Yeah, I think building pk with support for the C extension will fix this issue.

jundijiujieke commented 1 year ago

Thanks for your help, I tried your solution and fixed this problem.

aswaterman commented 1 year ago

Great! Glad I was able to help.