Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Issue to debug qemu_sifive_e31_hello on Apple M1 #635

Open
Merok opened this issue Mar 27, 2022 · 0 comments
Open

Issue to debug qemu_sifive_e31_hello on Apple M1 #635

Merok opened this issue Mar 27, 2022 · 0 comments

Comments

@Merok
Copy link

Merok commented Mar 27, 2022

Hello,

I am having issue to run the debugger on the simple qemu_sifive_e31_hello on Freedom Studio.
I use a target qemu_sifive_e31 and have selected the option "Use the metal library...".
When running the debugger it results in error message : "QEMU failed with code (-1)"

When running in terminal the qemu-system-riscv32 bin it shows error message :

dyld[13185]: Library not loaded: /usr/local/opt/vde/lib/libvdeplug.3.dylib
  Referenced from: /Users/x/Documents/Sifive/FreedomStudio.app/Contents/Eclipse/SiFive/riscv-qemu-5.1.0-2020.08.1/bin/qemu-system-riscv32
  Reason: tried: '/usr/local/opt/vde/lib/libvdeplug.3.dylib' (no such file), '/usr/local/lib/libvdeplug.3.dylib' (no such file), '/usr/lib/libvdeplug.3.dylib' (no such file)
zsh: abort      

I can however run in terminal qemu-system-riscv32 downloaded from other sources (e.g. from brew install qemu).
However, if I use as executable path the qemu binary from brew install it result in the error message:

Error in final launch sequence
  Failed to execute MI command:
-target-select remote localhost:1234
Error message from debugger back end:
localhost:1234: Operation timed out.
    Failed to execute MI command:
-target-select remote localhost:1234
Error message from debugger back end:
localhost:1234: Operation timed out.
    localhost:1234: Operation timed out.

This error happens on my new computer (macOS Monterey with M1 chip) hence I am wondering if the m1 core could be the reason of this error.

Any help would be greatly appreciated !
Thanks

@Merok Merok changed the title Issue to debug qemu_sifive_e31_hello Issue to debug qemu_sifive_e31_hello on Apple M1 Mar 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant