failed to compile the rocket chip generator following the repo README instruction

90 views
Skip to first unread message

Jerry Ho

unread,
Sep 4, 2020, 3:55:57 AM9/4/20
to RISC-V HW Dev
There is some ambiguity in the repo's README file:

Snipaste_2020-09-04_15-29-48.png
Also, in the “How should I use the Rocket chip generator?” section of the SAME README. it goes this :
Snipaste_2020-09-04_15-34-45.png

As a result, I just executed the following instructions:
1):clone the wholle repo first
cd rocket-chip
#export ROCKETCHIP='pwd' #I didn't execute this LOC
git submodule update --init  

2) clone the toolchain repo and make it
cd rocket-tools
git submodule update --init --recursive
export RISCV=/path/to/install/riscv/toolchain
export MAKEFLAGS="$MAKEFLAGS -j4" # 4cores in the VMware ubuntu
./build.sh
#./build-rv32ima.sh (if you are using RV32)  #I didn't execute this LOC, I have no idea #what it mean by "if you are using RV32". if I am using RV64, then this LOC wont be #needed?

after I type “./build.sh", it takes while and prints lots of warnings, but finally it completed.
3)build the emulator
cd emulator
make  

it took 10mins or so, and I thought everything wokred just fun, but it goes this :
Snipaste_2020-09-04_15-52-51.png


frankly speaking, I felt a little depressed about this.Is this because that I didn't execute the "./build-rv32ima.sh" step? I felt like there is variance among the same README

Jerry Ho

unread,
Sep 4, 2020, 4:18:46 AM9/4/20
to RISC-V HW Dev, Jerry Ho
the terminal has the following info:
" /usr/bin/env: ‘python’: No such file or directory  "
did this say i need to install python first? I have python 3.6 installed,

Bastian Koppelmann

unread,
Sep 4, 2020, 5:50:28 AM9/4/20
to Jerry Ho, RISC-V HW Dev
Hi,

On Fri, Sep 04, 2020 at 12:55:56AM -0700, Jerry Ho wrote:
> it took 10mins or so, and I thought everything wokred just fun, but it goes
> this :
> Snipaste_2020-09-04_15-52-51.png

Just glancing at the error, it says it cannot find python. So you either don't
have python installed or the wrong version (python2 vs python3).

Cheers,
Bastian

FangFei Yang

unread,
Sep 4, 2020, 5:54:59 AM9/4/20
to RISC-V HW Dev, jerry...@gmail.com
make sure your  python is accessible through command `python`. 
Reply all
Reply to author
Forward
0 new messages