This problem occurred in the environment described in bug 348536. The `emerge --oneshot --nodeps binutils' fails with console output as shown below. It may be that the problems described in bugs 348535 and 348536 are somehow involved here. It should however be noted that 348535 (failure to build coreutils) probably has no negative impact since a Gentoo Prefix coreutils package gets emerged before the emerge of binutils is attempted. On the other hand, no Gentoo Prefix 'tar' package (bug 348536) has yet been emerged when the emerge of binutils is attempted. The attempt is thus made with a Debian version of tar. Still, the console messages don't point out 'tar' as being the problem. It seems that a sufficient workaround is to just skip the `emerge --oneshot --nodeps binutils' step. A Gentoo Prefix version of binutils gets emerged later on, pulled in by the `emerge --oneshot findutils' step. checking whether vasprintf is declared... yes checking whether snprintf is declared... yes checking whether vsnprintf is declared... yes checking whether strverscmp is declared... yes checking how to run the C++ preprocessor... /lib/cpp configure: error: in `/home/erarafo/a/var/tmp/portage/sys-devel/binutils-2.20.51.0.10/work/build/gold': configure: error: C++ preprocessor "/lib/cpp" fails sanity check See `config.log' for more details. make[1]: *** [configure-gold] Error 1 make[1]: Leaving directory `/home/erarafo/a/var/tmp/portage/sys-devel/binutils-2.20.51.0.10/work/build' make: *** [all] Error 2 * ERROR: sys-devel/binutils-2.20.51.0.10 failed: * emake failed * * Call stack: * ebuild.sh, line 53: Called src_compile * environment, line 7793: Called toolchain-binutils_src_compile * environment, line 8544: Called die * The specific snippet of code: * emake all || die "emake failed"; * * If you need support, post the output of 'emerge --info =sys-devel/binutils-2.20.51.0.10', * the complete build log and the output of 'emerge -pqv =sys-devel/binutils-2.20.51.0.10'. * The complete build log is located at '/home/erarafo/a/var/tmp/portage/sys-devel/binutils-2.20.51.0.10/temp/build.log'. * The ebuild environment file is located at '/home/erarafo/a/var/tmp/portage/sys-devel/binutils-2.20.51.0.10/temp/environment'. * S: '/home/erarafo/a/var/tmp/portage/sys-devel/binutils-2.20.51.0.10/work/binutils-2.20.51.0.10'
It looks like you first need a proper compiler