Unable to compile with make | fatal error No space left on device

The partition containing the root folder (/) is 100% full. The root folder currently also contains the /tmp folder, which is used during compilation to store temporary files. As the root folder and with this the tmp folder is full, this fails.

To get around this either add more space, or reorganise the existing one.

As a workaround do

mkdir ~/tmp
export TMPDIR=~/tmp

and retry compilation.


A flexible way to organise a file system is using seperate partitions for

/
/usr
/home
/var
/tmp

A lazy approach would be to link /tmp/ to /var/tmp. This however might cause issues as in terms of clean-up the OS might handle the content in /var/tmp different from the content in /tmp. That is the content of /tmp/ would get deleted on each boot where as /var/tmp wouldn't.