Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34164 - stage1 x86 20030910 C++ preprocessor "/lib/cpp" fails sanity check in bootstraping ncurses
Summary: stage1 x86 20030910 C++ preprocessor "/lib/cpp" fails sanity check in bootstr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-23 01:14 UTC by Hans-Christian Armingeon
Modified: 2004-04-20 08:53 UTC (History)
1 user (show)

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 Hans-Christian Armingeon 2003-11-23 01:14:53 UTC
Everz time, I run bootstrap, thius happens  checking for isascii... yes checking whether sigaction needs _POSIX_SOURCE... no checking for termio.h... yes checking for termios.h... yes checking for unistd.h... (cached) yes checking whether termios.h needs _POSIX_SOURCE... no checking for tcgetattr... yes checking for vsscanf function or workaround... vsscanf checking for working mkstemp... yes checking whether setvbuf arguments are reversed... no checking return type of signal handlers... void checking for type sigaction_t... no checking declaration of size-change... yes checking for memmove... yes checking if poll really works... yes checking for stdbool.h... yes checking for builtin bool type... no checking how to run the C++ preprocessor... /lib/cpp configure: error: C++ preprocessor "/lib/cpp" fails sanity check  !!! ERROR: sys-libs/ncurses-5.3-r2 failed. !!! Function econf, Line 324, Exitcode 1 !!! econf failed

Reproducible: Always
Steps to Reproduce:
1. bootstrap from stage1 20030910 2. 3.



Portage 2.0.49-r4 (default-x86-1.4, [unavailable], glibc-2.3.2-r1, 2.4.21-gss) ================================================================= System uname: 2.4.21-gss i686 mobile AMD Athlon(tm) XP 2500+ ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe" CHOST="i486-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm arts avi crypt cups encode foomaticdb gif gpm gtk imlib jpeg kde gnome libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl pam pdflib png python qt quicktime readline sdl slang spell ssl svga tcpd truetype X xml2 xmms xv zlib gdbm berkdb"
Comment 1 Derek 2003-11-27 10:46:13 UTC
error reproduced:

this happens to me during emerge -u portage. and i have heard it happens with bootstrap.sh as well.
Comment 2 John Davis (zhen) (RETIRED) gentoo-dev 2004-01-26 14:22:29 UTC
CFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe" CHOST="i486-pc-linux-gnu"

Looks like you had a bad CHOST, causing gcc to bail - make sure that your CHOST matches your machine (which in this case looks like an i686). Trying to do optimizations for a i686 using a i486 CHOST ... yeah, that would do it.
Comment 3 Gerard Sontag 2004-04-20 08:53:23 UTC
I had these prob with ncurses and gettext on Athlon xp when doing bootstrap. After some search, I emerge GCC with -O options (no deps) and after all works. But when I made stage2 to stage3 I had probs with baselayout. I just do `emerge glibc` to resolve the problem.

I hope it can help you, and excuse me for my bad english.

Good luck