I cannot imagine that OpenOffice would need that much space to compile so I'm guessing you have little space available on var (which you didn't mention). Can you post the output of
to see how much you do have left. If your /var is filling up I'd first look for a reason why it is doing so. Check if there are any large log files, directories that have lots of stuff you could delete to free up space with:
du -h / | grep ^[0-9.]*G
If you have set up /var with LVM then you could even extend it 'on the fly'.