http://www.alteraforum.com/forum/showthread.php?t=22528
http://www.microchip.com/forums/m416697-print.aspx
The reason for this might be that some new features have been added to gcc 4.x, and they are not compatible with older codes.
Use gcc-3.4 to avoid the above trouble ...
Reference:
http://www.manio.org/blog/sesc-tutorial-1-instaall-whole-sesc-step-by-step/#how-to-install-gcc34
Compiling your own application using SESCUtils