I am trying to emerge grub on an IBM x225-Server with dual-Xeon from a mandrake 9.2 installation. I can't say, how often i installed gentoo now on any system, so i am pretty sure to have a bug. As i follow the installation guide, i reached the point boot-loader and tried to emerge grub. But it breaks off... Reproducible: Always Steps to Reproduce: 1.emerge grub Actual Results: if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage2 -I../stage1 -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -falign-jumps=1 -falign-loops=1 -falign-functions=1 -Wundef -Os -fno-stack-protector -fno-builtin -nostdinc -DFSYS_TFTP=1 -DINCLUDE_3C509 -DINCLUDE_3C529=1 -DINCLUDE_3C595=1 -DINCLUDE_3C90X=1-DINCLUDE_CS89X0=1 -DINCLUDE_DAVICOM=1 -DINCLUDE_DEPCA=1 -DINCLUDE_EEPRO=1 -DINCLUDE_EEPRO100=1 -DINCLUDE_EPIC100=1 -DINCLUDE_3C507=1 -DINCLUDE_EXOS205=1 -DINCLUDE_NI5210=1 -DINCLUDE_LANCE=1 -DINCLUDE_NE2100=1 -DINCLUDE_NI6510=1 -DINCLUDE_NATSEMI=1-DINCLUDE_NI5010=1 -DINCLUDE_3C503=1 -DINCLUDE_NE=1 -DINCLUDE_NS8390=1 -DINCLUDE_WD=1 -DINCLUDE_OTULIP=1 -DINCLUDE_RTL8139=1 -DINCLUDE_SIS900=1 -DINCLUDE_SK_G16=1 -DINCLUDE_SMC9000=1 -DINCLUDE_TIARA=1 -DINCLUDE_TULIP=1 -DINCLUDE_VIA_RHINE=1 -DINCLUDE_W89C840=1 -DCONGESTED=1 -DNE_SCAN=0x280,0x300,0x320,0x340 -DWD_DEFAULT_MEM=0xCC000 -g -MT libdrivers_a-misc.o -MD -MP -MF ".deps/libdrivers_a-misc.Tpo" -c -o libdrivers_a-misc.o `test -f 'misc.c' || echo './'`misc.c; \ then mv -f ".deps/libdrivers_a-misc.Tpo" ".deps/libdrivers_a-misc.Po"; else rm -f ".deps/libdrivers_a-misc.Tpo"; exit 1; fi misc.c: In Funktion
I am trying to emerge grub on an IBM x225-Server with dual-Xeon from a mandrake 9.2 installation. I can't say, how often i installed gentoo now on any system, so i am pretty sure to have a bug. As i follow the installation guide, i reached the point boot-loader and tried to emerge grub. But it breaks off... Reproducible: Always Steps to Reproduce: 1.emerge grub Actual Results: if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage2 -I../stage1 -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -falign-jumps=1 -falign-loops=1 -falign-functions=1 -Wundef -Os -fno-stack-protector -fno-builtin -nostdinc -DFSYS_TFTP=1 -DINCLUDE_3C509 -DINCLUDE_3C529=1 -DINCLUDE_3C595=1 -DINCLUDE_3C90X=1-DINCLUDE_CS89X0=1 -DINCLUDE_DAVICOM=1 -DINCLUDE_DEPCA=1 -DINCLUDE_EEPRO=1 -DINCLUDE_EEPRO100=1 -DINCLUDE_EPIC100=1 -DINCLUDE_3C507=1 -DINCLUDE_EXOS205=1 -DINCLUDE_NI5210=1 -DINCLUDE_LANCE=1 -DINCLUDE_NE2100=1 -DINCLUDE_NI6510=1 -DINCLUDE_NATSEMI=1-DINCLUDE_NI5010=1 -DINCLUDE_3C503=1 -DINCLUDE_NE=1 -DINCLUDE_NS8390=1 -DINCLUDE_WD=1 -DINCLUDE_OTULIP=1 -DINCLUDE_RTL8139=1 -DINCLUDE_SIS900=1 -DINCLUDE_SK_G16=1 -DINCLUDE_SMC9000=1 -DINCLUDE_TIARA=1 -DINCLUDE_TULIP=1 -DINCLUDE_VIA_RHINE=1 -DINCLUDE_W89C840=1 -DCONGESTED=1 -DNE_SCAN=0x280,0x300,0x320,0x340 -DWD_DEFAULT_MEM=0xCC000 -g -MT libdrivers_a-misc.o -MD -MP -MF ".deps/libdrivers_a-misc.Tpo" -c -o libdrivers_a-misc.o `test -f 'misc.c' || echo './'`misc.c; \ then mv -f ".deps/libdrivers_a-misc.Tpo" ".deps/libdrivers_a-misc.Po"; else rm -f ".deps/libdrivers_a-misc.Tpo"; exit 1; fi misc.c: In Funktion »etherboot_sprintf«: misc.c:214: Warnung: dereferencing type-punned pointer will break strict-aliasing rules misc.c: In Funktion »etherboot_printf«: misc.c:220: Warnung: dereferencing type-punned pointer will break strict-aliasing rules main.c: In Funktion »udpchksum«: main.c:697: error: can't find a register in class `BREG' while reloading `asm' if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage2 -I../stage1 -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -falign-jumps=1 -falign-loops=1 -falign-functions=1 -Wundef -Os -fno-stack-protector -fno-builtin -nostdinc -DFSYS_TFTP=1 -DINCLUDE_3C509 -DINCLUDE_3C529=1 -DINCLUDE_3C595=1 -DINCLUDE_3C90X=1-DINCLUDE_CS89X0=1 -DINCLUDE_DAVICOM=1 -DINCLUDE_DEPCA=1 -DINCLUDE_EEPRO=1 -DINCLUDE_EEPRO100=1 -DINCLUDE_EPIC100=1 -DINCLUDE_3C507=1 -DINCLUDE_EXOS205=1 -DINCLUDE_NI5210=1 -DINCLUDE_LANCE=1 -DINCLUDE_NE2100=1 -DINCLUDE_NI6510=1 -DINCLUDE_NATSEMI=1-DINCLUDE_NI5010=1 -DINCLUDE_3C503=1 -DINCLUDE_NE=1 -DINCLUDE_NS8390=1 -DINCLUDE_WD=1 -DINCLUDE_OTULIP=1 -DINCLUDE_RTL8139=1 -DINCLUDE_SIS900=1 -DINCLUDE_SK_G16=1 -DINCLUDE_SMC9000=1 -DINCLUDE_TIARA=1 -DINCLUDE_TULIP=1 -DINCLUDE_VIA_RHINE=1 -DINCLUDE_W89C840=1 -DCONGESTED=1 -DNE_SCAN=0x280,0x300,0x320,0x340 -DWD_DEFAULT_MEM=0xCC000 -g -MT libdrivers_a-pci.o -MD -MP -MF ".deps/libdrivers_a-pci.Tpo" -c -o libdrivers_a-pci.o `test -f 'pci.c' || echo './'`pci.c; \ then mv -f ".deps/libdrivers_a-pci.Tpo" ".deps/libdrivers_a-pci.Po"; else rm -f ".deps/libdrivers_a-pci.Tpo"; exit 1; fi make[2]: *** [libdrivers_a-main.o] Fehler 1 make[2]: *** Warte auf noch nicht beendete Prozesse... pci.c: In Funktion »bios32_service«: pci.c:107: error: can't find a register in class `BREG' while reloading `asm' make[2]: *** [libdrivers_a-pci.o] Fehler 1 make[2]: Leaving directory `/tmp/portage/grub-0.96-r1/work/grub-0.96/netboot' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory `/tmp/portage/grub-0.96-r1/work/grub-0.96' make: *** [all] Fehler 2 !!! ERROR: sys-boot/grub-0.96-r1 failed. !!! Function src_compile, Line 103, Exitcode 2 Expected Results: Grub ;-) server linux # emerge info Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.4.22-10mdkenterprise i686) ================================================================= System uname: 2.4.22-10mdkenterprise i686 Intel(R) Xeon(TM) CPU 2.66GHz Gentoo Base System version 1.6.12 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Jun 22 2005, 17:58:49)] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=pentium4 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -mcpu=pentium4 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://mirror.switch.ch/mirror/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo" LANG="de_DE" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X bzip2 crypt gpm hardened ncurses netboot nls pam pcre perl pwdb python readline skey ssl ucs2 unicode userlocales x86 userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
..tried out "-o2" instead of "-o3", but did no difference....
Could you try with linux-headers-2.6.11-r2?
grub compiles fine. We do it all the time, infact I did it yesterday. Update your linux-headers
emrging grub fails to me too (inside chroot). According to the advice of Sven Vermeulen it seems related to the keyword "hardened" in the USE clause. the error looks like: ----------------------------------------------------------------------------- pci.c: In function `bios32_service': pci.c:107: error: can't find a register in class `BREG' while reloading `asm' make[2]: *** [libdrivers_a-pci.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/grub-0.96-r2/work/grub-0.96/netboot' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/grub-0.96-r2/work/grub-0.96' make: *** [all] Error 2 !!! ERROR: sys-boot/grub-0.96-r2 failed. !!! Function src_compile, Line 90, Exitcode 2 !!! making netboot stuff ----------------------------------------------------------------------------- the output of emerge --info is: ----------------------------------------------------------------------------- livecd / # emerge --info Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r2, 2.6.12-gentoo-r6 i686) ================================================================= System uname: 2.6.12-gentoo-r6 i686 AMD Athlon(tm) XP 1800+ Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5, 2.4.2 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.15.92.0.2-r10 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i386-pc-linux-gnu" CFLAGS="-pipe -O2 -march=athlon-xp" CHOST="i386-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-pipe -O2 -march=athlon-xp" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="x86 3dnow X a52 aac aalib acl acpi alsa apm arts audiofile avi bash-completion bcmath berkdb bitmap-fonts bzip2 cdparanoia cdr cpdflib crypt cscope ctype cups curl curlwrappers dbase dbx dga dio directfb dri dts dv dvb dvd dvdr dvdread eds emboss encode exif expat fbcon ffmpeg fftw flac foomaticdb fortran ftp gd gdbm gif glut gnome gpm gstreamer gtk gtk2 gtkhtml hal hardened iconv ieee1394 imagemagick imap imlib innodb ipv6 jack java javascript jikes jpeg junit kde kdeenablefinal kerberos ladcca lapack ldap libcaca libg++ libgda libwww lirc lm_sensors mad matroska mc mcal mhash mikmod mime mmx mng motif mozilla mp3 mpeg mpi msession mysql mysqli nas ncurses netboot nis nls nptl ogg oggvorbis openal opengl osc oss pam pcntl pcre pdflib perl png portaudio posix postgres ppds python qt quicktime readline recode samba sasl sdl sharedmem shorten simplexml slang slp sndfile snmp sockets sox speex spell spm sse ssl svg svga symlink szip tcltk tcpd theora threads tiff tokenizer truetype truetype-fonts type1-fonts unicode usb v4l vi vorbis wddx win32codecs wmf wxwindows xinexinerama xml xml2 xmms xosd xprint xsl xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY -----------------------------------------------------------------------------