Troubleshooting
error while writing to database
# eix-update
Reading Portage settings...
Building database (/var/cache/eix/portage.eix)...
...
Applying masks...
Calculating hash tables...
Writing database file /var/cache/eix/portage.eix...
error while writing to database
There are two possible problems:
1) a permission problem.
Try:
# chown -R portage:portage /var/cache/eix/
2) a disk space problem.
If your disk is full, you will have the same symptoms as above.
Check: the output of:
df -h /