netcoredbg icon indicating copy to clipboard operation
netcoredbg copied to clipboard

Linux riscv64 build

Open VISTALL opened this issue 11 months ago • 6 comments

Hello - I want test it at riscv64 platform, but there no builds for it.

Also tried to build by my self, but there no binary of dbgshim. But it sends to https://github.com/dotnet/diagnostics but there no builds of it too.

Also not understand how builds native of dbgshim (its build only managed binaries).

It's possible share riscv64 builds of netcoredbg?

Thanks

VISTALL avatar Mar 23 '25 19:03 VISTALL

I want test it at riscv64 platform, but there no builds for it.

We don't provide riscv64 debugger for now, since runtime itself (that also mean debug API related parts) still in development for now for riscv64.

Also tried to build by my self, but there no binary of dbgshim. But it sends to https://github.com/dotnet/diagnostics but there no builds of it too.

You should directly provide DBGSHIM_DIR (cmake ..... -DDBGSHIM_DIR=/path) that should point on folder with dbgshim.so for riscv64. Note, this also prevent dbgshim nuget package download (that Microsoft don't provide for riscv64 now for sure).

Also not understand how builds native of dbgshim (its build only managed binaries).

Last time we did cross build with build.sh from diagnostics root folder. Note, you will need riscv64 rootfs for cross build.

It's possible share riscv64 builds of netcoredbg?

You could try binaries from Tizen package form here - http://download.tizen.org/snapshots/TIZEN/Tizen/Tizen-Unified/latest/repos/standard/packages/riscv64/netcoredbg-3.1.2-1.riscv64.rpm

viewizard avatar Mar 23 '25 19:03 viewizard

Tried but no luck. But looks like its distro problem. Will try to fix it

Image

Last time we did cross build with build.sh from diagnostics root folder. Note, you will need riscv64 rootfs for cross build. Yeah I saw some issues/patches from you (company)

that Microsoft don't provide for riscv64 now for sure Yeah

Last time we did cross build with build.sh from diagnostics root folder. Note, you will need riscv64 rootfs for cross build.

Tried. I build it on arm64 - but anyway can't find dbgshim.so. Bot fully understand how they build - there CMake files, which not called from sh (if not made mistake)

Thanks

VISTALL avatar Mar 23 '25 20:03 VISTALL

Tried but no luck. But looks like its distro problem. Will try to fix it

libdlog.so is part of Tizen OS (internal log system), you probably can't use netcoredbg binary (unless you copy dlog related binaries from http://download.tizen.org/snapshots/TIZEN/Tizen/Tizen-Unified/latest/repos/standard/packages/riscv64/), but libdbgshim.so should work for you.

viewizard avatar Mar 23 '25 20:03 viewizard

Tizen libdbgshim.so package - http://download.tizen.org/snapshots/TIZEN/Tizen/Tizen-Unified/latest/repos/standard/packages/riscv64/coreclr-dbgshim-8.0.547301-37.riscv64.rpm

viewizard avatar Mar 23 '25 20:03 viewizard

Thanks. Yeah, there no dbgshim inside netcoredbg rpm. Thanks for rpm of dbgshim - will check tomorrow

VISTALL avatar Mar 23 '25 20:03 VISTALL

Thanks for dbgshim binary. I built netcoredbg, and debugger successfully paused inside IDE

Image

VISTALL avatar Mar 24 '25 07:03 VISTALL