Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 348538 - Failing to emerge binutils in bootstrapping on Debian
Summary: Failing to emerge binutils in bootstrapping on Debian
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-12 17:25 UTC by Rabbe Fogelholm
Modified: 2011-04-06 17:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rabbe Fogelholm 2010-12-12 17:25:06 UTC
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'
Comment 1 Fabian Groffen gentoo-dev 2011-04-06 17:02:21 UTC
It looks like you first need a proper compiler