Emerging --sync and --update world failed recently. Since than, emerging Gentoo packages or compiling any other package fails with "configure: error: C preprocessor "/lib/cpp" fails sanity check". Emerging the linux-headers (again, linux-headers-2.6.17-r1 are installed), fails with "make defconfig failed". Reproducible: Always Steps to Reproduce: 1. emerge linux-headers 2. emerge gcc 3. Actual Results: 1. Result ... !!! ERROR: sys-kernel/linux-headers-2.6.17-r1 failed. Call stack: ebuild.sh, line 1614: Called dyn_compile ebuild.sh, line 971: Called qa_call 'src_compile' environment, line 3908: Called src_compile ebuild.sh, line 1304: Called kernel-2_src_compile kernel-2.eclass, line 1037: Called compile_headers kernel-2.eclass, line 456: Called die !!! defconfig failed (defconfig) 2. Result ... configure: error: C preprocessor "/lib/cpp" fails sanity check See `config.log' for more details. make: *** [configure-build-libiberty] Error 1 !!! ERROR: sys-devel/gcc-4.1.1-r3 failed. Call stack: ebuild.sh, line 1614: Called dyn_compile ebuild.sh, line 971: Called qa_call 'src_compile' environment, line 5345: Called src_compile ebuild.sh, line 1304: Called toolchain_src_compile toolchain.eclass, line 24: Called gcc_src_compile toolchain.eclass, line 1540: Called gcc_do_make toolchain.eclass, line 1414: Called die !!! emake failed with profiledbootstrap Portage 2.1.2-r9 (default-linux/amd64/2007.0/desktop, gcc-3.4.6, glibc-2.5-r0, 2.6.16-gentoo-r13 x86_64) ================================================================= System uname: 2.6.16-gentoo-r13 x86_64 AMD Opteron(tm) Processor 244 Gentoo Base System release 1.12.8 Timestamp of tree: Sat, 17 Feb 2007 07:58:01 +0000 ccache version 2.4 [disabled] dev-lang/python: 2.3.5, 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r6 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -pipe -O2 -m64" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib/fax /usr/share/X11/xkb /var/spool/fax/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-march=k8 -pipe -O2 -m64" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac aiglx alsa amd64 arts avi berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dlloader dri dv dvd dvdr dvdread eds emboss encode esd fam fame ffmpeg firefox fortran gdbm gif gpm gstreamer gtk gtk2 hal iconv ipv6 isdnlog jpeg kde ldap libg++ mad midi mikmod mmx mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre perl png ppds pppd python qt3 qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl subtitles tcpd theora truetype truetype-fonts type1-fonts unicode vorbis xml xorg xv xvid xvid4linux zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon vesa vga" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
> See `config.log' for more details. Attach it.
Created attachment 110912 [details] build.log og linux-headers-2.6.17-r1 Cannot find "config.log" for linux-headers anywhere in "/var/tmp/portage/sys-kernel/linux-headers-2.6.17-r1/*"
Created attachment 110914 [details] build.log for gcc-4.1.1-r3 Cannot find "config.log" anywhere in "/var/tmp/portage/sys-devel/gcc-4.1.1-r3/*"
Added build.log file
<snip> > Your CFLAGS contains "-m64" which can break packages. > Your CXXFLAGS contains "-m64" which can break packages. > Before you file a bug, please remove these flags and > re-compile the package in question as well as all its dependencies </snip>
I surely tried to compile without -m64 before posting this bug!
Created attachment 110954 [details] config.log for gcc-4.1.1-r3 libiberty (where configure fails) Obviously standard headers are missing... I still cannot find any config.log within the build directories of the linux-headers package, which would maybe give a hint why make defconfig fails.
(In reply to comment #7) > Obviously standard headers are missing... Obviously, since you haven't installed them (see your emerge --info). What are you asking for here? This is not a support forum for screwed systems, don't stick nonsense into your C[XX]FLAGS next time.
> > Obviously, since you haven't installed them (see your emerge --info). What are > you asking for here? This is not a support forum for screwed systems, don't > stick nonsense into your C[XX]FLAGS next time. > 1.) I am unable to install the linux-headers! 2.) When the headers were installed (see original description of the bug), the same failures occured. Ultimately I unmerged the headers to see whether that changes the situation. 3.) The failures occured immediately after emerging --sync and --update world. So I suggested that one of the package installations may have corrupted the system. I thought it would be a serious problem if emerging packages corrupts systems. If this conclusion was wrong, I am sorry! 4.) At least, it would have been a nice add-on to get a hint how to come around the problem as the system is still "screwed", but I am aware that this is not the forum for solving one-off problems!