riscv-software-src / riscv-tools

RISC-V Tools (ISA Simulator and Tests)
1.13k stars 446 forks source link

bbl loader ../pk/elf.c:41: assertion failed: IS_ELF64(eh) Power off #359

Closed Manahil14 closed 2 years ago

Manahil14 commented 2 years ago

spike pk /home/akeana/proj/cores/aqlrv32-main/sw/hello/hello.elf I am trying to use elf generated by my core in spike pk. but it gives this error message.

bbl loader ../pk/elf.c:41: assertion failed: IS_ELF64(eh) Power off

I want to run my 32-architecture elf in spike for testing.

aswaterman commented 2 years ago

riscv-tools isn't supported.

But it sounds like you're trying to run a 32-bit binary on a 64-bit host.

Manahil14 commented 2 years ago

But spike can also work on 32-bit