riscv-software-src / riscv-pk

RISC-V Proxy Kernel
Other
591 stars 308 forks source link

Issue related to Proxy Kernel #271

Closed WajahatRiaz closed 2 years ago

WajahatRiaz commented 2 years ago

So I'm able to generate a.out file from by running the basic hello.c file using command riscv32-unknown-elf-gcc hello.c After When I'm running the following command /home/whitebeard/RISCV/riscv-pk/build/pk a.out but it prints the following error on my terminal -bash: /home/whitebeard/RISCV/riscv-pk/build/pk: cannot execute binary file: Exec format error Can someone tell me how can I resolve the issue? @aswaterman can you guide please?

aswaterman commented 2 years ago

pk is a RISC-V binary, and it appears that you’re trying to directly execute it on a non-RISC-V machine. Try running it on Spike.

On Thu, Feb 24, 2022 at 10:28 AM Wajahat Riaz @.***> wrote:

So I'm able to generate a.out file from by running the basic hello.c file using command riscv32-unknown-elf-gcc hello.c

After When I'm running the following command

/home/whitebeard/RISCV/riscv-pk/build/pk a.out

but it prints the following error on my terminal

-bash: /home/whitebeard/RISCV/riscv-pk/build/pk: cannot execute binary file: Exec format error

Can someone tell me how can I resolve the issue?

@aswaterman https://github.com/aswaterman can you guide please?

— Reply to this email directly, view it on GitHub https://github.com/riscv-software-src/riscv-pk/issues/271, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAH3XQTET2MLHSODQNFAWHLU4Z2E7ANCNFSM5PIEZRXQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

You are receiving this because you were mentioned.Message ID: @.***>