I just did a rebuild without any trouble. Are there other errors above what you included?
What does free -h report?
free -h