Try logging into the machine again using the window and see if it works through a sublogin if you haven't rebooted the machine yet. If you already rebooted then ignore this step and try again. If you haven't rebooted, don't reboot unless you have some other reason to.

If it still fails likely you'll need to use recovery methods, either getting a binary package of the compiler tools and use binpkg, or use a recovery boot disk and re-emerge them (a bit more tricky)._________________Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSDWhat am I supposed watching?