Compile the software for a while , automatically shut down ?

I just enter the command on konsole :emerge im-chooser .

Everything is running normally .

But after a while ,my desktop (thinkpad t400 <ati+intel>) automatically shut down .

OMG , How to fix it ?

Notebook automatically shut down while compiling?
Compilation increases the temperature of the CPU. How long ago have you cleaned the laptop? This may be shutdown because it exceeded the maximum temperature due to poor cooling