Emerge Errors

Intro
You run an emerge, simple package, group (kde-meta, php, perl...), world or system, then you encounter an error. you can search the web, you can search the Gentoo Forums, Wikis, Tips and Tricks, Documentation, OR, you can search here

This page is for all errors that can paralyze your system while you were doing a simple emerge

so hit the find key of your browser, insert the error and see if it is here

Disclaimer
this page is made as a contribution, this is not a documentation, just a bunch of errors reporting and solution that have been apply and that have worked at least once. there is no guaranty that this is the solution to YOUR issue

your system, your datas, your responsability !

First steps
cleaning of the world file and all the /etc/portage files

The last page of this post gives you a script that can help remove all unnecessary entry in your /var/lib/portage/world file

please, create a backup of the world file, otherwise.....

then, use app-portage/portpeek or eix-test-obsolete from package eix to clean your /etc/portage files (same same, backup those files please)

to see what would happen :

then, a few time, until no red warning shows :

Kernel errors
Trying to make the kernet 2.6.36-r2, got make: ngcc: Command not found

according to this, we have to change in the /usr/src/linux-2.6.36-r2/.config the following value CONFIG_CROSS_COMPILE="n" to CONFIG_CROSS_COMPILE=""

Library errors
good place that explain the lafilefixer reason to be

http://forums.gentoo.org/viewtopic-t-784871-start-0.html

QT errors
because of package blocks, it is hard to upgrade qt (core-gui)

this post here in Gentoo forum point at this solution at the last page of it

Python
Emerge Python ? don't forget to run :

Amarok mysql 5.1 errors
2 post :

http://forums.gentoo.org/viewtopic-t-844676-start-0.html

http://forums.gentoo.org/viewtopic-t-842794-start-0.html

collect2: ld terminated with signal 9 [Killed]
These errors can appear in the output when emerging any package when an outside program, perhaps the linux kernel itself, terminates the build. Run

and look for an error such as

Out of memory: Kill process 32480 (ld)...

If the problem is a memory error, run

and make sure that your swap file is as large as you think it is.