Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 124104

Summary: [amd64] libstdc++-v3-3.3.6 incorrect -march flags when configuring libiberty; without -march, still can't create executables
Product: Gentoo Linux Reporter: Andrew D. Keyser (aka Legoguy) <legoguy>
Component: [OLD] LibraryAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED NEEDINFO    
Severity: major CC: bugs.gentoo.org, rhill
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Andrew D. Keyser (aka Legoguy) 2006-02-25 14:05:54 UTC
on AMD64, When emerging libstdc++-v3-3.3.6, it gets to the point of configuring libiberty, and dies there, with this message:

checking whether the C compiler ( /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 -O2 -O2 -march=x86-64 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
make: *** [configure-target-libiberty] Error 1

Notice that it's trying to use -march=x86-64, which I dont believe is a valid march.
From the gcc manpage:
 k8, opteron, athlon64, athlon-fx
               AMD K8 core based CPUs with x86-64 instruction set support.  (This supersets MMX, SSE, SSE2,
               3dNOW!, enhanced 3dNOW! and 64-bit instruction set extensions.)

My CFLAGS specify only k8.
This means that the configure is messing up somewhere.


emerge info:
Portage 2.1_pre4-r1 (default-linux/amd64/2005.1, gcc-3.4.5, glibc-2.3.6-r3, 2.6.14-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.14-gentoo-r5 x86_64 AMD Turion(tm) 64 Mobile Technology ML-44
Gentoo Base System version 1.12.0_pre16
dev-lang/python:     2.3.5-r2, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=k8"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 7zip X Xaw3d a52 aac acpi aim alsa apache2 arts asf audiofile avi bash-completion berkdb bitmap-fonts bonjour bzip2 cairo ccache cdda cddb cdio cdparanoia cdr clamav crypt cscope css ctype cups curl dba dbus dga disablexmb dri dvd dvdr dvdread eds emboss encode exif expat fame ffmpeg firefox flac flash foomaticdb fortran ftp gb gd gif gimp gimpprint glx gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal howl iconv icq imagemagick imlib inifile ithreads jabber jack java javascript joystick jpeg jpeg2k kde kdeenablefinal ladcca libclamav lirc live lm_sensors logitech-mouse lzw lzw-tiff mad mbox mhash mjpeg mmap mng mozdevelop mozilla moznocompose moznoirc moznomail mozsvg mp3 mpeg msn musepack musicbrainz mysql ncurses network nls nntp nptl nptlonly oav objc offensive ogg oggvorbis opengl pam pcmcia pcre pdflib perl php png posix ppds python qt quicktime readline real rtc ruby samba scanner sdl session sharedmem silc sndfile sockets socks5 spell ssl stream svg tabs tcltk tcpd tga theora threads tidy tiff truetype truetype-fonts trusted type1-fonts unicode usb userlocales utf8 v4l v4l2 visualization vorbis wifi wma wmf wxwindows xchat xcomposite xft xine xml xmlrpc xmms xosd xpm xrandr xscreensaver xsl xv xvid yahoo zeroconf zip zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_synaptics kernel_linux userland_GNU video_cards_ati video_cards_fglrx video_cards_v4l"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LDFLAGS, LINGUAS
Comment 1 Andrew D. Keyser (aka Legoguy) 2006-02-25 14:23:37 UTC
Ok, sorry original bug description is only part of it. Emerged again with CFLAGS="-O2 -pipe" CXXFLAGS=${CFLAGS} and get the same error (and this time it doesn't use any -march).

So description is now: libstdc++-v3-3.3.6 fails on configuring libiberty: Compiler cannot create executables.

This is the only package that shows this behavior.
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2006-10-21 17:31:12 UTC
Andrew, if you're still around ;) is this still an issue for you?
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-04-08 19:34:31 UTC
Well, get back to us please.
Comment 4 Andrew D. Keyser (aka Legoguy) 2007-04-08 20:14:40 UTC
Hrmph, forgot I reported this bug; I no longer have the amd64 machine this was an issue on. So.. I guess if no one else sees this problem, it's invalid...