执行 Makefile 时出现问题

执行 Makefile 时出现问题

我正在安装 Rocket-Chip 存储库。我按照以下说明进行操作https://github.com/chipsalliance/rocket-chip. 指示如下:

$ git clone https://github.com/ucb-bar/rocket-chip.git
$ cd rocket-chip
$ git submodule update --init
$ export RISCV=/path/to/riscv/toolchain/installation

$ git clone https://github.com/freechipsproject/rocket-tools
$ cd rocket-tools
$ git submodule update --init --recursive
$ export RISCV=/path/to/install/riscv/toolchain
$ export MAKEFLAGS="$MAKEFLAGS -jN" # Assuming you have N cores on your host 
system
$ ./build.sh

当我启动最后一个命令时,出现以下错误和警告:

Makefile:5347: warning: rewriting of the instruction set for "check-   
recursive"
Makefile:4181: warning: ignoring of the instruction old set for "check-   
recursive"
ar: `u' modifier ignored since `D' is the default (see `U')
...
/usr/bin/mkdir: cannot create directory "/path": Permission denied
make[3]: *** [Makefile:4130: install-dist_ulinkDATA] Error 1
make[3]: *** Waiting for non terminated processes....
/usr/bin/mkdir: cannot create directory "/path": Permission denied
make[3]: *** [Makefile:4929: install-info-am] Error 1
make[2]: *** [Makefile:4489: install-am] Error 2
make[1]: *** [Makefile:4181: install-recursive] Error 1
make: *** [Makefile:4483: install] Error 2

我已经检查了 makefile 所涉及的所有文件和文件夹的权限,但根本不起作用。有人能帮帮我吗?

相关内容