Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139667 - sys-libs/libstdc++-v3-3.3.6 fails on ~amd64 (compiler does not work)
Summary: sys-libs/libstdc++-v3-3.3.6 fails on ~amd64 (compiler does not work)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-08 07:30 UTC by Togge
Modified: 2009-02-05 20:11 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
config.log from the gcc subdir (config.log-gcc,36.05 KB, text/plain)
2006-07-20 11:37 UTC, Togge
Details
config.log from the libiberty subdir (config.log-libiberty,28.11 KB, text/plain)
2006-07-20 11:37 UTC, Togge
Details
config.log from the x86.../libstdc++-v3 subdir (config.log-libstdc-v3,5.23 KB, text/plain)
2006-07-20 11:38 UTC, Togge
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Togge 2006-07-08 07:30:46 UTC
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
Comment 1 Simon Stelling (RETIRED) gentoo-dev 2006-07-20 10:20:18 UTC
please add the config.log in ~portage/libstdc++-v3-3.3.6/work/libstdc*/
Comment 2 Togge 2006-07-20 11:37:21 UTC
Created attachment 92331 [details]
config.log from the gcc subdir
Comment 3 Togge 2006-07-20 11:37:47 UTC
Created attachment 92332 [details]
config.log from the libiberty subdir
Comment 4 Togge 2006-07-20 11:38:24 UTC
Created attachment 92333 [details]
config.log from the x86.../libstdc++-v3 subdir
Comment 5 Togge 2006-07-20 11:39:52 UTC
Those were the config.log files I could find under portage/libstdc++/,
hope they help :)
Comment 6 Togge 2006-07-24 11:43:29 UTC
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.
Comment 7 Togge 2006-07-24 11:57:59 UTC
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).
Comment 8 ferret 2009-02-05 20:11:11 UTC
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.