On Sunday 21 December 2008 11:11:59 am Justin wrote: > Jeff Cranmer schrieb: > > I have a problem with my gentoo system > > > > I am trying to update, and I get a C preprocessor "/lib/cpp" fails sanity > > check error on a number of packages. > > > > After a bit of searching, the solution that I come across most often is > > to recompile glibc and gcc. Unfortunately, when I try to compile glibc, > > I get the same sanity check error. Catch 22. > > > > Can anyone help me get around this 'insanity'? > > > > Thanks > > > > Jeff > > Can you provide some more information please? Logs etc?
Here is the end of the output. checking whether we are using the GNU C compiler... yes checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... unsupported checking how to run the C preprocessor... /lib/cpp configure: error: C preprocessor "/lib/cpp" fails sanity check See `config.log' for more details. * * ERROR: sys-libs/glibc-2.9_p20081201 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3457: Called eblit-run 'src_compile' * environment, line 1115: Called eblit-glibc-src_compile * src_compile.eblit, line 179: Called src_compile * environment, line 3457: Called eblit-run 'src_compile' * environment, line 1115: Called eblit-glibc-src_compile * src_compile.eblit, line 187: Called toolchain-glibc_src_compile * src_compile.eblit, line 120: Called glibc_do_configure 'src_compile' * src_compile.eblit, line 97: Called die * The specific snippet of code: * "${S}"/configure ${myconf} || die "failed to configure glibc" * The die message: * failed to configure glibc * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.9_p20081201/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.9_p20081201/temp/environment'. * * Messages for package sys-libs/glibc-2.9_p20081201: * * ERROR: sys-libs/glibc-2.9_p20081201 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3457: Called eblit-run 'src_compile' * environment, line 1115: Called eblit-glibc-src_compile * src_compile.eblit, line 179: Called src_compile * environment, line 3457: Called eblit-run 'src_compile' * environment, line 1115: Called eblit-glibc-src_compile * src_compile.eblit, line 187: Called toolchain-glibc_src_compile * src_compile.eblit, line 120: Called glibc_do_configure 'src_compile' * src_compile.eblit, line 97: Called die * The specific snippet of code: * "${S}"/configure ${myconf} || die "failed to configure glibc" * The die message: * failed to configure glibc * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.9_p20081201/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.9_p20081201/temp/environment'. I've attached the build.log, but can't find config.log. Where is this normally located? Jeff
>>> Unpacking source... [32;01m*[0m Checking gcc for __thread support ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m Checking kernel version (>=2.6.9) ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m Checking linux-headers version (>=2.6.9) ... [A[72C [34;01m[ [32;01mok[34;01m ][0m >>> Unpacking glibc-2.9-20081201.tar.bz2 to /var/tmp/portage/sys-libs/glibc-2.9_p20081201/work >>> Unpacking glibc-2.9-ports-20081201.tar.bz2 to /var/tmp/portage/sys-libs/glibc-2.9_p20081201/work/glibc-2.9-20081201 >>> Unpacking glibc-2.9-patches-1.tar.bz2 to /var/tmp/portage/sys-libs/glibc-2.9_p20081201/work [32;01m*[0m Applying Gentoo Glibc Patchset 2.9-1 ... [32;01m*[0m 0010_all_glibc-2.7-ssp-compat.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 0030_all_glibc-respect-env-CPPFLAGS.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 0040_all_glibc-i586-chk.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 0070_all_glibc-i386-x86_64-revert-clone-cfi.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 1010_all_glibc-queue-header-updates.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 1030_all_glibc-manual-no-perl.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 1040_all_2.3.3-localedef-fix-trampoline.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 1050_all_glibc-i386-LOAD_PIC_REG.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 1055_all_glibc-resolv-dynamic.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 1075_all_glibc-section-comments.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 1080_all_glibc-no-inline-gmon.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 1090_all_glibc-2.3.6-fix-pr631.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 1100_all_glibc-2.3.3-china.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 1103_all_glibc-new-valencian-locale.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 1130_all_glibc-2.4-undefine-__i686.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 1160_all_glibc-2.8-nscd-one-fork.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 1504_all_glibc-2.7-hppa-pie.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 1530_all_glibc-m68k-sys-user.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 3000_all_2.3.6-dl_execstack-PaX-support.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 3010_all_2.3.3_pre20040117-pt_pax.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 3020_all_glibc-tests-sandbox-libdl-paths.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 5063_all_glibc-dont-build-timezone.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 5070_all_glibc-2.7-cross-compile-nptl.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 6001_all_alpha-glibc-2.4-xstat.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 6015_all_alpha-glibc-2.5-no-page-header.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 6016_all_alpha-glibc-2.5-no-asm-elf-header.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 6017_all_alpha-glibc-2.8-creat.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 6018_all_alpha-glibc-2.8-cache-shape.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 6018_all_glibc-ptr-mangling.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 6220_all_glibc-2.4-arm-cirrus-ep93xx-maverick-crunch-fpu.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 6240_all_glibc-2.8-nptl-lowlevellock.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 6400_all_sh-glibc-2.3.2-fpscr_values.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 6415_all_sh-glibc-2.5-no-asm-user-header.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 6416_all_sh-glibc-2.5-no-asm-elf-header.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 6605_all_glibc-2.4-fpu-cw-mips.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m 6645_all_glibc-mips_shn_undef-hack.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m Done with patching [32;01m*[0m Using GNU config files from /usr/share/libtool [32;01m*[0m Updating scripts/config.sub [A[72C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m Updating scripts/config.guess [A[72C [34;01m[ [32;01mok[34;01m ][0m >>> Source unpacked. >>> Compiling source in /var/tmp/portage/sys-libs/glibc-2.9_p20081201/work/glibc-2.9-20081201 ... [32;01m*[0m Building multilib glibc for ABIs: x86 amd64 [32;01m*[0m ABI: x86 [32;01m*[0m CBUILD: x86_64-pc-linux-gnu [32;01m*[0m CHOST: x86_64-pc-linux-gnu [32;01m*[0m CTARGET: x86_64-pc-linux-gnu [32;01m*[0m CBUILD_OPT: i686-pc-linux-gnu [32;01m*[0m CTARGET_OPT: i686-pc-linux-gnu [32;01m*[0m CC: [32;01m*[0m CFLAGS: -O2 -fno-strict-aliasing [32;01m*[0m Configuring GLIBC for nptl with: --disable-stackguard-randomization --enable-old-ssp-compat --enable-add-ons=nptl,c_stubs,libidn,ports --enable-kernel=2.6.9 --without-selinux --without-cvs --enable-bind-now --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --disable-profile --without-gd --with-headers=/usr/include --prefix=/usr --libdir=/usr/lib32 --mandir=/usr/share/man --infodir=/usr/share/info --libexecdir=/usr/lib32/misc/glibc checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu configure: running configure fragment for add-on nptl configure: running configure fragment for add-on c_stubs configure: running configure fragment for add-on libidn checking add-on ports for preconfigure fragments... am33 arm hppa m68k mips checking sysdep dirs... sysdeps/i386/elf nptl/sysdeps/unix/sysv/linux/i386/i686 nptl/sysdeps/unix/sysv/linux/i386 sysdeps/unix/sysv/linux/i386 nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread ports/sysdeps/unix/sysv/linux sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet ports/sysdeps/unix/sysv/i386 sysdeps/unix/sysv/i386 nptl/sysdeps/unix/sysv ports/sysdeps/unix/sysv sysdeps/unix/sysv sysdeps/unix/i386 nptl/sysdeps/unix ports/sysdeps/unix sysdeps/unix sysdeps/posix sysdeps/i386/i686/fpu nptl/sysdeps/i386/i686 sysdeps/i386/i686 sysdeps/i386/i486 nptl/sysdeps/i386/i486 sysdeps/i386/fpu nptl/sysdeps/i386 sysdeps/i386 sysdeps/wordsize-32 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking for i686-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... unsupported checking how to run the C preprocessor... /lib/cpp configure: error: C preprocessor "/lib/cpp" fails sanity check See `config.log' for more details. [31;01m*[0m [31;01m*[0m ERROR: sys-libs/glibc-2.9_p20081201 failed. [31;01m*[0m Call stack: [31;01m*[0m ebuild.sh, line 49: Called src_compile [31;01m*[0m environment, line 3457: Called eblit-run 'src_compile' [31;01m*[0m environment, line 1115: Called eblit-glibc-src_compile [31;01m*[0m src_compile.eblit, line 179: Called src_compile [31;01m*[0m environment, line 3457: Called eblit-run 'src_compile' [31;01m*[0m environment, line 1115: Called eblit-glibc-src_compile [31;01m*[0m src_compile.eblit, line 187: Called toolchain-glibc_src_compile [31;01m*[0m src_compile.eblit, line 120: Called glibc_do_configure 'src_compile' [31;01m*[0m src_compile.eblit, line 97: Called die [31;01m*[0m The specific snippet of code: [31;01m*[0m "${S}"/configure ${myconf} || die "failed to configure glibc" [31;01m*[0m The die message: [31;01m*[0m failed to configure glibc [31;01m*[0m [31;01m*[0m If you need support, post the topmost build error, and the call stack if relevant. [31;01m*[0m A complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.9_p20081201/temp/build.log'. [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.9_p20081201/temp/environment'. [31;01m*[0m