I'm trying to setup a hardened gentoo using stage3-amd64-hardened-2008.0.tar.bz2 I failed building grub with this error message : x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -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 -m32 -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 pci.c: In function `pcibios_read_config_byte': pci.c:143: error: can't find a register in class `BREG' while reloading `asm' make[2]: *** [libdrivers_a-pci.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/sys-boot/grub-0.97-r6/work/grub-0.97/netboot' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/sys-boot/grub-0.97-r6/work/grub-0.97' make: *** [all] Error 2 * * ERROR: sys-boot/grub-0.97-r6 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3035: Called die * The specific snippet of code: * emake w89c840_o_CFLAGS="-O" || die "making netboot stuff"; * The die message: * making netboot stuff i worked after gcc-config to build it with vanilla profile x86_64-pc-linux-gnu-3.4.6-vanilla the build was ok I then tried it with all the profiles : works with : x86_64-pc-linux-gnu-3.4.6-hardenednopie works with : x86_64-pc-linux-gnu-3.4.6-hardenednopiessp works with : x86_64-pc-linux-gnu-3.4.6-vanilla don't work with : x86_64-pc-linux-gnu-3.4.6-hardenednossp Reproducible: Always Steps to Reproduce: 1.installing a hardened gentoo from stage3-amd64-hardened-2008.0.tar.bz2 2.following the handbook and building grub 3.have the CPU described here : http://dpaste.com/98714/
ks366866 / # emerge --info Portage 2.1.4.4 (hardened/linux/amd64/2008.0, gcc-3.4.6-hardenednossp, glibc-2.6.1-r0, 2.6.24.5-grsec-xxxx-grs-ipv4-64 x86_64) ================================================================= System uname: 2.6.24.5-grsec-xxxx-grs-ipv4-64 x86_64 Intel(R) Pentium(R) Dual CPU E2180 @ 2.00GHz Timestamp of tree: Sat, 13 Dec 2008 01:46:01 +0000 app-shells/bash: 3.2_p17-r1 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.61-r1 sys-devel/automake: 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -fforce-addri -march=nocona" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -pipe -fforce-addr -march=nocona" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="fr_FR@euro" LDFLAGS="-Wl,-O1" PKGDIR="/usr/portage/packages" 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 berkdb bzip2 cli cracklib crypt cups dri gdbm gpm hardened iconv isdnlog justify midi mmx mudflap multilib ncurses netboot nptl nptlonly openmp pam pcre perl pic pppd python readline reflection session spl sse sse2 ssl sysfs tcpd urandom 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 i810 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, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY ks366866 / # cat /etc/make.conf # These settings were set by the catalyst build script that automatically # built this stage. # Please consult /etc/make.conf.example for a more detailed example. CFLAGS="-O2 -pipe -fforce-addri -march=nocona" CXXFLAGS="-O2 -pipe -fforce-addr -march=nocona" # WARNING: Changing your CHOST is not something that should be done lightly. # Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing. CHOST="x86_64-pc-linux-gnu" # These are the USE flags that were used in addition to what is provided by the # profile used for building. USE="-X mmx multilib netboot sse sse2 -gtk -sdl" #USE="mmx sse sse2"
Don't CC (random) maintainers when you cannot assign bugs.
*** This bug has been marked as a duplicate of bug 139277 ***