riscv-software-src / homebrew-riscv

homebrew (macOS) packages for RISC-V toolchain
https://riscv.org
314 stars 49 forks source link

test installation failed #79

Closed irmathebest closed 2 years ago

irmathebest commented 2 years ago

Hi all. I am wondering, have anyone encountered this error when testing the installation of the riscv-gnu-toolchain? I used MacBook M1 with bigSur 11.4. Thanks.

Screen Shot 2021-12-26 at 11 09 26 PM
sbeamer commented 2 years ago

Should be fixed now (might need to rebuild). Probably a regression from #71.

irmathebest commented 2 years ago

Should be fixed now (might need to rebuild). Probably a regression from #71.

Thank you so much for your help. However, I rebuild it with the command " brew reinstall --build-from-source riscv-gnu-toolchain", but the error still exists when I test it.

SreeRanjaniRajendran commented 2 years ago

Hi all. I am wondering, have anyone encountered this error when testing the installation of the riscv-gnu-toolchain? I used MacBook M1 with bigSur 11.4. Thanks.

Screen Shot 2021-12-26 at 11 09 26 PM

Hi I have same issue can anyone help me to fix this

sbeamer commented 2 years ago

To clarify, you will need to rebuild spike (riscv-isa-sim) and riscv-pk, but you shouldn't need to rebuild riscv-gnu-toolchain.

The error was actually quite small. The compiler and emulator both worked fine. The issue was the emulator's hard coded path to check for pk was wrong, but fi you gave the full path to pk it would work. If you aren't using pk or spike, none of this would matter.

SreeRanjaniRajendran commented 2 years ago

Hi Scott, Thanks and I had fixed with your advise. I also need a guidance how to run a simple c code in this setup, since risk tool chain is installed using a home-brew I am not sure how to run it, please advise thanks in advance. Also do I get a RTL code for the RISCV core used here?.

SreeRanjaniRajendran commented 2 years ago

I was trying to use RISCV toolchain with the Ariane core from https://github.com/openhwgroup/cva6 and trying to build it, but while running make Verilate the following error is observed, please advise. it will be appreciated if you give separate advise for my queries. Thanks in advance.

Screen Shot 2022-01-01 at 7 55 50 AM
sbeamer commented 2 years ago

This repo is specifically for assisting with getting a vanilla installation of the RISC-V toolchain on macOS.

It does not provide processor RTL. For questions about a given implementation, I would follow up with the provider.

For running a simple program, you can follow the instructions from the simulator: https://github.com/riscv-software-src/riscv-isa-sim#compiling-and-running-a-simple-c-program