make run for RISC-V Rocket chip emulator fails - riscv

I'm following the README here to get set up: https://github.com/chipsalliance/rocket-chip. When I run make -j6 run in my $ROCKETCHIP/emulator directory, I get the following error message:
make: *** [output/rv64uf-p-fclass.out] Error 255
make: *** Waiting for unfinished jobs....
make: *** [output/rv64uf-p-fcmp.out] Error 255
make: *** [output/rv64uf-p-move.out] Error 255
make: *** [output/rv64uf-p-ldst.out] Error 255
make: *** [output/rv64uf-p-fcvt.out] Error 255
make: *** [output/rv64uf-p-fcvt_w.out] Error 255
I opened up one of the *.out files and it outputted:
using random seed 1586636887
This emulator compiled with JTAG Remote Bitbang client. To enable, use +jtag_rbb_enable=1.
Listening on port 37902
emulator-freechips.rocketchip.system-freechips.rocketchip.system.DefaultConfig: ../fesvr/dtm.cc:61: uint32_t dtm_t::do_command(dtm_t::req): Assertion `resp_buf.resp == 0' failed.
I updated rocket-tools and rebuilt it but still got the same errors. I'm able to skip to generating synthesizable Verilog in the vsim directory.

I did not dig into this, but it seems that this is a bug recently introduced to the master branch of rocket-chip. Switching to a tagged version (v1.2.4 is the latest stable) can solve this problem.
cd rocket-chip
git checkout v1.2.4
git submodule update --init --recursive
cd emulator
make -jN run

Related

tsv-summarize: command not found

I downloaded the eBay tsv-utils and after following the steps I got this error and I'm not sure what to do.
$ git clone https://github.com/eBay/tsv-utils.git
$ cd tsv-utils
$ make
Make gave me some errors:
make[1]: dmd: Command not found
make[1]: *** [../makeapp.mk:18: /home/sylvia/Downloads/tsv-utils/bin/csv2tsv] Error 127
make[1]: Leaving directory '/home/sylvia/Downloads/tsv-utils/csv2tsv'
make: *** [makefile:96: csv2tsv] Error 2
The command csv2tsv works but when I use the command tsv-summarize it says:
tsv-summarize: command not found
I'm not sure what to do.
It seems like you have not installed the D compiler: Please download the D compiler from here: https://dlang.org/download.html.
If you just want to install tsv-utils however, you can download a pre-built binary from the project's github page: https://github.com/eBay/tsv-utils/releases/tag/v2.1.2

PULP SDK (platform-rtl)

I'm following the tutorial on PULP SDK build process "https://github.com/pulp-platform/pulp-sdk/blob/b38dabd571287b6183f17a2c5538382b9d3fe668/README.md". I'm blocked at the stage of SDK build when I tape the command "$ make all" and I can't understand what's mean these errors.
ImportError: No module named 'sphinx'
Makefile:56: recipe for target 'html' failed
make[2]: * [html] Error 1
Makefile:14: recipe for target 'all' failed
make[1]: * [all] Error 2
Reached EOF with exit status 2
FATAL ERROR: the command 'build' has failed
Makefile:6: recipe for target 'all' failed
make: *** [all] Error 255
I had a similar problem, this error is caused by not (correctly) installing the pulp-riscv-gnu-toolchain.
So you should first install this toolchain which can be found here https://github.com/pulp-platform/pulp-riscv-gnu-toolchain.
After that you should follow the steps for "Installation (Pulp)" and replace the command for make to sudo make.
Now you can return to your tutorial on PULP SDK build process.
In case you are still encountering the same error than you should execute this command which I found here cannot open libmpfr.so.4 after update on ubuntu 18.04
sudo ln -s /usr/lib/x86_64-linux-gnu/libmpfr.so.6 /usr/lib/x86_64-linux-gnu/libmpfr.so.4
" Bear in mind that this is just workaround which might trigger other issues for your case. However, this might save you the day in cases when the problematic program is just a mean to achieve something else."

PULP SDK build process

I'm new to this website and it is the first time I've worked with the RISC-V processor. I'm following the tutorial of the PULP SDK build process "https://github.com/pulp-platform/pulp-sdk".
But, I'm blocked at the stage of SDK build when I tape the command "$ make all" and I can't understand what's mean these errors.
Below the errors:
sdk:json-tools:build: make all install
make[1]: Entering directory '/home/pulp/project/pulpissimo/pulp-sdk/json-tools'
#### Building in /home/pulp/project/pulpissimo/pulp-sdk/build/sdk/json-tools
#### Release type is RelWithDebInfo
#### Installing to /home/pulp/project/pulpissimo/pulp-sdk/pkg/sdk/dev/install/ws
( cd /home/pulp/project/pulpissimo/pulp-sdk/build/sdk/json-tools ; make all VERBOSE=0 )
make[2]: Entering directory '/home/pulp/project/pulpissimo/pulp-sdk/build/sdk/json-tools'
make[2]: *** No rule to make target 'all'. Stop.
make[2]: Leaving directory '/home/pulp/project/pulpissimo/pulp-sdk/build/sdk/json-tools'
Makefile:46: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/pulp/project/pulpissimo/pulp-sdk/json-tools'
Reached EOF with exit status 2
FATAL ERROR: the command 'build' has failed
Makefile:6: recipe for target 'all' failed
make: *** [all] Error 255
Thank you in advance
Have you selected the target as advised in the documentation before running make all?
By running source configs/pulpissimo.sh for example.
I selected the target as advised in the documentation before running make all. In fact, it was a Vivado cmake problem that starts automatically when I run the make all command and it's an old version of cmake.
I solved this problem by uncommenting the line source /opt/Xilinx/Vivado/2018.3/settings64.sh. The day I need to launch Vivado I have to run this line on the command line in the terminal.

make oldconfig error 1

I built my kernel using fedpkg local (which took 6 hours and I hope I don't have to repeat the process)
Now when I try to use the command "make oldconfig" it returns with the following error
Makefile: 10: recipe for target 'oldconfig' failed
make: *** [oldconfig] Error 1
Can somebody tell me what this means and how to resolve it?

installing PAR::Packer Module on Perl 5.16

I was trying to install a module named "PAR::Packer" on active Perl version 5.16 running on 64 bit Ubuntu machine . But the installation was exiting with some errors :
this is the error :
-----------------
main.o: In function `main':
main.c:(.text.startup+0x35): undefined reference to `pthread_atfork'
collect2: error: ld returned 1 exit status
make[1]: *** [par] Error 1
make[1]: Leaving directory `/root/.cpan/build/PAR-Packer-1.017-dIGsgr/myldr'
make: *** [subdirs] Error 2
RSCHUPP/PAR-Packer-1.017.tar.gz
/usr/bin/make -- NOT OK
'YAML' not installed, will not store persistent state
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
RSCHUPP/PAR-Packer-1.017.tar.gz : make NO
----------------
I also tried with PPM to install this module . PPM installation was successful , but I was not able to run the "pp" command .
Any help would be appreciated .
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=629670
seems to be a bug in debian 64 bit. Changed where they locate the libs.

Resources