When trying to emerge sys-libs/libstdc++-v3-3.3.6 the emerge dies after a while with: ----- checking for object suffix... configure: error: installation or configuration problem; compiler does not work make: *** [configure-target-libstdc++-v3] Error 1 !!! ERROR: sys-libs/libstdc++-v3-3.3.6 failed. Call stack: ebuild.sh, line 1545: Called dyn_compile ebuild.sh, line 940: Called src_compile libstdc++-v3-3.3.6.ebuild, line 233: Called die ----- emerge --info Gentoo Base System version 1.12.1 Portage 2.1.1_pre2-r4 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.17-gentoo x86_64) ================================================================= System uname: 2.6.17-gentoo x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r2 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.17 sys-devel/gcc-config: 2.0.0_rc1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.16 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=k8 -ggdb" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/init.d /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -march=k8 -ggdb" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_US.UTF-8" LC_ALL="" LINGUAS="en sv" 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" PORTDIR_OVERLAY="/mnt/web/localhost/htdocs/gentoo/portage-overlay/local-overlay" SYNC="rsync://192.168.0.100/gentoo-portage" USE="amd64 X a52 aac acpi alsa arts asf avi bash-completion berkdb bitmap-fonts browserplugin cairo cdr cli crypt css cups divx4linux dlloader dri dvd dvdr dvdread emboss encode ffmpeg firefox flac font-server foomaticdb fortran freetype geoip gif gimp gpm gstreamer gtk gtk2 hal imap imlib ipv6 isdnlog java javascript jpeg kde kdeenablefinal kdehiddenvisibility lzw lzw-tiff mad maildir mono mozsvg mp3 mpeg mplayer msn ncurses nls nptl nptlonly nsplugin nvidia ogg oggvorbis opengl pam pcre pdflib perl png ppds pppd python qt qt3 qt4 quicktime readline reflection samba scanner sdl session spell spl ssl subversion svg symlink tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 wmf xcomposite xface xine xinerama xmms xorg xosd xpm xv xvid zlib elibc_glibc input_devices_mouse input_devices_keyboard input_devices_evdev kernel_linux linguas_en linguas_sv userland_GNU video_cards_nvidia" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
please add the config.log in ~portage/libstdc++-v3-3.3.6/work/libstdc*/
Created attachment 92331 [details] config.log from the gcc subdir
Created attachment 92332 [details] config.log from the libiberty subdir
Created attachment 92333 [details] config.log from the x86.../libstdc++-v3 subdir
Those were the config.log files I could find under portage/libstdc++/, hope they help :)
from: config.log from the x86.../libstdc++-v3 subdir configure:786: /var/tmp/portage/libstdc++-v3-3.3.6/work/build/gcc/xgcc -B/var/tmp/portage/libstdc++-v3-3.3.6/work/build/gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -c -O2 -O2 -pipe -march=x86-64 -ggdb -O2 -pipe -march=k8 -ggdb conftest.c 1>&5 cc1: error: bad value (k8) for -march= switch cc1: error: bad value (k8) for -mcpu= switch Seems like the build uses ${CFLAGS} as well as the filtered CFLAGS in later stages of the build.
I got it to compile! :) The error was that I had ${CPPFLAGS} set as a workaround for another (don't remember the name) package. Thanks for the hint (didn't know about the config.log files).
I ran into this problem today aswell. I have CPPFLAGS set in my make.conf for some other package (sadly I too cannot remember which one), and by searching for bugs here I have found a few about "xxx package does not respect CPPFLAGS" and those bugs have resulted in cvs changes and are now marked fixed. So if it's valid for me to set CPPFLAGS in make.conf, the ebuild for sys-libs/libstdc++-v3 needs to filter it to.