I just installed Gentoo 2006.1 but emerge gcc fails on both x86_64 and i686 platforms. checking whether make sets $(MAKE)... yes checking for x86_64-pc-linux-gnu-gcc... /var/tmp/portage/gcc-4.1.1/work/build/./ gcc/xgcc -B/var/tmp/portage/gcc-4.1.1/work/build/./gcc/ -B/usr/x86_64-pc-linux-g nu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/includ e -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[2]: *** [configure-target-libstdc++-v3] Error 1 make[2]: Leaving directory `/var/tmp/portage/gcc-4.1.1/work/build' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/gcc-4.1.1/work/build' make: *** [profiledbootstrap] Error 2 !!! ERROR: sys-devel/gcc-4.1.1 failed. Call stack: ebuild.sh, line 1539: Called dyn_compile ebuild.sh, line 939: Called src_compile ebuild.sh, line 1248: Called toolchain_src_compile toolchain.eclass, line 24: Called gcc_src_compile toolchain.eclass, line 1528: Called gcc_do_make toolchain.eclass, line 1402: Called die !!! emake failed with profiledbootstrap !!! If you need support, post the topmost build error, and the call stack if rel evant. ---- localhost ~ # emerge --info Portage 2.1-r2 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r7 x86_64) ================================================================= System uname: 2.6.17-gentoo-r7 x86_64 Intel(R) Xeon(TM) CPU 2.80GHz Gentoo Base System version 1.12.4 app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] 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-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 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="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -pipe" 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" 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="amd64 acpi alsa amd atk bash-completion berkdb bitmap-fonts crypt cups dlloader dri gdbm gpm gtk gtk2 jpeg libg++ lpr minimal motif ncurses nls nodoc nptl nptlonly opengl openssh pam pango pcre perl ppds python readline reflection sdk session ssl truetype-fonts type1-fonts udev unichrome unicode usb xorg xv xvmc zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_vesa video_cards_via" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
you posted an error that looks like multilib issues ... that cant be the same bug on both x86 and amd64 is your glibc multilib built correctly ?
(In reply to comment #1) > you posted an error that looks like multilib issues ... that cant be the same > bug on both x86 and amd64 > > is your glibc multilib built correctly ? > Both machines are complete new installation. What I did was very simple: 1. Install Gentoo 2006.1 2. emerge gentoo-sources, genkernel, grub etc. 3. genkerel --menuconfig all; grub-install etc. 4. reboot 5. emerge gcc and it fails
(In reply to comment #1) > you posted an error that looks like multilib issues ... that cant be the same > bug on both x86 and amd64 > > is your glibc multilib built correctly ? > I'm quite sure this bug is reproducible on new installation (Gentoo 2006.1) as I reinstall the system on a Dell PE1855 server 3 times. The results of emerge gcc are the same.
maybe, but it is impossible for you to have the same error that you posted here in both an amd64 and an i686 install
what does this show on your machine: echo 'int main(){}' > test.c gcc -m32 test.c -o test ./test post the config.log files from the /var/tmp/portage/gcc-4.1.1/ dir as attachments also, why are you even bothering to re-emerge gcc ? 2006.1 has 4.1.1 in it