The gcc-config script (gcc-config-1.3.13-r2) suppresses error output from python (somewhere before line 105). That is not a good idea as it produces non-understandable error outputs from the script itself (not finding gcc config profile although it is there). Furthermore, the ebuild is missing a runtime dependency on python.
(In reply to comment #0) > Furthermore, the ebuild is missing a runtime dependency on python. Care to tell us how you managed to install and run Gentoo without python? :P
> (In reply to comment #0) > > Furthermore, the ebuild is missing a runtime dependency on python. > > Care to tell us how you managed to install and run Gentoo without python? :P That's not the point. Python is required by emerge/portage, so that problem never shows up in practice. I discovered it when I tried to track down a problem with that script. The python error suppression is at line 129. I had problems with that when changing the CHOST variable and emerging gcc: python is then broken and needs to be rebuilt or the LD_LIBRARY_PATH variable changed. Suppressing the "missing libstdc++.so.6" message is misleading.
the output is suppressed on purpose as gcc-config will attempt to recover from a broken python i'll add an error message that says "failed to execute portage/python, trying to find CHOST ourselves" as for the source of your trouble, i'm pretty sure if you update to 1.3.13-r3 things will be resolved as i just fixed a bug in the fallback code and as for the python/portage in DEPEND/RDEPEND, not going to happen