Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135914 - gcc-3.4.5 configure fails on amd64
Summary: gcc-3.4.5 configure fails on amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
: 137811 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-06-07 06:44 UTC by James Crow
Modified: 2006-06-24 04:09 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Crow 2006-06-07 06:44:16 UTC
I have a new amd64 system. I had the system up and running with x86, but then decided to switch to 64bit. I reformatted my hd and used 2006.0 stage3 amd64 tarball. Once I had the system installed I am attempting to do an emerge -uDav world. The first few packages compiled fine but the compile bombed out at gcc. I have tried to recompile several times (along with a couple of emerge syncs). I have tried using distcc with another amd64 system and using only the host cpu. Each time the failure has been at the same place.

This is the last few lines before the failure:
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for testsuite resource limits support... yes
checking for setenv declaration... yes
checking for setenv... yes
updating cache ./config.cache
checking for gxx-include-dir... /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/include/g++-v3
checking for --enable-version-specific-runtime-libs... no
checking for install location... /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/include/g++-v3
configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/Makefile
config.status: creating libmath/Makefile
config.status: creating libsupc++/Makefile
config.status: creating src/Makefile
config.status: creating po/Makefile
config.status: creating testsuite/Makefile
config.status: creating scripts/check_survey
config.status: creating scripts/testsuite_flags
config.status: creating config.h
config.status: executing default-1 commands
Adding multilib support to Makefile in /var/tmp/portage/gcc-3.4.5/work/gcc-3.4.5/libstdc++-v3
multidirs=32
with_multisubdir=
Running configure in multilib subdirs 32
pwd: /var/tmp/portage/gcc-3.4.5/work/build/x86_64-pc-linux-gnu/libstdc++-v3
Running configure in multilib subdir 32
pwd: /var/tmp/portage/gcc-3.4.5/work/build/x86_64-pc-linux-gnu
mkdir 32
configure: creating cache ./config.cache
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-pc-linux-gnu-gcc... /var/tmp/portage/gcc-3.4.5/work/build/gcc/xgcc -B/var/tmp/portage/gcc-3.4.5/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 -isystem /usr/x86_64-pc-linux-gnu/sys-include  -m32
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[1]: *** [configure-target-libstdc++-v3] Error 1
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.5/work/build'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-3.4.5 failed.
!!! Function gcc_do_make, Line 1334, Exitcode 2
!!! emake failed with profiledbootstrap
!!! If you need support, post the topmost build error, NOT this status message.

mythfrontend usr # emerge --info
Portage 2.0.54 (default-linux/amd64/2006.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.16-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.16-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.14
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.4.2
dev-python/pycrypto: [Not Present]
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
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-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ "
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.253.50/gentoo-portage"
USE="amd64 X aac acl acpi alsa apache2 arts audiofile avi bitmap-fonts bluetooth browserplugin bzip2 bzlib calendar cdparanoia cdr cgi cli crypt cups curl dbus dga dio divx4linux dri dvd dvdr dvdread eds emboss encode ethereal examples exif expat fam ffmpeg fftw flac flash foomaticdb fortran freetype ftp gd gif gimpprint glut gnome gphoto2 gpm gstreamer gtk gtk2 hal ieee1394 imagemagick imap imlib ipv6 isdnlog jack java javascript jpeg kde kdeenablefinal lesstif lirc lm_sensors logitech-mouse lzw lzw-tiff mad mbox mime ming mjpeg mng motif mozilla mp3 mpeg mysql ncurses network nls nptl nsplugin nvidia offensive ogg oggvorbis openal opengl oss pam pcre pdflib perl php pic png ppds pppd python qt quicktime rdektop readline reflection rtc samba sasl sdl session slp smp snmp sox speex spell spl ssl svg sysfs tcltk tcpd theora threads tidy tiff truetype truetype-fonts type1-fonts udev usb v4l vcd video_cards_nvidia vorbis wifi winbind wmf wxwindows xinerama xml xml2 xmms xorg xosd xpm xprint xscreensaver xv xvid xvmc yahoo zeroconf zlib userland_GNU kernel_linux elibc_glibc"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS

I think the problem has something to do with the -m32. I don't know where the compile is picking up 32bit anything. This should be a pure 64bit environment.
Comment 1 James Crow 2006-06-07 08:03:40 UTC
I figured this out on my own. It seems that gcc fails if you do not have ia32 emulation enabled in your kernel. Why I need ia32 emulation in a 64bit environment is beyond me. After enabling those two options I was able to emerge gcc 3.4.5.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-06-24 04:09:12 UTC
*** Bug 137811 has been marked as a duplicate of this bug. ***