Closed chauhanjoy closed 2 years ago
ccache: error: Failed to create directory /home/hardik/.ccache/tmp: Permission denied
<-- this is the problem. Please check the rights on your machine
Hi,
I am following the below steps for building the alkali-csd-fw repository:
1) git clone git@github.com/antmicro/alkali-csd-fw.git 2) git submodule init 3) git submodule update 3) make docker 4) export DOCKER_RUN_EXTRA_ARGS="-v ${HOME}/.ccache:${HOME}/.ccache" 5) export DOCKER_RUN_EXTRA_ARGS="-v ${HOME}/.ssh:${HOME}/.ssh" 6) make enter 7) make all
When I run make all command it gives below an error.
cp /home/hardik/hardik/alkali_csd_02/alkali-csd-fw/build/apu-app/*.so /home/hardik/hardik/alkali_csd_02/alkali-csd-fw/build/buildroot/board/basalt/overlay/lib/.
cp /home/hardik/hardik/alkali_csd_02/alkali-csd-fw/build/rpu-app/zephyr/zephyr.elf /home/hardik/hardik/alkali_csd_02/alkali-csd-fw/build/buildroot/board/basalt/overlay/lib/firmware/zephyr.elf
cp: cannot stat '/home/hardik/hardik/alkali_csd_02/alkali-csd-fw/build/rpu-app/zephyr/zephyr.elf': No such file or directory
make: *** [Makefile:72: buildroot] Error 1
After that, I run the make rpu-app command but it gives an error.
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /usr/local/bin/cmake --build /home/hardik/hardik/alkali_csd_02/alkali-csd-fw/build/rpu-app
make: *** [Makefile:256: /home/hardik/hardik/alkali_csd_02/alkali-csd-fw/build/rpu-app/zephyr/zephyr.elf] Error 1
but, when I exit the docker container and follow the below steps its works:
1) export DOCKER_RUN_EXTRA_ARGS="-v ${HOME}/.ccache:${HOME}/.ccache" 2) make enter 3) make rpu-app 4) make all
Hi @chauhanjoy,
The first problem was caused by the fact that the container invoked as a user (as we do in this repository) tries to use the ~/.ccache
when compiling the RPU application. This problem was fixed by setting the CCACHE_DISABLE
environment variable when opening the container.
The second problem was caused by inconsistency in managing zephyr dependencies by west
in the Makefile. It was fixed by moving the code responsible for downloading the zephyr sources to a proper makefile target.
Please download the latest version of the repository and use:
make clean
make enter
make all
to rebuild the project again.
Hi,
I am not able to build the alkali-csd-fw repository.
I am following the below steps:
make the rpu-app command not work:
make all command gives an error