Following the gentoo handbook raid installation. The first thing I noticed is that stage3 builds were no longer available, so I chose the only stage3 available which was hardened. Continued with the installation as normal and when I got to grub, it failed. Tried to mask and unmak various version, safe failure. Tried to update system, the final update was gcc, this failed as well. Reproducible: Always Steps to Reproduce: 1.emerge various version of grub 2. 3. Actual Results: Same failure checking for C compiler default output file name... configure: error: in `/var/tmp/portage/sys-boot/grub-0.97-r9/work/grub-0.97': configure: error: C compiler cannot create executables See `config.log' for more details. !!! Please attach the following file when seeking support: !!! /var/tmp/portage/sys-boot/grub-0.97-r9/work/grub-0.97/config.log * * ERROR: sys-boot/grub-0.97-r9 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 4071: Called econf '--libdir=/lib' '--datadir=/usr/lib/grub' '--exec-prefix=/' '--disable-auto-linux-mem-opt' '--with-curses' * ebuild.sh, line 534: Called die * The specific snippet of code: * die "econf failed" * The die message: * econf failed Expected Results: to be installed http://dpaste.com/108050/ I can be found on irc gentoo s/n fulcan Portage 2.1.6.13 (default/linux/amd64/10.0/server, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4 x86_64) ================================================================= System uname: Linux-2.6.30-gentoo-r4-x86_64-Pentium-R-_Dual-Core_CPU_E5300_@_2.60GHz-with-gentoo-1.12.11.1 Timestamp of tree: Fri, 16 Oct 2009 09:30:01 +0000 app-shells/bash: 4.0_p28 dev-lang/python: 2.6.2-r1 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.63-r1 sys-devel/automake: 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl amd64 apache2 berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog ldap mmx modules mudflap multilib mysql ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session snmp spl sse sse2 ssl sysfs tcpd truetype unicode xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
livecd conf.d # emerge --info Portage 2.1.6.13 (default/linux/amd64/10.0/server, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4 x86_64) ================================================================= System uname: Linux-2.6.30-gentoo-r4-x86_64-Pentium-R-_Dual-Core_CPU_E5300_@_2.60GHz-with-gentoo-1.12.11.1 Timestamp of tree: Fri, 16 Oct 2009 09:30:01 +0000 app-shells/bash: 4.0_p28 dev-lang/python: 2.6.2-r1 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.63-r1 sys-devel/automake: 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl amd64 apache2 berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog ldap mmx modules mudflap multilib mysql ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session snmp spl sse sse2 ssl sysfs tcpd truetype unicode xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
In file included from /usr/include/features.h:354, from /usr/include/stdio.h:28, from /var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libgcc/../gcc/tsystem.h:90, from /var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libgcc/../gcc/libgcc2.c:33: /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory make[5]: *** [_muldi3.o] Error 1 make[5]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/build/x86_64-pc-linux-gnu/32/libgcc' make[4]: *** [multi-do] Error 1 make[4]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/build/x86_64-pc-linux-gnu/libgcc' make[3]: *** [all-multi] Error 2 make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/build/x86_64-pc-linux-gnu/libgcc' make[2]: *** [all-stage1-target-libgcc] Error 2 make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/build' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/build' make: *** [bootstrap-lean] Error 2 * * ERROR: sys-devel/gcc-4.3.2-r3 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 4930: Called toolchain_src_compile * environment, line 5456: Called gcc_src_compile * environment, line 3102: Called gcc_do_make * environment, line 2892: Called die * The specific snippet of code: * emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}"; * The die message: * emake failed with bootstrap-lean * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.3.2-r3/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.3.2-r3/temp/environment'. * >>> Failed to emerge sys-devel/gcc-4.3.2-r3, Log file:
FYI, I had build the none stage3 before with little to no problem on the system before. like earlier this evening. Had to redo it because I missed something. The bug or any problems did not occur until the normal stage3s where no longer available. Volume groups were completely deleted and reinstalled error free and this problem still happens.
This is my exact installation proceedure!! modprobe raid0 modprobe raid1 modprobe dm-mod fdisk stuff goes here!!! Device Boot Start End Blocks Id System /dev/sda1 * 1 11 88326 fd Linux raid autodetect /dev/sda2 12 61 401625 82 Linux swap / Solaris /dev/sda3 62 311 2008125 fd Linux raid autodetect /dev/sda4 312 36471 290455200 fd Linux raid autodetect mknod /dev/md1 b 9 1 mknod /dev/md3 b 9 3 mknod /dev/md4 b 9 4 mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1 break mdadm --create /dev/md3 --level=1 --raid-devices=2 /dev/sda3 /dev/sdb3 break mdadm --create /dev/md4 --level=0 --raid-devices=2 /dev/sda4 /dev/sdb4 cat /proc/mdstat vgremove vg (important if a redo) vgscan vgchange -a y pvcreate /dev/md4 vgcreate vg /dev/md4 lvcreate -L8G -nusr vg lvcreate -L2G -nportage vg lvcreate -L4G -ndistfiles vg lvcreate -L10G -nhome vg lvcreate -L4G -nopt vg lvcreate -L4G -nvar vg lvcreate -L6G -nvartmp vg lvcreate -L2G -ntmp vg vgs lvs mke2fs /dev/md1 mke2fs -j /dev/md3 mke2fs -b 4096 -T largefile /dev/vg/distfiles mke2fs -j /dev/vg/home mke2fs -j /dev/vg/opt mke2fs -b 1024 -N 200000 /dev/vg/portage mke2fs /dev/vg/tmp mke2fs -j /dev/vg/usr mke2fs -j /dev/vg/var mke2fs /dev/vg/vartmp mkswap /dev/sda2 && mkswap /dev/sdb2 swapon -p 1 /dev/sda2 && swapon -p 1 /dev/sdb2 swapon -v -s mount /dev/md3 /mnt/gentoo cd /mnt/gentoo mkdir boot home usr opt var tmp mount /dev/md1 /mnt/gentoo/boot mount /dev/vg/usr /mnt/gentoo/usr mount /dev/vg/home /mnt/gentoo/home mount /dev/vg/opt /mnt/gentoo/opt mount /dev/vg/tmp /mnt/gentoo/tmp mount /dev/vg/var /mnt/gentoo/var mkdir usr/portage var/tmp mount /dev/vg/vartmp /mnt/gentoo/var/tmp mount /dev/vg/portage /mnt/gentoo/usr/portage mkdir usr/portage/distfiles mount /dev/vg/distfiles /mnt/gentoo/usr/portage/distfiles chmod 1777 /mnt/gentoo/tmp /mnt/gentoo/var/tmp stage 3 goes here! time tar xjpf stage3* cd /mnt/gentoo/usr Portage goes here! time tar xjpf cd / mount -t proc proc /mnt/gentoo/proc mount -o bind /dev /mnt/gentoo/dev cp -L /etc/resolv.conf /mnt/gentoo/etc/ break chroot /mnt/gentoo /bin/bash env-update && source /etc/profile cp /usr/share/zoneinfo/EST /etc/localtime date 101604272009 cd /etc echo "127.0.0.1 Gentoo-DC1.evergreen-elec.com Gentoo-DC1 localhost" > hosts sed -i -e 's/HOSTNAME.*/HOSTNAME="Gentoo-DC1"/' conf.d/hostname hostname Gentoo-DC1 hostname -f time emerge gentoo-sources cd /usr/src/linux make menuconfig break make && make modules_install cp arch/x86_64/boot/bzImage /boot/kernel-from-bzImage-8-16 cd /etc nano -w fstab insert: /dev/md1 /boot ext2 noauto,noatime 1 2 /dev/md3 / ext3 noatime 0 1 /dev/sda2 none swap sw,pri=1 0 0 /dev/sdb2 none swap sw,pri=1 0 0 /dev/vg/usr /usr ext3 noatime 1 2 /dev/vg/portage /usr/portage ext2 noatime 1 2 /dev/vg/distfiles /usr/portage/distfiles ext2 noatime 1 2 /dev/vg/home /home ext3 noatime 1 2 /dev/vg/opt /opt ext3 noatime 1 2 /dev/vg/tmp /tmp ext2 noatime 1 2 /dev/vg/var /var ext3 noatime 1 2 /dev/vg/vartmp /var/tmp ext2 noatime 1 2 cd conf.d echo 'config_eth0=( "192.168.0.110/24" )' >> net echo 'routes_eth0=( "default via 192.168.0.1" )' >> net rc-update add net.eth0 default echo e100e >> /etc/modules.autoload.d/kernel-2.6 rc-update add sshd default passwd nano -w /etc/conf.d/clock emerge mdadm lvm2 pciutils syslog-ng vixie-cron grub rc-update add syslog-ng default rc-update add vixie-cron default
There are different weekly build dates, the standard stage3's are available: http://gentoo.osuosl.org/releases/amd64/autobuilds/ I suspect you were looking here: http://gentoo.osuosl.org/releases/amd64/autobuilds/20091015/ Which the only current builds there are hardened+nomultilib. If you go here: http://gentoo.osuosl.org/releases/amd64/autobuilds/20091008/ You'll find ALL available amd64 stage3's. afaict you used a hardened+nomultilib stage3 to install and have switched to a non-hardened, multilib standard gentoo profile. The multilib switch is the part that's tripping you up.
(In reply to comment #5) > There are different weekly build dates, the standard stage3's are available: > http://gentoo.osuosl.org/releases/amd64/autobuilds/ > I suspect you were looking here: > http://gentoo.osuosl.org/releases/amd64/autobuilds/20091015/ > Which the only current builds there are hardened+nomultilib. > If you go here: > http://gentoo.osuosl.org/releases/amd64/autobuilds/20091008/ > You'll find ALL available amd64 stage3's. > afaict you used a hardened+nomultilib stage3 to install and have switched to a > non-hardened, multilib standard gentoo profile. The multilib switch is the > part that's tripping you up. Prior to your reply, I hunted down an older stage three and reinstalled with an older stage 3 and system works fine.