create a new mount point using sudo mkdir /mnt/ccache
then bind ccache directory to that mount point using
sudo mount --bind /home/<your_account_username>/.cache/ccache /mnt/ccache
replace <your_account_username> with the appropriate value. After this, add the following
nano ~/.bashrc file and adds:
export USE_CCACHE=1 export CCACHE_EXEC=/usr/bin/ccache export CCACHE_DIR=/mnt/ccache
save and exit
Terminal: ccache -M 50G
add auto mount: sudo nano /etc/fstab /home/<your_account_username>/.cache/ccache /mnt/ccache none defaults,bind,users,noauto 0 0 save and exit
nano ~/.profile mount /mnt/ccache save and exit
You should not see these errors ever again.