It builds a header file containing the svn revision information which is for example displayed on the "start here" page.
Seeing that you get crashes while building both under Linux and Windows (but in different places), have you considered running a memory check? You might have faulty hardware...