gemmini icon indicating copy to clipboard operation
gemmini copied to clipboard

cannot build spike for gemmini

Open saahinduran opened this issue 3 years ago • 7 comments

Hi to all! Before starting, I want to state that I am a newbie to this whole GitHub thing.

Although I installed Risc-V tools and esp tools, I am unable to install spike for Gemmini. I can successfully run the spike for bare-metal Risc-V codes just like in the following link: https://chipyard.readthedocs.io/en/stable/Software/Baremetal.html

However, I am unable to run the command since I have no "build" directory in the direction ./riscv-isa-sim/ image

And I could not run the following command as well: image

P.S. I successfully build a simulator environment on Verilator and I ran test softwares on it. There is no problem with the verilator.

Thanks in advance for your help.

saahinduran avatar Jul 31 '22 08:07 saahinduran

I'm not an expert, but maybe I can help find the error. On my side, everything works fine.

Have you installed all the dependencies? (SBT, Poky, Qemu, Firemarshal, DTC, Git >= 2.17, Verilator)

Except for the dependencies, I have only run this:

git clone https://github.com/ucb-bar/chipyard.git
cd chipyard
git checkout 117624d8eea27bafd613eec09e9b9b3e31239e08
./scripts/init-submodules-no-riscv-tools.sh
./scripts/build-toolchains.sh esp-tools
source env.sh
cd generators/gemmini
git fetch && git checkout v0.6.4
git submodule update

Did you run the two scripts for "init" and "build" the toolchains?

deykid avatar Aug 01 '22 07:08 deykid

I figured it out. Thanks a lot for your contribution. There was an error with esp tools which I was ignorgin ":)" preventing it installing the esp properly. Problem solved.

saahinduran avatar Aug 02 '22 17:08 saahinduran

I'm having problems with this part too. I'm getting errors when running the './scripts/build-toolchains.sh esp-tools' script. The last error text that shows for me is "Makefile:213: recipe for target 'stamps/build-glibc-linux-rv64imafdc-lp64d' failed" How did you get around your errors for this script? Thanks!

Teut0nic avatar Aug 03 '22 01:08 Teut0nic

I'm having problems with this part too. I'm getting errors when running the './scripts/build-toolchains.sh esp-tools' script. The last error text that shows for me is "Makefile:213: recipe for target 'stamps/build-glibc-linux-rv64imafdc-lp64d' failed" How did you get around your errors for this script? Thanks!

I am sorry I have no knowledge regarding your problem.

saahinduran avatar Aug 03 '22 07:08 saahinduran

I figured it out. Thanks a lot for your contribution. There was an error with esp tools which I was ignorgin ":)" preventing it installing the esp properly. Problem solved.

What was the error you were getting?

Teut0nic avatar Aug 05 '22 02:08 Teut0nic

I figured it out. Thanks a lot for your contribution. There was an error with esp tools which I was ignorgin ":)" preventing it installing the esp properly. Problem solved.

What was the error you were getting?

I really do not remember clearly right now. But at the beginning of the error it said that some program could not been found. So I basically run $sudo apt-get-install

saahinduran avatar Aug 05 '22 06:08 saahinduran

@Teut0nic

If you're having issues with the ./scripts/build-toolchains.sh esp-tools step, then it might be worth asking about it on the Chipyard mailing list, as that isn't a Gemmini-specific problem.

Are there any other error messages you found in the step? You might want to save the full output to a log file, and then search for error messages in there.

hngenc avatar Aug 10 '22 07:08 hngenc