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"
error reproduced: this happens to me during emerge -u portage. and i have heard it happens with bootstrap.sh as well.
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.
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